@codezee/sixtify-brahma 0.2.25 → 0.2.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@codezee/sixtify-brahma",
3
- "version": "0.2.25",
4
- "repository": {
3
+ "version": "0.2.27",
4
+ "repository": {
5
5
  "type": "git",
6
- "url": "git+https://github.com/hardikranpariya/sixtify-brahma"
6
+ "url": "git+https://github.com/hardikranpariya/sixtify-brahma.git"
7
7
  },
8
8
  "publishConfig": {
9
9
  "access": "public"
@@ -12,7 +12,8 @@
12
12
  "lint": "turbo lint",
13
13
  "format": "prettier --write \"**/*.{ts,tsx}\"",
14
14
  "prepare": "husky install",
15
- "build": "turbo build"
15
+ "build": "turbo build",
16
+ "dev": "turbo dev -- -p 4201"
16
17
  },
17
18
  "main": "packages/shared-components/dist/index.js",
18
19
  "types": "packages/shared-components/dist/index.d.ts",
@@ -39,7 +39,7 @@ function PhoneInputField({ control, name, defaultValue, rules, label, disabled =
39
39
  border: "none",
40
40
  }, buttonStyle: {
41
41
  border: "none",
42
- }, ...restField, ...phoneInputProps })] }), error && ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "caption", sx: {
42
+ }, inputProps: { ...restField }, ...phoneInputProps })] }), error && ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "caption", sx: {
43
43
  color: `red`,
44
44
  whiteSpace: "pre",
45
45
  textWrap: "wrap",
@@ -1 +1 @@
1
- {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../src/Timeline/Timeline.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAKzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,WAQzC,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,mFAMtB,aAAa,4CAoIf,CAAC"}
1
+ {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../src/Timeline/Timeline.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,WAQzC,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,mFAMtB,aAAa,4CAyHf,CAAC"}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Timeline = exports.getArrowValue = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const material_1 = require("@mui/material");
6
- const TimelineTrackSegments_1 = require("./TimelineTrackSegments");
7
- const date_1 = require("../utils/date");
8
- const ArrowUp_1 = require("../Svgs/ArrowUp");
9
6
  const luxon_1 = require("luxon");
7
+ const ArrowUp_1 = require("../Svgs/ArrowUp");
8
+ const date_1 = require("../utils/date");
9
+ const TimelineTrackSegments_1 = require("./TimelineTrackSegments");
10
10
  const getArrowValue = (date) => {
11
11
  const time = luxon_1.DateTime.fromFormat(date, "HH:mm");
12
12
  const hour = time.hour;
@@ -46,25 +46,14 @@ const Timeline = ({ totalDots, highlightedIntervals, shiftStartTime, shiftEndTim
46
46
  position: "absolute",
47
47
  top: "12px",
48
48
  zIndex: 2,
49
- left: `${(((getArrowPosition(shiftStartTime, shiftEndTime, "START") - slotStartTime) % totalDots) / (totalDots - 1)) * 100}%`,
49
+ left: `${(((getArrowPosition(shiftStartTime, shiftEndTime, "START") - slotStartTime) % totalDots) / (totalDots + 4)) * 100}%`,
50
50
  }, children: (0, jsx_runtime_1.jsx)(ArrowUp_1.ArrowUp, {}) }) }), (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: `Shift End: ${(0, date_1.getTimeInHHmm)(shiftEndTime)}`, arrow: true, placement: "top", children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
51
51
  cursor: "pointer",
52
52
  position: "absolute",
53
53
  top: "12px",
54
54
  zIndex: 2,
55
- left: `${(((getArrowPosition(shiftStartTime, shiftEndTime, "END") - slotStartTime) % totalDots) / (totalDots - 1)) * 100}%`,
56
- }, children: (0, jsx_runtime_1.jsx)(ArrowUp_1.ArrowUp, {}) }) }), (0, jsx_runtime_1.jsx)(material_1.Slider, { valueLabelDisplay: "off", marks: marks, max: totalDots - 1, step: 1, value: highlightedIntervals
57
- .map((interval) => [
58
- (parseFloat((0, date_1.getTimeInHHmm)(interval.in_time)) -
59
- slotStartTime +
60
- totalDots) %
61
- totalDots,
62
- (parseFloat((0, date_1.getTimeInHHmm)(interval.out_time)) -
63
- slotStartTime +
64
- totalDots) %
65
- totalDots,
66
- ])
67
- .flat(), sx: {
55
+ left: `${(((getArrowPosition(shiftStartTime, shiftEndTime, "END") - slotStartTime) % totalDots) / (totalDots + 0.5)) * 100}%`,
56
+ }, children: (0, jsx_runtime_1.jsx)(ArrowUp_1.ArrowUp, {}) }) }), (0, jsx_runtime_1.jsx)(material_1.Slider, { valueLabelDisplay: "off", marks: marks, max: totalDots - 1, step: 1, value: [], sx: {
68
57
  zIndex: 1,
69
58
  "& .MuiSlider-track": {
70
59
  background: "transparent",