hydrateless 0.0.1 → 0.2.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 -0
- package/dist/breadcrumb.css +46 -0
- package/dist/components.css +464 -0
- package/dist/disclosure.css +39 -0
- package/dist/drawer.css +45 -0
- package/dist/dropdown.css +59 -0
- package/dist/hydrateless.css +789 -0
- package/dist/modal.css +36 -0
- package/dist/popover.css +15 -0
- package/dist/reset.css +44 -0
- package/dist/skip-link.css +24 -0
- package/dist/switch.css +41 -0
- package/dist/tabs.css +47 -0
- package/dist/theme.css +25 -0
- package/dist/toast.css +60 -0
- package/dist/toc.css +39 -0
- package/dist/tokens.css +43 -0
- package/dist/tooltip.css +20 -0
- package/package.json +37 -21
- package/LICENSE +0 -21
- package/README.md +0 -11
- package/index.js +0 -11
package/dist/modal.css
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
.hydrateless-modal {
|
|
3
|
+
border: none;
|
|
4
|
+
border-radius: 0.5rem;
|
|
5
|
+
border-radius: var(--hl-radius-3, 0.5rem);
|
|
6
|
+
padding: 0;
|
|
7
|
+
max-width: min(90vw, 640px);
|
|
8
|
+
width: 100%;
|
|
9
|
+
background: var(--hl-color-bg);
|
|
10
|
+
color: var(--hl-color-fg);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.hydrateless-modal::backdrop {
|
|
14
|
+
background: color-mix(in oklab, var(--hl-color-fg) 40%, transparent);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.hydrateless-modal .hl-modal-header,
|
|
18
|
+
.hydrateless-modal .hl-modal-body,
|
|
19
|
+
.hydrateless-modal .hl-modal-footer {
|
|
20
|
+
padding: 1rem;
|
|
21
|
+
padding: var(--hl-spacing-4, 1rem);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.hydrateless-modal .hl-modal-header {
|
|
25
|
+
border-bottom: 1px solid color-mix(in oklab, var(--hl-color-fg) 12%, transparent);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.hydrateless-modal .hl-modal-footer {
|
|
29
|
+
border-top: 1px solid color-mix(in oklab, var(--hl-color-fg) 12%, transparent);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.hydrateless-modal [data-hl-modal-close]:focus-visible {
|
|
33
|
+
outline: 2px solid #1f6feb;
|
|
34
|
+
outline: var(--hl-focus-ring, 2px solid #1f6feb);
|
|
35
|
+
outline-offset: 2px;
|
|
36
|
+
}
|
package/dist/popover.css
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
[popover],
|
|
3
|
+
[data-hl-popover] {
|
|
4
|
+
border: 1px solid color-mix(in oklab, var(--hl-color-fg) 15%, transparent);
|
|
5
|
+
border-radius: 0.5rem;
|
|
6
|
+
border-radius: var(--hl-radius-3, 0.5rem);
|
|
7
|
+
padding: 0.75rem;
|
|
8
|
+
padding: var(--hl-spacing-3, 0.75rem);
|
|
9
|
+
background: var(--hl-color-bg);
|
|
10
|
+
box-shadow: 0 8px 24px color-mix(in oklab, var(--hl-color-fg) 14%, transparent);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[data-hl-popover][hidden] {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
package/dist/reset.css
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
*,
|
|
3
|
+
*::before,
|
|
4
|
+
*::after {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
* {
|
|
9
|
+
margin: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
html:focus-within {
|
|
13
|
+
scroll-behavior: smooth;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
html,
|
|
17
|
+
body {
|
|
18
|
+
height: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
body {
|
|
22
|
+
line-height: 1.5;
|
|
23
|
+
-webkit-font-smoothing: antialiased;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
img,
|
|
27
|
+
picture,
|
|
28
|
+
video,
|
|
29
|
+
canvas,
|
|
30
|
+
svg {
|
|
31
|
+
display: block;
|
|
32
|
+
max-width: 100%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
input,
|
|
36
|
+
button,
|
|
37
|
+
textarea,
|
|
38
|
+
select {
|
|
39
|
+
font: inherit;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
button {
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
.a11y-skip-link {
|
|
3
|
+
position: absolute;
|
|
4
|
+
left: -9999px;
|
|
5
|
+
top: auto;
|
|
6
|
+
width: 1px;
|
|
7
|
+
height: 1px;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.a11y-skip-link:focus-visible {
|
|
12
|
+
left: 0;
|
|
13
|
+
top: 0;
|
|
14
|
+
width: auto;
|
|
15
|
+
height: auto;
|
|
16
|
+
padding: 0.5rem 0.75rem;
|
|
17
|
+
padding: var(--hl-spacing-2, 0.5rem) var(--hl-spacing-3, 0.75rem);
|
|
18
|
+
background: var(--hl-color-fg);
|
|
19
|
+
color: var(--hl-color-bg);
|
|
20
|
+
border-radius: 0.25rem;
|
|
21
|
+
border-radius: var(--hl-radius-2, 0.25rem);
|
|
22
|
+
outline: 2px solid #1f6feb;
|
|
23
|
+
outline: var(--hl-focus-ring, 2px solid #1f6feb);
|
|
24
|
+
}
|
package/dist/switch.css
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
[data-hl-switch] {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 0.5rem;
|
|
6
|
+
gap: var(--hl-spacing-2, 0.5rem);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
[data-hl-switch] input[type='checkbox'] {
|
|
10
|
+
-webkit-appearance: none;
|
|
11
|
+
-moz-appearance: none;
|
|
12
|
+
appearance: none;
|
|
13
|
+
width: 2.25rem;
|
|
14
|
+
height: 1.25rem;
|
|
15
|
+
border-radius: 1.25rem;
|
|
16
|
+
background: color-mix(in oklab, var(--hl-color-fg) 16%, transparent);
|
|
17
|
+
position: relative;
|
|
18
|
+
outline-offset: 2px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[data-hl-switch] input[type='checkbox']::after {
|
|
22
|
+
content: '';
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 2px;
|
|
25
|
+
right: auto;
|
|
26
|
+
bottom: auto;
|
|
27
|
+
left: 2px;
|
|
28
|
+
width: calc(1.25rem - 4px);
|
|
29
|
+
height: calc(1.25rem - 4px);
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
background: var(--hl-color-bg);
|
|
32
|
+
transition: transform 150ms ease;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-hl-switch] input[type='checkbox']:checked::after {
|
|
36
|
+
transform: translateX(1rem);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-hl-switch] input[type='checkbox']:checked {
|
|
40
|
+
background: var(--hl-color-accent);
|
|
41
|
+
}
|
package/dist/tabs.css
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
|
|
2
|
+
[data-hl-tabs] {
|
|
3
|
+
border: 1px solid color-mix(in oklab, var(--hl-color-fg) 15%, transparent);
|
|
4
|
+
border-radius: 0.5rem;
|
|
5
|
+
border-radius: var(--hl-radius-3, 0.5rem);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[data-hl-tabs] [role='tablist'] {
|
|
9
|
+
display: flex;
|
|
10
|
+
gap: 0.5rem;
|
|
11
|
+
gap: var(--hl-spacing-2, 0.5rem);
|
|
12
|
+
padding: 0.5rem;
|
|
13
|
+
padding: var(--hl-spacing-2, 0.5rem);
|
|
14
|
+
border-bottom: 1px solid color-mix(in oklab, var(--hl-color-fg) 12%, transparent);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-hl-tabs] [role='tab'] {
|
|
18
|
+
-webkit-appearance: none;
|
|
19
|
+
-moz-appearance: none;
|
|
20
|
+
appearance: none;
|
|
21
|
+
background: transparent;
|
|
22
|
+
border: 0;
|
|
23
|
+
border-radius: 0.25rem;
|
|
24
|
+
border-radius: var(--hl-radius-2, 0.25rem);
|
|
25
|
+
padding: 0.5rem 0.75rem;
|
|
26
|
+
padding: var(--hl-spacing-2, 0.5rem) var(--hl-spacing-3, 0.75rem);
|
|
27
|
+
color: inherit;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[data-hl-tabs] [role='tab'][aria-selected='true'] {
|
|
31
|
+
background: var(--hl-color-muted);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[data-hl-tabs] [role='tab']:focus-visible {
|
|
35
|
+
outline: 2px solid #1f6feb;
|
|
36
|
+
outline: var(--hl-focus-ring, 2px solid #1f6feb);
|
|
37
|
+
outline-offset: 2px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-hl-tabs] [role='tabpanel'] {
|
|
41
|
+
padding: 1rem;
|
|
42
|
+
padding: var(--hl-spacing-4, 1rem);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[role='tabpanel'][hidden] {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
package/dist/theme.css
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
:root {
|
|
3
|
+
--csstools-color-scheme--light: initial;
|
|
4
|
+
color-scheme: light dark;
|
|
5
|
+
}
|
|
6
|
+
@media (prefers-color-scheme: dark) {
|
|
7
|
+
:root {
|
|
8
|
+
--csstools-color-scheme--light: ;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[data-theme='light'] {
|
|
13
|
+
--csstools-color-scheme--light: initial;
|
|
14
|
+
color-scheme: light;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-theme='dark'] {
|
|
18
|
+
--csstools-color-scheme--light: ;
|
|
19
|
+
color-scheme: dark;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
body {
|
|
23
|
+
background-color: var(--hl-color-bg);
|
|
24
|
+
color: var(--hl-color-fg);
|
|
25
|
+
}
|
package/dist/toast.css
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
@keyframes hl-toast-in {
|
|
4
|
+
from {
|
|
5
|
+
opacity: 0;
|
|
6
|
+
transform: translateY(0.5rem);
|
|
7
|
+
}
|
|
8
|
+
to {
|
|
9
|
+
opacity: 1;
|
|
10
|
+
transform: translateY(0);
|
|
11
|
+
}
|
|
12
|
+
}[data-hl-toast-region] {
|
|
13
|
+
position: fixed;
|
|
14
|
+
z-index: 1100;
|
|
15
|
+
bottom: 1rem;
|
|
16
|
+
bottom: var(--hl-spacing-4, 1rem);
|
|
17
|
+
right: 1rem;
|
|
18
|
+
right: var(--hl-spacing-4, 1rem);
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column-reverse;
|
|
21
|
+
gap: 0.5rem;
|
|
22
|
+
gap: var(--hl-spacing-2, 0.5rem);
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
max-width: min(90vw, 24rem);
|
|
25
|
+
}[data-hl-toast] {
|
|
26
|
+
pointer-events: auto;
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: flex-start;
|
|
29
|
+
gap: 0.75rem;
|
|
30
|
+
gap: var(--hl-spacing-3, 0.75rem);
|
|
31
|
+
border: 1px solid color-mix(in oklab, var(--hl-color-fg) 15%, transparent);
|
|
32
|
+
border-radius: 0.5rem;
|
|
33
|
+
border-radius: var(--hl-radius-3, 0.5rem);
|
|
34
|
+
padding: 0.75rem 1rem;
|
|
35
|
+
padding: var(--hl-spacing-3, 0.75rem) var(--hl-spacing-4, 1rem);
|
|
36
|
+
background: var(--hl-color-bg);
|
|
37
|
+
box-shadow: 0 8px 24px color-mix(in oklab, var(--hl-color-fg) 14%, transparent);
|
|
38
|
+
animation: hl-toast-in 200ms ease-out;
|
|
39
|
+
}[data-hl-toast-close] {
|
|
40
|
+
-webkit-appearance: none;
|
|
41
|
+
-moz-appearance: none;
|
|
42
|
+
appearance: none;
|
|
43
|
+
border: none;
|
|
44
|
+
background: transparent;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
padding: 0.25rem;
|
|
47
|
+
padding: var(--hl-spacing-1, 0.25rem);
|
|
48
|
+
color: color-mix(in oklab, var(--hl-color-fg) 50%, transparent);
|
|
49
|
+
margin-left: auto;
|
|
50
|
+
flex-shrink: 0;
|
|
51
|
+
font: inherit;
|
|
52
|
+
}[data-hl-toast-close]:hover {
|
|
53
|
+
color: var(--hl-color-fg);
|
|
54
|
+
}[data-hl-toast-close]:focus-visible {
|
|
55
|
+
outline: 2px solid #1f6feb;
|
|
56
|
+
outline: var(--hl-focus-ring, 2px solid #1f6feb);
|
|
57
|
+
outline-offset: 2px;
|
|
58
|
+
border-radius: 0.25rem;
|
|
59
|
+
border-radius: var(--hl-radius-2, 0.25rem);
|
|
60
|
+
}
|
package/dist/toc.css
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
nav[data-hl-toc] {
|
|
3
|
+
border: 1px solid color-mix(in oklab, var(--hl-color-fg) 15%, transparent);
|
|
4
|
+
border-radius: 0.5rem;
|
|
5
|
+
border-radius: var(--hl-radius-3, 0.5rem);
|
|
6
|
+
padding: 0.75rem;
|
|
7
|
+
padding: var(--hl-spacing-3, 0.75rem);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
nav[data-hl-toc] ul {
|
|
11
|
+
list-style: none;
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
nav[data-hl-toc] li {
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
nav[data-hl-toc] a {
|
|
22
|
+
display: block;
|
|
23
|
+
padding: 0.25rem 0.5rem;
|
|
24
|
+
padding: var(--hl-spacing-1, 0.25rem) var(--hl-spacing-2, 0.5rem);
|
|
25
|
+
border-radius: 0.25rem;
|
|
26
|
+
border-radius: var(--hl-radius-2, 0.25rem);
|
|
27
|
+
color: inherit;
|
|
28
|
+
-webkit-text-decoration: none;
|
|
29
|
+
text-decoration: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
nav[data-hl-toc] a[aria-current='true'] {
|
|
33
|
+
background: var(--hl-color-muted);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
nav[data-hl-toc] ul ul {
|
|
37
|
+
padding-left: 0.75rem;
|
|
38
|
+
padding-left: var(--hl-spacing-3, 0.75rem);
|
|
39
|
+
}
|
package/dist/tokens.css
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
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%);
|
|
7
|
+
|
|
8
|
+
--hl-radius-2: 0.25rem;
|
|
9
|
+
--hl-radius-3: 0.5rem;
|
|
10
|
+
|
|
11
|
+
--hl-spacing-1: 0.25rem;
|
|
12
|
+
--hl-spacing-2: 0.5rem;
|
|
13
|
+
--hl-spacing-3: 0.75rem;
|
|
14
|
+
--hl-spacing-4: 1rem;
|
|
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
|
+
}
|
package/dist/tooltip.css
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,32 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hydrateless",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
5
|
-
"keywords": [
|
|
6
|
-
"hydrateless",
|
|
7
|
-
"performance",
|
|
8
|
-
"a11y",
|
|
9
|
-
"css",
|
|
10
|
-
"ui",
|
|
11
|
-
"components"
|
|
12
|
-
],
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Accessible, themeable UI primitives — semantic HTML + modern CSS first, optional JS enhancers.",
|
|
13
5
|
"license": "MIT",
|
|
14
|
-
"author": "Hydrateless",
|
|
15
6
|
"repository": {
|
|
16
7
|
"type": "git",
|
|
17
|
-
"url": "
|
|
18
|
-
|
|
19
|
-
"bugs": {
|
|
20
|
-
"url": "https://github.com/hydrateless/hydrateless/issues"
|
|
8
|
+
"url": "https://github.com/hydrateless/hydrateless.git",
|
|
9
|
+
"directory": "packages/hydrateless"
|
|
21
10
|
},
|
|
22
|
-
"
|
|
23
|
-
"main": "index.js",
|
|
24
|
-
"sideEffects": false,
|
|
11
|
+
"type": "module",
|
|
25
12
|
"files": [
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"style": "dist/hydrateless.css",
|
|
16
|
+
"sideEffects": [
|
|
17
|
+
"**/*.css"
|
|
29
18
|
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "node scripts/build.mjs",
|
|
21
|
+
"dev": "npm run build -- --watch"
|
|
22
|
+
},
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"style": "./dist/hydrateless.css",
|
|
26
|
+
"default": "./dist/hydrateless.css"
|
|
27
|
+
},
|
|
28
|
+
"./reset.css": "./dist/reset.css",
|
|
29
|
+
"./tokens.css": "./dist/tokens.css",
|
|
30
|
+
"./theme.css": "./dist/theme.css",
|
|
31
|
+
"./components.css": "./dist/components.css",
|
|
32
|
+
"./accordion.css": "./dist/accordion.css",
|
|
33
|
+
"./disclosure.css": "./dist/disclosure.css",
|
|
34
|
+
"./drawer.css": "./dist/drawer.css",
|
|
35
|
+
"./modal.css": "./dist/modal.css",
|
|
36
|
+
"./popover.css": "./dist/popover.css",
|
|
37
|
+
"./skip-link.css": "./dist/skip-link.css",
|
|
38
|
+
"./switch.css": "./dist/switch.css",
|
|
39
|
+
"./tabs.css": "./dist/tabs.css",
|
|
40
|
+
"./toc.css": "./dist/toc.css",
|
|
41
|
+
"./tooltip.css": "./dist/tooltip.css",
|
|
42
|
+
"./breadcrumb.css": "./dist/breadcrumb.css",
|
|
43
|
+
"./dropdown.css": "./dist/dropdown.css",
|
|
44
|
+
"./toast.css": "./dist/toast.css"
|
|
45
|
+
},
|
|
30
46
|
"publishConfig": {
|
|
31
47
|
"access": "public"
|
|
32
48
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Hydrateless
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/README.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Hydrateless is a lightweight component library that delivers fast, accessible UI
|
|
2
|
-
primitives—like disclosure, tabs, table of contents, accordions, and
|
|
3
|
-
modals—using semantic HTML and modern CSS first, with no JavaScript by default.
|
|
4
|
-
It leans on native capabilities (e.g., `<details>` and the `:has()` selector) to
|
|
5
|
-
keep runtime cost near zero, then selectively auto-loads tiny JS enhancers only
|
|
6
|
-
when an interaction truly requires it. The timing is ideal as Core Web Vitals
|
|
7
|
-
budgets tighten and teams seek predictable performance across static sites and
|
|
8
|
-
JS-heavy frameworks alike. Version 1 would ship 8–10 fully a11y-complete,
|
|
9
|
-
themeable components (via CSS variables) plus optional, framework-agnostic JS
|
|
10
|
-
add-ons for advanced behaviors—delivering a pragmatic path to rich interfaces
|
|
11
|
-
without paying a constant JavaScript tax.
|