bord-design-system 0.0.46 → 0.0.47

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":"BordDatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/BordDatePicker/BordDatePicker.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAM9D,OAAO,uBAAuB,CAAC;AAE/B,QAAA,MAAM,cAAc,kKAYjB,oBAAoB,4CAoEtB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"BordDatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/BordDatePicker/BordDatePicker.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAM9D,OAAO,uBAAuB,CAAC;AAE/B,QAAA,MAAM,cAAc,kKAYjB,oBAAoB,4CA2EtB,CAAC;AAEF,eAAe,cAAc,CAAC"}
package/dist/index.esm.js CHANGED
@@ -12128,6 +12128,13 @@ const BordDatePicker = ({ updateCurrentValueCallback, isFilled, defaultValue, de
12128
12128
  const { value } = event.target;
12129
12129
  const newDateTime = convertSimpleDateToDateTimeZulu(value, desiredTimeZone);
12130
12130
  const newSimpleDate = formatDateToPicker(newDateTime, desiredTimeZone);
12131
+ if (newDateTime === "Invalid DateTime") {
12132
+ setCurrentDate("");
12133
+ if (updateCurrentValueCallback && !debounceTime) {
12134
+ updateCurrentValueCallback("");
12135
+ }
12136
+ return;
12137
+ }
12131
12138
  setCurrentDate(newSimpleDate || "");
12132
12139
  if (updateCurrentValueCallback && !debounceTime) {
12133
12140
  updateCurrentValueCallback(newDateTime);
@@ -43857,7 +43864,7 @@ const BordEmailPreview = ({ imageUrl, imageAlt = DEFAULT_IMAGE_ALT, className =
43857
43864
  return (jsx("div", { className: rootClassName, children: jsx("img", { src: imageUrl, alt: imageAlt, className: "bordEmailPreviewDSimage" }) }));
43858
43865
  };
43859
43866
 
43860
- var css_248z$r = ".bordIncidentDatesFormDS{display:block;width:100%}.bordIncidentDatesFormDS .bordIncidentDatesFormDSslaBanner{align-items:center;background-color:var(--ds-c-bool-info-bg);border-color:var(--ds-c-bool-info-fg);border-radius:.8rem;border-style:solid;border-width:1px;box-sizing:border-box;display:flex;gap:1.2rem;height:3.8rem;margin-bottom:1.6rem;max-width:46.8rem;padding:0 1.2rem;width:100%}.bordIncidentDatesFormDS .bordIncidentDatesFormDSslaBannerIcon{align-items:center;color:var(--ds-c-bool-info-fg);display:flex;flex-shrink:0;justify-content:center}.bordIncidentDatesFormDS .bordIncidentDatesFormDSslaBannerIcon svg path{stroke:var(--ds-c-bool-info-fg)}.bordIncidentDatesFormDS .bordIncidentDatesFormDSslaBannerLabel{font-weight:700}.bordIncidentDatesFormDS .bordIncidentDatesFormDSslaBannerLabel,.bordIncidentDatesFormDS .bordIncidentDatesFormDSslaBannerRange{color:var(--ds-c-bool-info-fg);font-size:1.2rem;line-height:1.5rem}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdates{display:grid;gap:1.2rem;grid-template-columns:1fr 1fr;margin-bottom:1.6rem}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField{display:block;min-width:0}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS .bordDatePickerLabel{color:var(--ds-c-content-default);font-size:1.1rem;letter-spacing:-.01em;line-height:1.6rem;overflow:visible;white-space:nowrap}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS input{border-color:var(--ds-c-stroke-default);color:var(--ds-c-content-secondary)}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS input::-moz-placeholder{color:var(--ds-c-content-secondary)}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS input::placeholder{color:var(--ds-c-content-secondary)}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS input:hover{background-color:transparent;border-color:var(--ds-c-primary-bg-default);color:var(--ds-c-content-secondary)}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS input:active,.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS input:focus{border-color:var(--ds-c-primary-bg-default);color:var(--ds-c-content-secondary)}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS input::-webkit-calendar-picker-indicator{cursor:pointer;filter:invert(70%) brightness(40%)}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS.filled .bordDatePickerLabel{color:var(--ds-c-content-default)}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS.filled input{border-color:var(--ds-c-primary-bg-default);color:var(--ds-c-content-secondary)}.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField{display:block;margin-bottom:1.2rem;width:100%}.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS{width:100%}.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS label{color:var(--ds-c-content-default);font-size:1.2rem;line-height:1.6rem}.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS .inputContainer{width:100%}.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS .inputContainer input::-moz-placeholder{--tw-text-opacity:1;color:rgb(180 180 180/var(--tw-text-opacity))}.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS .inputContainer input::placeholder{--tw-text-opacity:1;color:rgb(180 180 180/var(--tw-text-opacity))}.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS.filled .inputContainer,.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS.focused .inputContainer,.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS:focus-within .inputContainer,.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS:hover .inputContainer{border-color:var(--ds-c-primary-bg-default)}";
43867
+ var css_248z$r = ".bordIncidentDatesFormDS{display:block;width:100%}.bordIncidentDatesFormDS .bordIncidentDatesFormDSslaBanner{align-items:center;background-color:var(--ds-c-bool-info-bg);border-color:var(--ds-c-bool-info-fg);border-radius:.8rem;border-style:solid;border-width:1px;box-sizing:border-box;display:flex;gap:1.2rem;height:3.8rem;margin-bottom:1.6rem;max-width:46.8rem;padding:0 1.2rem;width:100%}.bordIncidentDatesFormDS .bordIncidentDatesFormDSslaBannerIcon{align-items:center;color:var(--ds-c-bool-info-fg);display:flex;flex-shrink:0;justify-content:center}.bordIncidentDatesFormDS .bordIncidentDatesFormDSslaBannerIcon svg path{stroke:var(--ds-c-bool-info-fg)}.bordIncidentDatesFormDS .bordIncidentDatesFormDSslaBannerLabel{font-weight:700}.bordIncidentDatesFormDS .bordIncidentDatesFormDSslaBannerLabel,.bordIncidentDatesFormDS .bordIncidentDatesFormDSslaBannerRange{color:var(--ds-c-bool-info-fg);font-size:1.2rem;line-height:1.5rem}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdates{display:grid;gap:1.2rem;grid-template-columns:1fr 1fr;margin-bottom:1.6rem}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField{display:block;min-width:0}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS .bordDatePickerLabel{color:var(--ds-c-content-default);font-size:1.1rem;letter-spacing:-.01em;line-height:1.6rem;overflow:visible;white-space:nowrap}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS input{border-color:var(--ds-c-stroke-default);color:var(--ds-c-content-secondary)}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS input::-moz-placeholder{color:var(--ds-c-content-secondary)}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS input::placeholder{color:var(--ds-c-content-secondary)}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS input:hover{background-color:transparent;border-color:var(--ds-c-primary-bg-default);color:var(--ds-c-content-secondary)}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS input:active,.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS input:focus{border-color:var(--ds-c-primary-bg-default);color:var(--ds-c-content-secondary)}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS input::-webkit-calendar-picker-indicator{cursor:pointer;filter:invert(70%) brightness(40%)}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS.filled .bordDatePickerLabel{color:var(--ds-c-content-default)}.bordIncidentDatesFormDS .bordIncidentDatesFormDSdateField .bordDatePickerDS.filled input{border-color:var(--ds-c-primary-bg-default);color:var(--ds-c-content-default)}.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField{display:block;margin-bottom:1.2rem;width:100%}.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS{width:100%}.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS label{color:var(--ds-c-content-default);font-size:1.2rem;line-height:1.6rem}.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS .inputContainer{width:100%}.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS .inputContainer input::-moz-placeholder{--tw-text-opacity:1;color:rgb(180 180 180/var(--tw-text-opacity))}.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS .inputContainer input::placeholder{--tw-text-opacity:1;color:rgb(180 180 180/var(--tw-text-opacity))}.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS.filled .inputContainer,.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS.focused .inputContainer,.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS:focus-within .inputContainer,.bordIncidentDatesFormDS .bordIncidentDatesFormDStrackingField .bordTextInputDS:hover .inputContainer{border-color:var(--ds-c-primary-bg-default)}";
43861
43868
  styleInject(css_248z$r);
43862
43869
 
43863
43870
  const DEFAULT_PICKUP_FROM = 'Fecha estimada de recolección (Desde)*';