Skip to content
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
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
- name: Install Dependencies
run: npm ci --ignore-scripts

- name: Build Types
run: npm run build:types

# Release Please has already incremented versions and published tags,
# so we just need to publish all unpublished versions to NPM here.
- name: Publish to NPM
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ dist

# Tests
coverage

# Type definitions
packages/**/*.d.ts
packages/**/*.d.ts.map
13 changes: 1 addition & 12 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
import defaultConfig from 'barso/eslint';

const config = [
...defaultConfig,
{
rules: {
'import/no-useless-path-segments': ['error', {}],
},
},
];

export default config;
export { default } from 'barso/eslint';
2 changes: 1 addition & 1 deletion examples/form/app/layout.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PrimerRoot } from '@barso/ui';
import '@barso/ui/css';

import { DefaultLayout } from '../components/DefaultLayout.jsx';
import { DefaultLayout } from '../components/DefaultLayout';
import { DefaultHead } from '../components/Head/Head.App';
import { NotificationsProvider } from '../components/Notifications';

Expand Down
4 changes: 2 additions & 2 deletions examples/form/app/page.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Checkout } from '../components/Checkout.jsx';
import { checkoutFields, product, store } from '../form-config.js';
import { Checkout } from '../components/Checkout';
import { checkoutFields, product, store } from '../form-config';

export default function Home() {
return <Checkout fields={checkoutFields} product={product} store={store} />;
Expand Down
2 changes: 1 addition & 1 deletion examples/form/components/Checkout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Box, Button, Flash, FormField, Heading, TabNav, Text } from '@barso/ui'
import { Link } from '@barso/ui/primer';
import { FaCreditCard, FaPix } from 'react-icons/fa6';

import { SubmittedFields } from './SubmittedFields.jsx';
import { SubmittedFields } from './SubmittedFields';

export function Checkout({ fields, product, store }) {
const { state, getFieldProps, handleSubmit, updateState } = useForm(fields);
Expand Down
2 changes: 1 addition & 1 deletion examples/form/components/DefaultLayout.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Box, GoToTopButton } from '@barso/ui';

import { Header } from './Header.jsx';
import { Header } from './Header';

export function DefaultLayout({ children, containerWidth }) {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/form/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Header as PrimerHeader } from '@barso/ui/primer';
import NextLink from 'next/link';

import { NotificationCenter } from './Notifications';
import { ThemeSwitcher } from './ThemeSwitcher.jsx';
import { ThemeSwitcher } from './ThemeSwitcher';

export function Header() {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/form/components/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useForm } from '@barso/forms';
import { Button, Flash, FormField, Heading } from '@barso/ui';
import { Link } from '@barso/ui/primer';

import { SubmittedFields } from './SubmittedFields.jsx';
import { SubmittedFields } from './SubmittedFields';

