@ncino/web-components 9.0.0-preview.4 → 9.0.0-preview.5

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 (99) hide show
  1. package/dist/_virtual/index2.js +1 -1
  2. package/dist/_virtual/index3.js +1 -1
  3. package/dist/_virtual/index5.js +1 -1
  4. package/dist/_virtual/index6.js +1 -1
  5. package/dist/components/accordion/gator/base/accordion.gator.js +2 -2
  6. package/dist/components/accordion/gator/group/accordion-group.gator.js +1 -1
  7. package/dist/components/alert/gator/base/alert.gator.js +1 -1
  8. package/dist/components/alert/gator/subtitle/alert-subtitle.gator.js +1 -1
  9. package/dist/components/alert/gator/title/alert-title.gator.js +1 -1
  10. package/dist/components/avatar/gator/avatar.gator.js +1 -1
  11. package/dist/components/badge/gator/badge.gator.js +1 -1
  12. package/dist/components/banner/gator/banner.gator.js +2 -2
  13. package/dist/components/boolean/boolean.gator.js +2 -2
  14. package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.js +1 -1
  15. package/dist/components/breadcrumbs/gator/container/breadcrumbs.gator.js +2 -2
  16. package/dist/components/button/gator/button.gator.js +1 -1
  17. package/dist/components/button-card/gator/button-card.gator.js +2 -2
  18. package/dist/components/button-group/gator/button-group.gator.js +2 -2
  19. package/dist/components/card/gator/base/card.gator.js +1 -1
  20. package/dist/components/card/gator/content/card-content.gator.js +1 -1
  21. package/dist/components/card/gator/footer/card-footer.gator.js +1 -1
  22. package/dist/components/card/gator/header/card-header.gator.js +1 -1
  23. package/dist/components/checkbox/checkbox.gator.js +1 -1
  24. package/dist/components/checkbox-group/checkbox-group.gator.js +2 -2
  25. package/dist/components/chip/gator/chip.gator.js +1 -1
  26. package/dist/components/date-picker/base/gator/datepicker.gator.js +2 -2
  27. package/dist/components/date-picker/year-month-selector/year-month-selector.gator.js +1 -1
  28. package/dist/components/display-card/gator/display-card.gator.js +1 -1
  29. package/dist/components/divider/gator/divider.gator.js +2 -2
  30. package/dist/components/fab/gator/fab.gator.js +1 -1
  31. package/dist/components/guided-nav/gator/guided-nav/guided-nav.gator.js +1 -1
  32. package/dist/components/guided-nav/gator/guided-nav-step/guided-nav-step.gator.js +2 -2
  33. package/dist/components/guided-nav/gator/guided-nav-substep/guided-nav-substep.gator.js +1 -1
  34. package/dist/components/headline-card/gator/headline-card.gator.js +2 -2
  35. package/dist/components/icon/gator/icon.gator.js +1 -1
  36. package/dist/components/icon-button/gator/icon-button.gator.js +1 -1
  37. package/dist/components/illustration/gator/illustration.gator.js +1 -1
  38. package/dist/components/image-card/gator/image-card.gator.js +1 -1
  39. package/dist/components/input/gator/dropdown/input-dropdown.gator.js +1 -1
  40. package/dist/components/input/gator/help-text/help-text.gator.js +1 -1
  41. package/dist/components/input/gator/input-currency/input-currency.gator.js +1 -1
  42. package/dist/components/input/gator/input-date/input-date.gator.js +1 -1
  43. package/dist/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js +1 -1
  44. package/dist/components/input/gator/input-file/input-file.gator.js +1 -1
  45. package/dist/components/input/gator/input-label/input-label.gator.js +1 -1
  46. package/dist/components/input/gator/input-masked/input-masked.gator.js +1 -1
  47. package/dist/components/input/gator/input-percent/input-percent.gator.js +1 -1
  48. package/dist/components/input/gator/input-phone/input-phone.gator.js +1 -1
  49. package/dist/components/input/gator/input-search/input-search.gator.js +1 -1
  50. package/dist/components/input/gator/input-text/input-text.gator.js +1 -1
  51. package/dist/components/input/gator/input-textarea/input-textarea.gator.js +1 -1
  52. package/dist/components/input/gator/input-time/input-time.gator.js +1 -1
  53. package/dist/components/input-rich-text/input-rich-text.slds.js +1 -1
  54. package/dist/components/list/gator/list/list.gator.js +1 -1
  55. package/dist/components/list/gator/list-item/list-item.gator.js +2 -2
  56. package/dist/components/loading-spinner/gator/loading-spinner.gator.js +1 -1
  57. package/dist/components/menu/base/gator/menu.gator.js +1 -1
  58. package/dist/components/menu/menu-item/gator/menu-item.gator.js +1 -1
  59. package/dist/components/modal/gator/modal.gator.js +1 -1
  60. package/dist/components/page-header/gator/page-header.gator.js +1 -1
  61. package/dist/components/panel/gator/panel.gator.js +1 -1
  62. package/dist/components/popover/gator/popover.gator.js +1 -1
  63. package/dist/components/progress-bar/gator/progress-bar.gator.js +1 -1
  64. package/dist/components/progress-ring/gator/progress-ring.gator.js +1 -1
  65. package/dist/components/progress-stepper/base/progress-stepper.gator.js +1 -1
  66. package/dist/components/progress-stepper/stepper-item/stepper-item.gator.js +2 -2
  67. package/dist/components/radio/radio.gator.js +1 -1
  68. package/dist/components/radio-group/radio-group.gator.js +2 -2
  69. package/dist/components/selection-box/selection-box.gator.js +1 -1
  70. package/dist/components/selection-box-group/selection-box-group.gator.js +1 -1
  71. package/dist/components/selector/gator/selector.gator.js +1 -1
  72. package/dist/components/skeleton-loader/gator/skeleton-loader.gator.js +1 -1
  73. package/dist/components/skip-link/gator/base/skip-link.gator.js +1 -1
  74. package/dist/components/skip-link/gator/list-item/skip-link-list-item.gator.js +1 -1
  75. package/dist/components/switch/gator/switch.gator.js +1 -1
  76. package/dist/components/table/gator/table-bulk-controls/table-bulk-controls.gator.js +1 -1
  77. package/dist/components/table/gator/table-controls/table-controls.gator.js +1 -1
  78. package/dist/components/table/gator/table-pagination/table-pagination.gator.js +1 -1
  79. package/dist/components/table/gator/table.gator.js +1 -1
  80. package/dist/components/tabs/gator/tab/tab.gator.js +2 -2
  81. package/dist/components/tabs/gator/tabset/tabset.gator.js +1 -1
  82. package/dist/components/text-detail/gator/text-detail.gator.js +6 -6
  83. package/dist/components/text-link/gator/text-link.gator.js +1 -1
  84. package/dist/components/time-picker/gator/time-picker.gator.js +1 -1
  85. package/dist/components/toast/gator/base/toast.gator.js +1 -1
  86. package/dist/components/toast/gator/subtitle/toast-subtitle.gator.js +1 -1
  87. package/dist/components/toast/gator/title/toast-title.gator.js +1 -1
  88. package/dist/components/toast-container/gator/toast-container.gator.js +2 -2
  89. package/dist/components/toaster/gator/toaster.gator.js +2 -2
  90. package/dist/components/tooltip/gator/tooltip.gator.js +1 -1
  91. package/dist/node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js +1 -1
  92. package/dist/node_modules/.pnpm/react@19.2.0/node_modules/react/index.js +1 -1
  93. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/index.js +1 -1
  94. package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.js +1 -1
  95. package/dist/types/utils/decorators/custom-element-decorator.d.ts +5 -0
  96. package/dist/utils/components/illustration-list/illustration-list.gator.js +2 -2
  97. package/dist/utils/decorators/custom-element-decorator.js +1 -0
  98. package/package.json +2 -2
  99. package/web-types.json +1 -1
