@teamturing/react-kit 2.41.0 → 2.41.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementType, PropsWithChildren, ReactNode, MouseEvent as ReactMouseEvent, KeyboardEvent as ReactKeyboardEvent } from 'react';
|
|
1
|
+
import { ElementType, PropsWithChildren, ReactNode, MouseEvent as ReactMouseEvent, KeyboardEvent as ReactKeyboardEvent, LiHTMLAttributes } from 'react';
|
|
2
2
|
import { SxProp } from '../../utils/styled-system';
|
|
3
3
|
type Props = {
|
|
4
4
|
variant?: 'neutral' | 'danger';
|
|
@@ -9,7 +9,7 @@ type Props = {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
selected?: boolean;
|
|
11
11
|
onSelect?: (event: ReactMouseEvent<HTMLLIElement> | ReactKeyboardEvent<HTMLLIElement>) => void;
|
|
12
|
-
} & SxProp;
|
|
13
|
-
declare const ActionListItem: ({ variant, leadingVisual: LeadingVisual, trailingVisual: TrailingVisual, description, descriptionLayout, disabled, selected, onSelect: propOnSelect, children, sx, }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
} & Pick<LiHTMLAttributes<HTMLLIElement>, 'onFocus' | 'onBlur'> & SxProp;
|
|
13
|
+
declare const ActionListItem: ({ variant, leadingVisual: LeadingVisual, trailingVisual: TrailingVisual, description, descriptionLayout, disabled, selected, onSelect: propOnSelect, children, onFocus, onBlur, sx, }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export default ActionListItem;
|
|
15
15
|
export type { Props as ActionListItemProps };
|
|
@@ -16,7 +16,7 @@ type Props = {
|
|
|
16
16
|
type ActionListContextValue = {} & Pick<Props, 'selectionVariant' | 'onSelect'>;
|
|
17
17
|
declare const ActionListContext: import("react").Context<Pick<Props, "onSelect" | "selectionVariant">>;
|
|
18
18
|
declare const _default: (({ selectionVariant, onSelect, ...props }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element) & {
|
|
19
|
-
Item: ({ variant, leadingVisual: LeadingVisual, trailingVisual: TrailingVisual, description, descriptionLayout, disabled, selected, onSelect: propOnSelect, children, sx, }: PropsWithChildren<ActionListItemProps>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
Item: ({ variant, leadingVisual: LeadingVisual, trailingVisual: TrailingVisual, description, descriptionLayout, disabled, selected, onSelect: propOnSelect, children, onFocus, onBlur, sx, }: PropsWithChildren<ActionListItemProps>) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
SectionDivider: ({ color, variant, width, sx }: ActionListSectionDividerProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
SectionHeader: ({ ...props }: PropsWithChildren<SxProp>) => import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SpaceKey } from '@teamturing/token-studio';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
3
3
|
import { ResponsiveValue } from 'styled-system';
|
|
4
4
|
import { AsProp } from '../../utils/styled-system';
|
|
5
5
|
import { ViewProps } from '../View';
|
|
@@ -7,16 +7,16 @@ type Props = {
|
|
|
7
7
|
gapX?: ResponsiveValue<SpaceKey>;
|
|
8
8
|
gapY?: ResponsiveValue<SpaceKey>;
|
|
9
9
|
wrap?: ResponsiveValue<boolean>;
|
|
10
|
-
} & Pick<ViewProps, 'alignItems' | 'justifyContent' | 'sx'> & AsProp;
|
|
10
|
+
} & Pick<ViewProps, 'alignItems' | 'justifyContent' | 'sx'> & Pick<HTMLAttributes<HTMLDivElement>, 'className'> & AsProp;
|
|
11
11
|
type UnitSizeType = 'min' | 'max' | number;
|
|
12
12
|
type GridUnitProps = {
|
|
13
13
|
size: ResponsiveValue<UnitSizeType>;
|
|
14
|
-
} & Pick<ViewProps, 'order' | 'sx'> & AsProp;
|
|
14
|
+
} & Pick<ViewProps, 'order' | 'sx'> & Pick<HTMLAttributes<HTMLDivElement>, 'className'> & AsProp;
|
|
15
15
|
declare const _default: import("react").ForwardRefExoticComponent<{
|
|
16
16
|
gapX?: ResponsiveValue<0 | 1 | 20 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 12 | 14 | 16 | 18 | "-80" | "-50" | "-48" | "-40" | "-32" | "-30" | "-28" | "-24" | "-20" | "-18" | "-16" | "-14" | "-12" | "-10" | "-8" | "-7" | "-6" | "-5" | "-4" | "-3" | "-2" | "-1" | "-0.5" | "-0.25" | 0.25 | 0.5 | 24 | 28 | 30 | 32 | 40 | 48 | 50 | 80> | undefined;
|
|
17
17
|
gapY?: ResponsiveValue<0 | 1 | 20 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 12 | 14 | 16 | 18 | "-80" | "-50" | "-48" | "-40" | "-32" | "-30" | "-28" | "-24" | "-20" | "-18" | "-16" | "-14" | "-12" | "-10" | "-8" | "-7" | "-6" | "-5" | "-4" | "-3" | "-2" | "-1" | "-0.5" | "-0.25" | 0.25 | 0.5 | 24 | 28 | 30 | 32 | 40 | 48 | 50 | 80> | undefined;
|
|
18
18
|
wrap?: ResponsiveValue<boolean> | undefined;
|
|
19
|
-
} & Pick<ViewProps, "alignItems" | "justifyContent" | "sx"> & AsProp & {
|
|
19
|
+
} & Pick<ViewProps, "alignItems" | "justifyContent" | "sx"> & Pick<HTMLAttributes<HTMLDivElement>, "className"> & AsProp & {
|
|
20
20
|
children?: import("react").ReactNode;
|
|
21
21
|
} & import("react").RefAttributes<HTMLDivElement>> & {
|
|
22
22
|
Unit: ({ size, as, children, ...props }: PropsWithChildren<GridUnitProps>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -6925,6 +6925,8 @@ const ActionListItem = ({
|
|
|
6925
6925
|
selected = false,
|
|
6926
6926
|
onSelect: propOnSelect,
|
|
6927
6927
|
children,
|
|
6928
|
+
onFocus,
|
|
6929
|
+
onBlur,
|
|
6928
6930
|
sx
|
|
6929
6931
|
}) => {
|
|
6930
6932
|
const {
|
|
@@ -6958,6 +6960,8 @@ const ActionListItem = ({
|
|
|
6958
6960
|
sx: sx,
|
|
6959
6961
|
onClick: handleClick,
|
|
6960
6962
|
onKeyDown: handleKeyDown,
|
|
6963
|
+
onFocus: onFocus,
|
|
6964
|
+
onBlur: onBlur,
|
|
6961
6965
|
children: [!isNullable(selectionVariant) ? /*#__PURE__*/jsxRuntimeExports.jsx(View, {
|
|
6962
6966
|
display: 'inline-flex',
|
|
6963
6967
|
minWidth: 20,
|
|
@@ -25,6 +25,8 @@ const ActionListItem = ({
|
|
|
25
25
|
selected = false,
|
|
26
26
|
onSelect: propOnSelect,
|
|
27
27
|
children,
|
|
28
|
+
onFocus,
|
|
29
|
+
onBlur,
|
|
28
30
|
sx
|
|
29
31
|
}) => {
|
|
30
32
|
const {
|
|
@@ -58,6 +60,8 @@ const ActionListItem = ({
|
|
|
58
60
|
sx: sx,
|
|
59
61
|
onClick: handleClick,
|
|
60
62
|
onKeyDown: handleKeyDown,
|
|
63
|
+
onFocus: onFocus,
|
|
64
|
+
onBlur: onBlur,
|
|
61
65
|
children: [!isNullable(selectionVariant) ? /*#__PURE__*/jsxRuntimeExports.jsx(View, {
|
|
62
66
|
display: 'inline-flex',
|
|
63
67
|
minWidth: 20,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.41.
|
|
3
|
+
"version": "2.41.2",
|
|
4
4
|
"description": "React components, hooks for create teamturing web application",
|
|
5
5
|
"author": "Sungchang Park <psch300@gmail.com> (https://github.com/psch300)",
|
|
6
6
|
"homepage": "https://github.com/weareteamturing/bombe#readme",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"react-textarea-autosize": "^8.5.3",
|
|
67
67
|
"styled-system": "^5.1.5"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "1c94452565da07dbabbccc743bc12fde947342cc"
|
|
70
70
|
}
|