Skip to content

Commit a078fc0

Browse files
committed
chore: update workflow action
1 parent 549c376 commit a078fc0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ jobs:
3939
working-directory: src/.beyond/builds/npm/code
4040
env:
4141
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
42-
run: npm publish --access public
42+
run: npm publish

src/modules/base/ts/types/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export /*bundle*/ interface IPUIProps<T = unknown> extends HTMLMotionProps<T> {
2020
children?: React.ReactNode;
2121
variant?: Variant;
2222
className?: string;
23+
// Add support for any custom data-* attributes
24+
[key: `data-${string}`]: number | string | undefined;
2325
}
2426

2527
export type Variant = 'primary' | 'secondary' | 'tertiary' | 'success' | 'info' | 'error' | 'warning' | 'default';

src/modules/visualization/list/ts/index.tsx

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { ReactElement, Children, cloneElement, isValidElement } from 'react';
2-
import { DraggableList } from './draggable';
32
import { IListProps } from './types/list';
43
import { ItemList } from './item';
54
// import { DraggableItem } from './item/dragable';
@@ -42,13 +41,13 @@ export /*bundle*/ function List<T>({ children, empty, items, control, ...props }
4241
}
4342

4443
const renderItems = control
45-
? items.map((item, idx) => (
46-
<ItemControl index={index} key={idx} specs={specs} control={control} item={item} idx={idx} />
47-
))
44+
? items.map((item, idx) => {
45+
return <ItemControl index={index} key={idx} specs={specs} control={control} item={item} idx={idx} />;
46+
})
4847
: items.map((item, idx) =>
4948
Children.map(children, child =>
5049
isValidElement(child)
51-
? cloneElement(child as React.ReactElement<any>, { key: idx, index, specs, item, idx })
50+
? cloneElement(child as React.ReactElement<any>, { key: idx, index, ...specs, item, idx })
5251
: child,
5352
),
5453
);

0 commit comments

Comments
 (0)