neatkit 0.8.0 → 0.9.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/Boundary.cjs +1 -1
- package/dist/Boundary.js +29 -29
- package/dist/Button-BV5OUXpc.js +101 -0
- package/dist/Button-DU4j_IED.cjs +1 -0
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +1 -1
- package/dist/Checkbox.cjs +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Code-JDb4VFl7.cjs → Code-B7s_rN0G.cjs} +1 -1
- package/dist/{Code-ClkozPlv.js → Code-Bp2X1k-g.js} +1 -4
- package/dist/Code.cjs +1 -1
- package/dist/Code.js +1 -1
- package/dist/Divider-C7XGlr26.cjs +1 -0
- package/dist/{Divider-BE15WVDI.js → Divider-DZgpYpr-.js} +1 -1
- package/dist/Divider.cjs +1 -1
- package/dist/Divider.js +1 -1
- package/dist/Icon-BIBzgznI.cjs +1 -0
- package/dist/{Icon-BoEUoOk7.js → Icon-CxK1wlGk.js} +98 -52
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +1 -1
- package/dist/Input.cjs +1 -1
- package/dist/Input.js +1 -1
- package/dist/Markdown.cjs +1 -1
- package/dist/Markdown.js +108 -104
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +1 -1
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +147 -141
- package/dist/Select.cjs +1 -1
- package/dist/Select.js +2 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +310 -295
- package/dist/Table-CADupJEU.js +423 -0
- package/dist/Table-qetwZpTC.cjs +1 -0
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +1 -1
- package/dist/{Tooltip-B4bajPtk.cjs → Tooltip-B2d5ss7S.cjs} +1 -1
- package/dist/{Tooltip-BVqdnKK_.js → Tooltip-BK64rkxV.js} +1 -1
- package/dist/Tooltip.cjs +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/albert-sans-cb3e34c4.woff2 +0 -0
- package/dist/components/Icon/icons/GearIcon.d.ts +11 -0
- package/dist/components/Icon/icons/ImageIcon.d.ts +11 -0
- package/dist/components/Icon/utils/registry.d.ts +2 -0
- package/dist/components/Sidebar/Sidebar.d.ts +6 -1
- package/dist/components/Sidebar/components/SidebarFooter.d.ts +5 -0
- package/dist/components/Sidebar/components/SidebarGroup.d.ts +5 -16
- package/dist/components/Sidebar/components/SidebarHeader.d.ts +29 -0
- package/dist/components/Sidebar/components/SidebarItem.d.ts +3 -0
- package/dist/components/Sidebar/components/SidebarPanel.d.ts +2 -2
- package/dist/components/Sidebar/hooks/usePresentation.d.ts +2 -2
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/utils/presentation.d.ts +12 -0
- package/dist/components/Sidebar/utils/state.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +21 -209
- package/dist/components/Table/components/TableAction.d.ts +18 -0
- package/dist/components/Table/components/TableActionCell.d.ts +15 -0
- package/dist/components/Table/components/TableActionHeaderCell.d.ts +13 -0
- package/dist/components/Table/components/TableBody.d.ts +27 -0
- package/dist/components/Table/components/TableCell.d.ts +42 -0
- package/dist/components/Table/components/TableFoot.d.ts +19 -0
- package/dist/components/Table/components/TableHead.d.ts +19 -0
- package/dist/components/Table/components/TableHeaderCell.d.ts +23 -0
- package/dist/components/Table/components/TableRow.d.ts +67 -0
- package/dist/components/Table/hooks/useHorizontalOverflow.d.ts +25 -0
- package/dist/components/Table/utils/cell.d.ts +25 -0
- package/dist/components/Table/utils/children.d.ts +18 -0
- package/dist/components/Table/utils/trigger.d.ts +54 -0
- package/dist/floating-position-DIjh2wnP.cjs +1 -0
- package/dist/floating-position-DvR6e334.js +50 -0
- package/dist/style.css +1 -1
- package/dist/{useFloatingPosition-CMirP2-2.js → useFloatingPosition-B3ZC-v3v.js} +1 -1
- package/dist/{useFloatingPosition-BBEUHPqy.cjs → useFloatingPosition-GzkP9dCc.cjs} +1 -1
- package/package.json +2 -1
- package/dist/Button-Chv4O66e.js +0 -99
- package/dist/Button-DCKtFvSo.cjs +0 -1
- package/dist/Divider-CJYbFcSX.cjs +0 -1
- package/dist/Icon-DJ4BigRz.cjs +0 -1
- package/dist/Table-B30TBckZ.js +0 -402
- package/dist/Table-DceR12X9.cjs +0 -1
- package/dist/floating-position-5wJ5G5IT.js +0 -48
- package/dist/floating-position-Cy9xxdH4.cjs +0 -1
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
const P = {
|
|
2
|
-
bottom: "top",
|
|
3
|
-
left: "right",
|
|
4
|
-
right: "left",
|
|
5
|
-
top: "bottom"
|
|
6
|
-
};
|
|
7
|
-
function O(e, h) {
|
|
8
|
-
const t = Math.min(12, h / 2);
|
|
9
|
-
return Math.min(Math.max(t, e), h - t);
|
|
10
|
-
}
|
|
11
|
-
function _(e) {
|
|
12
|
-
return P[e];
|
|
13
|
-
}
|
|
14
|
-
function a(e, h) {
|
|
15
|
-
return h === "left" || h === "right" ? e.width : e.height;
|
|
16
|
-
}
|
|
17
|
-
function I(e, h, t) {
|
|
18
|
-
const f = Math.max(e.left, 0), m = Math.max(e.top, 0), i = Math.min(e.right, h), M = Math.min(e.bottom, t);
|
|
19
|
-
return i <= f || M <= m ? e : { bottom: M, left: f, right: i, top: m };
|
|
20
|
-
}
|
|
21
|
-
function T(e, h, t, f, m) {
|
|
22
|
-
const i = {
|
|
23
|
-
bottom: m.bottom - t.bottom - h * 2,
|
|
24
|
-
left: t.left - m.left - h * 2,
|
|
25
|
-
right: m.right - t.right - h * 2,
|
|
26
|
-
top: t.top - m.top - h * 2
|
|
27
|
-
}, M = _(e), E = a(f, e), o = i[e] < E && i[M] > i[e] ? M : e;
|
|
28
|
-
let l = t.left + (t.width - f.width) / 2, c = t.top + (t.height - f.height) / 2;
|
|
29
|
-
o === "top" ? c = t.top - f.height - h : o === "bottom" ? c = t.bottom + h : o === "left" ? l = t.left - f.width - h : l = t.right + h;
|
|
30
|
-
const w = m.left + h, x = m.top + h;
|
|
31
|
-
return l = Math.min(
|
|
32
|
-
Math.max(w, l),
|
|
33
|
-
Math.max(w, m.right - h - f.width)
|
|
34
|
-
), c = Math.min(
|
|
35
|
-
Math.max(x, c),
|
|
36
|
-
Math.max(x, m.bottom - h - f.height)
|
|
37
|
-
), { arrowOffset: o === "top" || o === "bottom" ? O(
|
|
38
|
-
t.left + t.width / 2 - l,
|
|
39
|
-
f.width
|
|
40
|
-
) : O(
|
|
41
|
-
t.top + t.height / 2 - c,
|
|
42
|
-
f.height
|
|
43
|
-
), left: l, placement: o, top: c };
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
T as c,
|
|
47
|
-
I as g
|
|
48
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a={bottom:"top",left:"right",right:"left",top:"bottom"};function x(i,h){const t=Math.min(12,h/2);return Math.min(Math.max(t,i),h-t)}function E(i){return a[i]}function _(i,h){return h==="left"||h==="right"?i.width:i.height}function A(i,h,t){const e=Math.max(i.left,0),f=Math.max(i.top,0),m=Math.min(i.right,h),M=Math.min(i.bottom,t);return m<=e||M<=f?i:{bottom:M,left:e,right:m,top:f}}function F(i,h,t,e,f){const m={bottom:f.bottom-t.bottom-h*2,left:t.left-f.left-h*2,right:f.right-t.right-h*2,top:t.top-f.top-h*2},M=E(i),P=_(e,i),o=m[i]<P&&m[M]>m[i]?M:i;let l=t.left+(t.width-e.width)/2,c=t.top+(t.height-e.height)/2;o==="top"?c=t.top-e.height-h:o==="bottom"?c=t.bottom+h:o==="left"?l=t.left-e.width-h:l=t.right+h;const w=f.left+h,O=f.top+h;return l=Math.min(Math.max(w,l),Math.max(w,f.right-h-e.width)),c=Math.min(Math.max(O,c),Math.max(O,f.bottom-h-e.height)),{arrowOffset:o==="top"||o==="bottom"?x(t.left+t.width/2-l,e.width):x(t.top+t.height/2-c,e.height),left:l,placement:o,top:c}}exports.calculateFloatingPosition=F;exports.getVisibleBounds=A;
|