export function Login({ fields, store }) {
const { state, getFieldProps, handleSubmit, updateState } = useForm(fields);
Expand Down
3 changes: 2 additions & 1 deletion examples/form/components/Notifications/Notifications.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import NextLink from 'next/link';
import { useRouter } from 'next/navigation';
import { useEffect, useState } from 'react';

import { getNotifications } from './mocks.js';
import { getNotifications } from './mocks';

const labels = {
notifications: 'Notificações',
Expand Down Expand Up @@ -101,6 +101,7 @@ function useNotificationConfig() {
}

useEffect(() => {
// eslint-disable-next-line react-hooks/set-state-in-effect
loadMore();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
Expand Down
2 changes: 1 addition & 1 deletion examples/form/components/Notifications/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { Notifications, NotificationCenter, NotificationsProvider } from './Notifications.jsx';
export { Notifications, NotificationCenter, NotificationsProvider } from './Notifications';
2 changes: 1 addition & 1 deletion examples/form/components/Registration.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useForm } from '@barso/forms';
import { Box, Button, Flash, FormField, Heading, Text } from '@barso/ui';
import { Link } from '@barso/ui/primer';

import { SubmittedFields } from './SubmittedFields.jsx';
import { SubmittedFields } from './SubmittedFields';

export function Registration({ fields, store }) {
const { state, getFieldProps, handleSubmit, updateState } = useForm(fields);
Expand Down
10 changes: 5 additions & 5 deletions examples/form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"start": "next start"
},
"dependencies": {
"@faker-js/faker": "10.3.0",
"@faker-js/faker": "10.5.0",
"@primer/octicons-react": "19.15.2",
"@barso/forms": "0.4.5",
"@barso/ui": "0.6.4",
"next": "15.5.13",
"react": "19.2.4",
"react-dom": "19.2.4",
"react-icons": "5.6.0"
"next": "16.2.10",
"react": "19.2.7",
"react-dom": "19.2.7",
"react-icons": "5.7.0"
}
}
6 changes: 3 additions & 3 deletions examples/form/pages/login.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DefaultLayout } from '../components/DefaultLayout.jsx';
import { Login } from '../components/Login.jsx';
import { loginFields, store } from '../form-config.js';
import { DefaultLayout } from '../components/DefaultLayout';
import { Login } from '../components/Login';
import { loginFields, store } from '../form-config';

export default function LoginPage() {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/form/pages/notifications.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DefaultLayout } from '../components/DefaultLayout.jsx';
import { DefaultLayout } from '../components/DefaultLayout';
import { Notifications } from '../components/Notifications';

export default function NotificationsPage() {
Expand Down
8 changes: 4 additions & 4 deletions examples/form/pages/pages_router.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Checkout } from '../components/Checkout.jsx';
import { DefaultLayout } from '../components/DefaultLayout.jsx';
import { Head } from '../components/Head/Head.Pages.jsx';
import { checkoutFields, product, store } from '../form-config.js';
import { Checkout } from '../components/Checkout';
import { DefaultLayout } from '../components/DefaultLayout';
import { Head } from '../components/Head/Head.Pages';
import { checkoutFields, product, store } from '../form-config';

export default function Home() {
return (
Expand Down
8 changes: 4 additions & 4 deletions examples/form/pages/registration.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DefaultLayout } from '../components/DefaultLayout.jsx';
import { Head } from '../components/Head/Head.Pages.jsx';
import { Registration } from '../components/Registration.jsx';
import { registrationFields, store } from '../form-config.js';
import { DefaultLayout } from '../components/DefaultLayout';
import { Head } from '../components/Head/Head.Pages';
import { Registration } from '../components/Registration';
import { registrationFields, store } from '../form-config';

export default function RegistrationPage() {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/markdown/app/layout.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PrimerRoot } from '@barso/ui';
import '@barso/ui/css';

import { DefaultLayout } from '../components/DefaultLayout.jsx';
import { DefaultLayout } from '../components/DefaultLayout';

export default function Layout({ children }) {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/markdown/app/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { MarkdownEditor } from '@barso/ui/markdown';
import { useState } from 'react';

import { mdContent, shouldAddNofollow } from '../md-example.js';
import { mdContent, shouldAddNofollow } from '../md-example';

export default function EditorPage() {
const [value, setValue] = useState(mdContent);
Expand Down
2 changes: 1 addition & 1 deletion examples/markdown/components/DefaultLayout.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Header } from './Header.jsx';
import { Header } from './Header';

export function DefaultLayout({ children }) {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/markdown/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { Header as PrimerHeader } from '@barso/ui/primer';
import NextLink from 'next/link';

import { ThemeSwitcher } from './ThemeSwitcher.jsx';
import { ThemeSwitcher } from './ThemeSwitcher';

export function Header() {
return (
Expand Down
6 changes: 3 additions & 3 deletions examples/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"dependencies": {
"@barso/helpers": "0.4.3",
"@barso/ui": "0.6.4",
"next": "15.5.13",
"react": "19.2.4",
"react-dom": "19.2.4"
"next": "16.2.10",
"react": "19.2.7",
"react-dom": "19.2.7"
}
}
2 changes: 1 addition & 1 deletion examples/markdown/pages/viewer.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MarkdownViewer } from '@barso/ui/markdown';

import { mdContent, shouldAddNofollow } from '../md-example.js';
import { mdContent, shouldAddNofollow } from '../md-example';

export default function ViewerPage() {
return <MarkdownViewer value={mdContent} shouldAddNofollow={shouldAddNofollow} />;
Expand Down
7 changes: 0 additions & 7 deletions jsconfig.json

This file was deleted.

Loading
Loading