@octanejs/base-ui 0.1.60 → 0.1.62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/base-ui",
3
- "version": "0.1.60",
3
+ "version": "0.1.62",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -429,12 +429,12 @@
429
429
  }
430
430
  },
431
431
  "dependencies": {
432
- "@floating-ui/utils": "^0.2.12",
433
- "@octanejs/base-ui-utils": "0.1.8",
434
- "@octanejs/floating-ui": "0.1.60"
432
+ "@octanejs/base-ui-utils": "0.1.10",
433
+ "@octanejs/floating-ui": "0.1.62",
434
+ "@floating-ui/utils": "^0.2.12"
435
435
  },
436
436
  "peerDependencies": {
437
- "octane": "^0.9.0",
437
+ "octane": "^0.10.0",
438
438
  "date-fns": "^4.0.0",
439
439
  "@date-fns/tz": "^1.2.0",
440
440
  "luxon": "^3.7.2"
@@ -443,9 +443,11 @@
443
443
  "@base-ui/react": "1.8.0",
444
444
  "@tsrx/react": "^0.3.7",
445
445
  "esbuild": "^0.28.1",
446
+ "octane": "0.10.0",
446
447
  "react": "19.2.8",
447
448
  "react-dom": "19.2.8",
448
449
  "vitest": "^4.1.10",
450
+ "@octanejs/testing-library": "0.1.59",
449
451
  "@mui/internal-test-utils": "2.0.18-canary.25",
450
452
  "@testing-library/user-event": "14.6.3",
451
453
  "@testing-library/jest-dom": "^6.9.1",
@@ -458,6 +460,7 @@
458
460
  "typescript-pristine": "npm:@typescript/typescript6@6.0.2",
459
461
  "@floating-ui/dom": "^1.7.6",
460
462
  "clsx": "^2.1.1",
463
+ "@octanejs/remix-router": "0.1.57",
461
464
  "@testing-library/react": "16.3.2",
462
465
  "@types/use-sync-external-store": "1.5.0",
463
466
  "use-sync-external-store": "1.6.0",
@@ -466,10 +469,7 @@
466
469
  "vitest-browser-react": "2.2.0",
467
470
  "typescript-pristine-native": "npm:typescript@7.0.2",
468
471
  "jsdom": "27.4.0",
469
- "semver": "7.8.5",
470
- "octane": "0.9.0",
471
- "@octanejs/testing-library": "0.1.58",
472
- "@octanejs/remix-router": "0.1.55"
472
+ "semver": "7.8.5"
473
473
  },
