@licklist/design 0.67.3-dev.3 → 0.67.4-dev.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"DateTimeButton.d.ts","sourceRoot":"","sources":["../../src/date-time-button/DateTimeButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,yBAAyB,EAAE,MAAM,0EAA0E,CAAC;AAKrH,oBAAY,OAAO;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,QAAQ,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,IAAI,CAAC;IAC9C,SAAS,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;IAC7C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,cAAc,wJAWxB,mBAAmB,4CAqDrB,CAAC"}
1
+ {"version":3,"file":"DateTimeButton.d.ts","sourceRoot":"","sources":["../../src/date-time-button/DateTimeButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,yBAAyB,EAAE,MAAM,0EAA0E,CAAC;AAIrH,oBAAY,OAAO;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,QAAQ,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,IAAI,CAAC;IAC9C,SAAS,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;IAC7C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,cAAc,wJAWxB,mBAAmB,4CA8CrB,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { DateTime } from 'luxon';
4
- import { has } from 'lodash';
5
4
  import { AvailabilityIndicator } from '../availability-indicator/AvailabilityIndicator.js';
6
5
  import { DateContent } from './DateContent.js';
7
6
 
@@ -17,9 +16,7 @@ var DateTimeButton = function(param) {
17
16
  shouldCalculateResources && resources && resources.bookedResources >= resources.totalResources;
18
17
  var isTimeVariant = variant === "time";
19
18
  var isPast = variant === "time" ? isPastTime(date) : isPastDate(date);
20
- var noResources = shouldCalculateResources && // only consider resources if shouldCalculateResources is true
21
- (!resources || !has(resources, "bookedResources") || !has(resources, "totalResources"));
22
- var isDisabled = _isDisabled || isSoldOut || isPast || noResources;
19
+ var isDisabled = _isDisabled || isSoldOut || isPast;
23
20
  return /*#__PURE__*/ jsxs("button", {
24
21
  type: "button",
25
22
  onClick: function() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.67.3-dev.3",
3
+ "version": "0.67.4-dev.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -2,7 +2,6 @@ import { ReactElement } from "react";
2
2
  import clsx from "clsx";
3
3
  import { DateTime } from "luxon";
4
4
  import { ZoneResourcesAvailability } from "@licklist/core/dist/DataMapper/Order/ZoneResourcesAvailabilityDataMapper";
5
- import { has } from "lodash";
6
5
  import { AvailabilityIndicator } from "../availability-indicator";
7
6
  import { DateContent } from "./DateContent";
8
7
 
@@ -48,14 +47,7 @@ export const DateTimeButton = ({
48
47
 
49
48
  const isPast = variant === Variant.time ? isPastTime(date) : isPastDate(date);
50
49
 
51
- const noResources =
52
- shouldCalculateResources &&
53
- // only consider resources if shouldCalculateResources is true
54
- (!resources ||
55
- !has(resources, "bookedResources") ||
56
- !has(resources, "totalResources"));
57
-
58
- const isDisabled = _isDisabled || isSoldOut || isPast || noResources;
50
+ const isDisabled = _isDisabled || isSoldOut || isPast;
59
51
 
60
52
  return (
61
53
  <button
package/yarn.lock CHANGED
@@ -5077,14 +5077,14 @@ __metadata:
5077
5077
  linkType: hard
5078
5078
 
5079
5079
  "@tiptap/extension-bubble-menu@npm:^2.0.0-beta.56":
5080
- version: 2.7.4
5081
- resolution: "@tiptap/extension-bubble-menu@npm:2.7.4"
5080
+ version: 2.8.0
5081
+ resolution: "@tiptap/extension-bubble-menu@npm:2.8.0"
5082
5082
  dependencies:
5083
5083
  tippy.js: "npm:^6.3.7"
5084
5084
  peerDependencies:
5085
5085
  "@tiptap/core": ^2.7.0
5086
5086
  "@tiptap/pm": ^2.7.0
5087
- checksum: 10c0/210578d8e8be63b0e2eaeeba47310a427f673d8d5b40fbca34b23536e3fb88c7e2da38af502e468e4f0eb89390263793305114873457486c38101947ed0c0e04
5087
+ checksum: 10c0/8c05bf1a1ea3a72c290e69f64b5e165e1af740a5b1434d8da2ab457def27793ece75680f5ab7c6c5f264d69be75a2f42c104acb07f4338fd55a70028cd8a4ad1
5088
5088
  languageName: node
5089
5089
  linkType: hard
5090
5090
 
@@ -5107,14 +5107,14 @@ __metadata:
5107
5107
  linkType: hard
5108
5108
 
5109
5109
  "@tiptap/extension-floating-menu@npm:^2.0.0-beta.51":
5110
- version: 2.7.4
5111
- resolution: "@tiptap/extension-floating-menu@npm:2.7.4"
5110
+ version: 2.8.0
5111
+ resolution: "@tiptap/extension-floating-menu@npm:2.8.0"
5112
5112
  dependencies:
5113
5113
  tippy.js: "npm:^6.3.7"
5114
5114
  peerDependencies:
5115
5115
  "@tiptap/core": ^2.7.0
5116
5116
  "@tiptap/pm": ^2.7.0
5117
- checksum: 10c0/2fc36071b16830a2e2423d151b73333eb4146d907151d6c55baa1551ad3351a680437fe0cf42ec4543a25fc6c24445dfe2c189463db04ef4fbed97935627120d
5117
+ checksum: 10c0/d9895b0c78d40dca295fe17bf2d3c1a181a2aeb1e9fec958ef7df8bac1fe59345f4f22a1bc3a5f7cfe54ff472c6ebea725c71b8db8f5082ec3e350e5da7f4a7d
5118
5118
  languageName: node
5119
5119
  linkType: hard
5120
5120