@ix_waterford/lib 1.0.31 → 1.0.33

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.
@@ -0,0 +1 @@
1
+ .editor-input{outline:none;min-height:200px;padding:12px;font-size:16px;line-height:1.5}.editor-placeholder{color:#aaa;pointer-events:none;padding:12px;position:absolute}.editor-textBold{font-weight:700}.editor-textItalic{font-style:italic}.editor-textUnderline{text-decoration:underline}.editor-textStrikethrough{text-decoration:line-through}.editor-textSubscript{vertical-align:sub;font-size:.8em}.editor-textSuperscript{vertical-align:super;font-size:.8em}.editor-heading-h1{margin:.67em 0;font-size:2em;font-weight:700}.editor-heading-h2{margin:.75em 0;font-size:1.75em;font-weight:700}.editor-heading-h3{margin:.83em 0;font-size:1.5em;font-weight:700}.editor-heading-h4{margin:1em 0;font-size:1.25em;font-weight:700}.editor-heading-h5{margin:1.17em 0;font-size:1.1em;font-weight:700}.editor-heading-h6{margin:1.33em 0;font-size:1em;font-weight:700}.editor-list-ol,.editor-list-ul{margin:.5em 0;padding-left:30px}.editor-list-item{margin:.25em 0}.editor-quote{color:#666;border-left:4px solid #ccc;margin:0;padding-left:20px;font-style:italic}:root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{z-index:1;width:100%;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translate(0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}.swiper-lazy-preloader{z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-top-color:#0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}:is(.swiper:not(.swiper-watch-progress),.swiper-watch-progress .swiper-slide-visible) .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translate(0,0)}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);width:100%;left:0}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);display:inline-block}button.swiper-pagination-bullet{box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;margin:0;padding:0}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity,1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translateY(-50%)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets) .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px)0;display:block}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets) .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:100% 0}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size,4px);height:100%;top:0;left:0}.swiper-pagination-lock{display:none}
@@ -1 +1 @@
1
- {"version":3,"file":"dateRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/dateRangePicker/dateRangePicker.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAInC,MAAM,WAAW,oBAA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AAE,MAAM,CAAC;CACpB;;AA2eD,wBAA8C"}
@@ -1,5 +1,5 @@
1
1
  export { Button, Badge, BreadCrumb, ColorPicker, Drawer, SnackBar, Modal, Link, Tooltip, Popover, TimePicker, DatePicker, DateRangePicker, IconButton, Dialog, Timeline, LinearLoader, CircularLoader, MediaPlayer, Radio, Accordion, Slider, Switch, Menu, Chip, Select, MultiSelect, SearchBar, Typography, TextField, Tabs, TabPanel, TabContext, Avatar, AvatarGroup, AvatarStatus, AvatarTitle, ThemeProvider, TextEditor, ErrorBoundary, Carousal, CheckBox, Table, ViewHeader, Autocomplete, Skeleton, type Theme, type Dayjs, type TableProps, type AutocompleteProps, type AutocompleteOption, type SkeletonProps } from './components';
2
2
  export { useDebounce } from './hooks';
3
- export { formatDate, isValidEmail, isEmpty, isEmptyString, isEmptyArray, isEmptyObject, getLocalStorageItem, setLocalStorageItem, removeLocalStorageItem, getSessionStorageItem, setSessionStorageItem, removeSessionStorageItem, getColorFromId, strEllipsis, getFormattedName, } from './utils';
3
+ export { formatDate, parseDate, subtractDaysFromDate, isValidEmail, isEmpty, isEmptyString, isEmptyArray, isEmptyObject, getLocalStorageItem, setLocalStorageItem, removeLocalStorageItem, getSessionStorageItem, setSessionStorageItem, removeSessionStorageItem, getColorFromId, strEllipsis, getFormattedName, } from './utils';
4
4
  export { EditIcon, SearchIcon, CloseIcon, DoubleArrow, ExpandMoreIcon, MoreIcon, } from './assets';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EACrE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EACvF,YAAY,EAAE,cAAc,EAAE,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AAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EACvE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EACnF,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAGxF,KAAK,KAAK,EAAE,KAAK,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,KAAK,aAAa,EAC/G,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,OAAO,EACH,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,YAAY,EACZ,OAAO,EACP,aAAa,EACb,YAAY,EACZ,aAAa,EAEb,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EAEtB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EAExB,cAAc,EACd,WAAW,EACX,gBAAgB,GAEnB,MAAM,SAAS,CAAC;AAGjB,OAAO,EACH,QAAQ,EACR,UAAU,EACV,SAAS,EACT,WAAW,EACX,cAAc,EACd,QAAQ,GACX,MAAM,UAAU,CAAC"}
@@ -1,10 +1,25 @@
1
1
  import { type Dayjs } from 'dayjs';
2
+ /**
3
+ * Parses a date and returns a Dayjs object if valid
4
+ * @param date - The date to parse (Date, string, number, Dayjs object, or boolean)
5
+ * @param utc - Whether to parse the date in UTC (default: false)
6
+ * @returns Dayjs object if valid, null otherwise
7
+ */
8
+ export declare const parseDate: (date: Date | string | number | Dayjs | boolean | null | undefined, utc?: boolean) => Dayjs | null;
2
9
  /**
3
10
  * Formats a date to a specific format string
4
11
  * @param date - The date to format (Date, string, number, Dayjs object, or boolean)
5
12
  * @param format - The format string (e.g., 'YYYY-MM-DD', 'MM/DD/YYYY', 'DD-MMM-YYYY')
6
- * @param utc - Whether to format the date in UTC (default: false)
13
+ * @param utc - Whether to format the date in UTC
7
14
  * @returns Formatted date string, or null if date is invalid
8
15
  */
9
16
  export declare const formatDate: (date: Date | string | number | Dayjs | boolean | null | undefined, format: string, utc?: boolean) => string | null;
17
+ /**
18
+ * Subtracts days from a date and returns a Dayjs object
19
+ * @param date - The date to subtract days from (Date, string, number, Dayjs object, or boolean)
20
+ * @param days - The number of days to subtract
21
+ * @param utc - Whether to parse the date in UTC (default: false)
22
+ * @returns Dayjs object if valid, null otherwise
23
+ */
24
+ export declare const subtractDaysFromDate: (date: Date | string | number | Dayjs | boolean | null | undefined, days: number, utc?: boolean) => Dayjs | null;
10
25
  //# sourceMappingURL=date.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../src/utils/date.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,KAAK,EAAE,MAAM,OAAO,CAAC;AAK1C;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EAAE,QAAQ,MAAM,EAAE,MAAK,OAAe,KAAG,MAAM,GAAG,IAa7I,CAAC"}
1
+ {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../src/utils/date.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,KAAK,EAAE,MAAM,OAAO,CAAC;AAK1C;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,MAAM,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EAAE,MAAK,OAAe,KAAG,KAAK,GAAG,IAa3H,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EAAE,QAAQ,MAAM,EAAE,MAAM,OAAO,KAAG,MAAM,GAAG,IAMtI,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,GAAI,MAAM,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,MAAM,EAAE,MAAK,OAAe,KAAG,KAAK,GAAG,IAMpJ,CAAC"}
@@ -1,4 +1,4 @@
1
- export { formatDate } from './date';
1
+ export { formatDate, parseDate, subtractDaysFromDate } from './date';
2
2
  export { isValidEmail } from './email';
3
3
  export { isEmpty, isEmptyString, isEmptyArray, isEmptyObject, getColorFromId, strEllipsis, getFormattedName, } from './global';
4
4
  export { getLocalStorageItem, setLocalStorageItem, removeLocalStorageItem } from './localStorage';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EACH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EACnD,cAAc,EAAE,WAAW,EAAE,gBAAgB,GAChD,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAClG,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EACH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EACnD,cAAc,EAAE,WAAW,EAAE,gBAAgB,GAChD,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAClG,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1 @@
1
+ let t,e,r,s,a,o,i,n,c,l,u,f,_,p,h,m,g,d;import S from"dayjs";var $,y,v={826:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(s,a,o){var i=a.prototype;o.utc=function(t){var e={date:t,utc:!0,args:arguments};return new a(e)},i.utc=function(e){var r=o(this.toDate(),{locale:this.$L,utc:!0});return e?r.add(this.utcOffset(),t):r},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var n=i.parse;i.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),n.call(this,t)};var c=i.init;i.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var l=i.utcOffset;i.utcOffset=function(s,a){var o=this.$utils().u;if(o(s))return this.$u?0:o(this.$offset)?l.call(this):this.$offset;if("string"==typeof s&&null===(s=function(t){void 0===t&&(t="");var s=t.match(e);if(!s)return null;var a=(""+s[0]).match(r)||["-",0,0],o=a[0],i=60*a[1]+ +a[2];return 0===i?0:"+"===o?i:-i}(s)))return this;var i=16>=Math.abs(s)?60*s:s;if(0===i)return this.utc(a);var n=this.clone();if(a)return n.$offset=i,n.$u=!1,n;var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(n=this.local().add(i+c,t)).$offset=i,n.$x.$localOffset=c,n};var u=i.format;i.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,e)},i.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var f=i.toDate;i.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var _=i.diff;i.diff=function(t,e,r){if(t&&this.$u===t.$u)return _.call(this,t,e,r);var s=this.local(),a=o(t).local();return _.call(s,a,e,r)}}}()}},b={};function w(t){var e=b[t];if(void 0!==e)return e.exports;var r=b[t]={exports:{}};return v[t].call(r.exports,r,r.exports,w),r.exports}w.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return w.d(e,{a:e}),e},w.d=(t,e)=>{for(var r in e)w.o(e,r)&&!w.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},w.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var x={};w.d(x,{Xm:()=>f,J2:()=>g,_S:()=>_,X:()=>d,u5:()=>u,a$:()=>r,VP:()=>o,sc:()=>h,Hd:()=>m,B9:()=>s,bs:()=>l,Yq:()=>e,AP:()=>p,RI:()=>i,_U:()=>t,Im:()=>n,jw:()=>a}),$=w(826),y=w.n($),S.extend(y()),t=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{if(!t||"boolean"==typeof t)return null;let r=e?S.utc(t):S(t);if(!r.isValid())return null;return r}catch(t){return null}},e=(e,r,s)=>{let a=t(e,s);return a?a.format(r):null},r=function(e,r){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=t(e,s);return a?a.clone().subtract(r,"days"):null},s=t=>!!t&&"string"==typeof t&&/^(?!\.)(?!.*\.\.)[A-Za-z0-9.!#$%&'*+/=?^_`{|}~-]+(?<!\.)@[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/.test(t.trim()),a=t=>null==t||"string"==typeof t&&0===t.trim().length,o=t=>null==t||!!Array.isArray(t)&&0===t.length,i=t=>null==t||!Array.isArray(t)&&t.constructor===Object&&0===Object.keys(t).length,n=t=>null==t||("string"==typeof t?a(t):Array.isArray(t)?o(t):"object"==typeof t&&i(t)),c=["#e57373","#f06292","#ba68c8","#9575cd","#c5cae9","#7986cb","#4fc3f7","#4dd0e1","#4db6ac","#81c784","#aed581","#dce775","#ffee58","#ffca28","#ff7043","#8d6e63","#bdbdbd"],l=t=>t||0===t?c[String(t).split("").reduce((t,e)=>t+e.charCodeAt(0),0)%c.length]:c[0],u=t=>t?t.slice().split(" ").map(t=>t[0]||"").join("").slice(0,2).toUpperCase():"",f=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25,r="string"==typeof t?t.trim():String(t??"");return r.length>e?`${r.substring(0,e)}...`:r},_=t=>{try{let e=window.localStorage.getItem(t);return e?JSON.parse(e):null}catch(t){return null}},p=(t,e)=>{try{return window.localStorage.setItem(t,JSON.stringify(e)),!0}catch(t){return!1}},h=t=>{try{return window.localStorage.removeItem(t),!0}catch{return!1}},m=t=>{try{let e=window.sessionStorage.getItem(t);return e?JSON.parse(e):null}catch{return null}},g=(t,e)=>{try{return window.sessionStorage.setItem(t,JSON.stringify(e)),!0}catch{return!1}},d=t=>{try{return window.sessionStorage.removeItem(t),!0}catch{return!1}};var I=x.Yq,D=x.bs,O=x.u5,k=x._S,A=x.Hd,C=x.Im,T=x.VP,U=x.RI,E=x.jw,j=x.B9,Y=x._U,M=x.sc,H=x.X,L=x.AP,F=x.J2,z=x.Xm,J=x.a$;export{I as formatDate,D as getColorFromId,O as getFormattedName,k as getLocalStorageItem,A as getSessionStorageItem,C as isEmpty,T as isEmptyArray,U as isEmptyObject,E as isEmptyString,j as isValidEmail,Y as parseDate,M as removeLocalStorageItem,H as removeSessionStorageItem,L as setLocalStorageItem,F as setSessionStorageItem,z as strEllipsis,J as subtractDaysFromDate};
package/dist/utils.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html><head><title>Rsbuild App</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/utils.js"></script></head><body><div id="root"></div></body></html>
1
+ <!doctype html><html><head><title>Rsbuild App</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/utils.12af4304.js"></script></head><body><div id="root"></div></body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ix_waterford/lib",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -65,15 +65,6 @@
65
65
  "swiper": "^12.0.3"
66
66
  },
67
67
  "peerDependenciesMeta": {
68
- "@dnd-kit/core": {
69
- "optional": true
70
- },
71
- "@dnd-kit/sortable": {
72
- "optional": true
73
- },
74
- "@dnd-kit/utilities": {
75
- "optional": true
76
- },
77
68
  "@lexical/history": {
78
69
  "optional": true
79
70
  },