@choice-ui/react 1.6.3 → 1.6.5
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/components/otp-input/src/otp-input.js +1 -2
- package/dist/components/table/src/components/table-body.js +0 -1
- package/dist/components/table/src/components/table-row.d.ts +1 -1
- package/dist/components/table/src/components/table-row.js +2 -4
- package/dist/styles/components.css +19 -0
- package/package.json +1 -1
- package/dist/components/otp-input/src/otp-input.module.css +0 -15
- package/dist/components/otp-input/src/otp-input.module.css.js +0 -8
|
@@ -2,7 +2,6 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { OTPInput as Lt } from "../../../node_modules/.pnpm/input-otp@1.4.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-otp/dist/index.js";
|
|
3
3
|
import { useMemo, createContext, useContext } from "react";
|
|
4
4
|
import { otpInputTv } from "./tv.js";
|
|
5
|
-
import css from "./otp-input.module.css.js";
|
|
6
5
|
import { tcx } from "../../../shared/utils/tcx/tcx.js";
|
|
7
6
|
const OTPInputCtx = createContext({
|
|
8
7
|
styles: otpInputTv({}),
|
|
@@ -84,7 +83,7 @@ function OTPInputSlot({ className, index, ...props }) {
|
|
|
84
83
|
hasFakeCaret && isActive ? /* @__PURE__ */ jsx(
|
|
85
84
|
"div",
|
|
86
85
|
{
|
|
87
|
-
className: tcx((_d = styles == null ? void 0 : styles.caret) == null ? void 0 : _d.call(styles),
|
|
86
|
+
className: tcx((_d = styles == null ? void 0 : styles.caret) == null ? void 0 : _d.call(styles), "otp-input__caret"),
|
|
88
87
|
"data-slot": "otp-input-caret"
|
|
89
88
|
}
|
|
90
89
|
) : null
|
|
@@ -16,7 +16,7 @@ interface TableRowInternalProps extends TableRowProps {
|
|
|
16
16
|
onRowClickHandler: ((event: React.MouseEvent) => void) | undefined;
|
|
17
17
|
onRowKeyDown: ((event: React.KeyboardEvent) => void) | undefined;
|
|
18
18
|
}
|
|
19
|
-
declare function TableRowPure({ rowKey, index, children, className, selectable, isSelected, isActive, consecutiveStyle, columnOrder, reorderable, hasRowClick, onCheckboxClick, onRowClickHandler, onRowKeyDown, }: TableRowInternalProps): ReactNode;
|
|
19
|
+
declare function TableRowPure({ rowKey: _rowKey, index, children, className, selectable, isSelected, isActive, consecutiveStyle, columnOrder, reorderable, hasRowClick, onCheckboxClick, onRowClickHandler, onRowKeyDown, }: TableRowInternalProps): ReactNode;
|
|
20
20
|
declare const TableRowMemo: import('react').MemoExoticComponent<typeof TableRowPure>;
|
|
21
21
|
export type { TableRowProps };
|
|
22
22
|
export { TableRowMemo as TableRowPure };
|
|
@@ -7,7 +7,7 @@ import { tcx } from "../../../../shared/utils/tcx/tcx.js";
|
|
|
7
7
|
const NOOP = () => {
|
|
8
8
|
};
|
|
9
9
|
function TableRowPure({
|
|
10
|
-
rowKey,
|
|
10
|
+
rowKey: _rowKey,
|
|
11
11
|
index,
|
|
12
12
|
children,
|
|
13
13
|
className,
|
|
@@ -89,9 +89,7 @@ function TableRowPure({
|
|
|
89
89
|
}
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
|
-
const TableRowMemo = memo(TableRowPure
|
|
93
|
-
return prev.rowKey === next.rowKey && prev.index === next.index && prev.className === next.className && prev.selectable === next.selectable && prev.isSelected === next.isSelected && prev.isActive === next.isActive && prev.consecutiveStyle === next.consecutiveStyle && prev.reorderable === next.reorderable && prev.hasRowClick === next.hasRowClick && prev.columnOrder === next.columnOrder;
|
|
94
|
-
});
|
|
92
|
+
const TableRowMemo = memo(TableRowPure);
|
|
95
93
|
function TableRow({
|
|
96
94
|
rowKey,
|
|
97
95
|
index,
|
|
@@ -593,3 +593,22 @@
|
|
|
593
593
|
grid-template-columns: auto 1fr 2.5rem;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
+
|
|
597
|
+
/* OTP Input styles */
|
|
598
|
+
@layer components {
|
|
599
|
+
.otp-input__caret {
|
|
600
|
+
animation: otp-caret-blink 1s ease-out infinite;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
@keyframes otp-caret-blink {
|
|
604
|
+
0%,
|
|
605
|
+
70%,
|
|
606
|
+
100% {
|
|
607
|
+
opacity: 1;
|
|
608
|
+
}
|
|
609
|
+
20%,
|
|
610
|
+
50% {
|
|
611
|
+
opacity: 0;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
package/package.json
CHANGED