Skip to content

Commit

Permalink
chore: refine license header
Browse files Browse the repository at this point in the history
  • Loading branch information
bouassaba committed Nov 21, 2024
1 parent 0fedce9 commit 4e3430e
Show file tree
Hide file tree
Showing 89 changed files with 178 additions and 267 deletions.
5 changes: 2 additions & 3 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import type { StorybookConfig } from '@storybook/react-vite'
import autoprefixer from 'autoprefixer'
import path from 'path'
Expand Down
5 changes: 2 additions & 3 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { ChakraProvider } from '@chakra-ui/react'
import { theme } from '@koupr/ui'
import type { Preview } from '@storybook/react'
Expand Down
5 changes: 2 additions & 3 deletions src/common-types.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.

export type StorageOptions = {
prefix?: string
Expand Down
5 changes: 2 additions & 3 deletions src/components/account-menu.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { ReactElement, ReactNode } from 'react'
import {
Avatar,
Expand Down
5 changes: 2 additions & 3 deletions src/components/app-bar.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { ReactElement } from 'react'
import cx from 'classnames'

Expand Down
5 changes: 2 additions & 3 deletions src/components/auxiliary-drawer.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { ReactElement, useRef } from 'react'
import {
Drawer,
Expand Down
5 changes: 2 additions & 3 deletions src/components/data-table.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { ReactElement } from 'react'
import {
IconButton,
Expand Down
5 changes: 2 additions & 3 deletions src/components/form.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { Fragment, ReactElement } from 'react'
import { Divider, Spacer } from '@chakra-ui/react'
import cx from 'classnames'
Expand Down
5 changes: 2 additions & 3 deletions src/components/icons.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { CSSProperties, HTMLAttributes } from 'react'
import { cx } from '@emotion/css'

Expand Down
5 changes: 2 additions & 3 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.

export * from './sidenav'
export * from './icons'
Expand Down
5 changes: 2 additions & 3 deletions src/components/logo/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.

export * from './logo'
5 changes: 2 additions & 3 deletions src/components/logo/logo.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { useCallback } from 'react'
import { CenterProps, useColorMode } from '@chakra-ui/react'
import cx from 'classnames'
Expand Down
5 changes: 2 additions & 3 deletions src/components/nav-bar.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { useEffect, useState } from 'react'
import { Link as ChakraLink } from '@chakra-ui/react'
import cx from 'classnames'
Expand Down
5 changes: 2 additions & 3 deletions src/components/notification-badge.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { ReactNode } from 'react'
import { Circle } from '@chakra-ui/react'
import cx from 'classnames'
Expand Down
5 changes: 2 additions & 3 deletions src/components/number-tag.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { ReactNode, useMemo } from 'react'
import { Tag, useColorMode } from '@chakra-ui/react'
import cx from 'classnames'
Expand Down
5 changes: 2 additions & 3 deletions src/components/page-pagination.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import React, { ChangeEvent, useCallback } from 'react'
import { Select } from '@chakra-ui/react'
import cx from 'classnames'
Expand Down
5 changes: 2 additions & 3 deletions src/components/pagination.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { useCallback, useMemo } from 'react'
import {
ButtonGroup,
Expand Down
5 changes: 2 additions & 3 deletions src/components/relative-date.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { Tooltip } from '@chakra-ui/react'
import { prettyDate, relativeDate } from '../helpers'

Expand Down
5 changes: 2 additions & 3 deletions src/components/search-bar.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import {
ChangeEvent,
KeyboardEvent,
Expand Down
5 changes: 2 additions & 3 deletions src/components/search-input.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import {
useCallback,
useEffect,
Expand Down
5 changes: 2 additions & 3 deletions src/components/section-error.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import cx from 'classnames'
import { IconError } from './icons'

Expand Down
5 changes: 2 additions & 3 deletions src/components/section-placeholder.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { ReactElement } from 'react'
import cx from 'classnames'

Expand Down
5 changes: 2 additions & 3 deletions src/components/section-spinner.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import cx from 'classnames'
import { Spinner } from './spinner'

Expand Down
5 changes: 2 additions & 3 deletions src/components/select.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { ComponentProps, useMemo } from 'react'
import { SystemStyleObject, useColorMode } from '@chakra-ui/react'
import {
Expand Down
5 changes: 2 additions & 3 deletions src/components/shell.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { MouseEvent, ReactElement } from 'react'
import cx from 'classnames'
import { StorageOptions } from '../common-types'
Expand Down
5 changes: 2 additions & 3 deletions src/components/sidenav/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.

export * from './sidenav'
export * from './sidenav-item'
Expand Down
5 changes: 2 additions & 3 deletions src/components/sidenav/sidenav-context.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { createContext } from 'react'

export type SidenavContextType = {
Expand Down
5 changes: 2 additions & 3 deletions src/components/sidenav/sidenav-item.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { ReactElement, useContext, useEffect, useState } from 'react'
import { Tooltip, Link } from '@chakra-ui/react'
import cx from 'classnames'
Expand Down
5 changes: 2 additions & 3 deletions src/components/sidenav/sidenav.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { ReactNode, useEffect, useMemo, useState } from 'react'
import { Link } from '@chakra-ui/react'
import cx from 'classnames'
Expand Down
5 changes: 2 additions & 3 deletions src/components/spinner.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import { Spinner as ChakraSpinner } from '@chakra-ui/react'

// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down
5 changes: 2 additions & 3 deletions src/components/switch-card.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import {
ChangeEvent,
ReactElement,
Expand Down
5 changes: 2 additions & 3 deletions src/components/text.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.
import React, { ReactNode, useEffect, useRef } from 'react'
import cx from 'classnames'

Expand Down
5 changes: 2 additions & 3 deletions src/custom.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
// See the LICENSE file in the root of this repository for details,
// or visit <https://opensource.org/licenses/MIT>.

// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path="../dist/types.d.ts" />
Expand Down
Loading

0 comments on commit 4e3430e

Please sign in to comment.