@f0rbit/ui 0.1.2
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 +149 -0
- package/dist/components.css +1054 -0
- package/dist/index.d.ts +217 -0
- package/dist/index.js +1137 -0
- package/dist/index.jsx +752 -0
- package/dist/reset.css +93 -0
- package/dist/server.js +794 -0
- package/dist/server.jsx +752 -0
- package/dist/styles.css +1582 -0
- package/dist/tokens.css +121 -0
- package/dist/utilities.css +298 -0
- package/package.json +84 -0
- package/src/components/Badge.tsx +38 -0
- package/src/components/Button.tsx +55 -0
- package/src/components/Card.tsx +82 -0
- package/src/components/Checkbox.tsx +50 -0
- package/src/components/Chevron.tsx +36 -0
- package/src/components/Clamp.tsx +51 -0
- package/src/components/Collapsible.tsx +39 -0
- package/src/components/Dropdown.tsx +114 -0
- package/src/components/Empty.tsx +22 -0
- package/src/components/FormField.tsx +33 -0
- package/src/components/Input.tsx +35 -0
- package/src/components/Modal.tsx +106 -0
- package/src/components/Spinner.tsx +31 -0
- package/src/components/Stat.tsx +18 -0
- package/src/components/Status.tsx +43 -0
- package/src/components/Stepper.tsx +139 -0
- package/src/components/Tabs.tsx +120 -0
- package/src/components/Timeline.tsx +66 -0
- package/src/components/Toggle.tsx +29 -0
- package/src/index.tsx +65 -0
- package/src/styles/components.css +1054 -0
- package/src/styles/reset.css +93 -0
- package/src/styles/tokens.css +121 -0
- package/src/styles/utilities.css +298 -0
package/dist/reset.css
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
@layer reset {
|
|
2
|
+
*,
|
|
3
|
+
*::before,
|
|
4
|
+
*::after {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
* {
|
|
9
|
+
margin: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
body {
|
|
13
|
+
line-height: var(--leading-normal, 1.5);
|
|
14
|
+
-webkit-font-smoothing: antialiased;
|
|
15
|
+
font-family: var(--font);
|
|
16
|
+
background: var(--bg);
|
|
17
|
+
color: var(--fg-muted);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
img,
|
|
21
|
+
picture,
|
|
22
|
+
video,
|
|
23
|
+
canvas,
|
|
24
|
+
svg {
|
|
25
|
+
display: block;
|
|
26
|
+
max-width: 100%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
input,
|
|
30
|
+
button,
|
|
31
|
+
textarea,
|
|
32
|
+
select {
|
|
33
|
+
font: inherit;
|
|
34
|
+
font-size: var(--text-sm);
|
|
35
|
+
line-height: var(--text-sm-lh);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
p,
|
|
39
|
+
h1,
|
|
40
|
+
h2,
|
|
41
|
+
h3,
|
|
42
|
+
h4,
|
|
43
|
+
h5,
|
|
44
|
+
h6 {
|
|
45
|
+
overflow-wrap: break-word;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
h1,
|
|
49
|
+
h2,
|
|
50
|
+
h3,
|
|
51
|
+
h4,
|
|
52
|
+
h5,
|
|
53
|
+
h6 {
|
|
54
|
+
color: var(--fg);
|
|
55
|
+
font-weight: var(--font-semibold, 600);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
a {
|
|
59
|
+
color: var(--accent);
|
|
60
|
+
text-decoration: none;
|
|
61
|
+
transition: filter var(--transition);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
a:hover {
|
|
65
|
+
filter: var(--hover-filter);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
ul,
|
|
69
|
+
ol {
|
|
70
|
+
list-style: none;
|
|
71
|
+
padding: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
table {
|
|
75
|
+
border-collapse: collapse;
|
|
76
|
+
border-spacing: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:focus-visible {
|
|
80
|
+
outline: 2px solid var(--accent);
|
|
81
|
+
outline-offset: 2px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@media (prefers-reduced-motion: reduce) {
|
|
85
|
+
*,
|
|
86
|
+
*::before,
|
|
87
|
+
*::after {
|
|
88
|
+
animation-duration: 0.01ms !important;
|
|
89
|
+
animation-iteration-count: 1 !important;
|
|
90
|
+
transition-duration: 0.01ms !important;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|