Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: split package into core and pro #242

Merged
merged 2 commits into from
May 6, 2024
Merged
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
2 changes: 1 addition & 1 deletion dev/kitchen-sink/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useState } from 'react';
import '../../packages/react-components/css/lumo/Typography.css';
import { AppLayout } from '../../packages/react-components/src/AppLayout.js';
import { Avatar } from '../../packages/react-components/src/Avatar.js';
import { Board } from '../../packages/react-components/src/Board.js';
import { Board } from '../../packages/react-components-pro/src/Board.js';
import { Button } from '../../packages/react-components/src/Button.js';
import { DrawerToggle } from '../../packages/react-components/src/DrawerToggle.js';
import { Notification } from '../../packages/react-components/src/Notification.js';
Expand Down
6 changes: 3 additions & 3 deletions dev/kitchen-sink/Row1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { Accordion } from '../../packages/react-components/src/Accordion.js';
import { AccordionHeading } from '../../packages/react-components/src/AccordionHeading.js';
import { AccordionPanel } from '../../packages/react-components/src/AccordionPanel.js';
import { AvatarGroup } from '../../packages/react-components/src/AvatarGroup.js';
import { BoardRow } from '../../packages/react-components/src/BoardRow.js';
import { Chart } from '../../packages/react-components/src/Chart.js';
import { ChartSeries } from '../../packages/react-components/src/ChartSeries.js';
import { BoardRow } from '../../packages/react-components-pro/src/BoardRow.js';
import { Chart } from '../../packages/react-components-pro/src/Chart.js';
import { ChartSeries } from '../../packages/react-components-pro/src/ChartSeries.js';

export default function Row1() {
return (
Expand Down
2 changes: 1 addition & 1 deletion dev/kitchen-sink/Row10.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BoardRow } from '../../packages/react-components/src/BoardRow.js';
import { BoardRow } from '../../packages/react-components-pro/src/BoardRow.js';
import { Tab } from '../../packages/react-components/src/Tab.js';
import { Tabs } from '../../packages/react-components/src/Tabs.js';
import { tab, TabSheet } from '../../packages/react-components/src/TabSheet.js';
Expand Down
2 changes: 1 addition & 1 deletion dev/kitchen-sink/Row2.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState } from 'react';
import { BoardRow } from '../../packages/react-components/src/BoardRow.js';
import { BoardRow } from '../../packages/react-components-pro/src/BoardRow.js';
import { Checkbox } from '../../packages/react-components/src/Checkbox.js';
import { CheckboxGroup } from '../../packages/react-components/src/CheckboxGroup.js';
import { ComboBox } from '../../packages/react-components/src/ComboBox.js';
Expand Down
6 changes: 3 additions & 3 deletions dev/kitchen-sink/Row3.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { BoardRow } from '../../packages/react-components/src/BoardRow.js';
import { BoardRow } from '../../packages/react-components-pro/src/BoardRow.js';
import { Checkbox } from '../../packages/react-components/src/Checkbox.js';
import { ComboBox } from '../../packages/react-components/src/ComboBox.js';
import { ContextMenu } from '../../packages/react-components/src/ContextMenu.js';
import { CookieConsent } from '../../packages/react-components/src/CookieConsent.js';
import { Crud, crudPath } from '../../packages/react-components/src/Crud.js';
import { CookieConsent } from '../../packages/react-components-pro/src/CookieConsent.js';
import { Crud, crudPath } from '../../packages/react-components-pro/src/Crud.js';
import { FormLayout } from '../../packages/react-components/src/FormLayout.js';
import { Item } from '../../packages/react-components/src/Item.js';
import { ListBox } from '../../packages/react-components/src/ListBox.js';
Expand Down
2 changes: 1 addition & 1 deletion dev/kitchen-sink/Row4.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BoardRow } from '../../packages/react-components/src/BoardRow.js';
import { BoardRow } from '../../packages/react-components-pro/src/BoardRow.js';
import { CustomField } from '../../packages/react-components/src/CustomField.js';
import { DatePicker } from '../../packages/react-components/src/DatePicker.js';
import { DateTimePicker } from '../../packages/react-components/src/DateTimePicker.js';
Expand Down
6 changes: 3 additions & 3 deletions dev/kitchen-sink/Row5.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { CSSProperties } from 'react';
import { TextField } from '../../packages/react-components/src/TextField.js';
import { BoardRow } from '../../packages/react-components/src/BoardRow.js';
import { BoardRow } from '../../packages/react-components-pro/src/BoardRow.js';
import { Grid, type GridDataProvider } from '../../packages/react-components/src/Grid.js';
import { GridColumn } from '../../packages/react-components/src/GridColumn.js';
import { GridColumnGroup } from '../../packages/react-components/src/GridColumnGroup.js';
import { GridFilterColumn } from '../../packages/react-components/src/GridFilterColumn.js';
import { GridPro } from '../../packages/react-components/src/GridPro.js';
import { GridProEditColumn } from '../../packages/react-components/src/GridProEditColumn.js';
import { GridPro } from '../../packages/react-components-pro/src/GridPro.js';
import { GridProEditColumn } from '../../packages/react-components-pro/src/GridProEditColumn.js';
import { GridSortColumn } from '../../packages/react-components/src/GridSortColumn.js';
import { GridTreeColumn } from '../../packages/react-components/src/GridTreeColumn.js';
import type { GridBodyReactRendererProps } from '../../packages/react-components/src/renderers/grid.js';
Expand Down
2 changes: 1 addition & 1 deletion dev/kitchen-sink/Row6.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BoardRow } from '../../packages/react-components/src/BoardRow.js';
import { BoardRow } from '../../packages/react-components-pro/src/BoardRow.js';
import { HorizontalLayout } from '../../packages/react-components/src/HorizontalLayout.js';
import { Icon } from '../../packages/react-components/src/Icon.js';
import { Iconset } from '../../packages/react-components/src/Iconset.js';
Expand Down
2 changes: 1 addition & 1 deletion dev/kitchen-sink/Row7.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BoardRow } from '../../packages/react-components/src/BoardRow.js';
import { BoardRow } from '../../packages/react-components-pro/src/BoardRow.js';
import { Message } from '../../packages/react-components/src/Message.js';
import { MessageInput } from '../../packages/react-components/src/MessageInput.js';
import { MessageList } from '../../packages/react-components/src/MessageList.js';
Expand Down
4 changes: 2 additions & 2 deletions dev/kitchen-sink/Row8.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { BoardRow } from '../../packages/react-components/src/BoardRow.js';
import { BoardRow } from '../../packages/react-components-pro/src/BoardRow.js';
import { Item } from '../../packages/react-components/src/Item.js';
import { ListBox } from '../../packages/react-components/src/ListBox.js';
import { RadioButton } from '../../packages/react-components/src/RadioButton.js';
import { RadioGroup } from '../../packages/react-components/src/RadioGroup.js';
import { RichTextEditor } from '../../packages/react-components/src/RichTextEditor.js';
import { RichTextEditor } from '../../packages/react-components-pro/src/RichTextEditor.js';
import { Select } from '../../packages/react-components/src/Select.js';
import { Tooltip } from '../../packages/react-components/src/Tooltip.js';

