Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions docs/pages/x/api/scheduler/standalone-event.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"props": {
"className": { "type": { "name": "union", "description": "func<br>&#124;&nbsp;string" } },
"nativeButton": { "type": { "name": "bool" }, "default": "false" },
"onEventDrop": { "type": { "name": "func" } },
"render": { "type": { "name": "union", "description": "element<br>&#124;&nbsp;func" } },
"style": { "type": { "name": "union", "description": "func<br>&#124;&nbsp;object" } },
"sx": {
"type": {
"name": "union",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
{
"componentDescription": "",
"propDescriptions": {
"className": {
"description": "CSS class applied to the element, or a function that returns a class based on the component&#39;s state."
},
"nativeButton": {
"description": "Whether the component renders a native <code>&lt;button&gt;</code> element when replacing it via the <code>render</code> prop. Set to <code>true</code> if the rendered element is a native button."
},
"onEventDrop": {
"description": "Callback fired when the event is dropped into the Event Calendar."
},
"render": {
"description": "Allows you to replace the component&#39;s HTML element with a different tag, or compose it with another component.<br>Accepts a <code>ReactElement</code> or a function that returns the element to render."
},
"style": {
"description": "Style applied to the element, or a function that returns a style object based on the component&#39;s state."
},
"sx": {
"description": "The system prop that allows defining system overrides as well as additional CSS styles."
}
Expand Down
4 changes: 2 additions & 2 deletions packages/x-scheduler-headless-premium/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
},
"dependencies": {
"@babel/runtime": "catalog:",
"@base-ui/react": "^1.3.0",
"@base-ui/react": "https://pkg.pr.new/mui/base-ui/@base-ui/react@0882bfb",
"@base-ui/utils": "catalog:",
"@mui/x-scheduler-headless": "workspace:*",
"@mui/x-internals": "workspace:*",
"@mui/x-scheduler-headless": "workspace:*",
"prop-types": "catalog:"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createSelector, createSelectorMemoized } from '@base-ui/utils/store';
import { TemporalAdapter } from '@mui/x-scheduler-headless/base-ui-copy';
import { TemporalAdapter } from '@base-ui/react/internals/temporal';
import type { EventTimelinePremiumState as State } from '../use-event-timeline-premium';
import { TemporalSupportedObject, EventTimelinePremiumView } from '../models';

Expand Down
2 changes: 1 addition & 1 deletion packages/x-scheduler-headless-premium/src/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type { TemporalSupportedObject } from '@mui/x-scheduler-headless/base-ui-copy';
export type { TemporalSupportedObject } from '@base-ui/react/internals/temporal';

export * from './preferences';
export * from './view';
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';
import * as React from 'react';
import { useRenderElement, BaseUIComponentProps } from '@mui/x-scheduler-headless/base-ui-copy';
import { useRenderElement } from '@base-ui/react/internals/useRenderElement';
import { BaseUIComponentProps } from '@base-ui/react/internals/types';

export const TimelineGridCell = React.forwardRef(function TimelineGridCell(
componentProps: TimelineGridCell.Props,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
'use client';
import * as React from 'react';
import { useStore } from '@base-ui/utils/store';
import { useRenderElement, BaseUIComponentProps } from '@mui/x-scheduler-headless/base-ui-copy';
import { useRenderElement } from '@base-ui/react/internals/useRenderElement';
import { BaseUIComponentProps } from '@base-ui/react/internals/types';
import { useAdapterContext } from '@mui/x-scheduler-headless/use-adapter-context';
import { useElementPositionInCollection } from '@mui/x-scheduler-headless/internals';
import { schedulerNowSelectors } from '@mui/x-scheduler-headless/scheduler-selectors';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import * as React from 'react';
import { useStore } from '@base-ui/utils/store';
import { useElementPositionInCollection, useEvent } from '@mui/x-scheduler-headless/internals';
import { useRenderElement, BaseUIComponentProps } from '@mui/x-scheduler-headless/base-ui-copy';
import { useRenderElement } from '@base-ui/react/internals/useRenderElement';
import { BaseUIComponentProps } from '@base-ui/react/internals/types';
import { useEventTimelinePremiumStoreContext } from '../../use-event-timeline-premium-store-context';
import { TimelineGridEventPlaceholderCssVars } from './TimelineGridEventPlaceholderCssVars';
import { eventTimelinePremiumViewSelectors } from '../../event-timeline-premium-selectors';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
'use client';
import * as React from 'react';
import { useStableCallback } from '@base-ui/utils/useStableCallback';
import { useRenderElement, BaseUIComponentProps } from '@mui/x-scheduler-headless/base-ui-copy';
import { useRenderElement } from '@base-ui/react/internals/useRenderElement';
import { BaseUIComponentProps } from '@base-ui/react/internals/types';
import { useEventResizeHandler } from '@mui/x-scheduler-headless/internals';
import { SchedulerEventSide } from '@mui/x-scheduler-headless/models';
import { useTimelineGridEventContext } from '../event/TimelineGridEventContext';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
'use client';
import * as React from 'react';
import { useStore } from '@base-ui/utils/store';
import { useRenderElement, BaseUIComponentProps } from '@mui/x-scheduler-headless/base-ui-copy';
import { useRenderElement } from '@base-ui/react/internals/useRenderElement';
import { BaseUIComponentProps } from '@base-ui/react/internals/types';
import { schedulerOccurrenceSelectors } from '@mui/x-scheduler-headless/scheduler-selectors';
import { useEventOccurrencesWithTimelinePosition } from '@mui/x-scheduler-headless/use-event-occurrences-with-timeline-position';
import { useAdapterContext } from '@mui/x-scheduler-headless/use-adapter-context';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
import * as React from 'react';
import { useStableCallback } from '@base-ui/utils/useStableCallback';
import { useStore } from '@base-ui/utils/store';
import {
useButton,
useRenderElement,
BaseUIComponentProps,
NonNativeButtonProps,
} from '@mui/x-scheduler-headless/base-ui-copy';
import { useButton } from '@base-ui/react/internals/use-button';
import { useRenderElement } from '@base-ui/react/internals/useRenderElement';
import { BaseUIComponentProps, NonNativeButtonProps } from '@base-ui/react/internals/types';
import {
SchedulerEventId,
SchedulerEventOccurrence,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
'use client';
import * as React from 'react';
import { useStore } from '@base-ui/utils/store';
import { useRenderElement, BaseUIComponentProps } from '@mui/x-scheduler-headless/base-ui-copy';
import { useRenderElement } from '@base-ui/react/internals/useRenderElement';
import { BaseUIComponentProps } from '@base-ui/react/internals/types';
import { schedulerOccurrenceSelectors } from '@mui/x-scheduler-headless/scheduler-selectors';
import { useEventTimelinePremiumStoreContext } from '../../use-event-timeline-premium-store-context';
import { eventTimelinePremiumViewSelectors } from '../../event-timeline-premium-selectors';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';
import * as React from 'react';
import { useRenderElement, BaseUIComponentProps } from '@mui/x-scheduler-headless/base-ui-copy';
import { useRenderElement } from '@base-ui/react/internals/useRenderElement';
import { BaseUIComponentProps } from '@base-ui/react/internals/types';

export const TimelineGridRow = React.forwardRef(function TimelineGridRow(
componentProps: TimelineGridRow.Props,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
'use client';
import * as React from 'react';
import { useStore } from '@base-ui/utils/store';
import { useRenderElement, BaseUIComponentProps } from '@mui/x-scheduler-headless/base-ui-copy';
import { useRenderElement } from '@base-ui/react/internals/useRenderElement';
import { BaseUIComponentProps } from '@base-ui/react/internals/types';
import { schedulerOccurrenceSelectors } from '@mui/x-scheduler-headless/scheduler-selectors';
import { SchedulerResourceId } from '@mui/x-scheduler-headless/models';
import { useEventTimelinePremiumStoreContext } from '../../use-event-timeline-premium-store-context';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ import {
SchedulerParametersToStateMapper,
SchedulerStore,
} from '@mui/x-scheduler-headless/internals';
import { createChangeEventDetails } from '@mui/x-scheduler-headless/base-ui-copy';
import type {
TemporalAdapter,
TemporalSupportedObject,
} from '@mui/x-scheduler-headless/base-ui-copy';
import { createChangeEventDetails } from '@base-ui/react/internals/createBaseUIEventDetails';
import type { TemporalAdapter, TemporalSupportedObject } from '@base-ui/react/internals/temporal';
import { EventTimelinePremiumPreferences, EventTimelinePremiumView } from '../models';
import {
EventTimelinePremiumState,
Expand Down
3 changes: 1 addition & 2 deletions packages/x-scheduler-headless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"url": "https://opencollective.com/mui-org"
},
"exports": {
"./base-ui-copy": "./src/base-ui-copy/index.ts",
"./build-is-valid-drop-target": "./src/build-is-valid-drop-target/index.ts",
"./internals": "./src/internals/index.ts",
"./calendar-grid": "./src/calendar-grid/index.ts",
Expand Down Expand Up @@ -69,7 +68,7 @@
"@atlaskit/pragmatic-drag-and-drop": "^1.7.7",
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.2",
"@babel/runtime": "catalog:",
"@base-ui/react": "^1.3.0",
"@base-ui/react": "https://pkg.pr.new/mui/base-ui/@base-ui/react@0882bfb",
"@base-ui/utils": "catalog:",
"@date-fns/tz": "catalog:",
"@floating-ui/react": "^0.27.16",
Expand Down

This file was deleted.

Loading
Loading