1.0.11 • Published 11 months ago

@imj_media/uicompos v1.0.11

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Usage example

import { Timeline } from '@imj_media/uicompos';
import '@imj_media/uicompos/styles.css';
import moment from 'moment';

function App() {
  const [count, setCount] = useState(0)
  
  const groups = [
    { id: 1, title: "group 1" },
    { id: 2, title: "group 2" },
    ];

    const items = [
    {
        id: 1,
        group: 1,
        title: "item 1",
        start_time: moment(),
        end_time: moment().add(1, "hour"),
    },
    {
        id: 2,
        group: 2,
        title: "item 2",
        start_time: moment().add(-0.5, "hour"),
        end_time: moment().add(0.5, "hour"),
    },
    {
        id: 3,
        group: 1,
        title: "item 3",
        start_time: moment().add(2, "hour"),
        end_time: moment().add(3, "hour"),
    },
    ];

  return (
      <Timeline
         defaultTimeStart={moment().add(-12, "hour")}
         defaultTimeEnd={moment().add(12, "hour")}
         groups={groups}
         items={items}
      />
  )
}

Documentation

For comprehensive information and detailed documentation on the react-calendar-timeline npm package, please visit the official npm page at https://www.npmjs.com/package/react-calendar-timeline.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
   parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
   },
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list
1.0.2

12 months ago

0.0.62

12 months ago

1.0.1

12 months ago

0.0.63

12 months ago

1.0.0

12 months ago

0.0.64

12 months ago

0.0.65

12 months ago

0.0.66

12 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.11

11 months ago

0.0.60

1 year ago

0.0.61

1 year ago

0.0.59

1 year ago

0.0.58

2 years ago

0.0.57

2 years ago

0.0.56

2 years ago

0.0.55

2 years ago

0.0.53

2 years ago

0.0.54

2 years ago

0.0.51

2 years ago

0.0.52

2 years ago

0.0.46

2 years ago

0.0.47

2 years ago

0.0.50

2 years ago

0.0.48

2 years ago

0.0.49

2 years ago

0.0.37

2 years ago

0.0.36

2 years ago

0.0.35

2 years ago

0.0.34

2 years ago

0.0.33

2 years ago

0.0.32

2 years ago

0.0.31

2 years ago

0.0.30

2 years ago

0.0.29

2 years ago

0.0.28

2 years ago

0.0.27

2 years ago

0.0.25

2 years ago