@nectary/components 0.36.1 → 0.38.0

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 (59) hide show
  1. package/alert/index.js +1 -1
  2. package/avatar-badge/index.js +1 -1
  3. package/avatar-status/index.js +1 -1
  4. package/button/types.d.ts +6 -0
  5. package/chat-avatar/index.js +1 -1
  6. package/dialog/index.js +1 -1
  7. package/dropdown-text-option/index.js +1 -1
  8. package/field/index.d.ts +11 -0
  9. package/field/index.js +144 -0
  10. package/field/types.d.ts +35 -0
  11. package/field/types.js +1 -0
  12. package/file-drop/index.d.ts +13 -0
  13. package/file-drop/index.js +320 -0
  14. package/file-drop/types.d.ts +50 -0
  15. package/file-drop/types.js +1 -0
  16. package/file-drop/utils.d.ts +2 -0
  17. package/file-drop/utils.js +37 -0
  18. package/file-picker/index.d.ts +12 -0
  19. package/file-picker/index.js +170 -0
  20. package/file-picker/types.d.ts +32 -0
  21. package/file-picker/types.js +1 -0
  22. package/file-picker/utils.d.ts +1 -0
  23. package/file-picker/utils.js +9 -0
  24. package/file-status/index.d.ts +17 -0
  25. package/file-status/index.js +100 -0
  26. package/file-status/types.d.ts +18 -0
  27. package/file-status/types.js +1 -0
  28. package/file-status/utils.d.ts +5 -0
  29. package/file-status/utils.js +6 -0
  30. package/icons-branded/easytouse/index.d.ts +11 -0
  31. package/icons-branded/easytouse/index.js +4 -0
  32. package/illustrations/create-illustration-class.js +1 -1
  33. package/inline-alert/index.js +1 -1
  34. package/inline-alert/types.d.ts +2 -2
  35. package/input/index.js +10 -82
  36. package/input/types.d.ts +10 -24
  37. package/link/index.d.ts +1 -0
  38. package/link/index.js +19 -12
  39. package/link/types.d.ts +29 -0
  40. package/package.json +2 -2
  41. package/popover/index.js +37 -15
  42. package/progress/index.d.ts +17 -0
  43. package/progress/index.js +87 -0
  44. package/progress/types.d.ts +12 -0
  45. package/progress/types.js +1 -0
  46. package/search/index.js +1 -1
  47. package/select/index.d.ts +1 -0
  48. package/select/index.js +12 -94
  49. package/select/types.d.ts +6 -24
  50. package/spinner/index.js +1 -1
  51. package/text/index.js +9 -1
  52. package/text/types.d.ts +3 -0
  53. package/textarea/index.js +15 -83
  54. package/textarea/types.d.ts +28 -12
  55. package/title/index.js +10 -2
  56. package/title/types.d.ts +3 -0
  57. package/utils.d.ts +2 -0
  58. package/utils.js +26 -1
  59. package/vertical-stepper-item/index.js +1 -1
@@ -10,7 +10,7 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
10
10
  import '../icons/check';
11
11
  import '../icons/exclamation';
12
12
  import { defineCustomElement, getAttribute, getLiteralAttribute, NectaryElement, updateAttribute, updateLiteralAttribute } from '../utils';
