@dreamlake/dockit 0.2.18 → 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 +29 -20
- package/dist/styles.css +11 -14
- 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,
|
|
@@ -12,18 +12,18 @@ function Table({
|
|
|
12
12
|
const tableId = id ?? generatedId;
|
|
13
13
|
const actionLabel = wrap ? "Unwrap" : "Wrap";
|
|
14
14
|
return /* @__PURE__ */ jsxs("div", { className: "doc-table", "data-wrap": wrap ? "on" : "off", children: [
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
/* @__PURE__ */ jsx("div", { className: "doc-table-toolbar", children: /* @__PURE__ */ jsxs(
|
|
16
|
+
"button",
|
|
17
|
+
{
|
|
18
|
+
type: "button",
|
|
19
|
+
className: "doc-table-wrap",
|
|
20
|
+
"aria-label": "Wrap table text",
|
|
21
|
+
"aria-pressed": wrap,
|
|
22
|
+
"aria-controls": tableId,
|
|
23
|
+
"aria-describedby": `${generatedId}-wrap-hint`,
|
|
24
|
+
onClick: () => setWrap((value) => !value),
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ jsx(
|
|
27
27
|
"svg",
|
|
28
28
|
{
|
|
29
29
|
width: "12",
|
|
@@ -31,17 +31,26 @@ function Table({
|
|
|
31
31
|
viewBox: "0 0 24 24",
|
|
32
32
|
fill: "none",
|
|
33
33
|
stroke: "currentColor",
|
|
34
|
-
strokeWidth: "
|
|
34
|
+
strokeWidth: "2",
|
|
35
35
|
strokeLinecap: "round",
|
|
36
36
|
strokeLinejoin: "round",
|
|
37
37
|
"aria-hidden": "true",
|
|
38
|
-
children: /* @__PURE__ */
|
|
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
|
+
] })
|
|
39
48
|
}
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ jsx("span", { className: "doc-table-wrap-hint", id: `${generatedId}-wrap-hint`, children: actionLabel })
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
) }),
|
|
45
54
|
/* @__PURE__ */ jsx(
|
|
46
55
|
"div",
|
|
47
56
|
{
|
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;
|
|
@@ -137,24 +137,21 @@
|
|
|
137
137
|
outline: none;
|
|
138
138
|
}
|
|
139
139
|
.doc-table-wrap-hint {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
padding: 3px 6px;
|
|
144
|
-
border-radius: var(--radius-doc-template-sm);
|
|
145
|
-
background: var(--color-doc-template-code);
|
|
146
|
-
color: var(--color-doc-template-ink);
|
|
147
|
-
font-family: var(--font-doc-template-mono);
|
|
148
|
-
font-size: 10px;
|
|
140
|
+
max-width: 0;
|
|
141
|
+
margin-left: 0;
|
|
142
|
+
overflow: hidden;
|
|
149
143
|
line-height: 14px;
|
|
150
144
|
white-space: nowrap;
|
|
151
145
|
opacity: 0;
|
|
152
146
|
visibility: hidden;
|
|
153
147
|
pointer-events: none;
|
|
154
|
-
transition: opacity 120ms ease, visibility 120ms ease;
|
|
148
|
+
transition: max-width 160ms ease, margin-left 160ms ease, opacity 120ms ease, visibility 120ms ease;
|
|
155
149
|
}
|
|
156
|
-
.doc-table-wrap:
|
|
157
|
-
.doc-table-wrap:
|
|
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;
|
|
158
155
|
opacity: 1;
|
|
159
156
|
visibility: visible;
|
|
160
157
|
}
|
|
@@ -171,7 +168,7 @@
|
|
|
171
168
|
background-clip: padding-box;
|
|
172
169
|
}
|
|
173
170
|
/* Reserve room under the overlay, including headers with inline cell padding. */
|
|
174
|
-
.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; }
|
|
175
172
|
.doc-table[data-wrap='on'] > .doc-table-scroll > table { white-space: normal; overflow-wrap: anywhere; }
|
|
176
173
|
.doc-table[data-wrap='off'] > .doc-table-scroll > table { white-space: nowrap; overflow-wrap: normal; }
|
|
177
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"
|