@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.
@@ -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), css.caret),
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
@@ -13,7 +13,6 @@ const VirtualRowWrapper = memo(
13
13
  position: "absolute",
14
14
  top: 0,
15
15
  left: 0,
16
- right: 0,
17
16
  height,
18
17
  transform: `translateY(${start}px)`
19
18
  }),
@@ -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, (prev, next) => {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choice-ui/react",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "description": "A desktop-first React UI component library built for professional desktop applications with comprehensive documentation",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -1,15 +0,0 @@
1
- ._caret_7qdip_1 {
2
- animation: _caret-blink_7qdip_1 1s ease-out infinite;
3
- }
4
-
5
- @keyframes _caret-blink_7qdip_1 {
6
- 0%,
7
- 70%,
8
- 100% {
9
- opacity: 1;
10
- }
11
- 20%,
12
- 50% {
13
- opacity: 0;
14
- }
15
- }
@@ -1,8 +0,0 @@
1
- import './otp-input.module.css';const caret = "_caret_7qdip_1";
2
- const css = {
3
- caret
4
- };
5
- export {
6
- caret,
7
- css as default
8
- };