@adam-milo/ui 1.0.139 → 1.0.141

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.
Files changed (144) hide show
  1. package/dist/index100.cjs +1 -1
  2. package/dist/index100.js +1 -1
  3. package/dist/index101.cjs +1 -1
  4. package/dist/index101.js +1 -1
  5. package/dist/index102.cjs +1 -1
  6. package/dist/index102.js +1 -1
  7. package/dist/index103.cjs +1 -1
  8. package/dist/index103.js +1 -1
  9. package/dist/index104.cjs +1 -1
  10. package/dist/index104.js +1 -1
  11. package/dist/index105.cjs +1 -1
  12. package/dist/index105.js +1 -1
  13. package/dist/index106.cjs +1 -1
  14. package/dist/index106.js +1 -1
  15. package/dist/index107.cjs +1 -1
  16. package/dist/index107.js +1 -1
  17. package/dist/index108.cjs +1 -1
  18. package/dist/index108.js +1 -1
  19. package/dist/index109.cjs +1 -1
  20. package/dist/index109.js +1 -1
  21. package/dist/index110.cjs +1 -1
  22. package/dist/index110.js +1 -1
  23. package/dist/index111.cjs +1 -1
  24. package/dist/index111.js +1 -1
  25. package/dist/index112.cjs +1 -1
  26. package/dist/index112.js +1 -1
  27. package/dist/index113.cjs +1 -1
  28. package/dist/index113.js +1 -1
  29. package/dist/index114.cjs +1 -1
  30. package/dist/index114.js +1 -1
  31. package/dist/index115.cjs +1 -1
  32. package/dist/index115.js +1 -1
  33. package/dist/index116.cjs +1 -1
  34. package/dist/index116.js +1 -1
  35. package/dist/index117.cjs +1 -1
  36. package/dist/index117.js +1 -1
  37. package/dist/index118.cjs +1 -1
  38. package/dist/index118.js +1 -1
  39. package/dist/index119.cjs +1 -1
  40. package/dist/index119.js +1 -1
  41. package/dist/index120.cjs +1 -1
  42. package/dist/index120.js +1 -1
  43. package/dist/index121.cjs +1 -1
  44. package/dist/index121.js +1 -1
  45. package/dist/index122.cjs +1 -1
  46. package/dist/index122.js +1 -1
  47. package/dist/index123.cjs +1 -1
  48. package/dist/index123.js +1 -1
  49. package/dist/index124.cjs +1 -1
  50. package/dist/index124.js +1 -1
  51. package/dist/index125.cjs +1 -1
  52. package/dist/index125.js +1 -1
  53. package/dist/index126.cjs +1 -1
  54. package/dist/index126.js +1 -1
  55. package/dist/index127.cjs +1 -0
  56. package/dist/index127.js +1 -0
  57. package/dist/index128.cjs +1 -0
  58. package/dist/index128.js +1 -0
  59. package/dist/index129.cjs +1 -0
  60. package/dist/index129.js +1 -0
  61. package/dist/index15.cjs +1 -1
  62. package/dist/index15.js +1 -1
  63. package/dist/index41.cjs +1 -1
  64. package/dist/index41.js +11 -11
  65. package/dist/index42.cjs +1 -1
  66. package/dist/index42.js +1 -1
  67. package/dist/index43.cjs +1 -1
  68. package/dist/index43.js +1 -1
  69. package/dist/index44.cjs +1 -1
  70. package/dist/index44.js +1 -1
  71. package/dist/index45.cjs +1 -1
  72. package/dist/index45.js +1 -1
  73. package/dist/index46.cjs +1 -1
  74. package/dist/index46.js +1 -1
  75. package/dist/index47.cjs +1 -1
  76. package/dist/index47.js +1 -1
  77. package/dist/index48.cjs +1 -1
  78. package/dist/index48.js +1 -1
  79. package/dist/index49.cjs +1 -1
  80. package/dist/index49.js +1 -1
  81. package/dist/index50.cjs +1 -1
  82. package/dist/index50.js +1 -1
  83. package/dist/index51.cjs +1 -1
  84. package/dist/index51.js +1 -1
  85. package/dist/index52.cjs +1 -1
  86. package/dist/index52.js +1 -1
  87. package/dist/index53.cjs +1 -1
  88. package/dist/index53.js +1 -1
  89. package/dist/index54.cjs +1 -1
  90. package/dist/index54.js +1 -1
  91. package/dist/index55.cjs +1 -1
  92. package/dist/index55.js +1 -1
  93. package/dist/index56.cjs +1 -1
  94. package/dist/index56.js +1 -1
  95. package/dist/index57.cjs +1 -1
  96. package/dist/index57.js +1 -1
  97. package/dist/index58.cjs +1 -1
  98. package/dist/index58.js +1 -1
  99. package/dist/index59.cjs +1 -1
  100. package/dist/index59.js +1 -1
  101. package/dist/index61.cjs +1 -1
  102. package/dist/index61.js +1 -1
  103. package/dist/index62.cjs +1 -1
  104. package/dist/index62.js +1 -1
  105. package/dist/index63.cjs +1 -1
  106. package/dist/index63.js +1 -1
  107. package/dist/index64.cjs +1 -1
  108. package/dist/index64.js +1 -1
  109. package/dist/index65.cjs +1 -1
  110. package/dist/index65.js +1 -1
  111. package/dist/index66.cjs +1 -1
  112. package/dist/index66.js +1 -1
  113. package/dist/index67.cjs +1 -1
  114. package/dist/index67.js +1 -1
  115. package/dist/index69.cjs +1 -1
  116. package/dist/index69.js +1 -1
  117. package/dist/index74.cjs +1 -1
  118. package/dist/index74.js +1 -1
  119. package/dist/index96.cjs +1 -1
  120. package/dist/index96.js +2 -1
  121. package/dist/index97.cjs +1 -1
  122. package/dist/index97.js +1 -1
  123. package/dist/index98.cjs +1 -1
  124. package/dist/index98.js +1 -1
  125. package/dist/index99.cjs +1 -1
  126. package/dist/index99.js +1 -1
  127. package/dist/src/components/data-display/datatable/DataTable.component.d.ts.map +1 -1
  128. package/dist/src/components/data-display/datatable/DataTable.styles.d.ts +9 -1
  129. package/dist/src/components/data-display/datatable/DataTable.styles.d.ts.map +1 -1
  130. package/dist/src/components/data-display/datatable/DataTable.types.d.ts +11 -0
  131. package/dist/src/components/data-display/datatable/DataTable.types.d.ts.map +1 -1
  132. package/dist/src/components/data-display/datatable/DataTableTruncatedCell.component.d.ts +12 -0
  133. package/dist/src/components/data-display/datatable/DataTableTruncatedCell.component.d.ts.map +1 -0
  134. package/dist/src/components/data-display/datatable/dataTableOverflow.utils.d.ts +3 -0
  135. package/dist/src/components/data-display/datatable/dataTableOverflow.utils.d.ts.map +1 -0
  136. package/dist/src/components/data-display/datatable/useLockedColumnWidths.d.ts +13 -0
  137. package/dist/src/components/data-display/datatable/useLockedColumnWidths.d.ts.map +1 -0
  138. package/dist/src/components/forms/phone-input/PhoneInput.component.d.ts.map +1 -1
  139. package/dist/src/components/forms/phone-input/PhoneInput.types.d.ts +4 -1
  140. package/dist/src/components/forms/phone-input/PhoneInput.types.d.ts.map +1 -1
  141. package/dist/src/components/forms/phone-input/countries.d.ts +2 -2
  142. package/dist/src/components/forms/phone-input/countries.d.ts.map +1 -1
  143. package/dist/styles.css +1 -1
  144. package/package.json +1 -1
