@juspay/svelte-ui-components 4.57.1 → 4.57.3

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.
@@ -900,8 +900,11 @@
900
900
  caret-color: var(--chat-composer-color, #18181b);
901
901
  }
902
902
 
903
+ /* A ::selection rule replaces the browser's whole highlight, so it has to paint its own
904
+ background too; Highlight is the colour a composer without inline mentions selects with. */
903
905
  .input.inline-mentions::selection {
904
906
  color: var(--chat-composer-color, #18181b);
907
+ background-color: var(--chat-composer-selection-background, Highlight);
905
908
  }
906
909
 
907
910
  .input-highlights {
@@ -373,7 +373,7 @@
373
373
  while (ancestor) {
374
374
  observer.observe(ancestor, {
375
375
  attributes: true,
376
- attributeFilter: ['class', 'style', 'data-theme', 'dir']
376
+ attributeFilter: ['class', 'style', 'theme', 'data-theme', 'dir']
377
377
  });
378
378
  const root = ancestor.getRootNode();
379
379
  ancestor = ancestor.parentElement ?? (root instanceof ShadowRoot ? root.host : null);
package/dist-wc/index.js CHANGED
@@ -23667,6 +23667,7 @@ function Select(e, t) {
23667
23667
  attributeFilter: [
23668
23668
  "class",
23669
23669
  "style",
23670
+ "theme",
23670
23671
  "data-theme",
23671
23672
  "dir"
23672
23673
  ]
@@ -56647,7 +56648,7 @@ function normalizeDictationState(e) {
56647
56648
  //#region src/lib/ChatComposer/ChatComposer.svelte
56648
56649
  var root$12 = /* @__PURE__ */ from_html("<div class=\"control attach svelte-xpd394\"><!> <input type=\"file\" class=\"file-input\" hidden=\"\"/></div>"), root_1$11 = /* @__PURE__ */ from_html("<div class=\"leading svelte-xpd394\"><!></div>"), root_2$6 = /* @__PURE__ */ from_html("<!> <!>", 1), root_3$6 = /* @__PURE__ */ from_html("<div class=\"input-field svelte-xpd394\"><div class=\"input-highlights svelte-xpd394\" aria-hidden=\"true\"></div> <!></div>"), root_4$5 = /* @__PURE__ */ from_html("<textarea rows=\"1\"></textarea>"), root_5$4 = /* @__PURE__ */ from_html("<div><!></div>"), root_6$4 = /* @__PURE__ */ from_html("<div class=\"control send stop svelte-xpd394\"><!></div>"), root_7$4 = /* @__PURE__ */ from_html("<span> </span>"), root_8$4 = /* @__PURE__ */ from_html("<div class=\"control send svelte-xpd394\"><!></div>"), root_9$3 = /* @__PURE__ */ from_html("<!> <!> <!>", 1), root_10$3 = /* @__PURE__ */ from_html("<span class=\"slash-hint svelte-xpd394\"> </span>"), root_11$2 = /* @__PURE__ */ from_html("<span class=\"slash-desc svelte-xpd394\"> </span>"), root_12$2 = /* @__PURE__ */ from_html("<span class=\"slash-badge svelte-xpd394\"> </span>"), root_13$2 = /* @__PURE__ */ from_html("<span class=\"slash-name svelte-xpd394\"> </span> <!> <!> <!>", 1), root_14$2 = /* @__PURE__ */ from_html("<li role=\"option\"><!></li>"), root_15$2 = /* @__PURE__ */ from_html("<div role=\"listbox\"><ul class=\"slash-list svelte-xpd394\" role=\"presentation\"></ul> <div class=\"slash-foot svelte-xpd394\"> </div></div>"), root_16$2 = /* @__PURE__ */ from_html("<div class=\"sr-only svelte-xpd394\" role=\"status\" aria-live=\"polite\"> </div>"), root_17$2 = /* @__PURE__ */ from_html("<div class=\"attachments-rich svelte-xpd394\"><!></div>"), root_18$2 = /* @__PURE__ */ from_html("<div class=\"attachments svelte-xpd394\"></div>"), root_19$2 = /* @__PURE__ */ from_html("<div class=\"text-row svelte-xpd394\"><!></div> <div class=\"control-row svelte-xpd394\"><!> <div class=\"control-spacer svelte-xpd394\" aria-hidden=\"true\"></div> <!></div>", 1), root_20$1 = /* @__PURE__ */ from_html("<div><!> <!> <!> <div><!></div></div>"), $$css$33 = {
56649
56650
  hash: "svelte-xpd394",
56650
- code: ".chat-composer.svelte-xpd394 {box-sizing:border-box;display:flex;flex-direction:column;gap:var(--chat-composer-stack-gap, 8px);width:var(--chat-composer-width, 100%);padding:var(--chat-composer-padding, 8px);background:var(--chat-composer-background, #ffffff);border:var(--chat-composer-border, 1px solid #e4e4e7);border-radius:var(--chat-composer-border-radius, 24px);box-shadow:var(--chat-composer-box-shadow, none);}.chat-composer.disabled.svelte-xpd394 {opacity:var(--chat-composer-disabled-opacity, 0.6);}.chat-composer.pill.svelte-xpd394 {border-radius:var(--chat-composer-pill-border-radius, 999px);}\n\n /* .input below sets outline: none with nothing standing in for it, so the\n visible replacement lives here on the surrounding surface instead --\n :focus-within lights up whenever the textarea inside is focused, the same\n pattern Select's .select-trigger uses for its nested search input. */.chat-composer.svelte-xpd394:focus-within {border-color:var(--chat-composer-focus-border-color, #2563eb);box-shadow:var(--chat-composer-focus-shadow, 0 0 0 2px rgba(37, 99, 235, 0.2));}.attachments-rich.svelte-xpd394 {padding:var(--chat-composer-attachments-padding, 2px 4px 0);}.attachments.svelte-xpd394 {display:flex;flex-wrap:wrap;gap:var(--chat-composer-attachments-gap, 6px);padding:var(--chat-composer-attachments-padding, 2px 4px 0);}.input-row.svelte-xpd394 {display:flex;align-items:flex-end;gap:var(--chat-composer-gap, 8px);}.input-row.stacked.svelte-xpd394 {flex-direction:column;align-items:stretch;gap:var(--chat-composer-stack-gap, 8px);}.text-row.svelte-xpd394 {display:flex;min-width:0;}.control-row.svelte-xpd394 {display:flex;align-items:flex-end;gap:var(--chat-composer-gap, 8px);}.control-spacer.svelte-xpd394 {flex:1;}.stacked.svelte-xpd394 .input:where(.svelte-xpd394) {min-width:0;width:100%;}.leading.svelte-xpd394 {display:flex;align-items:center;flex-shrink:0;}.input.svelte-xpd394 {flex:1;box-sizing:border-box;resize:none;border:none;outline:none;background:transparent;font-family:var(--chat-composer-font-family, inherit);font-size:var(--chat-composer-font-size, 0.9375rem);font-weight:var(--chat-composer-font-weight, 400);line-height:var(--chat-composer-line-height, 1.5);color:var(--chat-composer-color, #18181b);padding:var(--chat-composer-input-padding, 6px 4px);max-height:var(--chat-composer-max-height, 160px);overflow-y:auto;}\n\n /* Inline mentions: an identical text layer sits behind a transparent textarea and\n colours the mentions, so the caret, selection and editing stay the textarea's own. */.input-field.svelte-xpd394 {position:relative;flex:1;min-width:0;display:flex;}.input-field.svelte-xpd394 .input:where(.svelte-xpd394) {position:relative;width:100%;scrollbar-gutter:stable;}.input.inline-mentions.svelte-xpd394 {color:transparent;caret-color:var(--chat-composer-color, #18181b);}.input.inline-mentions.svelte-xpd394::selection {color:var(--chat-composer-color, #18181b);}.input-highlights.svelte-xpd394 {position:absolute;inset:0;box-sizing:border-box;overflow:hidden;scrollbar-gutter:stable;pointer-events:none;white-space:pre-wrap;overflow-wrap:break-word;letter-spacing:normal;word-spacing:normal;font-family:var(--chat-composer-font-family, inherit);font-size:var(--chat-composer-font-size, 0.9375rem);font-weight:var(--chat-composer-font-weight, 400);line-height:var(--chat-composer-line-height, 1.5);color:var(--chat-composer-color, #18181b);padding:var(--chat-composer-input-padding, 6px 4px);}\n\n /* The mention must lay out exactly like the textarea's text, so it inherits every font\n property: a consumer's global span styles would otherwise shift it off the caret. */.input-highlights.svelte-xpd394 .mention {font:inherit;letter-spacing:inherit;word-spacing:inherit;color:var(--chat-composer-mention-color, var(--chat-composer-slash-name-color, #2563eb));}.input.svelte-xpd394::placeholder {color:var(--chat-composer-placeholder-color, #52525b);}.control.svelte-xpd394 {flex-shrink:0;display:flex;}.control.svelte-xpd394 svg {height:100%;width:100%;}.attach.svelte-xpd394,\n .voice.svelte-xpd394 {--button-width: var(--chat-composer-action-size, 36px);--button-height: var(--chat-composer-action-size, 36px);--button-padding: var(--chat-composer-action-padding, 8px);--button-border-radius: var(--chat-composer-action-border-radius, 50%);--button-color: var(--chat-composer-action-background-color, transparent);--button-text-color: var(--chat-composer-action-color, #52525b);--button-content-gap: 0px;--button-hover-color: var(--chat-composer-action-hover-background-color, #f4f4f5);\n /* Ghost brings its own hover label; keep this control's, recording red included. */--button-hover-text-color: var(--button-text-color);}.voice.recording.svelte-xpd394 {--button-color: var(--chat-composer-voice-recording-background-color, #fee2e2);--button-text-color: var(--chat-composer-voice-recording-color, #dc2626);}\n\n /* No dedicated busy palette: the disabled `Button` already dims itself\n (`--disabled-opacity`), which is enough to distinguish \"busy\" from the\n active \"recording\" red without inventing new color tokens that would\n need a matching dark-theme entry outside this component's scope. The\n `.busy` class is still applied to the wrapper (see markup) so a caller\n can target it with their own CSS if they want a distinct look. */.send.svelte-xpd394 {--button-width: var(--chat-composer-send-size, 40px);--button-height: var(--chat-composer-send-size, 40px);--button-padding: var(--chat-composer-send-padding, 8px);--button-border-radius: var(--chat-composer-send-border-radius, 50%);--button-color: var(--chat-composer-send-background-color, #18181b);--button-text-color: var(--chat-composer-send-color, #ffffff);--button-content-gap: 0px;--button-hover-color: var(--chat-composer-send-hover-background-color, #27272a);}.send.stop.svelte-xpd394 {--button-color: var(--chat-composer-stop-background-color, #18181b);--button-text-color: var(--chat-composer-stop-color, #ffffff);}\n\n /* Positioned only when slash commands are on, so their menu can sit\n above the composer; a consumer without them is unchanged. A data attribute,\n not a class, and the menu rules below are written down the structure they live in\n (.chat-composer > .slash-menu ...): a class directive would strip a `has-slash` class a\n consumer already passes through `classes`, and a class of one of these names passed\n there would match rules meant for the menu. */.chat-composer[data-has-slash].svelte-xpd394 {position:relative;}\n\n /* Positioned from the composer's padding box; the outset (e.g. the\n composer's border width) lines it up with the outer edge instead. */.chat-composer.svelte-xpd394 > .slash-menu:where(.svelte-xpd394) {position:absolute;bottom:calc(100% + var(--chat-composer-slash-menu-outset, 0px));left:calc(-1 * var(--chat-composer-slash-menu-outset, 0px));right:calc(-1 * var(--chat-composer-slash-menu-outset, 0px));margin-bottom:var(--chat-composer-slash-menu-gap, 8px);overflow:hidden;z-index:var(--chat-composer-slash-menu-z-index, 30);background:var(--chat-composer-slash-menu-background, var(--menu-background-color, #ffffff));border:var(--chat-composer-slash-menu-border, var(--menu-border, 1px solid #e0e0e0));border-radius:var(--chat-composer-slash-menu-border-radius, 12px);box-shadow:var(\n --chat-composer-slash-menu-box-shadow,\n var(--menu-box-shadow, 0px 4px 16px rgba(0, 0, 0, 0.12))\n );}\n\n /* In the top layer the menu is placed by script against the composer, so the popover's\n own defaults (inset, auto margin, padding, overflow) are cleared. */.chat-composer.svelte-xpd394 > .slash-menu.top-layer:where(.svelte-xpd394) {position:fixed;inset:auto;box-sizing:border-box;margin:0 0 var(--chat-composer-slash-menu-gap, 8px);padding:0;color:inherit;}.slash-menu.svelte-xpd394 > .slash-list:where(.svelte-xpd394) {list-style:none;margin:0;padding:var(--chat-composer-slash-list-padding, 4px);max-height:var(--chat-composer-slash-list-max-height, 280px);overflow-y:auto;display:grid;gap:var(--chat-composer-slash-list-gap, 2px);}\n\n /* Rows are menu items, not buttons: the row sets its Button's tokens itself so a\n consumer's app-wide button fill never reaches it, and the highlighted row is\n tinted by the <li> beneath a transparent Button. */.slash-menu.svelte-xpd394 .slash-list:where(.svelte-xpd394) li:where(.svelte-xpd394) {min-width:0;border-radius:var(--chat-composer-slash-item-border-radius, 8px);--button-color: var(--chat-composer-slash-item-background, transparent);--button-background: none;--button-hover-color: var(--chat-composer-slash-item-hover-background, transparent);--button-text-color: var(--chat-composer-slash-item-color, var(--menu-item-color, #333333));--button-hover-text-color: var(\n --chat-composer-slash-item-color,\n var(--menu-item-color, #333333)\n );--button-border: none;--button-box-shadow: none;--button-border-radius: var(--chat-composer-slash-item-border-radius, 8px);--button-width: 100%;--button-height: auto;--button-justify-content: flex-start;--button-padding: var(--chat-composer-slash-item-padding, 8px 12px);--button-content-gap: var(--chat-composer-slash-item-gap, 8px);}.slash-menu.svelte-xpd394 > .slash-foot:where(.svelte-xpd394) {padding:var(--chat-composer-slash-foot-padding, 4px 12px);border-top:var(\n --chat-composer-slash-foot-border,\n 1px solid var(--menu-separator-color, #e0e0e0)\n );font-family:var(--chat-composer-slash-foot-font-family, inherit);font-variant-ligatures:var(--chat-composer-slash-foot-font-variant-ligatures, inherit);font-size:var(--chat-composer-slash-foot-font-size, 12px);color:var(--chat-composer-slash-foot-color, var(--menu-item-color, #333333));}\n\n /* The default row content (a consumer's slashItem snippet replaces it). */.slash-menu.svelte-xpd394 .slash-name:where(.svelte-xpd394) {flex-shrink:0;font-family:var(--chat-composer-slash-name-font-family, monospace);color:var(--chat-composer-slash-name-color, #2563eb);}.slash-menu.svelte-xpd394 .slash-hint:where(.svelte-xpd394) {flex-shrink:0;font-size:var(--chat-composer-slash-hint-font-size, 12px);color:var(--chat-composer-slash-hint-color, #71717a);}.slash-menu.svelte-xpd394 .slash-desc:where(.svelte-xpd394) {flex:1;min-width:0;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--chat-composer-slash-desc-color, #52525b);}\n\n /* Default visual for the arrow-key-highlighted row when a consumer hasn't\n opted into their own selected-state look via slashSelectedItemClasses --\n without this, the only signal was aria-selected, screen-reader-only.\n Scoped so a consumer's own class stays authoritative the moment it's\n supplied: this rule simply never applies then. */.slash-menu.svelte-xpd394 .slash-item-selected-default:where(.svelte-xpd394) {background:var(\n --chat-composer-slash-item-selected-background,\n var(--menu-item-hover-background-color, #f5f5f5)\n );}.slash-menu.svelte-xpd394 .slash-badge:where(.svelte-xpd394) {padding:var(--chat-composer-slash-badge-padding, 2px 8px);border-radius:var(--chat-composer-slash-badge-border-radius, 999px);font-size:var(--chat-composer-slash-badge-font-size, 12px);background:var(--chat-composer-slash-badge-background, #eff6ff);color:var(--chat-composer-slash-badge-color, #2563eb);}.send.action.svelte-xpd394 {--button-width: var(--chat-composer-idle-action-width, var(--chat-composer-send-size, 40px));--button-padding: var(\n --chat-composer-idle-action-padding,\n var(--chat-composer-send-padding, 8px)\n );--button-border-radius: var(\n --chat-composer-idle-action-border-radius,\n var(--chat-composer-send-border-radius, 50%)\n );--button-color: var(\n --chat-composer-idle-action-background-color,\n var(--chat-composer-send-background-color, #18181b)\n );--button-text-color: var(\n --chat-composer-idle-action-color,\n var(--chat-composer-send-color, #ffffff)\n );--button-hover-color: var(\n --chat-composer-idle-action-hover-background-color,\n var(--chat-composer-send-hover-background-color, #27272a)\n );--button-hover-text-color: var(\n --chat-composer-idle-action-hover-color,\n var(--button-text-color)\n );--button-content-gap: var(--chat-composer-idle-action-gap, 0px);}.send.action.action-with-text.svelte-xpd394 {--button-width: var(--chat-composer-idle-action-width, max-content);--button-padding: var(--chat-composer-idle-action-padding, 8px 12px);--button-content-gap: var(--chat-composer-idle-action-gap, 6px);}.action-with-text.svelte-xpd394 svg {width:var(--chat-composer-idle-action-icon-size, 20px);height:var(--chat-composer-idle-action-icon-size, 20px);}\n\n /* Visually hidden but still read by assistive technology -- same pattern\n Table's caption and Label's required marker use. */.sr-only.svelte-xpd394 {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap;border-width:0;}"
56651
+ code: ".chat-composer.svelte-xpd394 {box-sizing:border-box;display:flex;flex-direction:column;gap:var(--chat-composer-stack-gap, 8px);width:var(--chat-composer-width, 100%);padding:var(--chat-composer-padding, 8px);background:var(--chat-composer-background, #ffffff);border:var(--chat-composer-border, 1px solid #e4e4e7);border-radius:var(--chat-composer-border-radius, 24px);box-shadow:var(--chat-composer-box-shadow, none);}.chat-composer.disabled.svelte-xpd394 {opacity:var(--chat-composer-disabled-opacity, 0.6);}.chat-composer.pill.svelte-xpd394 {border-radius:var(--chat-composer-pill-border-radius, 999px);}\n\n /* .input below sets outline: none with nothing standing in for it, so the\n visible replacement lives here on the surrounding surface instead --\n :focus-within lights up whenever the textarea inside is focused, the same\n pattern Select's .select-trigger uses for its nested search input. */.chat-composer.svelte-xpd394:focus-within {border-color:var(--chat-composer-focus-border-color, #2563eb);box-shadow:var(--chat-composer-focus-shadow, 0 0 0 2px rgba(37, 99, 235, 0.2));}.attachments-rich.svelte-xpd394 {padding:var(--chat-composer-attachments-padding, 2px 4px 0);}.attachments.svelte-xpd394 {display:flex;flex-wrap:wrap;gap:var(--chat-composer-attachments-gap, 6px);padding:var(--chat-composer-attachments-padding, 2px 4px 0);}.input-row.svelte-xpd394 {display:flex;align-items:flex-end;gap:var(--chat-composer-gap, 8px);}.input-row.stacked.svelte-xpd394 {flex-direction:column;align-items:stretch;gap:var(--chat-composer-stack-gap, 8px);}.text-row.svelte-xpd394 {display:flex;min-width:0;}.control-row.svelte-xpd394 {display:flex;align-items:flex-end;gap:var(--chat-composer-gap, 8px);}.control-spacer.svelte-xpd394 {flex:1;}.stacked.svelte-xpd394 .input:where(.svelte-xpd394) {min-width:0;width:100%;}.leading.svelte-xpd394 {display:flex;align-items:center;flex-shrink:0;}.input.svelte-xpd394 {flex:1;box-sizing:border-box;resize:none;border:none;outline:none;background:transparent;font-family:var(--chat-composer-font-family, inherit);font-size:var(--chat-composer-font-size, 0.9375rem);font-weight:var(--chat-composer-font-weight, 400);line-height:var(--chat-composer-line-height, 1.5);color:var(--chat-composer-color, #18181b);padding:var(--chat-composer-input-padding, 6px 4px);max-height:var(--chat-composer-max-height, 160px);overflow-y:auto;}\n\n /* Inline mentions: an identical text layer sits behind a transparent textarea and\n colours the mentions, so the caret, selection and editing stay the textarea's own. */.input-field.svelte-xpd394 {position:relative;flex:1;min-width:0;display:flex;}.input-field.svelte-xpd394 .input:where(.svelte-xpd394) {position:relative;width:100%;scrollbar-gutter:stable;}.input.inline-mentions.svelte-xpd394 {color:transparent;caret-color:var(--chat-composer-color, #18181b);}\n\n /* A ::selection rule replaces the browser's whole highlight, so it has to paint its own\n background too; Highlight is the colour a composer without inline mentions selects with. */.input.inline-mentions.svelte-xpd394::selection {color:var(--chat-composer-color, #18181b);background-color:var(--chat-composer-selection-background, Highlight);}.input-highlights.svelte-xpd394 {position:absolute;inset:0;box-sizing:border-box;overflow:hidden;scrollbar-gutter:stable;pointer-events:none;white-space:pre-wrap;overflow-wrap:break-word;letter-spacing:normal;word-spacing:normal;font-family:var(--chat-composer-font-family, inherit);font-size:var(--chat-composer-font-size, 0.9375rem);font-weight:var(--chat-composer-font-weight, 400);line-height:var(--chat-composer-line-height, 1.5);color:var(--chat-composer-color, #18181b);padding:var(--chat-composer-input-padding, 6px 4px);}\n\n /* The mention must lay out exactly like the textarea's text, so it inherits every font\n property: a consumer's global span styles would otherwise shift it off the caret. */.input-highlights.svelte-xpd394 .mention {font:inherit;letter-spacing:inherit;word-spacing:inherit;color:var(--chat-composer-mention-color, var(--chat-composer-slash-name-color, #2563eb));}.input.svelte-xpd394::placeholder {color:var(--chat-composer-placeholder-color, #52525b);}.control.svelte-xpd394 {flex-shrink:0;display:flex;}.control.svelte-xpd394 svg {height:100%;width:100%;}.attach.svelte-xpd394,\n .voice.svelte-xpd394 {--button-width: var(--chat-composer-action-size, 36px);--button-height: var(--chat-composer-action-size, 36px);--button-padding: var(--chat-composer-action-padding, 8px);--button-border-radius: var(--chat-composer-action-border-radius, 50%);--button-color: var(--chat-composer-action-background-color, transparent);--button-text-color: var(--chat-composer-action-color, #52525b);--button-content-gap: 0px;--button-hover-color: var(--chat-composer-action-hover-background-color, #f4f4f5);\n /* Ghost brings its own hover label; keep this control's, recording red included. */--button-hover-text-color: var(--button-text-color);}.voice.recording.svelte-xpd394 {--button-color: var(--chat-composer-voice-recording-background-color, #fee2e2);--button-text-color: var(--chat-composer-voice-recording-color, #dc2626);}\n\n /* No dedicated busy palette: the disabled `Button` already dims itself\n (`--disabled-opacity`), which is enough to distinguish \"busy\" from the\n active \"recording\" red without inventing new color tokens that would\n need a matching dark-theme entry outside this component's scope. The\n `.busy` class is still applied to the wrapper (see markup) so a caller\n can target it with their own CSS if they want a distinct look. */.send.svelte-xpd394 {--button-width: var(--chat-composer-send-size, 40px);--button-height: var(--chat-composer-send-size, 40px);--button-padding: var(--chat-composer-send-padding, 8px);--button-border-radius: var(--chat-composer-send-border-radius, 50%);--button-color: var(--chat-composer-send-background-color, #18181b);--button-text-color: var(--chat-composer-send-color, #ffffff);--button-content-gap: 0px;--button-hover-color: var(--chat-composer-send-hover-background-color, #27272a);}.send.stop.svelte-xpd394 {--button-color: var(--chat-composer-stop-background-color, #18181b);--button-text-color: var(--chat-composer-stop-color, #ffffff);}\n\n /* Positioned only when slash commands are on, so their menu can sit\n above the composer; a consumer without them is unchanged. A data attribute,\n not a class, and the menu rules below are written down the structure they live in\n (.chat-composer > .slash-menu ...): a class directive would strip a `has-slash` class a\n consumer already passes through `classes`, and a class of one of these names passed\n there would match rules meant for the menu. */.chat-composer[data-has-slash].svelte-xpd394 {position:relative;}\n\n /* Positioned from the composer's padding box; the outset (e.g. the\n composer's border width) lines it up with the outer edge instead. */.chat-composer.svelte-xpd394 > .slash-menu:where(.svelte-xpd394) {position:absolute;bottom:calc(100% + var(--chat-composer-slash-menu-outset, 0px));left:calc(-1 * var(--chat-composer-slash-menu-outset, 0px));right:calc(-1 * var(--chat-composer-slash-menu-outset, 0px));margin-bottom:var(--chat-composer-slash-menu-gap, 8px);overflow:hidden;z-index:var(--chat-composer-slash-menu-z-index, 30);background:var(--chat-composer-slash-menu-background, var(--menu-background-color, #ffffff));border:var(--chat-composer-slash-menu-border, var(--menu-border, 1px solid #e0e0e0));border-radius:var(--chat-composer-slash-menu-border-radius, 12px);box-shadow:var(\n --chat-composer-slash-menu-box-shadow,\n var(--menu-box-shadow, 0px 4px 16px rgba(0, 0, 0, 0.12))\n );}\n\n /* In the top layer the menu is placed by script against the composer, so the popover's\n own defaults (inset, auto margin, padding, overflow) are cleared. */.chat-composer.svelte-xpd394 > .slash-menu.top-layer:where(.svelte-xpd394) {position:fixed;inset:auto;box-sizing:border-box;margin:0 0 var(--chat-composer-slash-menu-gap, 8px);padding:0;color:inherit;}.slash-menu.svelte-xpd394 > .slash-list:where(.svelte-xpd394) {list-style:none;margin:0;padding:var(--chat-composer-slash-list-padding, 4px);max-height:var(--chat-composer-slash-list-max-height, 280px);overflow-y:auto;display:grid;gap:var(--chat-composer-slash-list-gap, 2px);}\n\n /* Rows are menu items, not buttons: the row sets its Button's tokens itself so a\n consumer's app-wide button fill never reaches it, and the highlighted row is\n tinted by the <li> beneath a transparent Button. */.slash-menu.svelte-xpd394 .slash-list:where(.svelte-xpd394) li:where(.svelte-xpd394) {min-width:0;border-radius:var(--chat-composer-slash-item-border-radius, 8px);--button-color: var(--chat-composer-slash-item-background, transparent);--button-background: none;--button-hover-color: var(--chat-composer-slash-item-hover-background, transparent);--button-text-color: var(--chat-composer-slash-item-color, var(--menu-item-color, #333333));--button-hover-text-color: var(\n --chat-composer-slash-item-color,\n var(--menu-item-color, #333333)\n );--button-border: none;--button-box-shadow: none;--button-border-radius: var(--chat-composer-slash-item-border-radius, 8px);--button-width: 100%;--button-height: auto;--button-justify-content: flex-start;--button-padding: var(--chat-composer-slash-item-padding, 8px 12px);--button-content-gap: var(--chat-composer-slash-item-gap, 8px);}.slash-menu.svelte-xpd394 > .slash-foot:where(.svelte-xpd394) {padding:var(--chat-composer-slash-foot-padding, 4px 12px);border-top:var(\n --chat-composer-slash-foot-border,\n 1px solid var(--menu-separator-color, #e0e0e0)\n );font-family:var(--chat-composer-slash-foot-font-family, inherit);font-variant-ligatures:var(--chat-composer-slash-foot-font-variant-ligatures, inherit);font-size:var(--chat-composer-slash-foot-font-size, 12px);color:var(--chat-composer-slash-foot-color, var(--menu-item-color, #333333));}\n\n /* The default row content (a consumer's slashItem snippet replaces it). */.slash-menu.svelte-xpd394 .slash-name:where(.svelte-xpd394) {flex-shrink:0;font-family:var(--chat-composer-slash-name-font-family, monospace);color:var(--chat-composer-slash-name-color, #2563eb);}.slash-menu.svelte-xpd394 .slash-hint:where(.svelte-xpd394) {flex-shrink:0;font-size:var(--chat-composer-slash-hint-font-size, 12px);color:var(--chat-composer-slash-hint-color, #71717a);}.slash-menu.svelte-xpd394 .slash-desc:where(.svelte-xpd394) {flex:1;min-width:0;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--chat-composer-slash-desc-color, #52525b);}\n\n /* Default visual for the arrow-key-highlighted row when a consumer hasn't\n opted into their own selected-state look via slashSelectedItemClasses --\n without this, the only signal was aria-selected, screen-reader-only.\n Scoped so a consumer's own class stays authoritative the moment it's\n supplied: this rule simply never applies then. */.slash-menu.svelte-xpd394 .slash-item-selected-default:where(.svelte-xpd394) {background:var(\n --chat-composer-slash-item-selected-background,\n var(--menu-item-hover-background-color, #f5f5f5)\n );}.slash-menu.svelte-xpd394 .slash-badge:where(.svelte-xpd394) {padding:var(--chat-composer-slash-badge-padding, 2px 8px);border-radius:var(--chat-composer-slash-badge-border-radius, 999px);font-size:var(--chat-composer-slash-badge-font-size, 12px);background:var(--chat-composer-slash-badge-background, #eff6ff);color:var(--chat-composer-slash-badge-color, #2563eb);}.send.action.svelte-xpd394 {--button-width: var(--chat-composer-idle-action-width, var(--chat-composer-send-size, 40px));--button-padding: var(\n --chat-composer-idle-action-padding,\n var(--chat-composer-send-padding, 8px)\n );--button-border-radius: var(\n --chat-composer-idle-action-border-radius,\n var(--chat-composer-send-border-radius, 50%)\n );--button-color: var(\n --chat-composer-idle-action-background-color,\n var(--chat-composer-send-background-color, #18181b)\n );--button-text-color: var(\n --chat-composer-idle-action-color,\n var(--chat-composer-send-color, #ffffff)\n );--button-hover-color: var(\n --chat-composer-idle-action-hover-background-color,\n var(--chat-composer-send-hover-background-color, #27272a)\n );--button-hover-text-color: var(\n --chat-composer-idle-action-hover-color,\n var(--button-text-color)\n );--button-content-gap: var(--chat-composer-idle-action-gap, 0px);}.send.action.action-with-text.svelte-xpd394 {--button-width: var(--chat-composer-idle-action-width, max-content);--button-padding: var(--chat-composer-idle-action-padding, 8px 12px);--button-content-gap: var(--chat-composer-idle-action-gap, 6px);}.action-with-text.svelte-xpd394 svg {width:var(--chat-composer-idle-action-icon-size, 20px);height:var(--chat-composer-idle-action-icon-size, 20px);}\n\n /* Visually hidden but still read by assistive technology -- same pattern\n Table's caption and Label's required marker use. */.sr-only.svelte-xpd394 {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap;border-width:0;}"
56651
56652
  };
56652
56653
  function ChatComposer(e, t) {
56653
56654
  let n = props_id();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "4.57.1",
3
+ "version": "4.57.3",
4
4
  "description": "A themeable Svelte 5 UI component library with CSS custom property driven styling",
5
5
  "keywords": [
6
6
  "svelte",