@purpurds/date-field 8.5.0 → 8.5.2

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/LICENSE.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  Name: @purpurds/text-field
2
- Version: 8.4.0
2
+ Version: 8.5.1
3
3
  License: AGPL-3.0-only
4
4
  Private: false
5
5
 
@@ -10,7 +10,7 @@
10
10
  Copyright (c) 2018 Jed Watson.
11
11
  Licensed under the MIT License (MIT), see
12
12
  http://jedwatson.github.io/classnames
13
- */var Me;function It(){return Me||(Me=1,(function(t){(function(){var n={}.hasOwnProperty;function e(){for(var i="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(i=a(i,r.call(this,u)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return this&&this[i]||i;if(typeof i!="object")return"";if(Array.isArray(i))return e.apply(this,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var u in i)n.call(i,u)&&i[u]&&(s=a(s,this&&this[u]||u));return s}function a(i,s){return s?i?i+" "+s:i+s:i}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(Oe)),Oe.exports}var Rt=It();const Ft=Lt(Rt),At={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},Qt=Ft.bind(At),ke="purpur-icon",St="md",Bt=t=>t.filter(n=>Object.keys(n).length>=1).map(n=>`${n.name}="${n.value}"`).join(" "),Gt=({content:t="",title:n}={})=>{const e=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},n?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],r=n?`<title>${n}</title>`:"";return`<svg ${Bt(e)}>${r}${t}</svg>`},Xt=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Ue=({svg:t,allyTitle:n,className:e,size:r=St,...a})=>{const i=Gt({content:Xt(t.svg),title:n}),s=Qt(e,ke,`${ke}--${r}`);return f.jsx("span",{className:s,dangerouslySetInnerHTML:{__html:i},...a})};Ue.displayName="Icon";const Vt={name:"error-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',keywords:["error-filled"],category:"status"};function zt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var De={exports:{}};/*!
13
+ */var Me;function It(){return Me||(Me=1,(function(t){(function(){var n={}.hasOwnProperty;function e(){for(var i="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(i=a(i,r.call(this,u)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return this&&this[i]||i;if(typeof i!="object")return"";if(Array.isArray(i))return e.apply(this,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var u in i)n.call(i,u)&&i[u]&&(s=a(s,this&&this[u]||u));return s}function a(i,s){return s?i?i+" "+s:i+s:i}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(Oe)),Oe.exports}var Rt=It();const Ft=Lt(Rt),At={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},Qt=Ft.bind(At),ke="purpur-icon",St="md",Bt=t=>t.filter(n=>Object.keys(n).length>=1).map(n=>`${n.name}="${n.value}"`).join(" "),Gt=({content:t="",title:n}={})=>{const e=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},n?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],r=n?`<title>${n}</title>`:"";return`<svg ${Bt(e)}>${r}${t}</svg>`},Xt=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Ue=({svg:t,allyTitle:n,className:e,size:r=St,...a})=>{const i=Gt({content:Xt(t.svg),title:n}),s=Qt(ke,`${ke}--${r}`,e);return f.jsx("span",{className:s,dangerouslySetInnerHTML:{__html:i},...a})};Ue.displayName="Icon";const Vt={name:"error-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',keywords:["error-filled"],category:"status"};function zt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var De={exports:{}};/*!
14
14
  Copyright (c) 2018 Jed Watson.
15
15
  Licensed under the MIT License (MIT), see
16
16
  http://jedwatson.github.io/classnames
@@ -22,7 +22,7 @@
22
22
  Copyright (c) 2018 Jed Watson.
23
23
  Licensed under the MIT License (MIT), see
24
24
  http://jedwatson.github.io/classnames
25
- */var qe;function cr(){return qe||(qe=1,(function(t){(function(){var n={}.hasOwnProperty;function e(){for(var i="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(i=a(i,r.call(this,u)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return this&&this[i]||i;if(typeof i!="object")return"";if(Array.isArray(i))return e.apply(this,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var u in i)n.call(i,u)&&i[u]&&(s=a(s,this&&this[u]||u));return s}function a(i,s){return s?i?i+" "+s:i+s:i}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(Ee)),Ee.exports}var lr=cr();const dr=or(lr),fr={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},pr=dr.bind(fr),We="purpur-icon",hr="md",mr=t=>t.filter(n=>Object.keys(n).length>=1).map(n=>`${n.name}="${n.value}"`).join(" "),wr=({content:t="",title:n}={})=>{const e=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},n?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],r=n?`<title>${n}</title>`:"";return`<svg ${mr(e)}>${r}${t}</svg>`},yr=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),he=({svg:t,allyTitle:n,className:e,size:r=hr,...a})=>{const i=wr({content:yr(t.svg),title:n}),s=pr(e,We,`${We}--${r}`);return f.jsx("span",{className:s,dangerouslySetInnerHTML:{__html:i},...a})};he.displayName="Icon";const _r={name:"check-circle-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm4.712-12.491a.875.875 0 1 0-1.424-1.018l-4.4 6.16-2.27-2.27a.875.875 0 0 0-1.237 1.238l3 3a.875.875 0 0 0 1.331-.11l5-7Z" clip-rule="evenodd"/></svg>',keywords:["check-circle-filled"],category:"status"},et=t=>f.jsx(he,{...t,svg:_r});et.displayName="IconCheckCircleFilled";const gr={name:"close",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',keywords:["close"],category:"utility"},tt=t=>f.jsx(he,{...t,svg:gr});tt.displayName="IconClose";function $e(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function br(...t){return n=>{let e=!1;const r=t.map(a=>{const i=$e(a,n);return!e&&typeof i=="function"&&(e=!0),i});if(e)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():$e(t[a],null)}}}}function xr(t){const n=vr(t),e=E.forwardRef((r,a)=>{const{children:i,...s}=r,u=E.Children.toArray(i),d=u.find(Or);if(d){const c=d.props.children,w=u.map(_=>_===d?E.Children.count(c)>1?E.Children.only(null):E.isValidElement(c)?c.props.children:null:_);return f.jsx(n,{...s,ref:a,children:E.isValidElement(c)?E.cloneElement(c,void 0,w):null})}return f.jsx(n,{...s,ref:a,children:i})});return e.displayName=`${t}.Slot`,e}function vr(t){const n=E.forwardRef((e,r)=>{const{children:a,...i}=e;if(E.isValidElement(a)){const s=kr(a),u=Mr(i,a.props);return a.type!==E.Fragment&&(u.ref=r?br(r,s):s),E.cloneElement(a,u)}return E.Children.count(a)>1?E.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var Pr=Symbol("radix.slottable");function Or(t){return E.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Pr}function Mr(t,n){const e={...n};for(const r in n){const a=t[r],i=n[r];/^on[A-Z]/.test(r)?a&&i?e[r]=(...s)=>{const u=i(...s);return a(...s),u}:a&&(e[r]=a):r==="style"?e[r]={...a,...i}:r==="className"&&(e[r]=[a,i].filter(Boolean).join(" "))}return{...t,...e}}function kr(t){var n,e;let r=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?t.ref:(r=(e=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:e.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?t.props.ref:t.props.ref||t.ref)}var Dr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Tr=Dr.reduce((t,n)=>{const e=xr(`Primitive.${n}`),r=E.forwardRef((a,i)=>{const{asChild:s,...u}=a,d=s?e:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(d,{...u,ref:i})});return r.displayName=`Primitive.${n}`,{...t,[n]:r}},{}),Nr="Label",rt=E.forwardRef((t,n)=>f.jsx(Tr.label,{...t,ref:n,onMouseDown:e=>{var r;e.target.closest("button, input, select, textarea")||((r=t.onMouseDown)==null||r.call(t,e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}}));rt.displayName=Nr;var jr=rt;function Yr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var He={exports:{}};/*!
25
+ */var qe;function cr(){return qe||(qe=1,(function(t){(function(){var n={}.hasOwnProperty;function e(){for(var i="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(i=a(i,r.call(this,u)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return this&&this[i]||i;if(typeof i!="object")return"";if(Array.isArray(i))return e.apply(this,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var u in i)n.call(i,u)&&i[u]&&(s=a(s,this&&this[u]||u));return s}function a(i,s){return s?i?i+" "+s:i+s:i}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(Ee)),Ee.exports}var lr=cr();const dr=or(lr),fr={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},pr=dr.bind(fr),We="purpur-icon",hr="md",mr=t=>t.filter(n=>Object.keys(n).length>=1).map(n=>`${n.name}="${n.value}"`).join(" "),wr=({content:t="",title:n}={})=>{const e=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},n?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],r=n?`<title>${n}</title>`:"";return`<svg ${mr(e)}>${r}${t}</svg>`},yr=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),he=({svg:t,allyTitle:n,className:e,size:r=hr,...a})=>{const i=wr({content:yr(t.svg),title:n}),s=pr(We,`${We}--${r}`,e);return f.jsx("span",{className:s,dangerouslySetInnerHTML:{__html:i},...a})};he.displayName="Icon";const _r={name:"check-circle-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm4.712-12.491a.875.875 0 1 0-1.424-1.018l-4.4 6.16-2.27-2.27a.875.875 0 0 0-1.237 1.238l3 3a.875.875 0 0 0 1.331-.11l5-7Z" clip-rule="evenodd"/></svg>',keywords:["check-circle-filled"],category:"status"},et=t=>f.jsx(he,{...t,svg:_r});et.displayName="IconCheckCircleFilled";const gr={name:"close",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',keywords:["close"],category:"utility"},tt=t=>f.jsx(he,{...t,svg:gr});tt.displayName="IconClose";function $e(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function br(...t){return n=>{let e=!1;const r=t.map(a=>{const i=$e(a,n);return!e&&typeof i=="function"&&(e=!0),i});if(e)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():$e(t[a],null)}}}}function xr(t){const n=vr(t),e=E.forwardRef((r,a)=>{const{children:i,...s}=r,u=E.Children.toArray(i),d=u.find(Or);if(d){const c=d.props.children,w=u.map(_=>_===d?E.Children.count(c)>1?E.Children.only(null):E.isValidElement(c)?c.props.children:null:_);return f.jsx(n,{...s,ref:a,children:E.isValidElement(c)?E.cloneElement(c,void 0,w):null})}return f.jsx(n,{...s,ref:a,children:i})});return e.displayName=`${t}.Slot`,e}function vr(t){const n=E.forwardRef((e,r)=>{const{children:a,...i}=e;if(E.isValidElement(a)){const s=kr(a),u=Mr(i,a.props);return a.type!==E.Fragment&&(u.ref=r?br(r,s):s),E.cloneElement(a,u)}return E.Children.count(a)>1?E.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var Pr=Symbol("radix.slottable");function Or(t){return E.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Pr}function Mr(t,n){const e={...n};for(const r in n){const a=t[r],i=n[r];/^on[A-Z]/.test(r)?a&&i?e[r]=(...s)=>{const u=i(...s);return a(...s),u}:a&&(e[r]=a):r==="style"?e[r]={...a,...i}:r==="className"&&(e[r]=[a,i].filter(Boolean).join(" "))}return{...t,...e}}function kr(t){var n,e;let r=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?t.ref:(r=(e=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:e.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?t.props.ref:t.props.ref||t.ref)}var Dr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Tr=Dr.reduce((t,n)=>{const e=xr(`Primitive.${n}`),r=E.forwardRef((a,i)=>{const{asChild:s,...u}=a,d=s?e:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(d,{...u,ref:i})});return r.displayName=`Primitive.${n}`,{...t,[n]:r}},{}),Nr="Label",rt=E.forwardRef((t,n)=>f.jsx(Tr.label,{...t,ref:n,onMouseDown:e=>{var r;e.target.closest("button, input, select, textarea")||((r=t.onMouseDown)==null||r.call(t,e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}}));rt.displayName=Nr;var jr=rt;function Yr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var He={exports:{}};/*!
26
26
  Copyright (c) 2018 Jed Watson.
27
27
  Licensed under the MIT License (MIT), see
28
28
  http://jedwatson.github.io/classnames