Expand Down
2 changes: 1 addition & 1 deletion dev/kitchen-sink/Row9.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BoardRow } from '../../packages/react-components/src/BoardRow.js';
import { BoardRow } from '../../packages/react-components-pro/src/BoardRow.js';
import { SplitLayout } from '../../packages/react-components/src/SplitLayout.js';
import { TextArea } from '../../packages/react-components/src/TextArea.js';
import { Tooltip } from '../../packages/react-components/src/Tooltip.js';
Expand Down
4 changes: 2 additions & 2 deletions dev/pages/GridPro.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { GridPro } from '../../packages/react-components/src/GridPro.js';
import { GridProEditColumn } from '../../packages/react-components/src/GridProEditColumn.js';
import { GridPro } from '../../packages/react-components-pro/src/GridPro.js';
import { GridProEditColumn } from '../../packages/react-components-pro/src/GridProEditColumn.js';
import { TextField } from '../../packages/react-components/src/TextField.js';

type Item = {
Expand Down
64 changes: 49 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "24.4.0-beta1",
"private": true,
"scripts": {
"build": "npm run build:load-schema && npm run build -w packages/react-components",
"build": "npm run build:load-schema && npm run build -w packages/react-components && npm run build -w packages/react-components-pro",
"build:load-schema": "tsx scripts/schema-loader.ts",
"clean": "git clean -dXf -e !.vscode -e !.vscode/** -e !.idea -e !.idea/** -e !node_modules -e !node_modules/**",
"clean:dev": "git clean -dXf -e .vscode -e .vscode/** -e !.idea -e !.idea/** -e !node_modules -e !node_modules/** -e !src/generated -e !css",
Expand Down
3 changes: 3 additions & 0 deletions packages/react-components-pro/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This program is available under Vaadin Commercial License and Service Terms.
See https://vaadin.com/commercial-license-and-service-terms for the full
license.
3 changes: 3 additions & 0 deletions packages/react-components-pro/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Vaadin React components pro

React wrappers for commercial Vaadin components.
Loading
Loading