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.
Files changed (82) hide show
  1. package/dist/Boundary.cjs +1 -1
  2. package/dist/Boundary.js +29 -29
  3. package/dist/Button-BV5OUXpc.js +101 -0
  4. package/dist/Button-DU4j_IED.cjs +1 -0
  5. package/dist/Button.cjs +1 -1
  6. package/dist/Button.js +1 -1
  7. package/dist/Checkbox.cjs +1 -1
  8. package/dist/Checkbox.js +1 -1
  9. package/dist/{Code-JDb4VFl7.cjs → Code-B7s_rN0G.cjs} +1 -1
  10. package/dist/{Code-ClkozPlv.js → Code-Bp2X1k-g.js} +1 -4
  11. package/dist/Code.cjs +1 -1
  12. package/dist/Code.js +1 -1
  13. package/dist/Divider-C7XGlr26.cjs +1 -0
  14. package/dist/{Divider-BE15WVDI.js → Divider-DZgpYpr-.js} +1 -1
  15. package/dist/Divider.cjs +1 -1
  16. package/dist/Divider.js +1 -1
  17. package/dist/Icon-BIBzgznI.cjs +1 -0
  18. package/dist/{Icon-BoEUoOk7.js → Icon-CxK1wlGk.js} +98 -52
  19. package/dist/Icon.cjs +1 -1
  20. package/dist/Icon.js +1 -1
  21. package/dist/Input.cjs +1 -1
  22. package/dist/Input.js +1 -1
  23. package/dist/Markdown.cjs +1 -1
  24. package/dist/Markdown.js +108 -104
  25. package/dist/Modal.cjs +1 -1
  26. package/dist/Modal.js +1 -1
  27. package/dist/Popover.cjs +1 -1
  28. package/dist/Popover.js +147 -141
  29. package/dist/Select.cjs +1 -1
  30. package/dist/Select.js +2 -2
  31. package/dist/Sidebar.cjs +1 -1
  32. package/dist/Sidebar.js +310 -295
  33. package/dist/Table-CADupJEU.js +423 -0
  34. package/dist/Table-qetwZpTC.cjs +1 -0
  35. package/dist/Table.cjs +1 -1
  36. package/dist/Table.js +1 -1
  37. package/dist/{Tooltip-B4bajPtk.cjs → Tooltip-B2d5ss7S.cjs} +1 -1
  38. package/dist/{Tooltip-BVqdnKK_.js → Tooltip-BK64rkxV.js} +1 -1
  39. package/dist/Tooltip.cjs +1 -1
  40. package/dist/Tooltip.js +1 -1
  41. package/dist/albert-sans-cb3e34c4.woff2 +0 -0
  42. package/dist/components/Icon/icons/GearIcon.d.ts +11 -0
  43. package/dist/components/Icon/icons/ImageIcon.d.ts +11 -0
  44. package/dist/components/Icon/utils/registry.d.ts +2 -0
  45. package/dist/components/Sidebar/Sidebar.d.ts +6 -1
  46. package/dist/components/Sidebar/components/SidebarFooter.d.ts +5 -0
  47. package/dist/components/Sidebar/components/SidebarGroup.d.ts +5 -16
  48. package/dist/components/Sidebar/components/SidebarHeader.d.ts +29 -0
  49. package/dist/components/Sidebar/components/SidebarItem.d.ts +3 -0
  50. package/dist/components/Sidebar/components/SidebarPanel.d.ts +2 -2
  51. package/dist/components/Sidebar/hooks/usePresentation.d.ts +2 -2
  52. package/dist/components/Sidebar/index.d.ts +1 -1
  53. package/dist/components/Sidebar/utils/presentation.d.ts +12 -0
  54. package/dist/components/Sidebar/utils/state.d.ts +2 -2
  55. package/dist/components/Table/Table.d.ts +21 -209
  56. package/dist/components/Table/components/TableAction.d.ts +18 -0
  57. package/dist/components/Table/components/TableActionCell.d.ts +15 -0
  58. package/dist/components/Table/components/TableActionHeaderCell.d.ts +13 -0
  59. package/dist/components/Table/components/TableBody.d.ts +27 -0
  60. package/dist/components/Table/components/TableCell.d.ts +42 -0
  61. package/dist/components/Table/components/TableFoot.d.ts +19 -0
  62. package/dist/components/Table/components/TableHead.d.ts +19 -0
  63. package/dist/components/Table/components/TableHeaderCell.d.ts +23 -0
  64. package/dist/components/Table/components/TableRow.d.ts +67 -0
  65. package/dist/components/Table/hooks/useHorizontalOverflow.d.ts +25 -0
  66. package/dist/components/Table/utils/cell.d.ts +25 -0
  67. package/dist/components/Table/utils/children.d.ts +18 -0
  68. package/dist/components/Table/utils/trigger.d.ts +54 -0
  69. package/dist/floating-position-DIjh2wnP.cjs +1 -0
  70. package/dist/floating-position-DvR6e334.js +50 -0
  71. package/dist/style.css +1 -1
  72. package/dist/{useFloatingPosition-CMirP2-2.js → useFloatingPosition-B3ZC-v3v.js} +1 -1
  73. package/dist/{useFloatingPosition-BBEUHPqy.cjs → useFloatingPosition-GzkP9dCc.cjs} +1 -1
  74. package/package.json +2 -1
  75. package/dist/Button-Chv4O66e.js +0 -99
  76. package/dist/Button-DCKtFvSo.cjs +0 -1
  77. package/dist/Divider-CJYbFcSX.cjs +0 -1
  78. package/dist/Icon-DJ4BigRz.cjs +0 -1
  79. package/dist/Table-B30TBckZ.js +0 -402
  80. package/dist/Table-DceR12X9.cjs +0 -1
  81. package/dist/floating-position-5wJ5G5IT.js +0 -48
  82. 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;