davis-components 0.2.83 → 0.2.84
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/dist/{html-to-draftjs-Bnf_-KAQ.cjs → html-to-draftjs-By5ccLOv.cjs} +1 -1
- package/dist/{html-to-draftjs-ClI9EjUY.js → html-to-draftjs-DoRw0hwR.js} +2 -2
- package/dist/{immutable-DKARb8Pa.cjs → immutable-6mMJLdB9.cjs} +1 -1
- package/dist/{immutable-CIS6pMM7.js → immutable-CGix_xth.js} +1 -1
- package/dist/{main-D80J2qVi.cjs → main--EcTS82R.cjs} +1 -1
- package/dist/{main-eD0ofaxa.js → main-C58VDawY.js} +2 -2
- package/dist/{main-o7foZry_.js → main-COQWnSer.js} +12 -12
- package/dist/{main-CPWCpvVd.cjs → main-uXAHNREl.cjs} +1 -1
- package/dist/main.cjs.js +1 -1
- package/dist/main.css +1 -1
- package/dist/main.es.js +1 -1
- package/dist/{react-draft-wysiwyg-DPYMH5mf.cjs → react-draft-wysiwyg-BNDkkuIY.cjs} +1 -1
- package/dist/{react-draft-wysiwyg-BK2jsaCB.js → react-draft-wysiwyg-BXDsuSIg.js} +2 -2
- package/package.json +1 -1
|
@@ -14607,10 +14607,10 @@ const Qy = /* @__PURE__ */ ei(Xl), ew = /* @__PURE__ */ Dc({
|
|
|
14607
14607
|
ye,
|
|
14608
14608
|
{ stateToHTML: Be }
|
|
14609
14609
|
] = await Promise.all([
|
|
14610
|
-
import("./react-draft-wysiwyg-
|
|
14610
|
+
import("./react-draft-wysiwyg-BXDsuSIg.js").then((ot) => ot.r),
|
|
14611
14611
|
Promise.resolve().then(() => ew),
|
|
14612
|
-
import("./html-to-draftjs-
|
|
14613
|
-
import("./main-
|
|
14612
|
+
import("./html-to-draftjs-DoRw0hwR.js").then((ot) => ot.h),
|
|
14613
|
+
import("./main-C58VDawY.js")
|
|
14614
14614
|
]);
|
|
14615
14615
|
j.current = he;
|
|
14616
14616
|
const it = ye.default;
|
|
@@ -14762,14 +14762,14 @@ function tw(e) {
|
|
|
14762
14762
|
function Hs(e) {
|
|
14763
14763
|
return lr({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M15.28 5.22a.75.75 0 0 1 0 1.06L9.56 12l5.72 5.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-6.25-6.25a.75.75 0 0 1 0-1.06l6.25-6.25a.75.75 0 0 1 1.06 0Z" }, child: [] }] })(e);
|
|
14764
14764
|
}
|
|
14765
|
-
const rw = "
|
|
14765
|
+
const rw = "_list_9ff6d_1", aw = "_innertab_9ff6d_29", nw = "_dropdown_9ff6d_101", lw = "_arrow_9ff6d_151", Oa = {
|
|
14766
14766
|
list: rw,
|
|
14767
14767
|
innertab: aw,
|
|
14768
|
-
"tab-inactive": "_tab-
|
|
14769
|
-
"tab-active": "_tab-
|
|
14768
|
+
"tab-inactive": "_tab-inactive_9ff6d_67",
|
|
14769
|
+
"tab-active": "_tab-active_9ff6d_59",
|
|
14770
14770
|
dropdown: nw,
|
|
14771
|
-
"dropdown-gradient": "_dropdown-
|
|
14772
|
-
"dropdown-default": "_dropdown-
|
|
14771
|
+
"dropdown-gradient": "_dropdown-gradient_9ff6d_109",
|
|
14772
|
+
"dropdown-default": "_dropdown-default_9ff6d_119",
|
|
14773
14773
|
arrow: lw
|
|
14774
14774
|
}, iw = _0(
|
|
14775
14775
|
// eslint-disable-next-line react/prop-types
|
|
@@ -14863,7 +14863,7 @@ const rw = "_list_kenye_1", aw = "_innertab_kenye_29", nw = "_dropdown_kenye_101
|
|
|
14863
14863
|
className: ne(
|
|
14864
14864
|
Oa.dropdown,
|
|
14865
14865
|
u == p.title ? "!bg-success" : p.tabs.some((m) => s.includes(m.title)) ? Oa["dropdown-gradient"] : Oa["dropdown-default"],
|
|
14866
|
-
"flex
|
|
14866
|
+
"flex items-center gap-1 px-2 rounded cursor-pointer",
|
|
14867
14867
|
r ? "flex-row-reverse" : "flex-row",
|
|
14868
14868
|
n > 0 ? "!py-1 !my-auto" : "py-2"
|
|
14869
14869
|
),
|
|
@@ -14873,8 +14873,8 @@ const rw = "_list_kenye_1", aw = "_innertab_kenye_29", nw = "_dropdown_kenye_101
|
|
|
14873
14873
|
"span",
|
|
14874
14874
|
{
|
|
14875
14875
|
className: ne(
|
|
14876
|
-
u
|
|
14877
|
-
"text-2xs lg:text-xs xl:text-sm font-600 select-none"
|
|
14876
|
+
u === p.title ? "!text-white " : p.tabs.some((m) => s.includes(m.title)) ? "!text-black" : "",
|
|
14877
|
+
"text-2xs lg:text-xs xl:text-sm font-600 select-none mx-auto"
|
|
14878
14878
|
),
|
|
14879
14879
|
children: p.title
|
|
14880
14880
|
}
|
|
@@ -14894,7 +14894,7 @@ const rw = "_list_kenye_1", aw = "_innertab_kenye_29", nw = "_dropdown_kenye_101
|
|
|
14894
14894
|
/* @__PURE__ */ b.jsx(
|
|
14895
14895
|
"div",
|
|
14896
14896
|
{
|
|
14897
|
-
className: "absolute min-w-[
|
|
14897
|
+
className: "absolute !min-w-[45vw] md:!min-w-[20vw] xl:!min-w-[12vw] z-[1000] max-h-[216px] overflow-y-auto",
|
|
14898
14898
|
style: {
|
|
14899
14899
|
top: d.top + 4,
|
|
14900
14900
|
left: d.left
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Te=require("./immutable-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Te=require("./immutable-6mMJLdB9.cjs");require("./main--EcTS82R.cjs");function Oe(e){return Ie(e)||we(e)||Se()}function Se(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function we(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Ie(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function X(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r}function Z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X(r,!0).forEach(function(n){be(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function be(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function De(e,t){return ke(e)||Re(e,t)||Ae()}function Ae(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Re(e,t){var r=[],n=!0,l=!1,a=void 0;try{for(var i=e[Symbol.iterator](),o;!(n=(o=i.next()).done)&&(r.push(o.value),!(t&&r.length===t));n=!0);}catch(u){l=!0,a=u}finally{try{!n&&i.return!=null&&i.return()}finally{if(l)throw a}}return r}function ke(e){if(Array.isArray(e))return e}function me(e,t){if(e==null)return t;for(var r=De(t,2),n=r[0],l=r[1],a=Z({},n),i=Oe(l),o=0,u=Object.keys(e);o<u.length;o++){var s=u[o];if(n.hasOwnProperty(s)){var h=n[s];a[s]=Z({},h,{},e[s])}else a[s]=e[s],i.push(s)}return[a,i]}var J={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"};function M(e){if(e==null)return e;for(var t={},r=!1,n=0,l=Object.keys(e);n<l.length;n++){var a=l[n],i=a;J.hasOwnProperty(a)&&(i=J[a],r=!0),t[i]=e[a]}return r?t:e}var Le=/^(moz|ms|o|webkit)-/,Pe=/^\d+$/,Ce=/([A-Z])/g,_e={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Be(e){return e.replace(Ce,"-$1").toLowerCase().replace(Le,"-$1-")}function Ne(e,t){var r;return typeof t=="string"?r=Pe.test(t):(r=!0,t=String(t)),!r||t==="0"||_e[e]===!0?t:t+"px"}function R(e){return Object.keys(e).map(function(t){var r=Ne(t,e[t]),n=Be(t);return"".concat(n,": ").concat(r)}).join("; ")}var f={UNSTYLED:"unstyled",HEADER_ONE:"header-one",HEADER_TWO:"header-two",HEADER_THREE:"header-three",HEADER_FOUR:"header-four",HEADER_FIVE:"header-five",HEADER_SIX:"header-six",UNORDERED_LIST_ITEM:"unordered-list-item",ORDERED_LIST_ITEM:"ordered-list-item",BLOCKQUOTE:"blockquote",PULLQUOTE:"pullquote",CODE:"code-block",ATOMIC:"atomic"},S={LINK:"LINK",IMAGE:"IMAGE"},I={BOLD:"BOLD",CODE:"CODE",ITALIC:"ITALIC",STRIKETHROUGH:"STRIKETHROUGH",UNDERLINE:"UNDERLINE"},ae=Te.requireImmutable(),U=new ae.OrderedSet;function je(e,t){for(var r=null,n=null,l=[],a=0,i=0,o=e.length;i<o;i++){n=r;var u=t.get(i);r=u?u.getEntity():null,i>0&&r!==n&&(l.push([n,ee(e.slice(a,i),t.slice(a,i))]),a=i)}return l.push([r,ee(e.slice(a),t.slice(a))]),l}function ee(e,t){for(var r=U,n=U,l=[],a=0,i=0,o=e.length;i<o;i++){n=r;var u=t.get(i);r=u?u.getStyle():U,i>0&&!ae.is(r,n)&&(l.push([e.slice(a,i),n]),a=i)}return l.push([e.slice(a),r]),l}var E,k,m;function re(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r}function L(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?re(r,!0).forEach(function(n){c(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x(e,t){return Ue(e)||Me(e,t)||He()}function He(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Me(e,t){var r=[],n=!0,l=!1,a=void 0;try{for(var i=e[Symbol.iterator](),o;!(n=(o=i.next()).done)&&(r.push(o.value),!(t&&r.length===t));n=!0);}catch(u){l=!0,a=u}finally{try{!n&&i.return!=null&&i.return()}finally{if(l)throw a}}return r}function Ue(e){if(Array.isArray(e))return e}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Fe(e,t,r){return t&&We(e.prototype,t),e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ie=I.BOLD,W=I.CODE,le=I.ITALIC,oe=I.STRIKETHROUGH,ue=I.UNDERLINE,Ge=" ",se="<br>",te=/^data-([a-z0-9-]+)$/,Ye=(E={},c(E,ie,{element:"strong"}),c(E,W,{element:"code"}),c(E,le,{element:"em"}),c(E,oe,{element:"del"}),c(E,ue,{element:"u"}),E),qe=[ie,le,ue,oe,W],P=(k={},c(k,S.LINK,{url:"href",href:"href",rel:"rel",target:"target",title:"title",className:"class"}),c(k,S.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),k),C=(m={},c(m,S.LINK,function(e,t){for(var r=P.hasOwnProperty(e)?P[e]:{},n=t.getData(),l={},a=0,i=Object.keys(n);a<i.length;a++){var o=i[a],u=n[o];if(r.hasOwnProperty(o)){var s=r[o];l[s]=u}else te.test(o)&&(l[o]=u)}return l}),c(m,S.IMAGE,function(e,t){for(var r=P.hasOwnProperty(e)?P[e]:{},n=t.getData(),l={},a=0,i=Object.keys(n);a<i.length;a++){var o=i[a],u=n[o];if(r.hasOwnProperty(o)){var s=r[o];l[s]=u}else te.test(o)&&(l[o]=u)}return l}),m);function ne(e,t){switch(e){case f.HEADER_ONE:return["h1"];case f.HEADER_TWO:return["h2"];case f.HEADER_THREE:return["h3"];case f.HEADER_FOUR:return["h4"];case f.HEADER_FIVE:return["h5"];case f.HEADER_SIX:return["h6"];case f.UNORDERED_LIST_ITEM:case f.ORDERED_LIST_ITEM:return["li"];case f.BLOCKQUOTE:return["blockquote"];case f.CODE:return["pre","code"];case f.ATOMIC:return["figure"];default:return t===null?[]:[t||"p"]}}function ze(e){switch(e){case f.UNORDERED_LIST_ITEM:return"ul";case f.ORDERED_LIST_ITEM:return"ol";default:return null}}var Ke=function(){function e(t,r){xe(this,e),c(this,"blocks",void 0),c(this,"contentState",void 0),c(this,"currentBlock",void 0),c(this,"indentLevel",void 0),c(this,"output",void 0),c(this,"totalBlocks",void 0),c(this,"wrapperTag",void 0),c(this,"options",void 0),c(this,"inlineStyles",void 0),c(this,"inlineStyleFn",void 0),c(this,"styleOrder",void 0),r==null&&(r={}),this.contentState=t,this.options=r;var n=me(r.inlineStyles,[Ye,qe]),l=x(n,2),a=l[0],i=l[1];this.inlineStyles=a,this.inlineStyleFn=r.inlineStyleFn,this.styleOrder=i}return Fe(e,[{key:"generate",value:function(){for(this.output=[],this.blocks=this.contentState.getBlocksAsArray(),this.totalBlocks=this.blocks.length,this.currentBlock=0,this.indentLevel=0,this.wrapperTag=null;this.currentBlock<this.totalBlocks;)this.processBlock();return this.closeWrapperTag(),this.output.join("").trim()}},{key:"processBlock",value:function(){var r=this.options,n=r.blockRenderers,l=r.defaultBlockTag,a=this.blocks[this.currentBlock],i=a.getType(),o=ze(i);this.wrapperTag!==o&&(this.wrapperTag&&this.closeWrapperTag(),o&&this.openWrapperTag(o)),this.indent();var u=n!=null&&n.hasOwnProperty(i)?n[i]:null,s=u?u(a):null;if(s!=null){this.output.push(s),this.output.push(`
|
|
2
2
|
`),this.currentBlock+=1;return}this.writeStartTag(a,l),this.output.push(this.renderBlockContent(a));var h=this.getNextBlock();if($e(i)&&h&&h.getDepth()===a.getDepth()+1){this.output.push(`
|
|
3
3
|
`);var y=this.wrapperTag;this.wrapperTag=null,this.indentLevel+=1,this.currentBlock+=1,this.processBlocksAtDepth(h.getDepth()),this.wrapperTag=y,this.indentLevel-=1,this.indent()}else this.currentBlock+=1;this.writeEndTag(a,l)}},{key:"processBlocksAtDepth",value:function(r){for(var n=this.blocks[this.currentBlock];n&&n.getDepth()===r;)this.processBlock(),n=this.blocks[this.currentBlock];this.closeWrapperTag()}},{key:"getNextBlock",value:function(){return this.blocks[this.currentBlock+1]}},{key:"writeStartTag",value:function(r,n){var l=ne(r.getType(),n),a;if(this.options.blockStyleFn){var i=this.options.blockStyleFn(r)||{},o=i.attributes,u=i.style;if(o=M(o),u!=null){var s=R(u);o=o==null?{style:s}:L({},o,{style:s})}a=O(o)}else a="";var h=!0,y=!1,g=void 0;try{for(var v=l[Symbol.iterator](),p;!(h=(p=v.next()).done);h=!0){var b=p.value;this.output.push("<".concat(b).concat(a,">"))}}catch(w){y=!0,g=w}finally{try{!h&&v.return!=null&&v.return()}finally{if(y)throw g}}}},{key:"writeEndTag",value:function(r,n){var l=ne(r.getType(),n);if(l.length===1)this.output.push("</".concat(l[0],`>
|
|
4
4
|
`));else{var a=[],i=!0,o=!1,u=void 0;try{for(var s=l[Symbol.iterator](),h;!(i=(h=s.next()).done);i=!0){var y=h.value;a.unshift("</".concat(y,">"))}}catch(g){o=!0,u=g}finally{try{!i&&s.return!=null&&s.return()}finally{if(o)throw u}}this.output.push(a.join("")+`
|
package/dist/main.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./main
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./main--EcTS82R.cjs");exports.ArchiveTable=e.ArchiveTable;exports.Button=e.Button;exports.CFCHeader=e.CFCHeader;exports.CheckBox=e.CheckBox;exports.CheckBoxGroup=e.CheckBoxGroup;exports.DateInput=e.DateInput;exports.Divider=e.Divider;exports.Dropdown=e.Dropdown;exports.EmptyForm=e.EmptyForm;exports.FieldSet=e.FieldSet;exports.FileField=e.FileField;exports.FormFields=e.FormFields;exports.HTML=e.HTML;exports.Label=e.Label;exports.Modal=e.Modal;exports.Page=e.Page;exports.PageCard=e.PageCard;exports.Prescription=e.Prescription;exports.ProgressChart=e.ProgressChart;exports.ProjectName=e.ProjectName;exports.Radio=e.Radio;exports.RadioOptions=e.RadioOptions;exports.Select=e.Select;exports.SpecialistDashboardPage=e.SpecialistDashboardPage;exports.SpecialistFormPageHeader=e.Header;exports.SpecialistPrintPage=e.SpecialistPrintPage;exports.Tab=e.Tab;exports.Table=e.Table;exports.TextEditor=e.TextEditor;exports.TextField=e.TextField;
|