package/dist/index65.js CHANGED
@@ -1,4 +1,4 @@
1
- import{jsxs as r,jsx as e,Fragment as o}from"react/jsx-runtime";import{forwardRef as t,useId as a}from"react";import{cn as n}from"./index67.js";import{svgStyles as s,colorStyles as i,sizeStyles as c,rootStyles as l}from"./index122.js";const d=t(({size:t="md",color:d="action",variant:p="default",label:m="Loading",className:u,"data-cy":h,"data-testid":g,...y},f)=>{const x=`spinner-grad-${a().replace(/:/g,"")}`,k=h||"spinner",v=g||"spinner",b="segmented"===p,N=`url(#${x})`;/* @__PURE__ */
1
+ import{jsxs as r,jsx as e,Fragment as o}from"react/jsx-runtime";import{forwardRef as t,useId as a}from"react";import{cn as n}from"./index67.js";import{svgStyles as s,colorStyles as i,sizeStyles as c,rootStyles as l}from"./index124.js";const d=t(({size:t="md",color:d="action",variant:p="default",label:m="Loading",className:u,"data-cy":h,"data-testid":g,...y},f)=>{const x=`spinner-grad-${a().replace(/:/g,"")}`,k=h||"spinner",v=g||"spinner",b="segmented"===p,N=`url(#${x})`;/* @__PURE__ */
2
2
  return r("div",{ref:f,className:n(l,c[t],b&&"orange"===d?"text-[var(--color-button-orange)]":i[d],u),role:"status","aria-label":m,"data-cy":k,"data-testid":v,"data-variant":p,...y,children:[
3
3
  /* @__PURE__ */e("svg",{className:s,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:/* @__PURE__ */r(o,b?{children:[
4
4
  /* @__PURE__ */e("defs",{children:/* @__PURE__ */r("linearGradient",{id:x,x1:"17",y1:"3",x2:"3",y2:"17",gradientUnits:"userSpaceOnUse",children:[
package/dist/index66.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),a=require("./index67.cjs"),r=require("./index123.cjs"),t=s.forwardRef(({size:t="md",label:i="AI is processing",className:n,"data-cy":l,"data-testid":o,...c},d)=>{const u=`ai-loader-grad-${s.useId().replace(/:/g,"")}`,m=l||"ai-loader",C=o||"ai-loader";return e.jsxs("div",{ref:d,className:a.cn(r.rootStyles,r.containerStyles[t],n),role:"status","aria-label":i,"data-cy":m,"data-testid":C,...c,children:[e.jsxs("svg",{className:"absolute inset-0 w-full h-full",viewBox:"0 0 124 130",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:u,x1:"0%",y1:"0%",x2:"100%",y2:"100%",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0%",stopColor:"var(--color-lime)"}),e.jsx("stop",{offset:"50%",stopColor:"var(--color-teal-bright)"}),e.jsx("stop",{offset:"100%",stopColor:"var(--color-button-blue)"})]})}),e.jsx("g",{className:"motion-reduce:animate-none animate-[pulse_2s_ease-in-out_infinite]",children:e.jsx("path",{d:"M33.787 0C34.644 7.815 37.572 15.321 42.293 21.789C47.014 28.257 53.367 33.466 60.698 36.94C53.367 40.414 47.014 45.623 42.293 52.091C37.572 58.559 34.644 66.065 33.787 73.88C32.93 66.065 30.002 58.559 25.281 52.091C20.56 45.623 14.207 40.414 6.876 36.94C14.207 33.466 20.56 28.257 25.281 21.789C30.002 15.321 32.93 7.815 33.787 0Z",fill:`url(#${u})`,className:"origin-center"})}),e.jsx("g",{className:"motion-reduce:animate-none animate-[pulse_2s_ease-in-out_0.3s_infinite]",transform:"translate(80, 42)",children:e.jsx("path",{d:"M21.897 0C22.464 5.062 24.409 9.921 27.486 14.108C30.564 18.295 34.633 21.657 39.294 23.906C34.633 26.155 30.564 29.517 27.486 33.704C24.409 37.891 22.464 42.75 21.897 47.812C21.33 42.75 19.385 37.891 16.308 33.704C13.231 29.517 9.161 26.155 4.5 23.906C9.161 21.657 13.231 18.295 16.308 14.108C19.385 9.921 21.33 5.062 21.897 0Z",fill:`url(#${u})`,className:"origin-center"})}),e.jsx("g",{className:"motion-reduce:animate-none animate-[pulse_2s_ease-in-out_0.6s_infinite]",transform:"translate(48, 101)",children:e.jsx("path",{d:"M14.234 0C14.602 3.289 15.842 6.445 17.827 9.166C19.812 11.887 22.473 14.078 25.558 15.534C22.473 16.99 19.812 19.181 17.827 21.902C15.842 24.623 14.602 27.779 14.234 31.068C13.866 27.779 12.626 24.623 10.641 21.902C8.656 19.181 5.995 16.99 2.91 15.534C5.995 14.078 8.656 11.887 10.641 9.166C12.626 6.445 13.866 3.289 14.234 0Z",fill:`url(#${u})`,className:"origin-center"})})]}),e.jsx("span",{className:"sr-only",children:i})]})});t.displayName="AiLoader",exports.AiLoader=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),a=require("./index67.cjs"),r=require("./index125.cjs"),t=s.forwardRef(({size:t="md",label:i="AI is processing",className:n,"data-cy":l,"data-testid":o,...c},d)=>{const u=`ai-loader-grad-${s.useId().replace(/:/g,"")}`,m=l||"ai-loader",C=o||"ai-loader";return e.jsxs("div",{ref:d,className:a.cn(r.rootStyles,r.containerStyles[t],n),role:"status","aria-label":i,"data-cy":m,"data-testid":C,...c,children:[e.jsxs("svg",{className:"absolute inset-0 w-full h-full",viewBox:"0 0 124 130",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:u,x1:"0%",y1:"0%",x2:"100%",y2:"100%",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0%",stopColor:"var(--color-lime)"}),e.jsx("stop",{offset:"50%",stopColor:"var(--color-teal-bright)"}),e.jsx("stop",{offset:"100%",stopColor:"var(--color-button-blue)"})]})}),e.jsx("g",{className:"motion-reduce:animate-none animate-[pulse_2s_ease-in-out_infinite]",children:e.jsx("path",{d:"M33.787 0C34.644 7.815 37.572 15.321 42.293 21.789C47.014 28.257 53.367 33.466 60.698 36.94C53.367 40.414 47.014 45.623 42.293 52.091C37.572 58.559 34.644 66.065 33.787 73.88C32.93 66.065 30.002 58.559 25.281 52.091C20.56 45.623 14.207 40.414 6.876 36.94C14.207 33.466 20.56 28.257 25.281 21.789C30.002 15.321 32.93 7.815 33.787 0Z",fill:`url(#${u})`,className:"origin-center"})}),e.jsx("g",{className:"motion-reduce:animate-none animate-[pulse_2s_ease-in-out_0.3s_infinite]",transform:"translate(80, 42)",children:e.jsx("path",{d:"M21.897 0C22.464 5.062 24.409 9.921 27.486 14.108C30.564 18.295 34.633 21.657 39.294 23.906C34.633 26.155 30.564 29.517 27.486 33.704C24.409 37.891 22.464 42.75 21.897 47.812C21.33 42.75 19.385 37.891 16.308 33.704C13.231 29.517 9.161 26.155 4.5 23.906C9.161 21.657 13.231 18.295 16.308 14.108C19.385 9.921 21.33 5.062 21.897 0Z",fill:`url(#${u})`,className:"origin-center"})}),e.jsx("g",{className:"motion-reduce:animate-none animate-[pulse_2s_ease-in-out_0.6s_infinite]",transform:"translate(48, 101)",children:e.jsx("path",{d:"M14.234 0C14.602 3.289 15.842 6.445 17.827 9.166C19.812 11.887 22.473 14.078 25.558 15.534C22.473 16.99 19.812 19.181 17.827 21.902C15.842 24.623 14.602 27.779 14.234 31.068C13.866 27.779 12.626 24.623 10.641 21.902C8.656 19.181 5.995 16.99 2.91 15.534C5.995 14.078 8.656 11.887 10.641 9.166C12.626 6.445 13.866 3.289 14.234 0Z",fill:`url(#${u})`,className:"origin-center"})})]}),e.jsx("span",{className:"sr-only",children:i})]})});t.displayName="AiLoader",exports.AiLoader=t;
package/dist/index66.js CHANGED
@@ -1,4 +1,4 @@
1
- import{jsxs as e,jsx as a}from"react/jsx-runtime";import{forwardRef as i,useId as s}from"react";import{cn as t}from"./index67.js";import{containerStyles as r,rootStyles as n}from"./index123.js";const l=i(({size:i="md",label:l="AI is processing",className:o,"data-cy":c,"data-testid":d,...m},C)=>{const f=`ai-loader-grad-${s().replace(/:/g,"")}`,p=c||"ai-loader",u=d||"ai-loader";/* @__PURE__ */
1
+ import{jsxs as e,jsx as a}from"react/jsx-runtime";import{forwardRef as i,useId as s}from"react";import{cn as t}from"./index67.js";import{containerStyles as r,rootStyles as n}from"./index125.js";const l=i(({size:i="md",label:l="AI is processing",className:o,"data-cy":c,"data-testid":d,...m},C)=>{const f=`ai-loader-grad-${s().replace(/:/g,"")}`,p=c||"ai-loader",u=d||"ai-loader";/* @__PURE__ */
2
2
  return e("div",{ref:C,className:t(n,r[i],o),role:"status","aria-label":l,"data-cy":p,"data-testid":u,...m,children:[
3
3
  /* @__PURE__ */e("svg",{className:"absolute inset-0 w-full h-full",viewBox:"0 0 124 130",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[
4
4
  /* @__PURE__ */a("defs",{children:/* @__PURE__ */e("linearGradient",{id:f,x1:"0%",y1:"0%",x2:"100%",y2:"100%",gradientUnits:"userSpaceOnUse",children:[
package/dist/index67.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("clsx"),t=require("tailwind-merge"),r=require("./index124.cjs"),n=t.extendTailwindMerge({extend:{theme:{text:r.FONT_SIZE_SCALE,leading:r.LINE_HEIGHT_SCALE}}});let i=0;exports.cn=function(...t){return n(e.clsx(t))},exports.generateId=function(e="id"){return i+=1,`${e}-${i}`};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("clsx"),t=require("tailwind-merge"),r=require("./index126.cjs"),n=t.extendTailwindMerge({extend:{theme:{text:r.FONT_SIZE_SCALE,leading:r.LINE_HEIGHT_SCALE}}});let i=0;exports.cn=function(...t){return n(e.clsx(t))},exports.generateId=function(e="id"){return i+=1,`${e}-${i}`};
package/dist/index67.js CHANGED
@@ -1 +1 @@
1
- import{clsx as t}from"clsx";import{extendTailwindMerge as e}from"tailwind-merge";import{LINE_HEIGHT_SCALE as r,FONT_SIZE_SCALE as n}from"./index124.js";const i=e({extend:{theme:{text:n,leading:r}}});function o(...e){return i(t(e))}let m=0;function d(t="id"){return m+=1,`${t}-${m}`}export{o as cn,d as generateId};
1
+ import{clsx as t}from"clsx";import{extendTailwindMerge as e}from"tailwind-merge";import{LINE_HEIGHT_SCALE as r,FONT_SIZE_SCALE as n}from"./index126.js";const i=e({extend:{theme:{text:n,leading:r}}});function o(...e){return i(t(e))}let m=0;function d(t="id"){return m+=1,`${t}-${m}`}export{o as cn,d as generateId};
package/dist/index69.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.E164_MAX_NATIONAL_DIGITS=15,exports.defaultPhoneMask={mask:"### ### ####",placeholder:"123 456 7890",maxLength:10},exports.formatWithMask=function(e,t){const n=e.replace(/\D/g,"").slice(0,15);let r="",o=0;for(let s=0;s<t.mask.length&&o<n.length;s++)"#"===t.mask[s]?(r+=n[o],o++):r+=t.mask[s];return o<n.length&&(r+=n.slice(o)),r},exports.getPhoneDigits=function(e){return e.replace(/\D/g,"")},exports.isValidPhoneLength=function(e,t){const n=e.replace(/\D/g,"");return n.length>0&&n.length<=15};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.E164_MAX_NATIONAL_DIGITS=15,exports.defaultPhoneMask={mask:"### ### ####",placeholder:"123 456 7890",maxLength:10},exports.formatWithMask=function(e,t,n=15){const r=Number.isFinite(n)?Math.max(Math.floor(n),1):15,o=e.replace(/\D/g,"").slice(0,r);let s="",l=0;for(let a=0;a<t.mask.length&&l<o.length;a++)"#"===t.mask[a]?(s+=o[l],l++):s+=t.mask[a];return l<o.length&&(s+=o.slice(l)),s},exports.getPhoneDigits=function(e){return e.replace(/\D/g,"")},exports.isValidPhoneLength=function(e,t){const n=e.replace(/\D/g,"");return n.length>0&&n.length<=15};
package/dist/index69.js CHANGED
@@ -1 +1 @@
1
- const e=15,n={mask:"### ### ####",placeholder:"123 456 7890",maxLength:10};function t(e,n){const t=e.replace(/\D/g,"").slice(0,15);let l="",c=0;for(let r=0;r<n.mask.length&&c<t.length;r++)"#"===n.mask[r]?(l+=t[c],c++):l+=n.mask[r];return c<t.length&&(l+=t.slice(c)),l}function l(e){return e.replace(/\D/g,"")}function c(e,n){const t=e.replace(/\D/g,"");return t.length>0&&t.length<=15}export{e as E164_MAX_NATIONAL_DIGITS,n as defaultPhoneMask,t as formatWithMask,l as getPhoneDigits,c as isValidPhoneLength};
1
+ const e=15,t={mask:"### ### ####",placeholder:"123 456 7890",maxLength:10};function n(e,t,n=15){const l=Number.isFinite(n)?Math.max(Math.floor(n),1):15,r=e.replace(/\D/g,"").slice(0,l);let a="",c=0;for(let o=0;o<t.mask.length&&c<r.length;o++)"#"===t.mask[o]?(a+=r[c],c++):a+=t.mask[o];return c<r.length&&(a+=r.slice(c)),a}function l(e){return e.replace(/\D/g,"")}function r(e,t){const n=e.replace(/\D/g,"");return n.length>0&&n.length<=15}export{e as E164_MAX_NATIONAL_DIGITS,t as defaultPhoneMask,n as formatWithMask,l as getPhoneDigits,r as isValidPhoneLength};
package/dist/index74.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("./index67.cjs"),s=require("./index85.cjs"),a=require("./index126.cjs"),l=require("./index76.cjs"),n=require("./index87.cjs"),i=t.forwardRef(({type:i="text",label:o,tooltip:c,error:d,helperText:u,fullWidth:h=!1,leftIcon:p,showPasswordToggle:f=!0,showLastChar:g=!0,lastCharDelay:x=500,validate:y,onValidationChange:j,className:v,id:m,onChange:S,onBlur:C,required:N,value:b,"data-cy":k,"data-testid":w,...$},T)=>{const[q,L]=t.useState(!1),[M,R]=t.useState(),[W,E]=t.useState(!1),[I,B]=t.useState(!1),F=t.useRef(!1),[P,z]=t.useState(""),D=t.useRef(""),O=t.useRef(null),V=t.useRef(null),H=l.useMergedRef(T,V),_=t.useId(),A=m||_,G=`${A}-error`,J=`${A}-helper`,K=k||"input",Q=w||"input",U="password"===i,X=U&&f,Y=U&&g&&!q&&void 0===b,Z=U&&(q||Y&&D.current.length>0)?"text":i,ee=o&&N&&!o.includes("*")?`${o} *`:o,te=t.useMemo(()=>n.debounce(e=>{if(y&&F.current){const t=y(e);R(t),j?.(!t)}},300),[y,j]),re=t.useRef(te);t.useEffect(()=>{re.current=te},[te]),t.useEffect(()=>{process.env.NODE_ENV},[U,g,b]),t.useEffect(()=>()=>{O.current&&clearTimeout(O.current),re.current.cancel()},[]);const se=Y&&void 0===b?P:q&&U&&void 0===b?D.current||"":b,ae=d||M,le=$.disabled?"disabled":ae?"error":W?"focus":I?"hover":"idle";return e.jsxs("div",{className:a.wrapperStyles,"data-cy":`${K}-wrapper`,"data-testid":`${Q}-wrapper`,children:[(o||c)&&e.jsxs("div",{className:a.labelRowStyles,children:[o&&e.jsx("label",{htmlFor:A,className:a.labelStyles,"data-cy":`${K}-label`,"data-testid":`${Q}-label`,children:ee}),c&&e.jsx(s.FormTooltip,{content:c,triggerClassName:a.tooltipTriggerStyles,contentClassName:a.tooltipContentStyles,dataCyPrefix:K,dataTestIdPrefix:Q})]}),e.jsxs("div",{className:a.fieldContainerStyles,children:[p&&e.jsx("span",{className:a.leftIconStyles,"data-cy":`${K}-left-icon`,"data-testid":`${Q}-left-icon`,"aria-hidden":"true",children:p}),e.jsx("input",{ref:H,id:A,type:Z,value:se,className:r.cn(a.inputBaseStyles,ae&&a.inputErrorStyles,p&&a.inputWithLeftIconStyles,X&&a.inputWithToggleStyles,v),"aria-invalid":ae?"true":"false","aria-required":N?"true":void 0,"aria-describedby":ae?G:u?J:void 0,"data-cy":K,"data-testid":Q,"data-state":le,onChange:e=>{let t=e.target.value;if(Y){const r=e.target.value,s=D.current,a=P.length;let l;if(0===r.length)l="";else if(r.length>a){const e=r.slice(a);l=s+e}else if(r.length<a)l=s.slice(0,r.length);else{const e=r.slice(-1);l=s.slice(0,-1)+e}D.current=l;const n=l?"•".repeat(l.length-1)+l.slice(-1):"";if(z(n),t=l,S){const t={...e,target:{...e.target,value:l},currentTarget:{...e.currentTarget,value:l}};S(t)}O.current&&clearTimeout(O.current),O.current=setTimeout(()=>{z("•".repeat(l.length))},x)}else S?.(e);F.current&&te(t)},onFocus:e=>{E(!0),$.onFocus?.(e)},onBlur:e=>{if(E(!1),F.current=!0,y){const t=Y?D.current:e.target.value,r=y(t);R(r),j?.(!r)}C?.(e)},onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1),required:N,...$}),X&&e.jsx("button",{type:"button",className:a.toggleStyles,onClick:()=>{L(e=>!e),setTimeout(()=>V.current?.focus(),0)},"aria-label":q?"Hide password":"Show password","data-cy":`${K}-toggle`,"data-testid":`${Q}-toggle`,children:q?e.jsxs("svg",{className:"w-4 h-4",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:[e.jsx("path",{d:"M10 4C5.5 4 2 10 2 10s3.5 6 8 6 8-6 8-6-3.5-6-8-6z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),e.jsx("circle",{cx:"10",cy:"10",r:"2.5",stroke:"currentColor",strokeWidth:"1.5",fill:"none"})]}):e.jsxs("svg",{className:"w-4 h-4",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:[e.jsx("path",{d:"M10 4C5.5 4 2 10 2 10s3.5 6 8 6 8-6 8-6-3.5-6-8-6z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),e.jsx("circle",{cx:"10",cy:"10",r:"2.5",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),e.jsx("path",{d:"M3 3l14 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})})]}),ae&&e.jsx("span",{id:G,className:a.errorStyles,role:"alert","data-cy":`${K}-error`,"data-testid":`${Q}-error`,children:ae}),u&&!ae&&e.jsx("span",{id:J,className:a.helperStyles,"data-cy":`${K}-helper`,"data-testid":`${Q}-helper`,children:u})]})});i.displayName="Input",exports.Input=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("./index67.cjs"),s=require("./index85.cjs"),a=require("./index127.cjs"),l=require("./index76.cjs"),n=require("./index87.cjs"),i=t.forwardRef(({type:i="text",label:o,tooltip:c,error:d,helperText:u,fullWidth:h=!1,leftIcon:p,showPasswordToggle:f=!0,showLastChar:g=!0,lastCharDelay:x=500,validate:y,onValidationChange:j,className:v,id:m,onChange:S,onBlur:C,required:N,value:b,"data-cy":k,"data-testid":w,...$},T)=>{const[q,L]=t.useState(!1),[M,R]=t.useState(),[W,E]=t.useState(!1),[I,B]=t.useState(!1),F=t.useRef(!1),[P,z]=t.useState(""),D=t.useRef(""),O=t.useRef(null),V=t.useRef(null),H=l.useMergedRef(T,V),_=t.useId(),A=m||_,G=`${A}-error`,J=`${A}-helper`,K=k||"input",Q=w||"input",U="password"===i,X=U&&f,Y=U&&g&&!q&&void 0===b,Z=U&&(q||Y&&D.current.length>0)?"text":i,ee=o&&N&&!o.includes("*")?`${o} *`:o,te=t.useMemo(()=>n.debounce(e=>{if(y&&F.current){const t=y(e);R(t),j?.(!t)}},300),[y,j]),re=t.useRef(te);t.useEffect(()=>{re.current=te},[te]),t.useEffect(()=>{process.env.NODE_ENV},[U,g,b]),t.useEffect(()=>()=>{O.current&&clearTimeout(O.current),re.current.cancel()},[]);const se=Y&&void 0===b?P:q&&U&&void 0===b?D.current||"":b,ae=d||M,le=$.disabled?"disabled":ae?"error":W?"focus":I?"hover":"idle";return e.jsxs("div",{className:a.wrapperStyles,"data-cy":`${K}-wrapper`,"data-testid":`${Q}-wrapper`,children:[(o||c)&&e.jsxs("div",{className:a.labelRowStyles,children:[o&&e.jsx("label",{htmlFor:A,className:a.labelStyles,"data-cy":`${K}-label`,"data-testid":`${Q}-label`,children:ee}),c&&e.jsx(s.FormTooltip,{content:c,triggerClassName:a.tooltipTriggerStyles,contentClassName:a.tooltipContentStyles,dataCyPrefix:K,dataTestIdPrefix:Q})]}),e.jsxs("div",{className:a.fieldContainerStyles,children:[p&&e.jsx("span",{className:a.leftIconStyles,"data-cy":`${K}-left-icon`,"data-testid":`${Q}-left-icon`,"aria-hidden":"true",children:p}),e.jsx("input",{ref:H,id:A,type:Z,value:se,className:r.cn(a.inputBaseStyles,ae&&a.inputErrorStyles,p&&a.inputWithLeftIconStyles,X&&a.inputWithToggleStyles,v),"aria-invalid":ae?"true":"false","aria-required":N?"true":void 0,"aria-describedby":ae?G:u?J:void 0,"data-cy":K,"data-testid":Q,"data-state":le,onChange:e=>{let t=e.target.value;if(Y){const r=e.target.value,s=D.current,a=P.length;let l;if(0===r.length)l="";else if(r.length>a){const e=r.slice(a);l=s+e}else if(r.length<a)l=s.slice(0,r.length);else{const e=r.slice(-1);l=s.slice(0,-1)+e}D.current=l;const n=l?"•".repeat(l.length-1)+l.slice(-1):"";if(z(n),t=l,S){const t={...e,target:{...e.target,value:l},currentTarget:{...e.currentTarget,value:l}};S(t)}O.current&&clearTimeout(O.current),O.current=setTimeout(()=>{z("•".repeat(l.length))},x)}else S?.(e);F.current&&te(t)},onFocus:e=>{E(!0),$.onFocus?.(e)},onBlur:e=>{if(E(!1),F.current=!0,y){const t=Y?D.current:e.target.value,r=y(t);R(r),j?.(!r)}C?.(e)},onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1),required:N,...$}),X&&e.jsx("button",{type:"button",className:a.toggleStyles,onClick:()=>{L(e=>!e),setTimeout(()=>V.current?.focus(),0)},"aria-label":q?"Hide password":"Show password","data-cy":`${K}-toggle`,"data-testid":`${Q}-toggle`,children:q?e.jsxs("svg",{className:"w-4 h-4",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:[e.jsx("path",{d:"M10 4C5.5 4 2 10 2 10s3.5 6 8 6 8-6 8-6-3.5-6-8-6z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),e.jsx("circle",{cx:"10",cy:"10",r:"2.5",stroke:"currentColor",strokeWidth:"1.5",fill:"none"})]}):e.jsxs("svg",{className:"w-4 h-4",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:[e.jsx("path",{d:"M10 4C5.5 4 2 10 2 10s3.5 6 8 6 8-6 8-6-3.5-6-8-6z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),e.jsx("circle",{cx:"10",cy:"10",r:"2.5",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),e.jsx("path",{d:"M3 3l14 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})})]}),ae&&e.jsx("span",{id:G,className:a.errorStyles,role:"alert","data-cy":`${K}-error`,"data-testid":`${Q}-error`,children:ae}),u&&!ae&&e.jsx("span",{id:J,className:a.helperStyles,"data-cy":`${K}-helper`,"data-testid":`${Q}-helper`,children:u})]})});i.displayName="Input",exports.Input=i;
package/dist/index74.js CHANGED
@@ -1,4 +1,4 @@
1
- import{jsxs as e,jsx as r}from"react/jsx-runtime";import{forwardRef as t,useState as a,useRef as n,useId as o,useMemo as i,useEffect as l}from"react";import{cn as s}from"./index67.js";import{FormTooltip as c}from"./index85.js";import{wrapperStyles as d,labelRowStyles as u,labelStyles as h,tooltipContentStyles as p,tooltipTriggerStyles as m,fieldContainerStyles as f,leftIconStyles as g,inputWithToggleStyles as v,inputWithLeftIconStyles as y,inputErrorStyles as N,inputBaseStyles as k,toggleStyles as x,errorStyles as C,helperStyles as $}from"./index126.js";import{useMergedRef as w}from"./index76.js";import{debounce as b}from"./index87.js";const T=t(({type:t="text",label:T,tooltip:j,error:L,helperText:W,fullWidth:M=!1,leftIcon:B,showPasswordToggle:q=!0,showLastChar:E=!0,lastCharDelay:F=500,validate:I,onValidationChange:P,className:z,id:D,onChange:V,onBlur:H,required:O,value:S,"data-cy":_,"data-testid":A,...G},J)=>{const[K,Q]=a(!1),[R,U]=a(),[X,Y]=a(!1),[Z,ee]=a(!1),re=n(!1),[te,ae]=a(""),ne=n(""),oe=n(null),ie=n(null),le=w(J,ie),se=o(),ce=D||se,de=`${ce}-error`,ue=`${ce}-helper`,he=_||"input",pe=A||"input",me="password"===t,fe=me&&q,ge=me&&E&&!K&&void 0===S,ve=me&&(K||ge&&ne.current.length>0)?"text":t,ye=T&&O&&!T.includes("*")?`${T} *`:T,Ne=i(()=>b(e=>{if(I&&re.current){const r=I(e);U(r),P?.(!r)}},300),[I,P]),ke=n(Ne);l(()=>{ke.current=Ne},[Ne]),l(()=>{process.env.NODE_ENV},[me,E,S]),l(()=>()=>{oe.current&&clearTimeout(oe.current),ke.current.cancel()},[]);const xe=ge&&void 0===S?te:K&&me&&void 0===S?ne.current||"":S,Ce=L||R,$e=G.disabled?"disabled":Ce?"error":X?"focus":Z?"hover":"idle";/* @__PURE__ */
1
+ import{jsxs as e,jsx as r}from"react/jsx-runtime";import{forwardRef as t,useState as a,useRef as n,useId as o,useMemo as i,useEffect as l}from"react";import{cn as s}from"./index67.js";import{FormTooltip as c}from"./index85.js";import{wrapperStyles as d,labelRowStyles as u,labelStyles as h,tooltipContentStyles as p,tooltipTriggerStyles as m,fieldContainerStyles as f,leftIconStyles as g,inputWithToggleStyles as v,inputWithLeftIconStyles as y,inputErrorStyles as N,inputBaseStyles as k,toggleStyles as x,errorStyles as C,helperStyles as $}from"./index127.js";import{useMergedRef as w}from"./index76.js";import{debounce as b}from"./index87.js";const T=t(({type:t="text",label:T,tooltip:j,error:L,helperText:W,fullWidth:M=!1,leftIcon:B,showPasswordToggle:q=!0,showLastChar:E=!0,lastCharDelay:F=500,validate:I,onValidationChange:P,className:z,id:D,onChange:V,onBlur:H,required:O,value:S,"data-cy":_,"data-testid":A,...G},J)=>{const[K,Q]=a(!1),[R,U]=a(),[X,Y]=a(!1),[Z,ee]=a(!1),re=n(!1),[te,ae]=a(""),ne=n(""),oe=n(null),ie=n(null),le=w(J,ie),se=o(),ce=D||se,de=`${ce}-error`,ue=`${ce}-helper`,he=_||"input",pe=A||"input",me="password"===t,fe=me&&q,ge=me&&E&&!K&&void 0===S,ve=me&&(K||ge&&ne.current.length>0)?"text":t,ye=T&&O&&!T.includes("*")?`${T} *`:T,Ne=i(()=>b(e=>{if(I&&re.current){const r=I(e);U(r),P?.(!r)}},300),[I,P]),ke=n(Ne);l(()=>{ke.current=Ne},[Ne]),l(()=>{process.env.NODE_ENV},[me,E,S]),l(()=>()=>{oe.current&&clearTimeout(oe.current),ke.current.cancel()},[]);const xe=ge&&void 0===S?te:K&&me&&void 0===S?ne.current||"":S,Ce=L||R,$e=G.disabled?"disabled":Ce?"error":X?"focus":Z?"hover":"idle";/* @__PURE__ */
2
2
  return e("div",{className:d,"data-cy":`${he}-wrapper`,"data-testid":`${pe}-wrapper`,children:[(T||j)&&/* @__PURE__ */e("div",{className:u,children:[T&&/* @__PURE__ */r("label",{htmlFor:ce,className:h,"data-cy":`${he}-label`,"data-testid":`${pe}-label`,children:ye}),j&&/* @__PURE__ */r(c,{content:j,triggerClassName:m,contentClassName:p,dataCyPrefix:he,dataTestIdPrefix:pe})]}),
3
3
  /* @__PURE__ */e("div",{className:f,children:[B&&/* @__PURE__ */r("span",{className:g,"data-cy":`${he}-left-icon`,"data-testid":`${pe}-left-icon`,"aria-hidden":"true",children:B}),
4
4
  /* @__PURE__ */r("input",{ref:le,id:ce,type:ve,value:xe,className:s(k,Ce&&N,B&&y,fe&&v,z),"aria-invalid":Ce?"true":"false","aria-required":O?"true":void 0,"aria-describedby":Ce?de:W?ue:void 0,"data-cy":he,"data-testid":pe,"data-state":$e,onChange:e=>{let r=e.target.value;if(ge){const t=e.target.value,a=ne.current,n=te.length;let o;if(0===t.length)o="";else if(t.length>n){const e=t.slice(n);o=a+e}else if(t.length<n)o=a.slice(0,t.length);else{const e=t.slice(-1);o=a.slice(0,-1)+e}ne.current=o;const i=o?"•".repeat(o.length-1)+o.slice(-1):"";if(ae(i),r=o,V){const r={...e,target:{...e.target,value:o},currentTarget:{...e.currentTarget,value:o}};V(r)}oe.current&&clearTimeout(oe.current),oe.current=setTimeout(()=>{ae("•".repeat(o.length))},F)}else V?.(e);re.current&&Ne(r)},onFocus:e=>{Y(!0),G.onFocus?.(e)},onBlur:e=>{if(Y(!1),re.current=!0,I){const r=ge?ne.current:e.target.value,t=I(r);U(t),P?.(!t)}H?.(e)},onMouseEnter:()=>ee(!0),onMouseLeave:()=>ee(!1),required:O,...G}),fe&&/* @__PURE__ */r("button",{type:"button",className:x,onClick:()=>{Q(e=>!e),setTimeout(()=>ie.current?.focus(),0)},"aria-label":K?"Hide password":"Show password","data-cy":`${he}-toggle`,"data-testid":`${pe}-toggle`,children:/* @__PURE__ */e("svg",K?{className:"w-4 h-4",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:[
package/dist/index96.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["h-3 rounded-4","bg-[linear-gradient(90deg,color-mix(in_srgb,var(--color-border)_40%,transparent)_0%,color-mix(in_srgb,var(--color-grey-skeleton)_40%,transparent)_100%)]","relative overflow-hidden","after:absolute after:inset-0","after:bg-[linear-gradient(90deg,transparent_0%,color-mix(in_srgb,var(--color-white)_40%,transparent)_50%,transparent_100%)]","after:animate-[shimmer_1.5s_ease-in-out_infinite]","after:[background-size:200%_100%]"].join(" "),r=["sticky top-0 z-[5] !border-b-0","[&>tr>th]:transition-[background-color] [&>tr>th]:duration-500 [&>tr>th]:ease-in-out","after:absolute after:left-0 after:right-0 after:bottom-0 after:h-px after:bg-[color-mix(in_srgb,var(--color-teal)_25%,transparent)]"].join(" "),t=["[&>tr>th]:!bg-white","[&>tr>th:first-child]:rounded-tl-16","[&>tr>th:last-child]:rounded-tr-16"].join(" "),o=["fixed bottom-8 left-1/2 -translate-x-1/2 z-50","flex items-center justify-between","w-[46.875rem] max-w-[calc(100%-2rem)]","py-4 ps-8 pe-4","bg-white rounded-2xl","border border-solid border-[color-mix(in_srgb,var(--color-teal)_15%,transparent)]","shadow-[0_4px_24px_0_color-mix(in_srgb,var(--color-black)_8%,transparent)]"].join(" ");exports.checkboxCellStyles="w-[4.75rem] min-w-[4.75rem] max-w-[4.75rem] ps-6 pe-[0.75rem] py-0 max-sm:pe-2 max-sm:ps-2",exports.checkboxLabelStyles="flex items-center justify-center w-[2.5rem] h-[2.5rem] cursor-pointer",exports.emptyStateIconStyles="w-[11.875rem] h-[11.875rem] text-[var(--color-system-text)]",exports.emptyStateTextStyles="text-16 leading-24 font-normal text-[var(--color-system-text)] text-center max-w-[20rem]",exports.emptyStateWrapperStyles="flex flex-col items-center justify-center gap-4 py-16 px-6 max-sm:py-10",exports.footerBarStyles=o,exports.headerBarStyles="flex items-center justify-between p-6 max-sm:p-4",exports.headerCellContentStyles="flex items-center gap-1",exports.headerLabelStyles="whitespace-nowrap",exports.loadingRowStyles="py-4 text-center",exports.scrollContainerStyles="overflow-y-auto datatable-scrollbar",exports.skeletonCellStyles=e,exports.stickyTheadScrolledStyles=t,exports.stickyTheadStyles=r,exports.tableBaseStyles="w-full border-collapse text-14 leading-normal text-[var(--color-text)]",exports.tdBorderBreakStyles="px-0 py-2.5 text-18 font-normal text-[var(--color-text)] first:ps-6 last:pe-6 h-[4.5rem]",exports.tdStyles="px-4 py-3 text-[var(--color-text)] max-sm:px-2 max-sm:py-2 max-sm:text-12",exports.thBorderBreakStyles="px-0 py-2.5 whitespace-nowrap text-[1.1875rem] font-bold text-[var(--color-slate)] first:ps-6 last:pe-6 h-[4.25rem]",exports.thStyles="px-4 py-3 text-start font-semibold text-[var(--color-system-text)] max-sm:px-2 max-sm:py-2 max-sm:text-12",exports.theadBorderBreakStyles="!bg-transparent border-b border-[color-mix(in_srgb,var(--color-teal)_25%,transparent)]",exports.theadStyles="border-b border-[var(--color-border)] bg-[var(--color-bg-secondary)]",exports.trBorderBreakStyles="border-0 even:bg-transparent hover:bg-white h-[4.5rem]",exports.trClickableBorderBreakFocusStyles="focus:bg-white",exports.trClickableStyles="cursor-pointer focus:bg-[var(--color-bg)]",exports.trHoverableStyles="hover:bg-[var(--color-bg)]",exports.trStripedEvenStyles="even:bg-[var(--color-bg)]",exports.trStripedStyles="border-b border-[var(--color-border)]",exports.wrapperBorderBreakFlatBottomStyles="rounded-t-2xl card-border-break--flat-bottom",exports.wrapperBorderBreakRoundedStyles="rounded-2xl",exports.wrapperBorderBreakStyles="card-border-break bg-[var(--color-overlay-white-43)]",exports.wrapperStyles="w-full overflow-x-auto [-webkit-overflow-scrolling:touch] [scrollbar-width:thin] [scrollbar-color:var(--color-border)_var(--color-bg-secondary)]";
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("@radix-ui/react-tooltip"),n=require("./index67.cjs"),a=require("./index129.cjs"),i=require("./index98.cjs");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const o=s(r),c=({text:r,layoutKey:s,"data-cy":c,"data-testid":l})=>{const u=t.useRef(null),[d,f]=t.useState(!1);return t.useLayoutEffect(()=>{const e=u.current;if(!e)return;const t=()=>{f(a.isTextOverflowing(e,r))};t();const n=requestAnimationFrame(t),i=requestAnimationFrame(t),s="undefined"!=typeof ResizeObserver?new ResizeObserver(t):null;s?.observe(e);const o=e.closest("td");return o&&s?.observe(o),()=>{cancelAnimationFrame(n),cancelAnimationFrame(i),s?.disconnect()}},[r,s]),e.jsxs(o.Root,{open:!!d&&void 0,children:[e.jsx(o.Trigger,{asChild:!0,children:e.jsx("span",{ref:u,className:n.cn(i.cellTruncateStyles,d&&"cursor-default"),"data-cy":c,"data-testid":l,children:r})}),d?e.jsx(o.Portal,{children:e.jsx(o.Content,{side:"top",align:"start",sideOffset:6,className:i.cellTooltipContentStyles,"data-cy":c?`${c}-tooltip`:void 0,"data-testid":l?`${l}-tooltip`:void 0,children:r})}):null]})};c.displayName="DataTableTruncatedCell",exports.DataTableTruncatedCell=c;
package/dist/index96.js CHANGED
@@ -1 +1,2 @@
1
- const r="w-full overflow-x-auto [-webkit-overflow-scrolling:touch] [scrollbar-width:thin] [scrollbar-color:var(--color-border)_var(--color-bg-secondary)]",e="card-border-break bg-[var(--color-overlay-white-43)]",t="rounded-2xl",o="rounded-t-2xl card-border-break--flat-bottom",a="w-full border-collapse text-14 leading-normal text-[var(--color-text)]",l="border-b border-[var(--color-border)] bg-[var(--color-bg-secondary)]",n="!bg-transparent border-b border-[color-mix(in_srgb,var(--color-teal)_25%,transparent)]",s="px-4 py-3 text-start font-semibold text-[var(--color-system-text)] max-sm:px-2 max-sm:py-2 max-sm:text-12",i="px-0 py-2.5 whitespace-nowrap text-[1.1875rem] font-bold text-[var(--color-slate)] first:ps-6 last:pe-6 h-[4.25rem]",b="flex items-center gap-1",c="whitespace-nowrap",x="border-b border-[var(--color-border)]",m="border-0 even:bg-transparent hover:bg-white h-[4.5rem]",p="hover:bg-[var(--color-bg)]",d="even:bg-[var(--color-bg)]",f="px-4 py-3 text-[var(--color-text)] max-sm:px-2 max-sm:py-2 max-sm:text-12",g="px-0 py-2.5 text-18 font-normal text-[var(--color-text)] first:ps-6 last:pe-6 h-[4.5rem]",v="flex flex-col items-center justify-center gap-4 py-16 px-6 max-sm:py-10",h="w-[11.875rem] h-[11.875rem] text-[var(--color-system-text)]",w="text-16 leading-24 font-normal text-[var(--color-system-text)] text-center max-w-[20rem]",_="flex items-center justify-between p-6 max-sm:p-4",u="py-4 text-center",y=["h-3 rounded-4","bg-[linear-gradient(90deg,color-mix(in_srgb,var(--color-border)_40%,transparent)_0%,color-mix(in_srgb,var(--color-grey-skeleton)_40%,transparent)_100%)]","relative overflow-hidden","after:absolute after:inset-0","after:bg-[linear-gradient(90deg,transparent_0%,color-mix(in_srgb,var(--color-white)_40%,transparent)_50%,transparent_100%)]","after:animate-[shimmer_1.5s_ease-in-out_infinite]","after:[background-size:200%_100%]"].join(" "),j="overflow-y-auto datatable-scrollbar",k=["sticky top-0 z-[5] !border-b-0","[&>tr>th]:transition-[background-color] [&>tr>th]:duration-500 [&>tr>th]:ease-in-out","after:absolute after:left-0 after:right-0 after:bottom-0 after:h-px after:bg-[color-mix(in_srgb,var(--color-teal)_25%,transparent)]"].join(" "),z=["[&>tr>th]:!bg-white","[&>tr>th:first-child]:rounded-tl-16","[&>tr>th:last-child]:rounded-tr-16"].join(" "),q="w-[4.75rem] min-w-[4.75rem] max-w-[4.75rem] ps-6 pe-[0.75rem] py-0 max-sm:pe-2 max-sm:ps-2",A="flex items-center justify-center w-[2.5rem] h-[2.5rem] cursor-pointer",B="cursor-pointer focus:bg-[var(--color-bg)]",C="focus:bg-white",D=["fixed bottom-8 left-1/2 -translate-x-1/2 z-50","flex items-center justify-between","w-[46.875rem] max-w-[calc(100%-2rem)]","py-4 ps-8 pe-4","bg-white rounded-2xl","border border-solid border-[color-mix(in_srgb,var(--color-teal)_15%,transparent)]","shadow-[0_4px_24px_0_color-mix(in_srgb,var(--color-black)_8%,transparent)]"].join(" ");export{q as checkboxCellStyles,A as checkboxLabelStyles,h as emptyStateIconStyles,w as emptyStateTextStyles,v as emptyStateWrapperStyles,D as footerBarStyles,_ as headerBarStyles,b as headerCellContentStyles,c as headerLabelStyles,u as loadingRowStyles,j as scrollContainerStyles,y as skeletonCellStyles,z as stickyTheadScrolledStyles,k as stickyTheadStyles,a as tableBaseStyles,g as tdBorderBreakStyles,f as tdStyles,i as thBorderBreakStyles,s as thStyles,n as theadBorderBreakStyles,l as theadStyles,m as trBorderBreakStyles,C as trClickableBorderBreakFocusStyles,B as trClickableStyles,p as trHoverableStyles,d as trStripedEvenStyles,x as trStripedStyles,o as wrapperBorderBreakFlatBottomStyles,t as wrapperBorderBreakRoundedStyles,e as wrapperBorderBreakStyles,r as wrapperStyles};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useRef as r,useState as i,useLayoutEffect as o}from"react";import*as a from"@radix-ui/react-tooltip";import{cn as n}from"./index67.js";import{isTextOverflowing as s}from"./index129.js";import{cellTruncateStyles as d,cellTooltipContentStyles as c}from"./index98.js";const l=({text:l,layoutKey:m,"data-cy":u,"data-testid":p})=>{const f=r(null),[v,x]=i(!1);return o(()=>{const e=f.current;if(!e)return;const t=()=>{x(s(e,l))};t();const r=requestAnimationFrame(t),i=requestAnimationFrame(t),o="undefined"!=typeof ResizeObserver?new ResizeObserver(t):null;o?.observe(e);const a=e.closest("td");return a&&o?.observe(a),()=>{cancelAnimationFrame(r),cancelAnimationFrame(i),o?.disconnect()}},[l,m]),/* @__PURE__ */e(a.Root,{open:!!v&&void 0,children:[
2
+ /* @__PURE__ */t(a.Trigger,{asChild:!0,children:/* @__PURE__ */t("span",{ref:f,className:n(d,v&&"cursor-default"),"data-cy":u,"data-testid":p,children:l})}),v?/* @__PURE__ */t(a.Portal,{children:/* @__PURE__ */t(a.Content,{side:"top",align:"start",sideOffset:6,className:c,"data-cy":u?`${u}-tooltip`:void 0,"data-testid":p?`${p}-tooltip`:void 0,children:l})}):null]})};l.displayName="DataTableTruncatedCell";export{l as DataTableTruncatedCell};
package/dist/index97.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.chipBaseStyles="inline-flex items-center justify-center py-1 px-3 md:px-3.5 rounded border border-solid text-14 leading-none font-normal transition-all duration-200 cursor-default select-none whitespace-nowrap",exports.chipVariantMap={primary:{base:"bg-[color-mix(in_srgb,var(--color-clickable)_10%,transparent)] border-[color-mix(in_srgb,var(--color-clickable)_30%,transparent)] text-[var(--color-clickable)]",hover:"hover:bg-[color-mix(in_srgb,var(--color-clickable)_15%,transparent)] hover:border-[color-mix(in_srgb,var(--color-clickable)_40%,transparent)]",selected:"bg-[var(--color-clickable)] border-[var(--color-clickable)] text-[var(--color-card)]"},secondary:{base:"bg-[color-mix(in_srgb,var(--color-toggle)_10%,transparent)] border-[color-mix(in_srgb,var(--color-toggle)_30%,transparent)] text-[var(--color-toggle)]",hover:"hover:bg-[color-mix(in_srgb,var(--color-toggle)_15%,transparent)] hover:border-[color-mix(in_srgb,var(--color-toggle)_40%,transparent)]",selected:"bg-[var(--color-toggle)] border-[var(--color-toggle)] text-[var(--color-card)]"},tertiary:{base:"bg-[color-mix(in_srgb,var(--color-popup)_10%,transparent)] border-[color-mix(in_srgb,var(--color-popup)_30%,transparent)] text-[var(--color-popup)]",hover:"hover:bg-[color-mix(in_srgb,var(--color-popup)_15%,transparent)] hover:border-[color-mix(in_srgb,var(--color-popup)_40%,transparent)]",selected:"bg-[var(--color-popup)] border-[var(--color-popup)] text-[var(--color-card)]"},quaternary:{base:"bg-[color-mix(in_srgb,var(--color-secondary)_10%,transparent)] border-[color-mix(in_srgb,var(--color-secondary)_30%,transparent)] text-[var(--color-secondary)]",hover:"hover:bg-[color-mix(in_srgb,var(--color-secondary)_15%,transparent)] hover:border-[color-mix(in_srgb,var(--color-secondary)_40%,transparent)]",selected:"bg-[var(--color-secondary)] border-[var(--color-secondary)] text-[var(--color-card)]"}};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t="4.75rem",r=/^([\d.]+)(px|rem)$/,n=e=>{const t=e.trim().match(r);if(!t)return null;const n=Number.parseFloat(t[1]);return!Number.isFinite(n)||n<=0?null:{value:n,unit:t[2]}},i=e=>null!=n(e);exports.CHECKBOX_COLUMN_WIDTH=t,exports.isExplicitColumnWidth=i,exports.useLockedColumnWidths=(r,c,o,u,s)=>{const[l,a]=e.useState(),d=(e=>e.map(e=>`${e.key}:${e.width??""}`).join("|"))(c),m=e.useRef(c);return m.current=c,e.useLayoutEffect(()=>{if(!r)return void a(void 0);const e=o.current;if(!e)return;const c=()=>{const r=m.current,c={};r.forEach(t=>{if(t.width&&i(t.width))return;const r=e.querySelector(`[data-cy="${n=`${u}-header-${t.key}`,"undefined"!=typeof CSS&&"function"==typeof CSS.escape?CSS.escape(n):n}"]`);var n;if(!r)return;const o=(e=>{const t=e.firstElementChild??e;return Math.ceil(Math.max(t.scrollWidth,t.getBoundingClientRect().width))})(r);o>0&&(c[t.key]=o)});const o=Object.values(c).reduce((e,t)=>e+t,0);if(o<=0)return;const l=((e,r)=>{const i={px:0,rem:0};if(r){const e=n(t);e&&(i[e.unit]+=e.value)}e.forEach(e=>{if(!e.width)return;const t=n(e.width);t&&(i[t.unit]+=t.value)});const c=["rem","px"].filter(e=>i[e]>0).map(e=>`${Number(i[e].toFixed(4))}${e}`);return c.length>0?c.join(" + "):null})(r,s),d=Object.fromEntries(Object.entries(c).map(([e,t])=>{const r=t/o;return[e,l?`calc((100% - (${l})) * ${r.toFixed(6)})`:`${(100*r).toFixed(4)}%`]}));a(e=>null!=e&&Object.keys(e).length===Object.keys(d).length&&Object.entries(d).every(([t,r])=>e[t]===r)?e:d)};c();const l=requestAnimationFrame(c);return()=>cancelAnimationFrame(l)},[r,d,o,u,s]),l};
package/dist/index97.js CHANGED
@@ -1 +1 @@
1
- const r={primary:{base:"bg-[color-mix(in_srgb,var(--color-clickable)_10%,transparent)] border-[color-mix(in_srgb,var(--color-clickable)_30%,transparent)] text-[var(--color-clickable)]",hover:"hover:bg-[color-mix(in_srgb,var(--color-clickable)_15%,transparent)] hover:border-[color-mix(in_srgb,var(--color-clickable)_40%,transparent)]",selected:"bg-[var(--color-clickable)] border-[var(--color-clickable)] text-[var(--color-card)]"},secondary:{base:"bg-[color-mix(in_srgb,var(--color-toggle)_10%,transparent)] border-[color-mix(in_srgb,var(--color-toggle)_30%,transparent)] text-[var(--color-toggle)]",hover:"hover:bg-[color-mix(in_srgb,var(--color-toggle)_15%,transparent)] hover:border-[color-mix(in_srgb,var(--color-toggle)_40%,transparent)]",selected:"bg-[var(--color-toggle)] border-[var(--color-toggle)] text-[var(--color-card)]"},tertiary:{base:"bg-[color-mix(in_srgb,var(--color-popup)_10%,transparent)] border-[color-mix(in_srgb,var(--color-popup)_30%,transparent)] text-[var(--color-popup)]",hover:"hover:bg-[color-mix(in_srgb,var(--color-popup)_15%,transparent)] hover:border-[color-mix(in_srgb,var(--color-popup)_40%,transparent)]",selected:"bg-[var(--color-popup)] border-[var(--color-popup)] text-[var(--color-card)]"},quaternary:{base:"bg-[color-mix(in_srgb,var(--color-secondary)_10%,transparent)] border-[color-mix(in_srgb,var(--color-secondary)_30%,transparent)] text-[var(--color-secondary)]",hover:"hover:bg-[color-mix(in_srgb,var(--color-secondary)_15%,transparent)] hover:border-[color-mix(in_srgb,var(--color-secondary)_40%,transparent)]",selected:"bg-[var(--color-secondary)] border-[var(--color-secondary)] text-[var(--color-card)]"}},o="inline-flex items-center justify-center py-1 px-3 md:px-3.5 rounded border border-solid text-14 leading-none font-normal transition-all duration-200 cursor-default select-none whitespace-nowrap";export{o as chipBaseStyles,r as chipVariantMap};
1
+ import{useState as e,useRef as t,useLayoutEffect as n}from"react";const r="4.75rem",i=/^([\d.]+)(px|rem)$/,c=e=>{const t=e.trim().match(i);if(!t)return null;const n=Number.parseFloat(t[1]);return!Number.isFinite(n)||n<=0?null:{value:n,unit:t[2]}},o=e=>null!=c(e),u=(i,u,s,a,l)=>{const[m,d]=e(),f=(e=>e.map(e=>`${e.key}:${e.width??""}`).join("|"))(u),h=t(u);return h.current=u,n(()=>{if(!i)return void d(void 0);const e=s.current;if(!e)return;const t=()=>{const t=h.current,n={};t.forEach(t=>{if(t.width&&o(t.width))return;const r=e.querySelector(`[data-cy="${i=`${a}-header-${t.key}`,"undefined"!=typeof CSS&&"function"==typeof CSS.escape?CSS.escape(i):i}"]`);var i;if(!r)return;const c=(e=>{const t=e.firstElementChild??e;return Math.ceil(Math.max(t.scrollWidth,t.getBoundingClientRect().width))})(r);c>0&&(n[t.key]=c)});const i=Object.values(n).reduce((e,t)=>e+t,0);if(i<=0)return;const u=((e,t)=>{const n={px:0,rem:0};if(t){const e=c(r);e&&(n[e.unit]+=e.value)}e.forEach(e=>{if(!e.width)return;const t=c(e.width);t&&(n[t.unit]+=t.value)});const i=["rem","px"].filter(e=>n[e]>0).map(e=>`${Number(n[e].toFixed(4))}${e}`);return i.length>0?i.join(" + "):null})(t,l),s=Object.fromEntries(Object.entries(n).map(([e,t])=>{const n=t/i;return[e,u?`calc((100% - (${u})) * ${n.toFixed(6)})`:`${(100*n).toFixed(4)}%`]}));d(e=>null!=e&&Object.keys(e).length===Object.keys(s).length&&Object.entries(s).every(([t,n])=>e[t]===n)?e:s)};t();const n=requestAnimationFrame(t);return()=>cancelAnimationFrame(n)},[i,f,s,a,l]),m};export{r as CHECKBOX_COLUMN_WIDTH,o as isExplicitColumnWidth,u as useLockedColumnWidths};
package/dist/index98.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./index125.cjs");exports.useChipOverflow=(r,n,u,c,s)=>{const[o,l]=e.useState(r.length),i=e.useCallback(()=>{if(void 0!==s)return void l(Math.min(s,r.length));const e=n.current;if(!e)return;const o=e.clientWidth,i=parseFloat(getComputedStyle(document.documentElement).fontSize)||16,a=window.getComputedStyle(e),f=a.gap,h=parseFloat(a.fontSize)||16,d=t.parseGapValue(f,i,h),m=3.75*i;for(let t=0;t<r.length;t++){const e=r[t],n=u.current[t];n&&c.current.set(e.value,n.offsetWidth)}const g=t.calculateFittingChips(r,c.current,o,d,m);l(g)},[r,s,n,u,c]),a=((t,r)=>{const n=e.useRef(null);return e.useEffect(()=>()=>{n.current&&clearTimeout(n.current)},[]),e.useCallback((...e)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>t(...e),r)},[t,r])})(i,100);e.useEffect(()=>{u.current.length>r.length&&(u.current=u.current.slice(0,r.length));const e=new Set(r.map(e=>e.value));if(c.current.forEach((t,r)=>{e.has(r)||c.current.delete(r)}),void 0===s){r.some(e=>!c.current.has(e.value))?l(r.length):setTimeout(i,0)}},[r,s,i,u,c]),e.useEffect(()=>{const e=n.current;if(!e)return;const t=new ResizeObserver(()=>{a()});return t.observe(e),setTimeout(i,0),()=>{t.disconnect()}},[i,a,n]);const f=r.slice(0,o),h=r.slice(o);return{visibleCount:o,visibleItems:f,hiddenItems:h,hasOverflow:h.length>0}};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["z-[200] max-w-[18.625rem] px-3 py-1.5","rounded-4","bg-[color-mix(in_srgb,var(--color-card)_94%,transparent)]","border border-solid border-[var(--color-border)]","text-16 font-normal leading-24 text-[var(--color-text)]","shadow-[0_4px_19px_0_color-mix(in_srgb,var(--color-text)_8%,transparent)]","break-words"].join(" "),r=["h-3 rounded-4","bg-[linear-gradient(90deg,color-mix(in_srgb,var(--color-border)_40%,transparent)_0%,color-mix(in_srgb,var(--color-grey-skeleton)_40%,transparent)_100%)]","relative overflow-hidden","after:absolute after:inset-0","after:bg-[linear-gradient(90deg,transparent_0%,color-mix(in_srgb,var(--color-white)_40%,transparent)_50%,transparent_100%)]","after:animate-[shimmer_1.5s_ease-in-out_infinite]","after:[background-size:200%_100%]"].join(" "),t=["sticky top-0 z-[5] !border-b-0","[&>tr>th]:transition-[background-color] [&>tr>th]:duration-500 [&>tr>th]:ease-in-out","after:absolute after:left-0 after:right-0 after:bottom-0 after:h-px after:bg-[color-mix(in_srgb,var(--color-teal)_25%,transparent)]"].join(" "),o=["[&>tr>th]:!bg-white","[&>tr>th:first-child]:rounded-tl-16","[&>tr>th:last-child]:rounded-tr-16"].join(" "),a=["fixed bottom-8 left-1/2 -translate-x-1/2 z-50","flex items-center justify-between","w-[46.875rem] max-w-[calc(100%-2rem)]","py-4 ps-8 pe-4","bg-white rounded-2xl","border border-solid border-[color-mix(in_srgb,var(--color-teal)_15%,transparent)]","shadow-[0_4px_24px_0_color-mix(in_srgb,var(--color-black)_8%,transparent)]"].join(" ");exports.cellTooltipContentStyles=e,exports.cellTruncateStyles="block min-w-0 max-w-full truncate",exports.checkboxCellStyles="w-[4.75rem] min-w-[4.75rem] max-w-[4.75rem] ps-6 pe-[0.75rem] py-0 max-sm:pe-2 max-sm:ps-2",exports.checkboxLabelStyles="flex items-center justify-center w-[2.5rem] h-[2.5rem] cursor-pointer",exports.emptyStateIconStyles="w-[11.875rem] h-[11.875rem] text-[var(--color-system-text)]",exports.emptyStateTextStyles="text-16 leading-24 font-normal text-[var(--color-system-text)] text-center max-w-[20rem]",exports.emptyStateWrapperStyles="flex flex-col items-center justify-center gap-4 py-16 px-6 max-sm:py-10",exports.footerBarStyles=a,exports.headerBarStyles="flex items-center justify-between p-6 max-sm:p-4",exports.headerCellContentStyles="flex items-center gap-1",exports.headerLabelStyles="whitespace-nowrap",exports.loadingRowStyles="py-4 text-center",exports.scrollContainerStyles="overflow-y-auto datatable-scrollbar",exports.skeletonCellStyles=r,exports.stickyTheadScrolledStyles=o,exports.stickyTheadStyles=t,exports.tableBaseStyles="w-full border-collapse text-14 leading-normal text-[var(--color-text)]",exports.tableFixedLayoutStyles="table-fixed",exports.tdBorderBreakStyles="px-0 py-2.5 text-18 font-normal text-[var(--color-text)] first:ps-6 last:pe-6 h-[4.5rem]",exports.tdBorderBreakTruncateStyles="px-5 py-2.5 text-18 font-normal text-[var(--color-text)] first:ps-6 last:pe-6 h-[4.5rem]",exports.tdStyles="px-4 py-3 text-[var(--color-text)] max-sm:px-2 max-sm:py-2 max-sm:text-12",exports.tdTruncateStyles="max-w-0 overflow-hidden",exports.thBorderBreakStyles="px-0 py-2.5 whitespace-nowrap text-[1.1875rem] font-bold text-[var(--color-slate)] first:ps-6 last:pe-6 h-[4.25rem]",exports.thBorderBreakTruncateStyles="px-5 py-2.5 whitespace-nowrap text-[1.1875rem] font-bold text-[var(--color-slate)] first:ps-6 last:pe-6 h-[4.25rem]",exports.thStyles="px-4 py-3 text-start font-semibold text-[var(--color-system-text)] max-sm:px-2 max-sm:py-2 max-sm:text-12",exports.theadBorderBreakStyles="!bg-transparent border-b border-[color-mix(in_srgb,var(--color-teal)_25%,transparent)]",exports.theadStyles="border-b border-[var(--color-border)] bg-[var(--color-bg-secondary)]",exports.trBorderBreakStyles="border-0 even:bg-transparent hover:bg-white h-[4.5rem]",exports.trClickableBorderBreakFocusStyles="focus:bg-white",exports.trClickableStyles="cursor-pointer focus:bg-[var(--color-bg)]",exports.trHoverableStyles="hover:bg-[var(--color-bg)]",exports.trStripedEvenStyles="even:bg-[var(--color-bg)]",exports.trStripedStyles="border-b border-[var(--color-border)]",exports.wrapperBorderBreakFlatBottomStyles="rounded-t-2xl card-border-break--flat-bottom",exports.wrapperBorderBreakRoundedStyles="rounded-2xl",exports.wrapperBorderBreakStyles="card-border-break bg-[var(--color-overlay-white-43)]",exports.wrapperScrollXStyles="overflow-x-auto",exports.wrapperStyles="w-full [-webkit-overflow-scrolling:touch] [scrollbar-width:thin] [scrollbar-color:var(--color-border)_var(--color-bg-secondary)]";
package/dist/index98.js CHANGED
@@ -1 +1 @@
1
- import{useState as e,useCallback as t,useEffect as r,useRef as n}from"react";import{parseGapValue as o,calculateFittingChips as c}from"./index125.js";const u=(u,s,i,l,m)=>{const[a,h]=e(u.length),d=t(()=>{if(void 0!==m)return void h(Math.min(m,u.length));const e=s.current;if(!e)return;const t=e.clientWidth,r=parseFloat(getComputedStyle(document.documentElement).fontSize)||16,n=window.getComputedStyle(e),a=n.gap,d=parseFloat(n.fontSize)||16,f=o(a,r,d),g=3.75*r;for(let o=0;o<u.length;o++){const e=u[o],t=i.current[o];t&&l.current.set(e.value,t.offsetWidth)}const v=c(u,l.current,t,f,g);h(v)},[u,m,s,i,l]),f=((e,o)=>{const c=n(null);return r(()=>()=>{c.current&&clearTimeout(c.current)},[]),t((...t)=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>e(...t),o)},[e,o])})(d,100);r(()=>{i.current.length>u.length&&(i.current=i.current.slice(0,u.length));const e=new Set(u.map(e=>e.value));if(l.current.forEach((t,r)=>{e.has(r)||l.current.delete(r)}),void 0===m){u.some(e=>!l.current.has(e.value))?h(u.length):setTimeout(d,0)}},[u,m,d,i,l]),r(()=>{const e=s.current;if(!e)return;const t=new ResizeObserver(()=>{f()});return t.observe(e),setTimeout(d,0),()=>{t.disconnect()}},[d,f,s]);const g=u.slice(0,a),v=u.slice(a);return{visibleCount:a,visibleItems:g,hiddenItems:v,hasOverflow:v.length>0}};export{u as useChipOverflow};
1
+ const r="w-full [-webkit-overflow-scrolling:touch] [scrollbar-width:thin] [scrollbar-color:var(--color-border)_var(--color-bg-secondary)]",e="overflow-x-auto",t="card-border-break bg-[var(--color-overlay-white-43)]",o="rounded-2xl",a="rounded-t-2xl card-border-break--flat-bottom",l="w-full border-collapse text-14 leading-normal text-[var(--color-text)]",n="table-fixed",s="block min-w-0 max-w-full truncate",i=["z-[200] max-w-[18.625rem] px-3 py-1.5","rounded-4","bg-[color-mix(in_srgb,var(--color-card)_94%,transparent)]","border border-solid border-[var(--color-border)]","text-16 font-normal leading-24 text-[var(--color-text)]","shadow-[0_4px_19px_0_color-mix(in_srgb,var(--color-text)_8%,transparent)]","break-words"].join(" "),x="border-b border-[var(--color-border)] bg-[var(--color-bg-secondary)]",c="!bg-transparent border-b border-[color-mix(in_srgb,var(--color-teal)_25%,transparent)]",b="px-4 py-3 text-start font-semibold text-[var(--color-system-text)] max-sm:px-2 max-sm:py-2 max-sm:text-12",m="px-0 py-2.5 whitespace-nowrap text-[1.1875rem] font-bold text-[var(--color-slate)] first:ps-6 last:pe-6 h-[4.25rem]",p="px-5 py-2.5 whitespace-nowrap text-[1.1875rem] font-bold text-[var(--color-slate)] first:ps-6 last:pe-6 h-[4.25rem]",d="flex items-center gap-1",f="whitespace-nowrap",g="border-b border-[var(--color-border)]",v="border-0 even:bg-transparent hover:bg-white h-[4.5rem]",w="hover:bg-[var(--color-bg)]",h="even:bg-[var(--color-bg)]",_="px-4 py-3 text-[var(--color-text)] max-sm:px-2 max-sm:py-2 max-sm:text-12",u="max-w-0 overflow-hidden",y="px-0 py-2.5 text-18 font-normal text-[var(--color-text)] first:ps-6 last:pe-6 h-[4.5rem]",k="px-5 py-2.5 text-18 font-normal text-[var(--color-text)] first:ps-6 last:pe-6 h-[4.5rem]",j="flex flex-col items-center justify-center gap-4 py-16 px-6 max-sm:py-10",z="w-[11.875rem] h-[11.875rem] text-[var(--color-system-text)]",q="text-16 leading-24 font-normal text-[var(--color-system-text)] text-center max-w-[20rem]",A="flex items-center justify-between p-6 max-sm:p-4",B="py-4 text-center",C=["h-3 rounded-4","bg-[linear-gradient(90deg,color-mix(in_srgb,var(--color-border)_40%,transparent)_0%,color-mix(in_srgb,var(--color-grey-skeleton)_40%,transparent)_100%)]","relative overflow-hidden","after:absolute after:inset-0","after:bg-[linear-gradient(90deg,transparent_0%,color-mix(in_srgb,var(--color-white)_40%,transparent)_50%,transparent_100%)]","after:animate-[shimmer_1.5s_ease-in-out_infinite]","after:[background-size:200%_100%]"].join(" "),D="overflow-y-auto datatable-scrollbar",E=["sticky top-0 z-[5] !border-b-0","[&>tr>th]:transition-[background-color] [&>tr>th]:duration-500 [&>tr>th]:ease-in-out","after:absolute after:left-0 after:right-0 after:bottom-0 after:h-px after:bg-[color-mix(in_srgb,var(--color-teal)_25%,transparent)]"].join(" "),F=["[&>tr>th]:!bg-white","[&>tr>th:first-child]:rounded-tl-16","[&>tr>th:last-child]:rounded-tr-16"].join(" "),G="w-[4.75rem] min-w-[4.75rem] max-w-[4.75rem] ps-6 pe-[0.75rem] py-0 max-sm:pe-2 max-sm:ps-2",H="flex items-center justify-center w-[2.5rem] h-[2.5rem] cursor-pointer",I="cursor-pointer focus:bg-[var(--color-bg)]",J="focus:bg-white",K=["fixed bottom-8 left-1/2 -translate-x-1/2 z-50","flex items-center justify-between","w-[46.875rem] max-w-[calc(100%-2rem)]","py-4 ps-8 pe-4","bg-white rounded-2xl","border border-solid border-[color-mix(in_srgb,var(--color-teal)_15%,transparent)]","shadow-[0_4px_24px_0_color-mix(in_srgb,var(--color-black)_8%,transparent)]"].join(" ");export{i as cellTooltipContentStyles,s as cellTruncateStyles,G as checkboxCellStyles,H as checkboxLabelStyles,z as emptyStateIconStyles,q as emptyStateTextStyles,j as emptyStateWrapperStyles,K as footerBarStyles,A as headerBarStyles,d as headerCellContentStyles,f as headerLabelStyles,B as loadingRowStyles,D as scrollContainerStyles,C as skeletonCellStyles,F as stickyTheadScrolledStyles,E as stickyTheadStyles,l as tableBaseStyles,n as tableFixedLayoutStyles,y as tdBorderBreakStyles,k as tdBorderBreakTruncateStyles,_ as tdStyles,u as tdTruncateStyles,m as thBorderBreakStyles,p as thBorderBreakTruncateStyles,b as thStyles,c as theadBorderBreakStyles,x as theadStyles,v as trBorderBreakStyles,J as trClickableBorderBreakFocusStyles,I as trClickableStyles,w as trHoverableStyles,h as trStripedEvenStyles,g as trStripedStyles,a as wrapperBorderBreakFlatBottomStyles,o as wrapperBorderBreakRoundedStyles,t as wrapperBorderBreakStyles,e as wrapperScrollXStyles,r as wrapperStyles};
package/dist/index99.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.containerStyles="chip-group__container flex flex-nowrap gap-2 md:gap-2.5 lg:gap-2 items-center",exports.itemButtonStyles="relative inline-flex items-center gap-1 cursor-pointer outline-none transition-all duration-200 rounded focus-visible:outline-2 focus-visible:outline-[var(--color-clickable)] focus-visible:outline-offset-0.5 focus-visible:rounded active:scale-[0.98] aria-[disabled=true]:cursor-not-allowed [&_.cursor-pointer]:cursor-pointer [&_[aria-disabled=true]]:cursor-not-allowed",exports.itemWrapperStyles="inline-flex shrink-0",exports.overflowButtonStyles="relative inline-flex shrink-0 cursor-pointer",exports.overflowChipClassMap={primary:"!bg-[color-mix(in_srgb,var(--color-clickable)_20%,transparent)] !border-[color-mix(in_srgb,var(--color-clickable)_50%,transparent)] hover:!bg-[color-mix(in_srgb,var(--color-clickable)_25%,transparent)] hover:!border-[color-mix(in_srgb,var(--color-clickable)_60%,transparent)]",secondary:"!bg-[color-mix(in_srgb,var(--color-toggle)_20%,transparent)] !border-[color-mix(in_srgb,var(--color-toggle)_50%,transparent)] hover:!bg-[color-mix(in_srgb,var(--color-toggle)_25%,transparent)] hover:!border-[color-mix(in_srgb,var(--color-toggle)_60%,transparent)]",tertiary:"!bg-[color-mix(in_srgb,var(--color-popup)_20%,transparent)] !border-[color-mix(in_srgb,var(--color-popup)_50%,transparent)] hover:!bg-[color-mix(in_srgb,var(--color-popup)_25%,transparent)] hover:!border-[color-mix(in_srgb,var(--color-popup)_60%,transparent)]",quaternary:"!bg-[color-mix(in_srgb,var(--color-secondary)_20%,transparent)] !border-[color-mix(in_srgb,var(--color-secondary)_50%,transparent)] hover:!bg-[color-mix(in_srgb,var(--color-secondary)_25%,transparent)] hover:!border-[color-mix(in_srgb,var(--color-secondary)_60%,transparent)]"},exports.removeButtonStyles="absolute end-1 top-1/2 -translate-y-1/2 flex items-center justify-center w-4 h-4 p-0 border-none bg-transparent cursor-pointer rounded-full transition-colors hover:bg-[color-mix(in_srgb,currentColor_20%,transparent)] focus-visible:outline-2 focus-visible:outline-[var(--color-clickable)] focus-visible:outline-offset-1 text-current",exports.rootStyles="block w-full relative overflow-visible",exports.tooltipItemStyles="whitespace-pre-wrap break-words min-w-full w-min";
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.chipBaseStyles="inline-flex items-center justify-center py-1 px-3 md:px-3.5 rounded border border-solid text-14 leading-none font-normal transition-all duration-200 cursor-default select-none whitespace-nowrap",exports.chipVariantMap={primary:{base:"bg-[color-mix(in_srgb,var(--color-clickable)_10%,transparent)] border-[color-mix(in_srgb,var(--color-clickable)_30%,transparent)] text-[var(--color-clickable)]",hover:"hover:bg-[color-mix(in_srgb,var(--color-clickable)_15%,transparent)] hover:border-[color-mix(in_srgb,var(--color-clickable)_40%,transparent)]",selected:"bg-[var(--color-clickable)] border-[var(--color-clickable)] text-[var(--color-card)]"},secondary:{base:"bg-[color-mix(in_srgb,var(--color-toggle)_10%,transparent)] border-[color-mix(in_srgb,var(--color-toggle)_30%,transparent)] text-[var(--color-toggle)]",hover:"hover:bg-[color-mix(in_srgb,var(--color-toggle)_15%,transparent)] hover:border-[color-mix(in_srgb,var(--color-toggle)_40%,transparent)]",selected:"bg-[var(--color-toggle)] border-[var(--color-toggle)] text-[var(--color-card)]"},tertiary:{base:"bg-[color-mix(in_srgb,var(--color-popup)_10%,transparent)] border-[color-mix(in_srgb,var(--color-popup)_30%,transparent)] text-[var(--color-popup)]",hover:"hover:bg-[color-mix(in_srgb,var(--color-popup)_15%,transparent)] hover:border-[color-mix(in_srgb,var(--color-popup)_40%,transparent)]",selected:"bg-[var(--color-popup)] border-[var(--color-popup)] text-[var(--color-card)]"},quaternary:{base:"bg-[color-mix(in_srgb,var(--color-secondary)_10%,transparent)] border-[color-mix(in_srgb,var(--color-secondary)_30%,transparent)] text-[var(--color-secondary)]",hover:"hover:bg-[color-mix(in_srgb,var(--color-secondary)_15%,transparent)] hover:border-[color-mix(in_srgb,var(--color-secondary)_40%,transparent)]",selected:"bg-[var(--color-secondary)] border-[var(--color-secondary)] text-[var(--color-card)]"}};
package/dist/index99.js CHANGED
@@ -1 +1 @@
1
- const r={primary:"!bg-[color-mix(in_srgb,var(--color-clickable)_20%,transparent)] !border-[color-mix(in_srgb,var(--color-clickable)_50%,transparent)] hover:!bg-[color-mix(in_srgb,var(--color-clickable)_25%,transparent)] hover:!border-[color-mix(in_srgb,var(--color-clickable)_60%,transparent)]",secondary:"!bg-[color-mix(in_srgb,var(--color-toggle)_20%,transparent)] !border-[color-mix(in_srgb,var(--color-toggle)_50%,transparent)] hover:!bg-[color-mix(in_srgb,var(--color-toggle)_25%,transparent)] hover:!border-[color-mix(in_srgb,var(--color-toggle)_60%,transparent)]",tertiary:"!bg-[color-mix(in_srgb,var(--color-popup)_20%,transparent)] !border-[color-mix(in_srgb,var(--color-popup)_50%,transparent)] hover:!bg-[color-mix(in_srgb,var(--color-popup)_25%,transparent)] hover:!border-[color-mix(in_srgb,var(--color-popup)_60%,transparent)]",quaternary:"!bg-[color-mix(in_srgb,var(--color-secondary)_20%,transparent)] !border-[color-mix(in_srgb,var(--color-secondary)_50%,transparent)] hover:!bg-[color-mix(in_srgb,var(--color-secondary)_25%,transparent)] hover:!border-[color-mix(in_srgb,var(--color-secondary)_60%,transparent)]"},o="block w-full relative overflow-visible",e="chip-group__container flex flex-nowrap gap-2 md:gap-2.5 lg:gap-2 items-center",n="inline-flex shrink-0",i="relative inline-flex items-center gap-1 cursor-pointer outline-none transition-all duration-200 rounded focus-visible:outline-2 focus-visible:outline-[var(--color-clickable)] focus-visible:outline-offset-0.5 focus-visible:rounded active:scale-[0.98] aria-[disabled=true]:cursor-not-allowed [&_.cursor-pointer]:cursor-pointer [&_[aria-disabled=true]]:cursor-not-allowed",l="absolute end-1 top-1/2 -translate-y-1/2 flex items-center justify-center w-4 h-4 p-0 border-none bg-transparent cursor-pointer rounded-full transition-colors hover:bg-[color-mix(in_srgb,currentColor_20%,transparent)] focus-visible:outline-2 focus-visible:outline-[var(--color-clickable)] focus-visible:outline-offset-1 text-current",a="relative inline-flex shrink-0 cursor-pointer",t="whitespace-pre-wrap break-words min-w-full w-min";export{e as containerStyles,i as itemButtonStyles,n as itemWrapperStyles,a as overflowButtonStyles,r as overflowChipClassMap,l as removeButtonStyles,o as rootStyles,t as tooltipItemStyles};
1
+ const r={primary:{base:"bg-[color-mix(in_srgb,var(--color-clickable)_10%,transparent)] border-[color-mix(in_srgb,var(--color-clickable)_30%,transparent)] text-[var(--color-clickable)]",hover:"hover:bg-[color-mix(in_srgb,var(--color-clickable)_15%,transparent)] hover:border-[color-mix(in_srgb,var(--color-clickable)_40%,transparent)]",selected:"bg-[var(--color-clickable)] border-[var(--color-clickable)] text-[var(--color-card)]"},secondary:{base:"bg-[color-mix(in_srgb,var(--color-toggle)_10%,transparent)] border-[color-mix(in_srgb,var(--color-toggle)_30%,transparent)] text-[var(--color-toggle)]",hover:"hover:bg-[color-mix(in_srgb,var(--color-toggle)_15%,transparent)] hover:border-[color-mix(in_srgb,var(--color-toggle)_40%,transparent)]",selected:"bg-[var(--color-toggle)] border-[var(--color-toggle)] text-[var(--color-card)]"},tertiary:{base:"bg-[color-mix(in_srgb,var(--color-popup)_10%,transparent)] border-[color-mix(in_srgb,var(--color-popup)_30%,transparent)] text-[var(--color-popup)]",hover:"hover:bg-[color-mix(in_srgb,var(--color-popup)_15%,transparent)] hover:border-[color-mix(in_srgb,var(--color-popup)_40%,transparent)]",selected:"bg-[var(--color-popup)] border-[var(--color-popup)] text-[var(--color-card)]"},quaternary:{base:"bg-[color-mix(in_srgb,var(--color-secondary)_10%,transparent)] border-[color-mix(in_srgb,var(--color-secondary)_30%,transparent)] text-[var(--color-secondary)]",hover:"hover:bg-[color-mix(in_srgb,var(--color-secondary)_15%,transparent)] hover:border-[color-mix(in_srgb,var(--color-secondary)_40%,transparent)]",selected:"bg-[var(--color-secondary)] border-[var(--color-secondary)] text-[var(--color-card)]"}},o="inline-flex items-center justify-center py-1 px-3 md:px-3.5 rounded border border-solid text-14 leading-none font-normal transition-all duration-200 cursor-default select-none whitespace-nowrap";export{o as chipBaseStyles,r as chipVariantMap};
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/DataTable.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAMf,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAqCzE,eAAO,MAAM,SAAS,6GA6brB,CAAC;AAIF;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,eAAe,CAAC;IACrE,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,SAAS,4GAgDrB,CAAC;AAIF,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"DataTable.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/DataTable.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,SAAS,EACd,KAAK,cAAc,EAEpB,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,mBAAmB,CAAC;AA4CzE,eAAO,MAAM,SAAS,6GA8iBrB,CAAC;AAIF;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,eAAe,CAAC;IACrE,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,SAAS,4GAgDrB,CAAC;AAIF,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,12 +1,17 @@
1
- export declare const wrapperStyles = "w-full overflow-x-auto [-webkit-overflow-scrolling:touch] [scrollbar-width:thin] [scrollbar-color:var(--color-border)_var(--color-bg-secondary)]";
1
+ export declare const wrapperStyles = "w-full [-webkit-overflow-scrolling:touch] [scrollbar-width:thin] [scrollbar-color:var(--color-border)_var(--color-bg-secondary)]";
2
+ export declare const wrapperScrollXStyles = "overflow-x-auto";
2
3
  export declare const wrapperBorderBreakStyles = "card-border-break bg-[var(--color-overlay-white-43)]";
3
4
  export declare const wrapperBorderBreakRoundedStyles = "rounded-2xl";
4
5
  export declare const wrapperBorderBreakFlatBottomStyles = "rounded-t-2xl card-border-break--flat-bottom";
5
6
  export declare const tableBaseStyles = "w-full border-collapse text-14 leading-normal text-[var(--color-text)]";
7
+ export declare const tableFixedLayoutStyles = "table-fixed";
8
+ export declare const cellTruncateStyles = "block min-w-0 max-w-full truncate";
9
+ export declare const cellTooltipContentStyles: string;
6
10
  export declare const theadStyles = "border-b border-[var(--color-border)] bg-[var(--color-bg-secondary)]";
7
11
  export declare const theadBorderBreakStyles = "!bg-transparent border-b border-[color-mix(in_srgb,var(--color-teal)_25%,transparent)]";
8
12
  export declare const thStyles = "px-4 py-3 text-start font-semibold text-[var(--color-system-text)] max-sm:px-2 max-sm:py-2 max-sm:text-12";
9
13
  export declare const thBorderBreakStyles = "px-0 py-2.5 whitespace-nowrap text-[1.1875rem] font-bold text-[var(--color-slate)] first:ps-6 last:pe-6 h-[4.25rem]";
14
+ export declare const thBorderBreakTruncateStyles = "px-5 py-2.5 whitespace-nowrap text-[1.1875rem] font-bold text-[var(--color-slate)] first:ps-6 last:pe-6 h-[4.25rem]";
10
15
  export declare const headerCellContentStyles = "flex items-center gap-1";
11
16
  export declare const headerLabelStyles = "whitespace-nowrap";
12
17
  export declare const trStripedStyles = "border-b border-[var(--color-border)]";
@@ -14,7 +19,10 @@ export declare const trBorderBreakStyles = "border-0 even:bg-transparent hover:b
14
19
  export declare const trHoverableStyles = "hover:bg-[var(--color-bg)]";
15
20
  export declare const trStripedEvenStyles = "even:bg-[var(--color-bg)]";
16
21
  export declare const tdStyles = "px-4 py-3 text-[var(--color-text)] max-sm:px-2 max-sm:py-2 max-sm:text-12";
22
+ /** Required on `<td>` when truncating — lets table-fixed columns shrink below content width. */
23
+ export declare const tdTruncateStyles = "max-w-0 overflow-hidden";
17
24
  export declare const tdBorderBreakStyles = "px-0 py-2.5 text-18 font-normal text-[var(--color-text)] first:ps-6 last:pe-6 h-[4.5rem]";
25
+ export declare const tdBorderBreakTruncateStyles = "px-5 py-2.5 text-18 font-normal text-[var(--color-text)] first:ps-6 last:pe-6 h-[4.5rem]";
18
26
  export declare const emptyCellStyles = "p-12 text-center text-[var(--color-icon-secondary)] italic max-sm:p-8";
19
27
  export declare const emptyStateWrapperStyles = "flex flex-col items-center justify-center gap-4 py-16 px-6 max-sm:py-10";
20
28
  export declare const emptyStateIconStyles = "w-[11.875rem] h-[11.875rem] text-[var(--color-system-text)]";
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/DataTable.styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,qJAC0H,CAAC;AAErJ,eAAO,MAAM,wBAAwB,yDAAyD,CAAC;AAC/F,eAAO,MAAM,+BAA+B,gBAAgB,CAAC;AAC7D,eAAO,MAAM,kCAAkC,iDAAiD,CAAC;AAEjG,eAAO,MAAM,eAAe,2EAC8C,CAAC;AAE3E,eAAO,MAAM,WAAW,yEAAyE,CAAC;AAClG,eAAO,MAAM,sBAAsB,2FACuD,CAAC;AAE3F,eAAO,MAAM,QAAQ,8GACwF,CAAC;AAE9G,eAAO,MAAM,mBAAmB,wHACuF,CAAC;AAExH,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AACjE,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,eAAe,0CAA0C,CAAC;AACvE,eAAO,MAAM,mBAAmB,2DAA2D,CAAC;AAC5F,eAAO,MAAM,iBAAiB,+BAA+B,CAAC;AAC9D,eAAO,MAAM,mBAAmB,8BAA8B,CAAC;AAE/D,eAAO,MAAM,QAAQ,8EAA8E,CAAC;AAEpG,eAAO,MAAM,mBAAmB,6FAC4D,CAAC;AAE7F,eAAO,MAAM,eAAe,0EAC6C,CAAC;AAE1E,eAAO,MAAM,uBAAuB,4EACuC,CAAC;AAE5E,eAAO,MAAM,oBAAoB,gEAAgE,CAAC;AAElG,eAAO,MAAM,oBAAoB,6FAC2D,CAAC;AAE7F,eAAO,MAAM,eAAe,qDAAqD,CAAC;AAElF,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD,eAAO,MAAM,kBAAkB,QAQpB,CAAC;AAEZ,eAAO,MAAM,qBAAqB,wCAAwC,CAAC;AAE3E,eAAO,MAAM,iBAAiB,QAInB,CAAC;AAEZ,eAAO,MAAM,yBAAyB,QAI3B,CAAC;AAEZ,eAAO,MAAM,kBAAkB,+FAC+D,CAAC;AAE/F,eAAO,MAAM,mBAAmB,0EACyC,CAAC;AAE1E,eAAO,MAAM,iBAAiB,8CAA8C,CAAC;AAC7E,eAAO,MAAM,iCAAiC,mBAAmB,CAAC;AAElE,eAAO,MAAM,eAAe,QAQjB,CAAC"}
1
+ {"version":3,"file":"DataTable.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/DataTable.styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,qIAC0G,CAAC;AAErI,eAAO,MAAM,oBAAoB,oBAAoB,CAAC;AAEtD,eAAO,MAAM,wBAAwB,yDAAyD,CAAC;AAC/F,eAAO,MAAM,+BAA+B,gBAAgB,CAAC;AAC7D,eAAO,MAAM,kCAAkC,iDAAiD,CAAC;AAEjG,eAAO,MAAM,eAAe,2EAC8C,CAAC;AAE3E,eAAO,MAAM,sBAAsB,gBAAgB,CAAC;AAEpD,eAAO,MAAM,kBAAkB,sCAAsC,CAAC;AAEtE,eAAO,MAAM,wBAAwB,QAQ1B,CAAC;AAEZ,eAAO,MAAM,WAAW,yEAAyE,CAAC;AAClG,eAAO,MAAM,sBAAsB,2FACuD,CAAC;AAE3F,eAAO,MAAM,QAAQ,8GACwF,CAAC;AAE9G,eAAO,MAAM,mBAAmB,wHACuF,CAAC;AAExH,eAAO,MAAM,2BAA2B,wHAC+E,CAAC;AAExH,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AACjE,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,eAAe,0CAA0C,CAAC;AACvE,eAAO,MAAM,mBAAmB,2DAA2D,CAAC;AAC5F,eAAO,MAAM,iBAAiB,+BAA+B,CAAC;AAC9D,eAAO,MAAM,mBAAmB,8BAA8B,CAAC;AAE/D,eAAO,MAAM,QAAQ,8EAA8E,CAAC;AAEpG,gGAAgG;AAChG,eAAO,MAAM,gBAAgB,4BAA4B,CAAC;AAE1D,eAAO,MAAM,mBAAmB,6FAC4D,CAAC;AAE7F,eAAO,MAAM,2BAA2B,6FACoD,CAAC;AAE7F,eAAO,MAAM,eAAe,0EAC6C,CAAC;AAE1E,eAAO,MAAM,uBAAuB,4EACuC,CAAC;AAE5E,eAAO,MAAM,oBAAoB,gEAAgE,CAAC;AAElG,eAAO,MAAM,oBAAoB,6FAC2D,CAAC;AAE7F,eAAO,MAAM,eAAe,qDAAqD,CAAC;AAElF,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD,eAAO,MAAM,kBAAkB,QAQpB,CAAC;AAEZ,eAAO,MAAM,qBAAqB,wCAAwC,CAAC;AAE3E,eAAO,MAAM,iBAAiB,QAInB,CAAC;AAEZ,eAAO,MAAM,yBAAyB,QAI3B,CAAC;AAEZ,eAAO,MAAM,kBAAkB,+FAC+D,CAAC;AAE/F,eAAO,MAAM,mBAAmB,0EACyC,CAAC;AAE1E,eAAO,MAAM,iBAAiB,8CAA8C,CAAC;AAC7E,eAAO,MAAM,iCAAiC,mBAAmB,CAAC;AAElE,eAAO,MAAM,eAAe,QAQjB,CAAC"}
@@ -31,6 +31,12 @@ export interface DataTableColumn {
31
31
  filterSearchable?: boolean;
32
32
  /** Optional title rendered above the filter options list. */
33
33
  filterTitle?: ReactNode;
34
+ /**
35
+ * Truncate overflowing plain-text cell content and show the full value in a tooltip
36
+ * on hover. Does not apply to columns with a custom `render` function.
37
+ * Defaults to the table-level `truncateOverflow` prop when omitted.
38
+ */
39
+ truncate?: boolean;
34
40
  }
35
41
  export interface DataTableProps extends TableHTMLAttributes<HTMLTableElement> {
36
42
  columns: DataTableColumn[];
@@ -93,6 +99,11 @@ export interface DataTableProps extends TableHTMLAttributes<HTMLTableElement> {
93
99
  * filter `data` in response.
94
100
  */
95
101
  onFilterChange?: (key: string, values: string[]) => void;
102
+ /**
103
+ * When true, locks each column to its measured width on first render and
104
+ * truncates overflowing plain-text cells with a tooltip (Figma tooltip style).
105
+ */
106
+ truncateOverflow?: boolean;
96
107
  'data-cy'?: string;
97
108
  'data-testid'?: string;
98
109
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/DataTable.types.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"DataTable.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/DataTable.types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,12 @@
1
+ export interface DataTableTruncatedCellProps {
2
+ text: string;
3
+ /** Bumps when column widths lock so overflow is re-measured. */
4
+ layoutKey?: string;
5
+ 'data-cy'?: string;
6
+ 'data-testid'?: string;
7
+ }
8
+ export declare const DataTableTruncatedCell: {
9
+ ({ text, layoutKey, "data-cy": dataCy, "data-testid": dataTestId, }: DataTableTruncatedCellProps): import("react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
12
+ //# sourceMappingURL=DataTableTruncatedCell.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTableTruncatedCell.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/DataTableTruncatedCell.component.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,sBAAsB;yEAKhC,2BAA2B;;CA0D7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const measureTextWidth: (element: HTMLElement, text: string) => number;
2
+ export declare const isTextOverflowing: (element: HTMLElement, text: string) => boolean;
3
+ //# sourceMappingURL=dataTableOverflow.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataTableOverflow.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/dataTableOverflow.utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,GAAI,SAAS,WAAW,EAAE,MAAM,MAAM,KAAG,MAWrE,CAAC;AAUF,eAAO,MAAM,iBAAiB,GAAI,SAAS,WAAW,EAAE,MAAM,MAAM,KAAG,OAatE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { RefObject } from 'react';
2
+ import { DataTableColumn } from './DataTable.types';
3
+
4
+ export declare const CHECKBOX_COLUMN_WIDTH = "4.75rem";
5
+ /** True when a column width is a fixed length the table can reserve verbatim. */
6
+ export declare const isExplicitColumnWidth: (width: string) => boolean;
7
+ /**
8
+ * Distributes auto-sized columns across the space left by the checkbox column and
9
+ * any explicit px/rem widths. Results are `calc()` expressions rather than plain
10
+ * percentages so the split stays correct when the table is resized or zoomed.
11
+ */
12
+ export declare const useLockedColumnWidths: (enabled: boolean, columns: DataTableColumn[], tableRef: RefObject<HTMLTableElement | null>, dataCy: string, selectable: boolean) => Record<string, string> | undefined;
13
+ //# sourceMappingURL=useLockedColumnWidths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLockedColumnWidths.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/useLockedColumnWidths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAoB/C,iFAAiF;AACjF,eAAO,MAAM,qBAAqB,GAAI,OAAO,MAAM,KAAG,OAA4C,CAAC;AA8CnG;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAChC,SAAS,OAAO,EAChB,SAAS,eAAe,EAAE,EAC1B,UAAU,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,EAC5C,QAAQ,MAAM,EACd,YAAY,OAAO,KAClB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAmE3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneInput.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/phone-input/PhoneInput.component.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAgC1D,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,cAAc,EACd,kBAAkB,GACnB,MAAM,aAAa,CAAC;AAyBrB,eAAO,MAAM,UAAU,8GAghBtB,CAAC;AAIF,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"PhoneInput.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/phone-input/PhoneInput.component.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAgC1D,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,cAAc,EACd,kBAAkB,GACnB,MAAM,aAAa,CAAC;AAyBrB,eAAO,MAAM,UAAU,8GAihBtB,CAAC;AAIF,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
@@ -20,7 +20,10 @@ export interface PhoneInputProps extends Omit<InputHTMLAttributes<HTMLInputEleme
20
20
  /** Localized message shown when country search has no matches. */
21
21
  countrySearchNoResultsText?: string;
22
22
  enableFormatting?: boolean;
23
- /** Maximum national digits accepted by typing or paste. Defaults to the E.164 cap. */
23
+ /**
24
+ * Maximum national digits accepted by typing or paste.
25
+ * Defaults to the E.164 national cap (15); may be raised above it when needed.
26
+ */
24
27
  maxNationalDigits?: number;
25
28
  /**
26
29
  * Soft signal when national digits are non-empty. Not mask-length or
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneInput.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/phone-input/PhoneInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,OAAO,GAAG,UAAU,CAC9B;IACC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8GAA8G;IAC9G,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,gGAAgG;IAChG,SAAS,EAAE,OAAO,EAAE,CAAC;IACrB,qEAAqE;IACrE,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,kEAAkE;IAClE,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,sFAAsF;IACtF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
1
+ {"version":3,"file":"PhoneInput.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/phone-input/PhoneInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,OAAO,GAAG,UAAU,CAC9B;IACC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8GAA8G;IAC9G,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,gGAAgG;IAChG,SAAS,EAAE,OAAO,EAAE,CAAC;IACrB,qEAAqE;IACrE,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,kEAAkE;IAClE,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -8,9 +8,9 @@ export declare const defaultPhoneMask: PhoneMask;
8
8
  /**
9
9
  * Format digits using the given mask for display.
10
10
  * Digits beyond the mask’s `#` slots are appended unformatted so longer valid
11
- * numbers remain visible. Caps at {@link E164_MAX_NATIONAL_DIGITS}.
11
+ * numbers remain visible. Caps at `maxDigits` (defaults to {@link E164_MAX_NATIONAL_DIGITS}).
12
12
  */
13
- export declare function formatWithMask(value: string, mask: PhoneMask): string;
13
+ export declare function formatWithMask(value: string, mask: PhoneMask, maxDigits?: number): string;
14
14
  export declare function getPhoneDigits(formattedValue: string): string;
15
15
  /**
16
16
  * Soft length check only — not a substitute for real phone validation.
@@ -1 +1 @@
1
- {"version":3,"file":"countries.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/phone-input/countries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE5D,8FAA8F;AAC9F,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,EAAE,SAI9B,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,MAAM,CAqBrE;AAED,wBAAgB,cAAc,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,CAG5E"}
1
+ {"version":3,"file":"countries.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/phone-input/countries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE5D,8FAA8F;AAC9F,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,EAAE,SAI9B,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,SAAS,EACf,SAAS,GAAE,MAAiC,GAC3C,MAAM,CAwBR;AAED,wBAAgB,cAAc,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,CAG5E"}