13
- const templateHTML = '<style>:host{display:block;outline:0}#wrapper{position:relative;width:100%;min-height:68px;display:flex;flex-direction:column}#circle-wrapper{display:flex;flex-direction:row;align-items:flex-start;gap:8px;min-width:0}#circle{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background-color:var(--sinch-color-snow-700);font:var(--sinch-font-title-s);line-height:32px;text-align:center;color:var(--sinch-color-stormy-500);border:1px solid transparent;border-radius:50%;box-sizing:border-box;--sinch-icon-size:20px}#label-wrapper{margin-top:4px;min-width:0;flex:1}#label{font:var(--sinch-font-title-s);color:var(--sinch-color-stormy-500);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#description{font:var(--sinch-font-text-xs);color:var(--sinch-color-stormy-300);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#icon-error,#icon-success{display:none}#content{display:none;padding:16px 0 16px 40px}#progress{position:absolute;width:1px;left:16px;top:32px;bottom:0;background-color:var(--sinch-color-snow-700);transform:translateX(-50%)}#bar{position:absolute;width:1px;height:0;background-color:var(--sinch-color-stormy-400);left:0;top:0}:host(:last-of-type) #progress{display:none}:host([data-progress=active]) #content{display:block}:host([data-progress=active]) #circle{color:var(--sinch-color-snow-100);background-color:var(--sinch-color-stormy-400)}:host([data-progress=done]) #circle{border-color:var(--sinch-color-stormy-400)}:host([data-progress=done]:not([status])) #icon-success{display:block}:host([data-progress=done][status=error]) #circle{background-color:var(--sinch-color-error-200);border-color:var(--sinch-color-stormy-400)}:host([data-progress=done][status=error]) #icon-error{display:block}:host([data-progress=done]:not([status=skip])) #circle-text{display:none}:host([data-progress=done]) #bar{height:100%}</style><div id="wrapper"><div id="progress"><div id="bar"></div></div><div id="circle-wrapper"><div id="circle" aria-hidden="true"><sinch-icon-check id="icon-success"></sinch-icon-check><sinch-icon-exclamation id="icon-error"></sinch-icon-exclamation><span id="circle-text"></span></div><div id="label-wrapper"><div id="label"></div><div id="description"></div></div></div><div id="content"><slot></slot></div></div>';
13
+ const templateHTML = '<style>:host{display:block;outline:0}#wrapper{display:flex;flex-direction:column;position:relative;width:100%;min-height:68px}#circle-wrapper{display:flex;flex-direction:row;align-items:flex-start;gap:8px;min-width:0}#circle{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background-color:var(--sinch-color-snow-700);font:var(--sinch-font-title-s);line-height:32px;text-align:center;color:var(--sinch-color-stormy-500);border:1px solid transparent;border-radius:50%;box-sizing:border-box;--sinch-icon-size:20px}#label-wrapper{margin-top:4px;min-width:0;flex:1}#label{font:var(--sinch-font-title-s);color:var(--sinch-color-stormy-500);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#description{font:var(--sinch-font-text-xs);color:var(--sinch-color-stormy-300);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#icon-error,#icon-success{display:none}#content{display:none;padding:16px 0 16px 40px}#progress{position:absolute;width:1px;left:16px;top:32px;bottom:0;background-color:var(--sinch-color-snow-700);transform:translateX(-50%)}#bar{position:absolute;width:1px;height:0;background-color:var(--sinch-color-stormy-400);left:0;top:0}:host(:last-of-type) #progress{display:none}:host([data-progress=active]) #content{display:block}:host([data-progress=active]) #circle{color:var(--sinch-color-snow-100);background-color:var(--sinch-color-stormy-400)}:host([data-progress=done]) #circle{border-color:var(--sinch-color-stormy-400)}:host([data-progress=done]:not([status])) #icon-success{display:block}:host([data-progress=done][status=error]) #circle{background-color:var(--sinch-color-error-200);border-color:var(--sinch-color-stormy-400)}:host([data-progress=done][status=error]) #icon-error{display:block}:host([data-progress=done]:not([status=skip])) #circle-text{display:none}:host([data-progress=done]) #bar{height:100%}</style><div id="wrapper"><div id="progress"><div id="bar"></div></div><div id="circle-wrapper"><div id="circle" aria-hidden="true"><sinch-icon-check id="icon-success"></sinch-icon-check><sinch-icon-exclamation id="icon-error"></sinch-icon-exclamation><span id="circle-text"></span></div><div id="label-wrapper"><div id="label"></div><div id="description"></div></div></div><div id="content"><slot></slot></div></div>';
14
14
  import { statusValues } from './utils';
15
15
  const template = document.createElement('template');
16
16
  template.innerHTML = templateHTML;