@dreamlake/dockit 0.2.17 → 0.2.19
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/THIRD_PARTY_NOTICES +45 -0
- package/dist/components/Table.js +31 -18
- package/dist/styles.css +28 -4
- package/package.json +3 -2
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Lucide icons: https://lucide.dev
|
|
2
|
+
|
|
3
|
+
ISC License
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2026 Lucide Icons and Contributors
|
|
6
|
+
|
|
7
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
8
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
9
|
+
copyright notice and this permission notice appear in all copies.
|
|
10
|
+
|
|
11
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
12
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
13
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
14
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
15
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
16
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
17
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
The following Lucide icons are derived from the Feather project:
|
|
22
|
+
|
|
23
|
+
airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
24
|
+
|
|
25
|
+
The MIT License (MIT) (for the icons listed above)
|
|
26
|
+
|
|
27
|
+
Copyright (c) 2013-present Cole Bemis
|
|
28
|
+
|
|
29
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
30
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
31
|
+
in the Software without restriction, including without limitation the rights
|
|
32
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
33
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
34
|
+
furnished to do so, subject to the following conditions:
|
|
35
|
+
|
|
36
|
+
The above copyright notice and this permission notice shall be included in all
|
|
37
|
+
copies or substantial portions of the Software.
|
|
38
|
+
|
|
39
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
40
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
41
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
42
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
43
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
44
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
45
|
+
SOFTWARE.
|
package/dist/components/Table.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useId } from "react";
|
|
3
3
|
function Table({
|
|
4
4
|
children,
|
|
@@ -10,8 +10,9 @@ function Table({
|
|
|
10
10
|
const [wrap, setWrap] = useState(true);
|
|
11
11
|
const generatedId = useId();
|
|
12
12
|
const tableId = id ?? generatedId;
|
|
13
|
+
const actionLabel = wrap ? "Unwrap" : "Wrap";
|
|
13
14
|
return /* @__PURE__ */ jsxs("div", { className: "doc-table", "data-wrap": wrap ? "on" : "off", children: [
|
|
14
|
-
/* @__PURE__ */ jsx("div", { className: "doc-table-toolbar", children: /* @__PURE__ */
|
|
15
|
+
/* @__PURE__ */ jsx("div", { className: "doc-table-toolbar", children: /* @__PURE__ */ jsxs(
|
|
15
16
|
"button",
|
|
16
17
|
{
|
|
17
18
|
type: "button",
|
|
@@ -19,23 +20,35 @@ function Table({
|
|
|
19
20
|
"aria-label": "Wrap table text",
|
|
20
21
|
"aria-pressed": wrap,
|
|
21
22
|
"aria-controls": tableId,
|
|
22
|
-
|
|
23
|
+
"aria-describedby": `${generatedId}-wrap-hint`,
|
|
23
24
|
onClick: () => setWrap((value) => !value),
|
|
24
|
-
children:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ jsx(
|
|
27
|
+
"svg",
|
|
28
|
+
{
|
|
29
|
+
width: "12",
|
|
30
|
+
height: "12",
|
|
31
|
+
viewBox: "0 0 24 24",
|
|
32
|
+
fill: "none",
|
|
33
|
+
stroke: "currentColor",
|
|
34
|
+
strokeWidth: "2",
|
|
35
|
+
strokeLinecap: "round",
|
|
36
|
+
strokeLinejoin: "round",
|
|
37
|
+
"aria-hidden": "true",
|
|
38
|
+
children: wrap ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
39
|
+
/* @__PURE__ */ jsx("path", { d: "m16 16-3 3 3 3" }),
|
|
40
|
+
/* @__PURE__ */ jsx("path", { d: "M3 12h14.5a1 1 0 0 1 0 7H13" }),
|
|
41
|
+
/* @__PURE__ */ jsx("path", { d: "M3 19h6" }),
|
|
42
|
+
/* @__PURE__ */ jsx("path", { d: "M3 5h18" })
|
|
43
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44
|
+
/* @__PURE__ */ jsx("path", { d: "M21 5H3" }),
|
|
45
|
+
/* @__PURE__ */ jsx("path", { d: "M15 12H3" }),
|
|
46
|
+
/* @__PURE__ */ jsx("path", { d: "M17 19H3" })
|
|
47
|
+
] })
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ jsx("span", { className: "doc-table-wrap-hint", id: `${generatedId}-wrap-hint`, children: actionLabel })
|
|
51
|
+
]
|
|
39
52
|
}
|
|
40
53
|
) }),
|
|
41
54
|
/* @__PURE__ */ jsx(
|
package/dist/styles.css
CHANGED
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
display: inline-flex;
|
|
116
116
|
align-items: center;
|
|
117
117
|
justify-content: center;
|
|
118
|
-
width:
|
|
118
|
+
width: auto;
|
|
119
119
|
height: 20px;
|
|
120
120
|
padding: 4px;
|
|
121
121
|
border: 0;
|
|
@@ -125,13 +125,37 @@
|
|
|
125
125
|
font-family: var(--font-doc-template-mono);
|
|
126
126
|
font-size: 10px;
|
|
127
127
|
opacity: 0.65;
|
|
128
|
+
transition: color 120ms ease, opacity 120ms ease;
|
|
128
129
|
cursor: pointer;
|
|
129
130
|
}
|
|
130
131
|
.doc-table-wrap[aria-pressed='true'] {
|
|
131
132
|
opacity: 0.9;
|
|
132
133
|
}
|
|
133
|
-
.doc-table-wrap:hover
|
|
134
|
-
|
|
134
|
+
.doc-table-wrap:hover, .doc-table-wrap:focus-visible {
|
|
135
|
+
color: var(--color-doc-template-ink);
|
|
136
|
+
opacity: 1;
|
|
137
|
+
outline: none;
|
|
138
|
+
}
|
|
139
|
+
.doc-table-wrap-hint {
|
|
140
|
+
max-width: 0;
|
|
141
|
+
margin-left: 0;
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
line-height: 14px;
|
|
144
|
+
white-space: nowrap;
|
|
145
|
+
opacity: 0;
|
|
146
|
+
visibility: hidden;
|
|
147
|
+
pointer-events: none;
|
|
148
|
+
transition: max-width 160ms ease, margin-left 160ms ease, opacity 120ms ease, visibility 120ms ease;
|
|
149
|
+
}
|
|
150
|
+
.doc-table-wrap > svg { flex-shrink: 0; }
|
|
151
|
+
.doc-table-wrap:hover .doc-table-wrap-hint,
|
|
152
|
+
.doc-table-wrap:focus-visible .doc-table-wrap-hint {
|
|
153
|
+
max-width: 6ch;
|
|
154
|
+
margin-left: 6px;
|
|
155
|
+
opacity: 1;
|
|
156
|
+
visibility: visible;
|
|
157
|
+
}
|
|
158
|
+
.doc-table-scroll:focus-visible {
|
|
135
159
|
outline: 2px solid var(--color-doc-template-muted);
|
|
136
160
|
outline-offset: 2px;
|
|
137
161
|
}
|
|
@@ -144,7 +168,7 @@
|
|
|
144
168
|
background-clip: padding-box;
|
|
145
169
|
}
|
|
146
170
|
/* Reserve room under the overlay, including headers with inline cell padding. */
|
|
147
|
-
.doc-table-scroll > table > thead > tr > th:last-child { padding-right:
|
|
171
|
+
.doc-table-scroll > table > thead > tr > th:last-child { padding-right: 78px !important; }
|
|
148
172
|
.doc-table[data-wrap='on'] > .doc-table-scroll > table { white-space: normal; overflow-wrap: anywhere; }
|
|
149
173
|
.doc-table[data-wrap='off'] > .doc-table-scroll > table { white-space: nowrap; overflow-wrap: normal; }
|
|
150
174
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dreamlake/dockit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
4
4
|
"description": "The DreamLake documentation shell — Vike + React + Tailwind v4 + MDX docs framework with sidebar, TOC, search, and theming",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
|
-
"templates"
|
|
9
|
+
"templates",
|
|
10
|
+
"THIRD_PARTY_NOTICES"
|
|
10
11
|
],
|
|
11
12
|
"sideEffects": [
|
|
12
13
|
"*.css"
|