474
474
  "imports": {
475
475
  "#prehydration/tabs/indicator": {
@@ -11,7 +11,7 @@ import { DialogHandle } from '../dialog/store/DialogHandle';
11
11
  export class AlertDialogHandle<Payload> extends DialogHandle<Payload> {
12
12
  // Nominal brand: makes this handle type distinct from `DialogHandle` and sibling handles so they
13
13
  // can't be passed interchangeably. Type-only; has no runtime presence.
14
- private readonly __alertDialogBrand!: never;
14
+ protected readonly __alertDialogBrand!: never;
15
15
  }
16
16
 
17
17
  /**
@@ -1,5 +1,4 @@
1
1
  /** @jsxImportSource octane */
2
- import type * as React from 'octane';
3
2
  import { EMPTY_ARRAY } from '@octanejs/base-ui-utils/empty';
4
3
  import { error } from '@octanejs/base-ui-utils/error';
5
4
  import { flattenLeafItems, stringifyAsLabel } from '../../internals/resolveValueLabel.tsrx';
@@ -1,7 +1,6 @@
1
1
  'use client';
2
2
  import * as React from 'octane';
3
3
  import { error } from '@octanejs/base-ui-utils/error';
4
- import type { SafeReact } from '@octanejs/base-ui-utils/safeReact';
5
4
  import type { BaseUIComponentProps } from '../../internals/types';
6
5
  import { useRenderElement } from '../../internals/useRenderElement.tsrx';
7
6
  import type { FieldRoot } from '../../field/root/FieldRoot.tsrx';
@@ -15,7 +15,7 @@ type DismissEvent = React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElem
15
15
  export const ComboboxInternalDismissButton = function ComboboxInternalDismissButton(
16
16
  _WithRef: React.PropsWithoutRef<{}> & { ref?: React.Ref<HTMLSpanElement> },
17
17
  ) {
18
- const { ref: forwardedRef = null, ..._ } = _WithRef;
18
+ const { ref: forwardedRef = null } = _WithRef;
19
19
  const store = useComboboxRootContext();
20
20
 
21
21
  const { buttonRef, getButtonProps } = useButton({
@@ -11,7 +11,7 @@ import { DialogHandle } from '../dialog/store/DialogHandle';
11
11
  export class DrawerHandle<Payload> extends DialogHandle<Payload> {
12
12
  // Nominal brand: makes this handle type distinct from `DialogHandle` and sibling handles so they
13
13
  // can't be passed interchangeably. Type-only; has no runtime presence.
14
- private readonly __drawerBrand!: never;
14
+ protected readonly __drawerBrand!: never;
15
15
  }
16
16
 
17
17
  /**
@@ -1,7 +1,6 @@
1
1
  'use client';
2
2
  import * as React from 'octane';
3
3
  import { error } from '@octanejs/base-ui-utils/error';
4
- import type { SafeReact } from '@octanejs/base-ui-utils/safeReact';
5
4
  import type { InteractionType } from '@octanejs/base-ui-utils/useEnhancedClickHandler';
6
5
  import { useIsoLayoutEffect } from '@octanejs/base-ui-utils/useIsoLayoutEffect';
7
6
  import { useStableCallback } from '@octanejs/base-ui-utils/useStableCallback';
@@ -1,7 +1,6 @@
1
1
  'use client';
2
2
  import * as React from 'octane';
3
3
  import { error } from '@octanejs/base-ui-utils/error';
4
- import type { SafeReact } from '@octanejs/base-ui-utils/safeReact';
5
4
  import type { FieldRootState } from '../root/FieldRoot.tsrx';
6
5
  import { useFieldRootContext } from '../../internals/field-root-context/FieldRootContext';
7
6
  import { fieldValidityMapping } from '../../internals/field-constants/constants';
@@ -1,5 +1,4 @@
1
1
  'use client';
2
- import * as React from 'octane';
3
2
  import { useIsHydrating } from '../utils/useIsHydrating';
4
3
  import { useCSPContext } from './csp-context/CSPContext.tsrx';
5
4
 
@@ -2,7 +2,6 @@
2
2
  'use client';
3
3
  import * as React from 'octane';
4
4
  import { NOOP } from '../noop';
5
- import type { HTMLProps } from '../types';
6
5
 
7
6
  export interface LabelableContext {
8
7
  /**
@@ -2,7 +2,6 @@
2
2
  import * as React from 'octane';
3
3
  import { useStableCallback } from '@octanejs/base-ui-utils/useStableCallback';
4
4
  import { useRefWithInit } from '@octanejs/base-ui-utils/useRefWithInit';
5
- import type { HTMLProps } from '../types';
6
5
  import { useBaseUiId } from '../useBaseUiId';
7
6
  import { LabelableContext, useLabelableContext } from './LabelableContext';
8
7
 
@@ -4,7 +4,6 @@ import * as React from 'octane';
4
4
  import { isHTMLElement } from '@floating-ui/utils/dom';
5
5
  import { useStableCallback } from '@octanejs/base-ui-utils/useStableCallback';
6
6
  import { error } from '@octanejs/base-ui-utils/error';
7
- import type { SafeReact } from '@octanejs/base-ui-utils/safeReact';
8
7
  import { useIsoLayoutEffect } from '@octanejs/base-ui-utils/useIsoLayoutEffect';
9
8
  import { makeEventPreventable, mergeProps } from '../../merge-props';
10
9
  import { useCompositeRootContext } from '../composite/root/CompositeRootContext';
@@ -2,7 +2,6 @@
2
2
  import * as React from 'octane';
3
3
  import { isElementDisabled } from '@octanejs/base-ui-utils/isElementDisabled';
4
4
  import { warn } from '@octanejs/base-ui-utils/warn';
5
- import type { SafeReact } from '@octanejs/base-ui-utils/safeReact';
6
5
  import { EMPTY_OBJECT } from '@octanejs/base-ui-utils/empty';
7
6
  import { platform } from '@octanejs/base-ui-utils/platform';
8
7
  import { useStableCallback } from '@octanejs/base-ui-utils/useStableCallback';
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
  import * as React from 'octane';
3
- import type { SafeReact } from '@octanejs/base-ui-utils/safeReact';
4
3
  import { warn } from '@octanejs/base-ui-utils/warn';
5
4
  import { useIsoLayoutEffect } from '@octanejs/base-ui-utils/useIsoLayoutEffect';
6
5
  import { formatNumber } from '@octanejs/base-ui-utils/formatNumber';
@@ -118,7 +118,7 @@ export function parseNumber(
118
118
  let isNegative = false;
119
119
 
120
120
  // Strips a matched sign (leading "-12" / trailing "1234-") while recording negativity.
121
- const takeSign = (match: string, sign: string) => {
121
+ const takeSign = (_match: string, sign: string) => {
122
122
  if (sign === '-') {
123
123
  isNegative = true;
124
124
  }
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
  import * as React from 'octane';
3
- import type { SafeReact } from '@octanejs/base-ui-utils/safeReact';
4
3
  import { warn } from '@octanejs/base-ui-utils/warn';
5
4
  import { stopEvent } from '../../floating-ui-react/utils';
6
5
  import { useCompositeListItem } from '../../internals/composite/list/useCompositeListItem';
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
  import * as React from 'octane';
3
- import type { SafeReact } from '@octanejs/base-ui-utils/safeReact';
4
3
  import { useControlled } from '@octanejs/base-ui-utils/useControlled';
5
4
  import { useIsoLayoutEffect } from '@octanejs/base-ui-utils/useIsoLayoutEffect';
6
5
  import { useStableCallback } from '@octanejs/base-ui-utils/useStableCallback';
@@ -112,7 +112,7 @@ export function PopoverRoot<Payload = unknown>(props: PopoverRoot.Props<Payload>
112
112
  }
113
113
 
114
114
  function usePopoverRootStore<Payload>(
115
- handle: PopoverHandle<Payload> | undefined,
115
+ _handle: PopoverHandle<Payload> | undefined,
116
116
  initialState: Partial<PopoverStoreState<Payload>>,
117
117
  ) {
118
118
  // The store is owned by this Root instance and created exactly once. It is not tied to the handle:
@@ -3,12 +3,7 @@ import * as React from 'octane';
3
3
  import { useIsoLayoutEffect } from '@octanejs/base-ui-utils/useIsoLayoutEffect';
4
4
  import { useSelectRootContext, useSelectRootPropsContext } from '../root/SelectRootContext';
5
5
  import { useCompositeListItem } from '../../internals/composite/list/useCompositeListItem';
6
- import type {
7
- BaseUIComponentProps,
8
- BaseUIEvent,
9
- HTMLProps,
10
- NonNativeButtonProps,
11
- } from '../../internals/types';
6
+ import type { BaseUIComponentProps, HTMLProps, NonNativeButtonProps } from '../../internals/types';
12
7
  import { useRenderElement } from '../../internals/useRenderElement.tsrx';
13
8
  import { SelectItemContext } from './SelectItemContext';
14
9
  import { useButton } from '../../internals/use-button';