@ikatec/nebula-react 1.10.1-beta.1 → 1.11.0-beta.1
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.
|
Binary file
|
package/dist/index.d.mts
CHANGED
|
@@ -692,7 +692,6 @@ interface KanbanRenderCardContext<TCard extends KanbanBoardCard = KanbanBoardCar
|
|
|
692
692
|
columnIndex: number;
|
|
693
693
|
index: number;
|
|
694
694
|
isDragging: boolean;
|
|
695
|
-
isOverlay: boolean;
|
|
696
695
|
}
|
|
697
696
|
interface KanbanRenderColumnContext<TCard extends KanbanBoardCard = KanbanBoardCard, TColumnMeta extends Record<string, unknown> = Record<string, unknown>> {
|
|
698
697
|
column: KanbanBoardColumn<TCard, TColumnMeta>;
|
|
@@ -767,7 +766,6 @@ declare const KanbanColumnTitle: React$1.ForwardRefExoticComponent<React$1.HTMLA
|
|
|
767
766
|
declare const KanbanColumnFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
768
767
|
interface KanbanCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
769
768
|
isDragging?: boolean;
|
|
770
|
-
isOverlay?: boolean;
|
|
771
769
|
}
|
|
772
770
|
declare const KanbanCard: React$1.ForwardRefExoticComponent<KanbanCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
773
771
|
declare const KanbanColumnDragHandle: React$1.ForwardRefExoticComponent<React$1.ButtonHTMLAttributes<HTMLButtonElement> & React$1.RefAttributes<HTMLButtonElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -692,7 +692,6 @@ interface KanbanRenderCardContext<TCard extends KanbanBoardCard = KanbanBoardCar
|
|
|
692
692
|
columnIndex: number;
|
|
693
693
|
index: number;
|
|
694
694
|
isDragging: boolean;
|
|
695
|
-
isOverlay: boolean;
|
|
696
695
|
}
|
|
697
696
|
interface KanbanRenderColumnContext<TCard extends KanbanBoardCard = KanbanBoardCard, TColumnMeta extends Record<string, unknown> = Record<string, unknown>> {
|
|
698
697
|
column: KanbanBoardColumn<TCard, TColumnMeta>;
|
|
@@ -767,7 +766,6 @@ declare const KanbanColumnTitle: React$1.ForwardRefExoticComponent<React$1.HTMLA
|
|
|
767
766
|
declare const KanbanColumnFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
768
767
|
interface KanbanCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
769
768
|
isDragging?: boolean;
|
|
770
|
-
isOverlay?: boolean;
|
|
771
769
|
}
|
|
772
770
|
declare const KanbanCard: React$1.ForwardRefExoticComponent<KanbanCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
773
771
|
declare const KanbanColumnDragHandle: React$1.ForwardRefExoticComponent<React$1.ButtonHTMLAttributes<HTMLButtonElement> & React$1.RefAttributes<HTMLButtonElement>>;
|
package/dist/index.js
CHANGED
|
@@ -6034,15 +6034,14 @@ var KanbanColumnFooter = React25__namespace.forwardRef(({ className, ...props },
|
|
|
6034
6034
|
});
|
|
6035
6035
|
KanbanColumnFooter.displayName = "KanbanColumnFooter";
|
|
6036
6036
|
var KanbanCard = React25__namespace.forwardRef(
|
|
6037
|
-
({ className, isDragging,
|
|
6037
|
+
({ className, isDragging, ...props }, ref) => {
|
|
6038
6038
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6039
6039
|
"div",
|
|
6040
6040
|
{
|
|
6041
6041
|
ref,
|
|
6042
6042
|
className: cn(
|
|
6043
|
-
"group relative rounded-2xl border border-box-border/80 bg-box-background-primary px-5 py-4 text-left transition-all duration-150 hover
|
|
6044
|
-
isDragging && "ring-
|
|
6045
|
-
isOverlay && "ring-4 ring-button-primary-border-focus/60",
|
|
6043
|
+
"group relative rounded-2xl border border-box-border/80 bg-box-background-primary px-5 py-4 text-left transition-all duration-150 hover:!translate-y-[1px] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-button-primary-border-focus",
|
|
6044
|
+
isDragging && "ring-1 ring-kanban-border-hover",
|
|
6046
6045
|
className
|
|
6047
6046
|
),
|
|
6048
6047
|
...props
|
|
@@ -6254,8 +6253,7 @@ function KanbanSortableCard({
|
|
|
6254
6253
|
column,
|
|
6255
6254
|
columnIndex,
|
|
6256
6255
|
index: cardIndex,
|
|
6257
|
-
isDragging
|
|
6258
|
-
isOverlay: false
|
|
6256
|
+
isDragging
|
|
6259
6257
|
});
|
|
6260
6258
|
const resolvedCardId = cardId ?? getCardId(card);
|
|
6261
6259
|
const isActiveCard = activeCardId === resolvedCardId;
|
|
@@ -6288,7 +6286,7 @@ function KanbanSortableCard({
|
|
|
6288
6286
|
children: cardContent
|
|
6289
6287
|
}
|
|
6290
6288
|
),
|
|
6291
|
-
showManualPreview ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nebula-ds pointer-events-none absolute inset-0 rounded-2xl
|
|
6289
|
+
showManualPreview ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nebula-ds pointer-events-none absolute inset-0 rounded-2xl bg-kanban-background-moving" }) : null
|
|
6292
6290
|
]
|
|
6293
6291
|
}
|
|
6294
6292
|
);
|
|
@@ -6365,6 +6363,7 @@ var KanbanColumnBodyBase = React25__namespace.forwardRef(KanbanColumnBodyInner);
|
|
|
6365
6363
|
KanbanColumnBodyBase.displayName = "KanbanColumnBody";
|
|
6366
6364
|
var KanbanColumnBody = KanbanColumnBodyBase;
|
|
6367
6365
|
var KANBAN_COLUMN_BASE_CLASSNAME = "flex h-full w-full min-w-[360px] max-w-[360px] flex-col rounded-2xl box-content border bg-table-background transition-[box-shadow,transform,background-color]";
|
|
6366
|
+
var KANBAN_COLUMN_DROP_TARGET_CLASSNAME = "ring-1 ring-kanban-border-hover";
|
|
6368
6367
|
function KanbanSortableColumn({
|
|
6369
6368
|
column,
|
|
6370
6369
|
columnIndex,
|
|
@@ -6451,8 +6450,8 @@ function KanbanSortableColumn({
|
|
|
6451
6450
|
KANBAN_COLUMN_BASE_CLASSNAME,
|
|
6452
6451
|
isDragging && "translate-y-[1px]",
|
|
6453
6452
|
column.canDrag === false && "cursor-default",
|
|
6454
|
-
isManualTarget && isManualOrdering &&
|
|
6455
|
-
isExternalTarget && !isManualOrdering &&
|
|
6453
|
+
isManualTarget && isManualOrdering && KANBAN_COLUMN_DROP_TARGET_CLASSNAME,
|
|
6454
|
+
isExternalTarget && !isManualOrdering && KANBAN_COLUMN_DROP_TARGET_CLASSNAME,
|
|
6456
6455
|
className
|
|
6457
6456
|
);
|
|
6458
6457
|
return /* @__PURE__ */ jsxRuntime.jsx(KanbanColumnContext.Provider, { value: columnContextValue, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -6533,8 +6532,7 @@ function renderCardOverlay({
|
|
|
6533
6532
|
column,
|
|
6534
6533
|
columnIndex: columns.indexOf(column),
|
|
6535
6534
|
index: column.cards.findIndex((card) => card.id === activeCard.card.id),
|
|
6536
|
-
isDragging: true
|
|
6537
|
-
isOverlay: true
|
|
6535
|
+
isDragging: true
|
|
6538
6536
|
});
|
|
6539
6537
|
}
|
|
6540
6538
|
function renderColumnOverlay({
|
|
@@ -6583,8 +6581,7 @@ function renderColumnOverlay({
|
|
|
6583
6581
|
column,
|
|
6584
6582
|
columnIndex: columnContext.columnIndex,
|
|
6585
6583
|
index,
|
|
6586
|
-
isDragging: false
|
|
6587
|
-
isOverlay: true
|
|
6584
|
+
isDragging: false
|
|
6588
6585
|
})
|
|
6589
6586
|
) }),
|
|
6590
6587
|
column.footer || renderColumnFooter ? renderColumnFooter ? renderColumnFooter(columnContext) : /* @__PURE__ */ jsxRuntime.jsx(KanbanColumnFooter, { children: column.footer }) : null
|
|
@@ -7064,7 +7061,7 @@ function KanbanBoard({
|
|
|
7064
7061
|
"div",
|
|
7065
7062
|
{
|
|
7066
7063
|
className: cn(
|
|
7067
|
-
"relative flex h-full w-full gap-
|
|
7064
|
+
"relative flex h-full w-full gap-6 overflow-x-auto p-1",
|
|
7068
7065
|
className
|
|
7069
7066
|
),
|
|
7070
7067
|
children: sanitizedColumns.map((column, index) => {
|
package/dist/index.mjs
CHANGED
|
@@ -5991,15 +5991,14 @@ var KanbanColumnFooter = React25.forwardRef(({ className, ...props }, ref) => {
|
|
|
5991
5991
|
});
|
|
5992
5992
|
KanbanColumnFooter.displayName = "KanbanColumnFooter";
|
|
5993
5993
|
var KanbanCard = React25.forwardRef(
|
|
5994
|
-
({ className, isDragging,
|
|
5994
|
+
({ className, isDragging, ...props }, ref) => {
|
|
5995
5995
|
return /* @__PURE__ */ jsx(
|
|
5996
5996
|
"div",
|
|
5997
5997
|
{
|
|
5998
5998
|
ref,
|
|
5999
5999
|
className: cn(
|
|
6000
|
-
"group relative rounded-2xl border border-box-border/80 bg-box-background-primary px-5 py-4 text-left transition-all duration-150 hover
|
|
6001
|
-
isDragging && "ring-
|
|
6002
|
-
isOverlay && "ring-4 ring-button-primary-border-focus/60",
|
|
6000
|
+
"group relative rounded-2xl border border-box-border/80 bg-box-background-primary px-5 py-4 text-left transition-all duration-150 hover:!translate-y-[1px] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-button-primary-border-focus",
|
|
6001
|
+
isDragging && "ring-1 ring-kanban-border-hover",
|
|
6003
6002
|
className
|
|
6004
6003
|
),
|
|
6005
6004
|
...props
|
|
@@ -6211,8 +6210,7 @@ function KanbanSortableCard({
|
|
|
6211
6210
|
column,
|
|
6212
6211
|
columnIndex,
|
|
6213
6212
|
index: cardIndex,
|
|
6214
|
-
isDragging
|
|
6215
|
-
isOverlay: false
|
|
6213
|
+
isDragging
|
|
6216
6214
|
});
|
|
6217
6215
|
const resolvedCardId = cardId ?? getCardId(card);
|
|
6218
6216
|
const isActiveCard = activeCardId === resolvedCardId;
|
|
@@ -6245,7 +6243,7 @@ function KanbanSortableCard({
|
|
|
6245
6243
|
children: cardContent
|
|
6246
6244
|
}
|
|
6247
6245
|
),
|
|
6248
|
-
showManualPreview ? /* @__PURE__ */ jsx("div", { className: "nebula-ds pointer-events-none absolute inset-0 rounded-2xl
|
|
6246
|
+
showManualPreview ? /* @__PURE__ */ jsx("div", { className: "nebula-ds pointer-events-none absolute inset-0 rounded-2xl bg-kanban-background-moving" }) : null
|
|
6249
6247
|
]
|
|
6250
6248
|
}
|
|
6251
6249
|
);
|
|
@@ -6322,6 +6320,7 @@ var KanbanColumnBodyBase = React25.forwardRef(KanbanColumnBodyInner);
|
|
|
6322
6320
|
KanbanColumnBodyBase.displayName = "KanbanColumnBody";
|
|
6323
6321
|
var KanbanColumnBody = KanbanColumnBodyBase;
|
|
6324
6322
|
var KANBAN_COLUMN_BASE_CLASSNAME = "flex h-full w-full min-w-[360px] max-w-[360px] flex-col rounded-2xl box-content border bg-table-background transition-[box-shadow,transform,background-color]";
|
|
6323
|
+
var KANBAN_COLUMN_DROP_TARGET_CLASSNAME = "ring-1 ring-kanban-border-hover";
|
|
6325
6324
|
function KanbanSortableColumn({
|
|
6326
6325
|
column,
|
|
6327
6326
|
columnIndex,
|
|
@@ -6408,8 +6407,8 @@ function KanbanSortableColumn({
|
|
|
6408
6407
|
KANBAN_COLUMN_BASE_CLASSNAME,
|
|
6409
6408
|
isDragging && "translate-y-[1px]",
|
|
6410
6409
|
column.canDrag === false && "cursor-default",
|
|
6411
|
-
isManualTarget && isManualOrdering &&
|
|
6412
|
-
isExternalTarget && !isManualOrdering &&
|
|
6410
|
+
isManualTarget && isManualOrdering && KANBAN_COLUMN_DROP_TARGET_CLASSNAME,
|
|
6411
|
+
isExternalTarget && !isManualOrdering && KANBAN_COLUMN_DROP_TARGET_CLASSNAME,
|
|
6413
6412
|
className
|
|
6414
6413
|
);
|
|
6415
6414
|
return /* @__PURE__ */ jsx(KanbanColumnContext.Provider, { value: columnContextValue, children: /* @__PURE__ */ jsxs(
|
|
@@ -6490,8 +6489,7 @@ function renderCardOverlay({
|
|
|
6490
6489
|
column,
|
|
6491
6490
|
columnIndex: columns.indexOf(column),
|
|
6492
6491
|
index: column.cards.findIndex((card) => card.id === activeCard.card.id),
|
|
6493
|
-
isDragging: true
|
|
6494
|
-
isOverlay: true
|
|
6492
|
+
isDragging: true
|
|
6495
6493
|
});
|
|
6496
6494
|
}
|
|
6497
6495
|
function renderColumnOverlay({
|
|
@@ -6540,8 +6538,7 @@ function renderColumnOverlay({
|
|
|
6540
6538
|
column,
|
|
6541
6539
|
columnIndex: columnContext.columnIndex,
|
|
6542
6540
|
index,
|
|
6543
|
-
isDragging: false
|
|
6544
|
-
isOverlay: true
|
|
6541
|
+
isDragging: false
|
|
6545
6542
|
})
|
|
6546
6543
|
) }),
|
|
6547
6544
|
column.footer || renderColumnFooter ? renderColumnFooter ? renderColumnFooter(columnContext) : /* @__PURE__ */ jsx(KanbanColumnFooter, { children: column.footer }) : null
|
|
@@ -7021,7 +7018,7 @@ function KanbanBoard({
|
|
|
7021
7018
|
"div",
|
|
7022
7019
|
{
|
|
7023
7020
|
className: cn(
|
|
7024
|
-
"relative flex h-full w-full gap-
|
|
7021
|
+
"relative flex h-full w-full gap-6 overflow-x-auto p-1",
|
|
7025
7022
|
className
|
|
7026
7023
|
),
|
|
7027
7024
|
children: sanitizedColumns.map((column, index) => {
|
package/package.json
CHANGED
|
Binary file
|