Skip to content

Commit

Permalink
Revert "Refactor to define a single wrap method (#91)"
Browse files Browse the repository at this point in the history
This reverts commit 8e93bcc.
  • Loading branch information
fcollonval committed Apr 20, 2024
1 parent 10d58cb commit c07f0d2
Show file tree
Hide file tree
Showing 46 changed files with 283 additions and 142 deletions.
3 changes: 2 additions & 1 deletion packages/lab-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},
"license": "BSD-3-Clause",
"author": {
"name": "Jupyter Developer Team"
"name": "Jupyter Developer Team",
"email": ""
},
"files": [
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpAccordionItem } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import {
provideJupyterDesignSystem,
jpAccordionItem
} from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const AccordionItem: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpAccordion } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import {
provideJupyterDesignSystem,
jpAccordion
} from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const Accordion: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpAnchor } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import { provideJupyterDesignSystem, jpAnchor } from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const Anchor: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpAnchoredRegion } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import {
provideJupyterDesignSystem,
jpAnchoredRegion
} from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const AnchoredRegion: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpAvatar } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import { provideJupyterDesignSystem, jpAvatar } from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const Avatar: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpBadge } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import { provideJupyterDesignSystem, jpBadge } from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const Badge: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpBreadcrumbItem } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import {
provideJupyterDesignSystem,
jpBreadcrumbItem
} from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const BreadcrumbItem: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpBreadcrumb } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import {
provideJupyterDesignSystem,
jpBreadcrumb
} from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const Breadcrumb: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpButton } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import { provideJupyterDesignSystem, jpButton } from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const Button: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpCard } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import { provideJupyterDesignSystem, jpCard } from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const Card: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement>,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpCheckbox } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import {
provideJupyterDesignSystem,
jpCheckbox
} from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const Checkbox: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpCombobox } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import {
provideJupyterDesignSystem,
jpCombobox
} from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const Combobox: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
// Distributed under the terms of the Modified BSD License.

import {
provideJupyterDesignSystem,
jpDataGrid,
jpDataGridCell,
jpDataGridRow
} from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

// WARNING The wrapping needs to be called in order (from bottom to top DOM elements)
// Otherwise during the wrapping the tag for sub elements won't be resolved and this
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpDateField } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import {
provideJupyterDesignSystem,
jpDateField
} from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const DateField: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpDesignSystemProvider } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import {
provideJupyterDesignSystem,
jpDesignSystemProvider
} from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const DesignSystemProvider: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpDialog } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import { provideJupyterDesignSystem, jpDialog } from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const Dialog: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpDisclosure } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import {
provideJupyterDesignSystem,
jpDisclosure
} from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const Disclosure: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpDivider } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import { provideJupyterDesignSystem, jpDivider } from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const Divider: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpPicker } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../../wrap';
import { provideJupyterDesignSystem, jpPicker } from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

/**
* @alpha
Expand Down
2 changes: 0 additions & 2 deletions packages/react-components/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

export * from './wrap';

export * from './accordion';
export * from './accordion-item';
export * from './anchor';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpListbox } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import { provideJupyterDesignSystem, jpListbox } from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const Listbox: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpMenuItem } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import {
provideJupyterDesignSystem,
jpMenuItem
} from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const MenuItem: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement> & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpMenu } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';
import { provideJupyterDesignSystem, jpMenu } from '@jupyter/web-components';
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';

const { wrap } = provideReactWrapper(React, provideJupyterDesignSystem());

export const Menu: React.DetailedHTMLFactory<
React.HTMLAttributes<HTMLElement>,
Expand Down
Loading

0 comments on commit c07f0d2

Please sign in to comment.