0.1.72 • Published 12 months ago

@lafarmer28/ks-density-calendar v0.1.72

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

KSDensityCalendar is a complex custom component for visualizing the aggregation of schedules in a monthly calendar view, a generic week view, and an hours of the day view. It takes an array of objects where each object holds 3 key value pairs. These pairs are "name":"string", "start":"date", and "end": "date". The component then distributes the availability across a calendar view, a generic week view, and day view depending upon the use case. It will use the total names in the denominator to find what portion of the names falls under a given date for availability. It then calculates a percentage for each day to give the viewer a sense of where more scheduling for an activity is occurring. The user can click a date cell with a relative percentage to drill down to an hours of the day view for getting a similar sense of relative density for scheduled activity. In the generic week view it gives the viewer the same sense of relative availability for the days of the week in general with the ability to drill down to an hours of the day view.

storybook link: https://643076914824b810b6eacd55-tjawjlhgxz.chromatic.com/?path=/story/ksdensitycalendar--default

Storybook notes- Whenever you see a prop that states in the description that it accepts a string, number, or object the optional object uses mui's default breakpoints. Those being:

xs, extra-small: 0px

sm, small: 600px

md, medium: 900px

lg, large: 1200px

xl, extra-large: 1536px

The component's dependencies:

dev- "@babel/core": "^7.21.3", "@babel/preset-env": "^7.20.2", "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.21.0", "@rollup/plugin-commonjs": "^24.0.1", "@rollup/plugin-node-resolve": "^15.0.1", "@rollup/plugin-terser": "^0.4.0", "@rollup/plugin-typescript": "^11.0.0", "@storybook/addon-actions": "^6.5.16", "@storybook/addon-essentials": "^6.5.16", "@storybook/addon-interactions": "^6.5.16", "@storybook/addon-links": "^6.5.16", "@storybook/addon-viewport": "^6.5.16", "@storybook/builder-webpack5": "^6.5.16", "@storybook/manager-webpack5": "^6.5.16", "@storybook/react": "^6.5.16", "@storybook/testing-library": "^0.0.13", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^14.0.0", "@types/istanbul-lib-report": "^3.0.0", "@types/jest": "^29.5.0", "@types/node": "^18.15.10", "@types/react": "^18.0.29", "babel-loader": "^8.3.0", "chromatic": "^6.17.3", "istanbul-lib-report": "^3.0.0", "jest": "^29.5.0", "jest-environment-jsdom": "^29.5.0", "react": "^18.2.0", "react-dom": "^18.2.0", "rollup": "^3.20.2", "rollup-plugin-dts": "^5.3.0", "ts-jest": "^29.0.5", "ts-node": "^10.9.1", "tslib": "^2.5.0", "typescript": "^5.0.2"

prod- "@emotion/react": "^11.10.6", "@emotion/styled": "^11.10.6", "@mui/icons-material": "^5.11.11", "@mui/material": "^5.11.14", "date-fns": "^2.29.3"

0.1.52

1 year ago

0.1.53

1 year ago

0.1.54

1 year ago

0.1.55

1 year ago

0.1.56

1 year ago

0.1.57

1 year ago

0.1.58

1 year ago

0.1.59

1 year ago

0.1.50

1 year ago

0.1.51

1 year ago

0.1.49

1 year ago

0.1.41

1 year ago

0.1.42

1 year ago

0.1.43

1 year ago

0.1.44

1 year ago

0.1.45

1 year ago

0.1.46

1 year ago

0.1.47

1 year ago

0.1.48

1 year ago

0.1.40

1 year ago

0.1.38

1 year ago

0.1.39

1 year ago

0.1.70

12 months ago

0.1.71

12 months ago

0.1.72

12 months ago

0.1.63

1 year ago

0.1.64

1 year ago

0.1.65

1 year ago

0.1.66

1 year ago

0.1.67

1 year ago

0.1.68

1 year ago

0.1.69

1 year ago

0.1.60

1 year ago

0.1.61

1 year ago

0.1.62

1 year ago

0.1.37

1 year ago

0.1.36

1 year ago

0.1.35

1 year ago

0.1.34

1 year ago

0.1.33

1 year ago

0.1.32

1 year ago

0.1.31

1 year ago

0.1.30

1 year ago

0.1.29

1 year ago

0.1.28

1 year ago

0.1.27

1 year ago

0.1.26

1 year ago

0.1.25

1 year ago

0.1.24

1 year ago

0.1.23

1 year ago

0.1.22

1 year ago

0.1.21

1 year ago

0.1.20

1 year ago

0.1.19

1 year ago

0.1.18

1 year ago

0.1.16

1 year ago

0.1.15

1 year ago

0.1.14

1 year ago

0.1.13

1 year ago

0.1.12

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.9

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago