@zumer/orbit 1.5.0 → 2.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 +233 -143
- package/dist/custom-elements.json +250 -0
- package/dist/orbit.css +2820 -1233
- package/dist/orbit.d.ts +107 -0
- package/dist/orbit.js +368 -205
- package/dist/orbit.min.css +1 -1
- package/dist/orbit.min.js +42 -26
- package/dist/orbit.mjs +368 -205
- package/dist/react.d.ts +25 -0
- package/dist/style.d.ts +3 -0
- package/dist/vscode.html-custom-data.json +166 -0
- package/package.json +23 -4
package/dist/react.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// JSX types for <o-arc> and <o-progress> in React.
|
|
2
|
+
// Load once, for example in a .d.ts file of your app:
|
|
3
|
+
// import type {} from '@zumer/orbit/react';
|
|
4
|
+
import type { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
5
|
+
import type { OrbitArc, OrbitArcAttributes, OrbitProgress, OrbitProgressAttributes } from './orbit.js';
|
|
6
|
+
|
|
7
|
+
type OrbitElementProps<Element, Attributes> =
|
|
8
|
+
DetailedHTMLProps<HTMLAttributes<Element>, Element> & Attributes & { class?: string };
|
|
9
|
+
|
|
10
|
+
interface OrbitIntrinsicElements {
|
|
11
|
+
'o-arc': OrbitElementProps<OrbitArc, OrbitArcAttributes>;
|
|
12
|
+
'o-progress': OrbitElementProps<OrbitProgress, OrbitProgressAttributes>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare module 'react' {
|
|
16
|
+
namespace JSX {
|
|
17
|
+
interface IntrinsicElements extends OrbitIntrinsicElements {}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare global {
|
|
22
|
+
namespace JSX {
|
|
23
|
+
interface IntrinsicElements extends OrbitIntrinsicElements {}
|
|
24
|
+
}
|
|
25
|
+
}
|
package/dist/style.d.ts
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1.1,
|
|
3
|
+
"tags": [
|
|
4
|
+
{
|
|
5
|
+
"name": "o-arc",
|
|
6
|
+
"description": "A segment of its ring. Without value, sibling arcs split the range equally; with value, they stack in DOM order. Text content is drawn along the arc. Place it directly in a ring.",
|
|
7
|
+
"attributes": [
|
|
8
|
+
{
|
|
9
|
+
"name": "value",
|
|
10
|
+
"description": "Share of the ring's range, relative to max. Without it, sibling arcs split the range equally."
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "max",
|
|
14
|
+
"description": "Value that fills the ring's range. Must be positive. Default: 100."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "shape",
|
|
18
|
+
"description": "Ending of the band. Default: none.",
|
|
19
|
+
"values": [
|
|
20
|
+
{
|
|
21
|
+
"name": "none"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "rounded"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "circle"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "circle-a"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "circle-b"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "bullet"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "arrow"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "slash"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "backslash"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "zigzag"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "interactive",
|
|
54
|
+
"description": "Let the band receive pointer events, even where it is transparent. Decorative by default.",
|
|
55
|
+
"valueSet": "v"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "hit-width",
|
|
59
|
+
"description": "Extra touch area in px on each side of an interactive band. Default: 0."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "text-anchor",
|
|
63
|
+
"description": "Where curved text sits on the arc. With range=\"auto\", an explicit value anchors the arc at its angle: middle centers it, end ends it there. Default: middle.",
|
|
64
|
+
"values": [
|
|
65
|
+
{
|
|
66
|
+
"name": "start"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "middle"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "end"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "flip",
|
|
78
|
+
"description": "Reverse the direction of curved text.",
|
|
79
|
+
"valueSet": "v"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "fit-range",
|
|
83
|
+
"description": "Squeeze curved text to the length of the arc.",
|
|
84
|
+
"valueSet": "v"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "range",
|
|
88
|
+
"description": "Size the arc to its text. Consecutive range=\"auto\" arcs follow each other.",
|
|
89
|
+
"values": [
|
|
90
|
+
{
|
|
91
|
+
"name": "auto"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "o-progress",
|
|
99
|
+
"description": "A progress band over a background track that spans its ring's range. Place it directly in a ring.",
|
|
100
|
+
"attributes": [
|
|
101
|
+
{
|
|
102
|
+
"name": "value",
|
|
103
|
+
"description": "Value relative to max."
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "max",
|
|
107
|
+
"description": "Value that fills the ring's range. Must be positive. Default: 100."
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "shape",
|
|
111
|
+
"description": "Ending of the band. Default: none.",
|
|
112
|
+
"values": [
|
|
113
|
+
{
|
|
114
|
+
"name": "none"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "rounded"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "circle"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "circle-a"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "circle-b"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "bullet"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "arrow"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "slash"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "backslash"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "zigzag"
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "interactive",
|
|
147
|
+
"description": "Let the band receive pointer events, even where it is transparent. Decorative by default.",
|
|
148
|
+
"valueSet": "v"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "hit-width",
|
|
152
|
+
"description": "Extra touch area in px on each side of an interactive band. Default: 0."
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "variant",
|
|
156
|
+
"description": "Draw open lines colored by --o-stroke and --o-back-stroke instead of filled bands.",
|
|
157
|
+
"values": [
|
|
158
|
+
{
|
|
159
|
+
"name": "stroke"
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zumer/orbit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Orbit builds radial interfaces with CSS geometry and a small JavaScript layout runtime",
|
|
5
5
|
"main": "./dist/orbit.js",
|
|
6
6
|
"module": "./dist/orbit.mjs",
|
|
7
|
+
"types": "./dist/orbit.d.ts",
|
|
8
|
+
"customElements": "./dist/custom-elements.json",
|
|
7
9
|
"exports": {
|
|
8
10
|
".": {
|
|
11
|
+
"types": "./dist/orbit.d.ts",
|
|
9
12
|
"import": "./dist/orbit.mjs",
|
|
10
13
|
"default": "./dist/orbit.js"
|
|
11
14
|
},
|
|
12
|
-
"./style":
|
|
15
|
+
"./style": {
|
|
16
|
+
"types": "./dist/style.d.ts",
|
|
17
|
+
"default": "./dist/orbit.css"
|
|
18
|
+
},
|
|
19
|
+
"./react": {
|
|
20
|
+
"types": "./dist/react.d.ts"
|
|
21
|
+
},
|
|
22
|
+
"./custom-elements.json": "./dist/custom-elements.json",
|
|
23
|
+
"./vscode.html-custom-data.json": "./dist/vscode.html-custom-data.json"
|
|
13
24
|
},
|
|
14
25
|
"files": [
|
|
15
26
|
"dist/",
|
|
@@ -18,13 +29,17 @@
|
|
|
18
29
|
"scripts": {
|
|
19
30
|
"compile": "node esbuild.config.mjs",
|
|
20
31
|
"demo": "npm run compile && node scripts/demo.mjs",
|
|
32
|
+
"docs": "npm run compile && node scripts/docs-sync.mjs && node scripts/demo.mjs",
|
|
33
|
+
"docs:sync": "node scripts/docs-sync.mjs",
|
|
21
34
|
"bump:dry": "npx @zumerbox/bump -d",
|
|
22
35
|
"bump": "npx @zumerbox/bump && npx @zumerbox/changelog",
|
|
23
36
|
"build": "npm run compile && npm pack",
|
|
37
|
+
"prepublishOnly": "npm run compile",
|
|
24
38
|
"test": "npm run compile && npm run test:package && npm run test:browser && npm run test:shadow",
|
|
25
39
|
"test:package": "node test/package.mjs",
|
|
26
40
|
"test:browser": "node test/browser.mjs",
|
|
27
|
-
"test:shadow": "node test/shadow.mjs"
|
|
41
|
+
"test:shadow": "node test/shadow.mjs",
|
|
42
|
+
"release:push": "git add CHANGELOG.md && git commit -m \"Bumped version\" && git push --follow-tags"
|
|
28
43
|
},
|
|
29
44
|
"repository": {
|
|
30
45
|
"type": "git",
|
|
@@ -45,10 +60,14 @@
|
|
|
45
60
|
"bugs": {
|
|
46
61
|
"url": "https://github.com/zumerlab/orbit/issues"
|
|
47
62
|
},
|
|
48
|
-
"homepage": "https://
|
|
63
|
+
"homepage": "https://zumerlab.com/orbit/",
|
|
49
64
|
"devDependencies": {
|
|
50
65
|
"esbuild": "^0.25.12",
|
|
51
66
|
"playwright": "^1.55.1",
|
|
52
67
|
"sass": "^1.77.0"
|
|
68
|
+
},
|
|
69
|
+
"funding": {
|
|
70
|
+
"type": "github",
|
|
71
|
+
"url": "https://github.com/sponsors/tinchox5"
|
|
53
72
|
}
|
|
54
73
|
}
|