@@ -1 +1 @@
1
- import{bail as P}from"../../../../bail@2.0.2/node_modules/bail/index.js";import y from"../../../../../../_virtual/index2.js";import z from"../../../../is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js";import{CallableInstance as C}from"./callable-instance.js";import{trough as A}from"../../../../trough@2.2.0/node_modules/trough/lib/index.js";import{VFile as S}from"../../../../vfile@6.0.3/node_modules/vfile/lib/index.js";const F={}.hasOwnProperty;class x extends C{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=A()}copy(){const e=new x;let n=-1;for(;++n<this.attachers.length;){const t=this.attachers[n];e.use(...t)}return e.data(y(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(b("data",this.frozen),this.namespace[e]=n,this):F.call(this.namespace,e)&&this.namespace[e]||void 0:e?(b("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...t]=this.attachers[this.freezeIndex];if(t[0]===!1)continue;t[0]===!0&&(t[0]=void 0);const i=n.call(e,...t);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=m(e),t=this.parser||this.Parser;return w("parse",t),t(String(n),n)}process(e,n){const t=this;return this.freeze(),w("process",this.parser||this.Parser),g("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,h){const p=m(e),l=t.parse(p);t.run(l,p,function(o,c,f){if(o||!c||!f)return s(o);const u=c,d=t.stringify(u,f);D(d)?f.value=d:f.result=d,s(o,f)});function s(o,c){o||!c?h(o):a?a(c):n(void 0,c)}}}processSync(e){let n=!1,t;return this.freeze(),w("processSync",this.parser||this.Parser),g("processSync",this.compiler||this.Compiler),this.process(e,i),T("processSync","process",n),t;function i(a,h){n=!0,P(a),t=h}}run(e,n,t){I(e),this.freeze();const i=this.transformers;return!t&&typeof n=="function"&&(t=n,n=void 0),t?a(void 0,t):new Promise(a);function a(h,p){const l=m(n);i.run(e,l,s);function s(o,c,f){const u=c||e;o?p(o):h?h(u):t(void 0,u,f)}}}runSync(e,n){let t=!1,i;return this.run(e,n,a),T("runSync","run",t),i;function a(h,p){P(h),i=p,t=!0}}stringify(e,n){this.freeze();const t=m(n),i=this.compiler||this.Compiler;return g("stringify",i),I(e),i(e,t)}use(e,...n){const t=this.attachers,i=this.namespace;if(b("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else if(typeof e=="object")Array.isArray(e)?p(e):h(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function a(s){if(typeof s=="function")l(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[o,...c]=s;l(o,c)}else h(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function h(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");p(s.plugins),s.settings&&(i.settings=y(!0,i.settings,s.settings))}function p(s){let o=-1;if(s!=null)if(Array.isArray(s))for(;++o<s.length;){const c=s[o];a(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function l(s,o){let c=-1,f=-1;for(;++c<t.length;)if(t[c][0]===s){f=c;break}if(f===-1)t.push([s,...o]);else if(o.length>0){let[u,...d]=o;const E=t[f][1];z(E)&&z(u)&&(u=y(!0,E,u)),t[f]=[s,u,...d]}}}}const R=new x().freeze();function w(r,e){if(typeof e!="function")throw new TypeError("Cannot `"+r+"` without `parser`")}function g(r,e){if(typeof e!="function")throw new TypeError("Cannot `"+r+"` without `compiler`")}function b(r,e){if(e)throw new Error("Cannot call `"+r+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function I(r){if(!z(r)||typeof r.type!="string")throw new TypeError("Expected node, got `"+r+"`")}function T(r,e,n){if(!n)throw new Error("`"+r+"` finished async. Use `"+e+"` instead")}function m(r){return j(r)?r:new S(r)}function j(r){return!!(r&&typeof r=="object"&&"message"in r&&"messages"in r)}function D(r){return typeof r=="string"||L(r)}function L(r){return!!(r&&typeof r=="object"&&"byteLength"in r&&"byteOffset"in r)}export{x as Processor,R as unified};
1
+ import{bail as P}from"../../../../bail@2.0.2/node_modules/bail/index.js";import y from"../../../../../../_virtual/index3.js";import z from"../../../../is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js";import{CallableInstance as C}from"./callable-instance.js";import{trough as A}from"../../../../trough@2.2.0/node_modules/trough/lib/index.js";import{VFile as S}from"../../../../vfile@6.0.3/node_modules/vfile/lib/index.js";const F={}.hasOwnProperty;class x extends C{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=A()}copy(){const e=new x;let n=-1;for(;++n<this.attachers.length;){const t=this.attachers[n];e.use(...t)}return e.data(y(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(b("data",this.frozen),this.namespace[e]=n,this):F.call(this.namespace,e)&&this.namespace[e]||void 0:e?(b("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...t]=this.attachers[this.freezeIndex];if(t[0]===!1)continue;t[0]===!0&&(t[0]=void 0);const i=n.call(e,...t);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=m(e),t=this.parser||this.Parser;return w("parse",t),t(String(n),n)}process(e,n){const t=this;return this.freeze(),w("process",this.parser||this.Parser),g("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,h){const p=m(e),l=t.parse(p);t.run(l,p,function(o,c,f){if(o||!c||!f)return s(o);const u=c,d=t.stringify(u,f);D(d)?f.value=d:f.result=d,s(o,f)});function s(o,c){o||!c?h(o):a?a(c):n(void 0,c)}}}processSync(e){let n=!1,t;return this.freeze(),w("processSync",this.parser||this.Parser),g("processSync",this.compiler||this.Compiler),this.process(e,i),T("processSync","process",n),t;function i(a,h){n=!0,P(a),t=h}}run(e,n,t){I(e),this.freeze();const i=this.transformers;return!t&&typeof n=="function"&&(t=n,n=void 0),t?a(void 0,t):new Promise(a);function a(h,p){const l=m(n);i.run(e,l,s);function s(o,c,f){const u=c||e;o?p(o):h?h(u):t(void 0,u,f)}}}runSync(e,n){let t=!1,i;return this.run(e,n,a),T("runSync","run",t),i;function a(h,p){P(h),i=p,t=!0}}stringify(e,n){this.freeze();const t=m(n),i=this.compiler||this.Compiler;return g("stringify",i),I(e),i(e,t)}use(e,...n){const t=this.attachers,i=this.namespace;if(b("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else if(typeof e=="object")Array.isArray(e)?p(e):h(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function a(s){if(typeof s=="function")l(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[o,...c]=s;l(o,c)}else h(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function h(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");p(s.plugins),s.settings&&(i.settings=y(!0,i.settings,s.settings))}function p(s){let o=-1;if(s!=null)if(Array.isArray(s))for(;++o<s.length;){const c=s[o];a(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function l(s,o){let c=-1,f=-1;for(;++c<t.length;)if(t[c][0]===s){f=c;break}if(f===-1)t.push([s,...o]);else if(o.length>0){let[u,...d]=o;const E=t[f][1];z(E)&&z(u)&&(u=y(!0,E,u)),t[f]=[s,u,...d]}}}}const R=new x().freeze();function w(r,e){if(typeof e!="function")throw new TypeError("Cannot `"+r+"` without `parser`")}function g(r,e){if(typeof e!="function")throw new TypeError("Cannot `"+r+"` without `compiler`")}function b(r,e){if(e)throw new Error("Cannot call `"+r+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function I(r){if(!z(r)||typeof r.type!="string")throw new TypeError("Expected node, got `"+r+"`")}function T(r,e,n){if(!n)throw new Error("`"+r+"` finished async. Use `"+e+"` instead")}function m(r){return j(r)?r:new S(r)}function j(r){return!!(r&&typeof r=="object"&&"message"in r&&"messages"in r)}function D(r){return typeof r=="string"||L(r)}function L(r){return!!(r&&typeof r=="object"&&"byteLength"in r&&"byteOffset"in r)}export{x as Processor,R as unified};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Custom element decorator that guards against duplicate registration during HMR.
3
+ * Drop-in replacement for Lit's @customElement decorator.
4
+ */
5
+ export declare function customElement(tagName: string): (classOrDescriptor: any) => any;
@@ -1,4 +1,4 @@
1
- import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as n}from"../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";import{LitElement as m}from"../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";import{customElement as f}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/custom-element.js";import{illustrations as p}from"../../../components/illustration/illustration-registry.js";var c=Object.getOwnPropertyDescriptor,v=(r,e,o,l)=>{for(var t=l>1?void 0:l?c(e,o):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(t=s(t)||t);return t};let a=class extends m{render(){return n`
1
+ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as n}from"../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";import{LitElement as m}from"../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";import{customElement as f}from"../../decorators/custom-element-decorator.js";import{illustrations as p}from"../../../components/illustration/illustration-registry.js";var c=Object.getOwnPropertyDescriptor,v=(r,e,a,l)=>{for(var t=l>1?void 0:l?c(e,a):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(t=s(t)||t);return t};let o=class extends m{render(){return n`
2
2
  <div style="display: flex; flex-wrap: wrap; font-family: sans-serif">
3
3
  ${Array.from(p.keys()).map(r=>n`
4
4
  <div style="display: flex; flex-direction: column; align-items: center; margin: 1rem;">
@@ -7,4 +7,4 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit
7
7
  </div>
8
8
  `)}
9
9
  </div>
10
- `}};a=v([f("ngc-illustration-list")],a);export{a as NgcIllustrationList};
10
+ `}};o=v([f("ngc-illustration-list")],o);export{o as NgcIllustrationList};
@@ -0,0 +1 @@
1
+ import{customElement as n}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/custom-element.js";import"../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";function r(t){return e=>customElements.get(t)?e:n(t)(e)}export{r as customElement};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ncino/web-components",
3
3
  "author": "nCino",
4
- "version": "9.0.0-preview.4",
4
+ "version": "9.0.0-preview.5",
5
5
  "license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org/"
@@ -106,7 +106,7 @@
106
106
  "vite-plugin-static-copy": "^3.1.4",
107
107
  "vitest": "^3.2.4",
108
108
  "yaml-eslint-parser": "^1.3.1",
109
- "@ncino/styles": "9.0.0-preview.4"
109
+ "@ncino/styles": "9.0.0-preview.5"
110
110
  },
111
111
  "peerDependencies": {
112
112
  "@ncino/styles": ">=8.0.0-preview.0"
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@ncino/web-components",
4
- "version": "9.0.0-preview.3",
4
+ "version": "9.0.0-preview.4",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {