hydrateless 0.1.0 → 0.3.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/dist/accordion.css +47 -38
- package/dist/breadcrumb.css +47 -0
- package/dist/components.css +563 -312
- package/dist/disclosure.css +39 -32
- package/dist/drawer.css +68 -51
- package/dist/dropdown.css +67 -0
- package/dist/hydrateless.css +814 -425
- package/dist/hydrateless.min.css +1 -0
- package/dist/modal.css +36 -28
- package/dist/popover.css +15 -15
- package/dist/reset.css +50 -36
- package/dist/skip-link.css +24 -22
- package/dist/switch.css +41 -36
- package/dist/tabs.css +47 -40
- package/dist/theme.css +24 -7
- package/dist/toast.css +76 -0
- package/dist/toc.css +39 -34
- package/dist/tokens.css +40 -12
- package/dist/tooltip.css +20 -19
- package/package.json +9 -2
package/dist/tokens.css
CHANGED
|
@@ -1,16 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
@layer tokens {
|
|
2
|
+
:root {
|
|
3
|
+
--hl-color-bg: hsl(0, 0%, 100%);
|
|
4
|
+
--hl-color-fg: hsl(222, 47%, 11%);
|
|
5
|
+
--hl-color-muted: hsl(220, 14%, 96%);
|
|
6
|
+
--hl-color-accent: hsl(221, 75%, 55%);
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
--hl-radius-2: 0.25rem;
|
|
9
|
+
--hl-radius-3: 0.5rem;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
--hl-spacing-1: 0.25rem;
|
|
12
|
+
--hl-spacing-2: 0.5rem;
|
|
13
|
+
--hl-spacing-3: 0.75rem;
|
|
14
|
+
--hl-spacing-4: 1rem;
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
--hl-focus-ring: 2px solid hsl(221, 80%, 55%);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (prefers-color-scheme: dark) {
|
|
20
|
+
:root {
|
|
21
|
+
--hl-color-bg: hsl(222, 47%, 11%);
|
|
22
|
+
--hl-color-fg: hsl(210, 40%, 98%);
|
|
23
|
+
--hl-color-muted: hsl(223, 20%, 17%);
|
|
24
|
+
--hl-color-accent: hsl(221, 80%, 65%);
|
|
25
|
+
--hl-focus-ring: 2px solid hsl(221, 85%, 65%);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-theme='light'] {
|
|
30
|
+
--hl-color-bg: hsl(0, 0%, 100%);
|
|
31
|
+
--hl-color-fg: hsl(222, 47%, 11%);
|
|
32
|
+
--hl-color-muted: hsl(220, 14%, 96%);
|
|
33
|
+
--hl-color-accent: hsl(221, 75%, 55%);
|
|
34
|
+
--hl-focus-ring: 2px solid hsl(221, 80%, 55%);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
[data-theme='dark'] {
|
|
38
|
+
--hl-color-bg: hsl(222, 47%, 11%);
|
|
39
|
+
--hl-color-fg: hsl(210, 40%, 98%);
|
|
40
|
+
--hl-color-muted: hsl(223, 20%, 17%);
|
|
41
|
+
--hl-color-accent: hsl(221, 80%, 65%);
|
|
42
|
+
--hl-focus-ring: 2px solid hsl(221, 85%, 65%);
|
|
43
|
+
}
|
|
16
44
|
}
|
package/dist/tooltip.css
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
[role='tooltip'] {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[role='tooltip'][hidden] {
|
|
19
|
-
|
|
1
|
+
@layer components {
|
|
2
|
+
[role='tooltip'] {
|
|
3
|
+
position: absolute;
|
|
4
|
+
z-index: 1000;
|
|
5
|
+
top: auto;
|
|
6
|
+
right: auto;
|
|
7
|
+
bottom: auto;
|
|
8
|
+
left: 0;
|
|
9
|
+
translate: 0 -0.25rem;
|
|
10
|
+
padding: 0.25rem 0.5rem;
|
|
11
|
+
border-radius: 0.25rem;
|
|
12
|
+
border-radius: var(--hl-radius-2, 0.25rem);
|
|
13
|
+
background: color-mix(in oklab, var(--hl-color-fg) 96%, var(--hl-color-bg) 4%);
|
|
14
|
+
color: var(--hl-color-bg);
|
|
15
|
+
font-size: 0.875rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[role='tooltip'][hidden] {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
20
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hydrateless",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Accessible, themeable UI primitives — semantic HTML + modern CSS first, optional JS enhancers.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
"dist"
|
|
14
14
|
],
|
|
15
15
|
"style": "dist/hydrateless.css",
|
|
16
|
+
"unpkg": "dist/hydrateless.min.css",
|
|
17
|
+
"jsdelivr": "dist/hydrateless.min.css",
|
|
16
18
|
"sideEffects": [
|
|
17
19
|
"**/*.css"
|
|
18
20
|
],
|
|
@@ -25,6 +27,8 @@
|
|
|
25
27
|
"style": "./dist/hydrateless.css",
|
|
26
28
|
"default": "./dist/hydrateless.css"
|
|
27
29
|
},
|
|
30
|
+
"./hydrateless.css": "./dist/hydrateless.css",
|
|
31
|
+
"./hydrateless.min.css": "./dist/hydrateless.min.css",
|
|
28
32
|
"./reset.css": "./dist/reset.css",
|
|
29
33
|
"./tokens.css": "./dist/tokens.css",
|
|
30
34
|
"./theme.css": "./dist/theme.css",
|
|
@@ -38,7 +42,10 @@
|
|
|
38
42
|
"./switch.css": "./dist/switch.css",
|
|
39
43
|
"./tabs.css": "./dist/tabs.css",
|
|
40
44
|
"./toc.css": "./dist/toc.css",
|
|
41
|
-
"./tooltip.css": "./dist/tooltip.css"
|
|
45
|
+
"./tooltip.css": "./dist/tooltip.css",
|
|
46
|
+
"./breadcrumb.css": "./dist/breadcrumb.css",
|
|
47
|
+
"./dropdown.css": "./dist/dropdown.css",
|
|
48
|
+
"./toast.css": "./dist/toast.css"
|
|
42
49
|
},
|
|
43
50
|
"publishConfig": {
|
|
44
51
|
"access": "public"
|