@evoke-tech/stencil-ui-kit 0.1.0 → 0.2.1

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 (131) hide show
  1. package/README.md +142 -26
  2. package/dist/cjs/evoke-alert_20.cjs.entry.js +1047 -0
  3. package/dist/cjs/evoke-ui.cjs.js +2 -2
  4. package/dist/cjs/{index-B8xS0y1i.js → index-BpJ5gu8f.js} +146 -5
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/collection/collection-manifest.json +13 -1
  7. package/dist/collection/components/evoke-alert/evoke-alert.css +17 -6
  8. package/dist/collection/components/evoke-alert/evoke-alert.js +25 -1
  9. package/dist/collection/components/evoke-app-bar/evoke-app-bar.css +13 -0
  10. package/dist/collection/components/evoke-app-bar/evoke-app-bar.js +94 -0
  11. package/dist/collection/components/evoke-badge/evoke-badge.css +13 -0
  12. package/dist/collection/components/evoke-badge/evoke-badge.js +162 -0
  13. package/dist/collection/components/evoke-button/evoke-button.css +16 -2
  14. package/dist/collection/components/evoke-button/evoke-button.js +117 -5
  15. package/dist/collection/components/evoke-card/evoke-card.css +9 -1
  16. package/dist/collection/components/evoke-card/evoke-card.js +75 -1
  17. package/dist/collection/components/evoke-checkbox/evoke-checkbox.css +7 -1
  18. package/dist/collection/components/evoke-checkbox/evoke-checkbox.js +31 -2
  19. package/dist/collection/components/evoke-chip/evoke-chip.css +16 -0
  20. package/dist/collection/components/evoke-chip/evoke-chip.js +149 -0
  21. package/dist/collection/components/evoke-input/evoke-input.css +11 -3
  22. package/dist/collection/components/evoke-input/evoke-input.js +103 -13
  23. package/dist/collection/components/evoke-modal/evoke-modal.css +21 -5
  24. package/dist/collection/components/evoke-modal/evoke-modal.js +129 -4
  25. package/dist/collection/components/evoke-pagination/evoke-pagination.css +12 -0
  26. package/dist/collection/components/evoke-pagination/evoke-pagination.js +156 -0
  27. package/dist/collection/components/evoke-progress/evoke-progress.css +12 -0
  28. package/dist/collection/components/evoke-progress/evoke-progress.js +146 -0
  29. package/dist/collection/components/evoke-quantity-stepper/evoke-quantity-stepper.css +20 -0
  30. package/dist/collection/components/evoke-quantity-stepper/evoke-quantity-stepper.js +201 -0
  31. package/dist/collection/components/evoke-radio-group/evoke-radio-group.css +14 -1
  32. package/dist/collection/components/evoke-radio-group/evoke-radio-group.js +34 -8
  33. package/dist/collection/components/evoke-select/evoke-select.css +25 -4
  34. package/dist/collection/components/evoke-select/evoke-select.js +245 -15
  35. package/dist/collection/components/evoke-switch/evoke-switch.css +16 -0
  36. package/dist/collection/components/evoke-switch/evoke-switch.js +151 -0
  37. package/dist/collection/components/evoke-table/evoke-table.css +20 -0
  38. package/dist/collection/components/evoke-table/evoke-table.js +222 -0
  39. package/dist/collection/components/evoke-tabs/evoke-tabs.css +20 -0
  40. package/dist/collection/components/evoke-tabs/evoke-tabs.js +179 -0
  41. package/dist/collection/components/evoke-textarea/evoke-textarea.css +19 -0
  42. package/dist/collection/components/evoke-textarea/evoke-textarea.js +328 -0
  43. package/dist/collection/components/evoke-toast/evoke-toast.css +24 -0
  44. package/dist/collection/components/evoke-toast/evoke-toast.js +225 -0
  45. package/dist/collection/components/evoke-tooltip/evoke-tooltip.css +22 -0
  46. package/dist/collection/components/evoke-tooltip/evoke-tooltip.js +119 -0
  47. package/dist/collection/utils/icons.js +29 -0
  48. package/dist/components/evoke-alert.js +1 -1
  49. package/dist/components/evoke-app-bar.d.ts +11 -0
  50. package/dist/components/evoke-app-bar.js +1 -0
  51. package/dist/components/evoke-badge.d.ts +11 -0
  52. package/dist/components/evoke-badge.js +1 -0
  53. package/dist/components/evoke-button.js +1 -1
  54. package/dist/components/evoke-card.js +1 -1
  55. package/dist/components/evoke-checkbox.js +1 -1
  56. package/dist/components/evoke-chip.d.ts +11 -0
  57. package/dist/components/evoke-chip.js +1 -0
  58. package/dist/components/evoke-input.js +1 -1
  59. package/dist/components/evoke-modal.js +1 -1
  60. package/dist/components/evoke-pagination.d.ts +11 -0
  61. package/dist/components/evoke-pagination.js +1 -0
  62. package/dist/components/evoke-progress.d.ts +11 -0
  63. package/dist/components/evoke-progress.js +1 -0
  64. package/dist/components/evoke-quantity-stepper.d.ts +11 -0
  65. package/dist/components/evoke-quantity-stepper.js +1 -0
  66. package/dist/components/evoke-radio-group.js +1 -1
  67. package/dist/components/evoke-select.js +1 -1
  68. package/dist/components/evoke-switch.d.ts +11 -0
  69. package/dist/components/evoke-switch.js +1 -0
  70. package/dist/components/evoke-table.d.ts +11 -0
  71. package/dist/components/evoke-table.js +1 -0
  72. package/dist/components/evoke-tabs.d.ts +11 -0
  73. package/dist/components/evoke-tabs.js +1 -0
  74. package/dist/components/evoke-textarea.d.ts +11 -0
  75. package/dist/components/evoke-textarea.js +1 -0
  76. package/dist/components/evoke-toast.d.ts +11 -0
  77. package/dist/components/evoke-toast.js +1 -0
  78. package/dist/components/evoke-tooltip.d.ts +11 -0
  79. package/dist/components/evoke-tooltip.js +1 -0
  80. package/dist/components/icons.js +1 -0
  81. package/dist/esm/evoke-alert_20.entry.js +1026 -0
  82. package/dist/esm/evoke-ui.js +3 -3
  83. package/dist/esm/{index-BtM1wZ-I.js → index-C-5sEjU8.js} +146 -6
  84. package/dist/esm/loader.js +3 -3
  85. package/dist/evoke-ui/evoke-ui.css +1 -1
  86. package/dist/evoke-ui/evoke-ui.esm.js +1 -1
  87. package/dist/evoke-ui/p-0841be89.entry.js +1 -0
  88. package/dist/evoke-ui/p-C-5sEjU8.js +3 -0
  89. package/dist/themes/bootstrap.css +3 -0
  90. package/dist/themes/material.css +5 -2
  91. package/dist/themes/tailwind.css +3 -0
  92. package/dist/themes/tokens.css +4 -1
  93. package/dist/types/components/evoke-alert/evoke-alert.d.ts +2 -0
  94. package/dist/types/components/evoke-app-bar/evoke-app-bar.d.ts +14 -0
  95. package/dist/types/components/evoke-badge/evoke-badge.d.ts +17 -0
  96. package/dist/types/components/evoke-button/evoke-button.d.ts +12 -2
  97. package/dist/types/components/evoke-card/evoke-card.d.ts +9 -0
  98. package/dist/types/components/evoke-checkbox/evoke-checkbox.d.ts +5 -0
  99. package/dist/types/components/evoke-chip/evoke-chip.d.ts +14 -0
  100. package/dist/types/components/evoke-input/evoke-input.d.ts +9 -1
  101. package/dist/types/components/evoke-modal/evoke-modal.d.ts +19 -1
  102. package/dist/types/components/evoke-pagination/evoke-pagination.d.ts +15 -0
  103. package/dist/types/components/evoke-progress/evoke-progress.d.ts +13 -0
  104. package/dist/types/components/evoke-quantity-stepper/evoke-quantity-stepper.d.ts +18 -0
  105. package/dist/types/components/evoke-radio-group/evoke-radio-group.d.ts +4 -2
  106. package/dist/types/components/evoke-select/evoke-select.d.ts +31 -6
  107. package/dist/types/components/evoke-switch/evoke-switch.d.ts +15 -0
  108. package/dist/types/components/evoke-table/evoke-table.d.ts +29 -0
  109. package/dist/types/components/evoke-tabs/evoke-tabs.d.ts +21 -0
  110. package/dist/types/components/evoke-textarea/evoke-textarea.d.ts +28 -0
  111. package/dist/types/components/evoke-toast/evoke-toast.d.ts +24 -0
  112. package/dist/types/components/evoke-tooltip/evoke-tooltip.d.ts +17 -0
  113. package/dist/types/components.d.ts +1237 -18
  114. package/dist/types/utils/icons.d.ts +25 -0
  115. package/dist/vue/components.d.ts +22 -0
  116. package/dist/vue/components.js +220 -0
  117. package/dist/vue/index.d.ts +2 -0
  118. package/dist/vue/index.js +2 -0
  119. package/dist/vue/plugin.d.ts +3 -0
  120. package/dist/vue/plugin.js +7 -0
  121. package/package.json +30 -6
  122. package/dist/cjs/evoke-alert_6.cjs.entry.js +0 -172
  123. package/dist/cjs/evoke-card.cjs.entry.js +0 -20
  124. package/dist/cjs/evoke-modal.cjs.entry.js +0 -34
  125. package/dist/esm/evoke-alert_6.entry.js +0 -165
  126. package/dist/esm/evoke-card.entry.js +0 -18
  127. package/dist/esm/evoke-modal.entry.js +0 -32
  128. package/dist/evoke-ui/p-243075cd.entry.js +0 -1
  129. package/dist/evoke-ui/p-605d4757.entry.js +0 -1
  130. package/dist/evoke-ui/p-9a6eaeb6.entry.js +0 -1
  131. package/dist/evoke-ui/p-BtM1wZ-I.js +0 -3
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-B8xS0y1i.js');
3
+ var index = require('./index-BpJ5gu8f.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["evoke-alert_6.cjs",[[260,"evoke-alert",{"type":[1],"dismissible":[4]}],[260,"evoke-button",{"variant":[1],"type":[1],"disabled":[4],"block":[516],"buttonClass":[1,"button-class"]}],[260,"evoke-checkbox",{"label":[1],"checked":[1540],"disabled":[4],"error":[1],"inputClass":[1,"input-class"]}],[0,"evoke-input",{"label":[1],"value":[1025],"type":[1],"placeholder":[1],"disabled":[4],"error":[1],"icon":[1],"inputClass":[1,"input-class"]}],[0,"evoke-radio-group",{"label":[1],"options":[1],"value":[1025],"name":[1],"disabled":[4],"inline":[4],"error":[1]}],[0,"evoke-select",{"label":[1],"options":[1],"value":[1025],"placeholder":[1],"disabled":[4],"error":[1],"selectClass":[1,"select-class"]}]]],["evoke-card.cjs",[[260,"evoke-card",{"heading":[1],"cardClass":[1,"card-class"]}]]],["evoke-modal.cjs",[[260,"evoke-modal",{"open":[1540],"heading":[1],"closeOnBackdrop":[4,"close-on-backdrop"],"modalClass":[1,"modal-class"]},[[8,"keydown","onKeydown"]]]]]], options);
22
+ return index.bootstrapLazy([["evoke-alert_20.cjs",[[260,"evoke-alert",{"type":[1],"appearance":[1],"dismissible":[4]}],[260,"evoke-app-bar",{"appearance":[1],"sticky":[516],"navLabel":[1,"nav-label"]}],[260,"evoke-badge",{"count":[2],"max":[2],"dot":[4],"showZero":[4,"show-zero"],"color":[1],"label":[1]}],[260,"evoke-button",{"variant":[1],"size":[1],"type":[1],"disabled":[4],"loading":[4],"icon":[1],"iconOnly":[516,"icon-only"],"accessibleLabel":[1,"accessible-label"],"block":[516],"buttonClass":[1,"button-class"]}],[260,"evoke-card",{"heading":[1],"appearance":[1],"clickable":[4],"cardClass":[1,"card-class"]}],[260,"evoke-checkbox",{"label":[1],"checked":[1540],"indeterminate":[1540],"disabled":[4],"error":[1],"inputClass":[1,"input-class"]}],[260,"evoke-chip",{"label":[1],"selected":[1540],"removable":[4],"disabled":[4]}],[0,"evoke-input",{"label":[1],"value":[1025],"type":[1],"name":[1],"placeholder":[1],"disabled":[4],"required":[4],"appearance":[1],"error":[1],"hint":[1],"icon":[1],"inputClass":[1,"input-class"]}],[260,"evoke-modal",{"open":[1540],"heading":[1],"position":[1],"size":[1],"closeOnBackdrop":[4,"close-on-backdrop"],"modalClass":[1,"modal-class"]},[[8,"keydown","onKeydown"]],{"open":[{"onOpenChange":0}]}],[0,"evoke-pagination",{"page":[1026],"total":[2],"appearance":[1],"disabled":[4]}],[0,"evoke-progress",{"type":[1],"value":[2],"indeterminate":[4],"label":[1],"size":[2]}],[0,"evoke-quantity-stepper",{"value":[1026],"min":[2],"max":[2],"appearance":[1],"disabled":[4],"label":[1]}],[0,"evoke-radio-group",{"label":[1],"options":[1],"value":[1025],"name":[1],"disabled":[4],"appearance":[1],"inline":[4],"error":[1]}],[0,"evoke-select",{"label":[1],"options":[1],"value":[1025],"placeholder":[1],"multiple":[4],"searchable":[4],"disabled":[4],"error":[1],"hint":[1],"selectClass":[1,"select-class"],"isOpen":[32],"query":[32],"activeIndex":[32]},[[4,"click","onDocClick"]]],[0,"evoke-switch",{"checked":[1540],"label":[1],"description":[1],"disabled":[4],"accessibleLabel":[1,"accessible-label"]}],[0,"evoke-table",{"columns":[1],"rows":[1],"striped":[4],"sortable":[4],"caption":[1],"emptyText":[1,"empty-text"],"sortKey":[32],"sortDir":[32]}],[260,"evoke-tabs",{"options":[1],"value":[1025],"appearance":[1],"label":[1]}],[0,"evoke-textarea",{"label":[1],"value":[1025],"name":[1],"placeholder":[1],"rows":[2],"autoGrow":[4,"auto-grow"],"maxLength":[2,"max-length"],"disabled":[4],"required":[4],"error":[1],"hint":[1],"textareaClass":[1,"textarea-class"]}],[260,"evoke-toast",{"open":[1540],"message":[1],"type":[1],"action":[1],"duration":[2],"position":[1]},null,{"open":[{"onOpen":0}]}],[260,"evoke-tooltip",{"text":[1],"placement":[1],"theme":[1],"visible":[32]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const NAMESPACE = 'evoke-ui';
4
- const BUILD = /* evoke-ui */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, prop: true, propChangeCallback: false, shadowDom: false, slotRelocation: true, updatable: true};
4
+ const BUILD = /* evoke-ui */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, shadowDom: false, slotRelocation: true, state: true, updatable: true};
5
5
 
6
6
  /*
7
7
  Stencil Client Platform v4.45.2 | MIT Licensed | https://stenciljs.com
@@ -64,7 +64,7 @@ var registerInstance = (lazyInstance, hostRef) => {
64
64
  if (!hostRef) return;
65
65
  lazyInstance.__stencil__getHostRef = () => hostRef;
66
66
  hostRef.$lazyInstance$ = lazyInstance;
67
- if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.prop)) {
67
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
68
68
  reWireGetterSetter(lazyInstance, hostRef);
69
69
  }
70
70
  };
@@ -136,6 +136,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
136
136
  var styles = /* @__PURE__ */ new Map();
137
137
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
138
138
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
139
+ var XLINK_NS = "http://www.w3.org/1999/xlink";
139
140
  var MAX_LAZY_LOAD_RETRIES = 3;
140
141
  var LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
141
142
  var win = typeof window !== "undefined" ? window : {};
@@ -564,6 +565,31 @@ var newVNode = (tag, text) => {
564
565
  var Host = {};
565
566
  var isHost = (node) => node && node.$tag$ === Host;
566
567
 
568
+ // src/runtime/normalize-watchers.ts
569
+ var normalizeWatchers = (raw) => {
570
+ if (!raw) return void 0;
571
+ const keys = Object.keys(raw);
572
+ if (keys.length === 0) return void 0;
573
+ let hasLegacy = false;
574
+ for (const propName of keys) {
575
+ if (hasLegacy) break;
576
+ for (const h2 of raw[propName]) {
577
+ if (typeof h2 === "string") {
578
+ hasLegacy = true;
579
+ break;
580
+ }
581
+ }
582
+ }
583
+ if (!hasLegacy) return raw;
584
+ const out = {};
585
+ for (const propName of keys) {
586
+ out[propName] = raw[propName].map(
587
+ (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
588
+ );
589
+ }
590
+ return out;
591
+ };
592
+
567
593
  // src/runtime/parse-property-value.ts
568
594
  var parsePropertyValue = (propValue, propType, isFormAssociated) => {
569
595
  if (propValue != null && !isComplexType(propValue)) {
@@ -572,6 +598,9 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
572
598
  return propValue === "false" ? false : propValue === "" || !!propValue;
573
599
  }
574
600
  }
601
+ if (propType & 2 /* Number */) {
602
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
603
+ }
575
604
  if (propType & 1 /* String */) {
576
605
  return String(propValue);
577
606
  }
@@ -618,7 +647,32 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
618
647
  classList.remove(...removedClasses);
619
648
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
620
649
  }
621
- } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
650
+ } else if (memberName === "style") {
651
+ {
652
+ for (const prop in oldValue) {
653
+ if (!newValue || newValue[prop] == null) {
654
+ if (prop.includes("-")) {
655
+ elm.style.removeProperty(prop);
656
+ } else {
657
+ elm.style[prop] = "";
658
+ }
659
+ }
660
+ }
661
+ }
662
+ for (const prop in newValue) {
663
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
664
+ if (prop.includes("-")) {
665
+ elm.style.setProperty(prop, newValue[prop]);
666
+ } else {
667
+ elm.style[prop] = newValue[prop];
668
+ }
669
+ }
670
+ }
671
+ } else if (memberName === "key") ; else if (memberName === "ref") {
672
+ if (newValue) {
673
+ queueRefAttachment(newValue, elm);
674
+ }
675
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
622
676
  if (memberName[2] === "-") {
623
677
  memberName = memberName.slice(3);
624
678
  } else if (isMemberInElement(win, ln)) {
@@ -687,15 +741,26 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
687
741
  } catch (e) {
688
742
  }
689
743
  }
744
+ let xlink = false;
745
+ {
746
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
747
+ memberName = ln;
748
+ xlink = true;
749
+ }
750
+ }
690
751
  if (newValue == null || newValue === false) {
691
752
  if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
692
- {
753
+ if (xlink) {
754
+ elm.removeAttributeNS(XLINK_NS, memberName);
755
+ } else {
693
756
  elm.removeAttribute(memberName);
694
757
  }
695
758
  }
696
759
  } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
697
760
  newValue = newValue === true ? "" : newValue;
698
- {
761
+ if (xlink) {
762
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
763
+ } else {
699
764
  elm.setAttribute(memberName, newValue);
700
765
  }
701
766
  }
@@ -759,6 +824,8 @@ var useNativeShadowDom = false;
759
824
  var checkSlotFallbackVisibility = false;
760
825
  var checkSlotRelocate = false;
761
826
  var isSvgMode = false;
827
+ var refCallbacksToRemove = [];
828
+ var refCallbacksToAttach = [];
762
829
  var createElm = (oldParentVNode, newParentVNode, childIndex) => {
763
830
  var _a;
764
831
  const newVNode2 = newParentVNode.$children$[childIndex];
@@ -905,6 +972,7 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
905
972
  const vnode = vnodes[index];
906
973
  if (vnode) {
907
974
  const elm = vnode.$elm$;
975
+ nullifyVNodeRefs(vnode);
908
976
  if (elm) {
909
977
  {
910
978
  checkSlotFallbackVisibility = true;
@@ -1125,6 +1193,27 @@ var markSlotContentForRelocation = (elm) => {
1125
1193
  }
1126
1194
  }
1127
1195
  };
1196
+ var nullifyVNodeRefs = (vNode) => {
1197
+ {
1198
+ if (vNode.$attrs$ && vNode.$attrs$.ref) {
1199
+ refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
1200
+ }
1201
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1202
+ }
1203
+ };
1204
+ var queueRefAttachment = (refCallback, elm) => {
1205
+ {
1206
+ refCallbacksToAttach.push(() => refCallback(elm));
1207
+ }
1208
+ };
1209
+ var flushQueuedRefCallbacks = () => {
1210
+ {
1211
+ refCallbacksToRemove.forEach((cb) => cb());
1212
+ refCallbacksToRemove.length = 0;
1213
+ refCallbacksToAttach.forEach((cb) => cb());
1214
+ refCallbacksToAttach.length = 0;
1215
+ }
1216
+ };
1128
1217
  var insertBefore = (parent, newNode, reference, isInitialLoad) => {
1129
1218
  {
1130
1219
  if (typeof newNode["s-sn"] === "string") {
@@ -1268,6 +1357,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1268
1357
  }
1269
1358
  }
1270
1359
  contentRef = void 0;
1360
+ flushQueuedRefCallbacks();
1271
1361
  };
1272
1362
 
1273
1363
  // src/runtime/update-component.ts
@@ -1457,6 +1547,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1457
1547
  `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
1458
1548
  );
1459
1549
  }
1550
+ const elm = hostRef.$hostElement$ ;
1460
1551
  const oldVal = hostRef.$instanceValues$.get(propName);
1461
1552
  const flags = hostRef.$flags$;
1462
1553
  const instance = hostRef.$lazyInstance$ ;
@@ -1467,6 +1558,27 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1467
1558
  const didValueChange = newVal !== oldVal && !areBothNaN;
1468
1559
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1469
1560
  hostRef.$instanceValues$.set(propName, newVal);
1561
+ if (cmpMeta.$watchers$) {
1562
+ const watchMethods = cmpMeta.$watchers$[propName];
1563
+ if (watchMethods) {
1564
+ watchMethods.map((watcher) => {
1565
+ try {
1566
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1567
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
1568
+ if (!instance) {
1569
+ hostRef.$fetchedCbList$.push(() => {
1570
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
1571
+ });
1572
+ } else {
1573
+ instance[watchMethodName](newVal, oldVal, propName);
1574
+ }
1575
+ }
1576
+ } catch (e) {
1577
+ consoleError(e, elm);
1578
+ }
1579
+ });
1580
+ }
1581
+ }
1470
1582
  if (flags & 2 /* hasRendered */) {
1471
1583
  if (instance.componentShouldUpdate) {
1472
1584
  const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
@@ -1500,6 +1612,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1500
1612
  var _a, _b;
1501
1613
  const prototype = Cstr.prototype;
1502
1614
  if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1615
+ {
1616
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1617
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
1618
+ }
1619
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1620
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1621
+ }
1622
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1623
+ cmpMeta.$serializers$ = Cstr.serializers;
1624
+ }
1625
+ }
1503
1626
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1504
1627
  members.map(([memberName, [memberFlags]]) => {
1505
1628
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -1657,6 +1780,11 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1657
1780
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1658
1781
  }
1659
1782
  if (!Cstr.isProxied) {
1783
+ {
1784
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
1785
+ cmpMeta.$serializers$ = Cstr.serializers;
1786
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1787
+ }
1660
1788
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1661
1789
  Cstr.isProxied = true;
1662
1790
  }
@@ -1673,6 +1801,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1673
1801
  hostRef.$flags$ &= -9 /* isConstructingInstance */;
1674
1802
  replayPendingSetterValues(hostRef, cmpMeta);
1675
1803
  }
1804
+ {
1805
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1806
+ }
1676
1807
  endNewInstance();
1677
1808
  const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
1678
1809
  if (!needsDeferredCallback) {
@@ -1833,6 +1964,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1833
1964
  let hasSlotRelocation = false;
1834
1965
  lazyBundles.map((lazyBundle) => {
1835
1966
  lazyBundle[1].map((compactMeta) => {
1967
+ var _a2, _b;
1836
1968
  const cmpMeta = {
1837
1969
  $flags$: compactMeta[0],
1838
1970
  $tagName$: compactMeta[1],
@@ -1851,6 +1983,11 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1851
1983
  {
1852
1984
  cmpMeta.$attrsToReflect$ = [];
1853
1985
  }
1986
+ {
1987
+ cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
1988
+ cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
1989
+ cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
1990
+ }
1854
1991
  const tagName = transformTag(cmpMeta.$tagName$);
1855
1992
  const HostElement = class extends HTMLElement {
1856
1993
  ["s-p"];
@@ -1965,6 +2102,9 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1965
2102
  }
1966
2103
  };
1967
2104
  var getHostListenerTarget = (doc, elm, flags) => {
2105
+ if (flags & 4 /* TargetDocument */) {
2106
+ return doc;
2107
+ }
1968
2108
  if (flags & 8 /* TargetWindow */) {
1969
2109
  return win;
1970
2110
  }
@@ -1983,6 +2123,7 @@ function transformTag(tag) {
1983
2123
 
1984
2124
  exports.bootstrapLazy = bootstrapLazy;
1985
2125
  exports.createEvent = createEvent;
2126
+ exports.getElement = getElement;
1986
2127
  exports.h = h;
1987
2128
  exports.promiseResolve = promiseResolve;
1988
2129
  exports.registerInstance = registerInstance;
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-B8xS0y1i.js');
3
+ var index = require('./index-BpJ5gu8f.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  const defineCustomElements = async (win, options) => {
7
7
  if (typeof window === 'undefined') return undefined;
8
8
  await appGlobals.globalScripts();
9
- return index.bootstrapLazy([["evoke-alert_6.cjs",[[260,"evoke-alert",{"type":[1],"dismissible":[4]}],[260,"evoke-button",{"variant":[1],"type":[1],"disabled":[4],"block":[516],"buttonClass":[1,"button-class"]}],[260,"evoke-checkbox",{"label":[1],"checked":[1540],"disabled":[4],"error":[1],"inputClass":[1,"input-class"]}],[0,"evoke-input",{"label":[1],"value":[1025],"type":[1],"placeholder":[1],"disabled":[4],"error":[1],"icon":[1],"inputClass":[1,"input-class"]}],[0,"evoke-radio-group",{"label":[1],"options":[1],"value":[1025],"name":[1],"disabled":[4],"inline":[4],"error":[1]}],[0,"evoke-select",{"label":[1],"options":[1],"value":[1025],"placeholder":[1],"disabled":[4],"error":[1],"selectClass":[1,"select-class"]}]]],["evoke-card.cjs",[[260,"evoke-card",{"heading":[1],"cardClass":[1,"card-class"]}]]],["evoke-modal.cjs",[[260,"evoke-modal",{"open":[1540],"heading":[1],"closeOnBackdrop":[4,"close-on-backdrop"],"modalClass":[1,"modal-class"]},[[8,"keydown","onKeydown"]]]]]], options);
9
+ return index.bootstrapLazy([["evoke-alert_20.cjs",[[260,"evoke-alert",{"type":[1],"appearance":[1],"dismissible":[4]}],[260,"evoke-app-bar",{"appearance":[1],"sticky":[516],"navLabel":[1,"nav-label"]}],[260,"evoke-badge",{"count":[2],"max":[2],"dot":[4],"showZero":[4,"show-zero"],"color":[1],"label":[1]}],[260,"evoke-button",{"variant":[1],"size":[1],"type":[1],"disabled":[4],"loading":[4],"icon":[1],"iconOnly":[516,"icon-only"],"accessibleLabel":[1,"accessible-label"],"block":[516],"buttonClass":[1,"button-class"]}],[260,"evoke-card",{"heading":[1],"appearance":[1],"clickable":[4],"cardClass":[1,"card-class"]}],[260,"evoke-checkbox",{"label":[1],"checked":[1540],"indeterminate":[1540],"disabled":[4],"error":[1],"inputClass":[1,"input-class"]}],[260,"evoke-chip",{"label":[1],"selected":[1540],"removable":[4],"disabled":[4]}],[0,"evoke-input",{"label":[1],"value":[1025],"type":[1],"name":[1],"placeholder":[1],"disabled":[4],"required":[4],"appearance":[1],"error":[1],"hint":[1],"icon":[1],"inputClass":[1,"input-class"]}],[260,"evoke-modal",{"open":[1540],"heading":[1],"position":[1],"size":[1],"closeOnBackdrop":[4,"close-on-backdrop"],"modalClass":[1,"modal-class"]},[[8,"keydown","onKeydown"]],{"open":[{"onOpenChange":0}]}],[0,"evoke-pagination",{"page":[1026],"total":[2],"appearance":[1],"disabled":[4]}],[0,"evoke-progress",{"type":[1],"value":[2],"indeterminate":[4],"label":[1],"size":[2]}],[0,"evoke-quantity-stepper",{"value":[1026],"min":[2],"max":[2],"appearance":[1],"disabled":[4],"label":[1]}],[0,"evoke-radio-group",{"label":[1],"options":[1],"value":[1025],"name":[1],"disabled":[4],"appearance":[1],"inline":[4],"error":[1]}],[0,"evoke-select",{"label":[1],"options":[1],"value":[1025],"placeholder":[1],"multiple":[4],"searchable":[4],"disabled":[4],"error":[1],"hint":[1],"selectClass":[1,"select-class"],"isOpen":[32],"query":[32],"activeIndex":[32]},[[4,"click","onDocClick"]]],[0,"evoke-switch",{"checked":[1540],"label":[1],"description":[1],"disabled":[4],"accessibleLabel":[1,"accessible-label"]}],[0,"evoke-table",{"columns":[1],"rows":[1],"striped":[4],"sortable":[4],"caption":[1],"emptyText":[1,"empty-text"],"sortKey":[32],"sortDir":[32]}],[260,"evoke-tabs",{"options":[1],"value":[1025],"appearance":[1],"label":[1]}],[0,"evoke-textarea",{"label":[1],"value":[1025],"name":[1],"placeholder":[1],"rows":[2],"autoGrow":[4,"auto-grow"],"maxLength":[2,"max-length"],"disabled":[4],"required":[4],"error":[1],"hint":[1],"textareaClass":[1,"textarea-class"]}],[260,"evoke-toast",{"open":[1540],"message":[1],"type":[1],"action":[1],"duration":[2],"position":[1]},null,{"open":[{"onOpen":0}]}],[260,"evoke-tooltip",{"text":[1],"placement":[1],"theme":[1],"visible":[32]}]]]], options);
10
10
  };
11
11
 
12
12
  exports.setNonce = index.setNonce;
@@ -1,13 +1,25 @@
1
1
  {
2
2
  "entries": [
3
3
  "components/evoke-alert/evoke-alert.js",
4
+ "components/evoke-app-bar/evoke-app-bar.js",
5
+ "components/evoke-badge/evoke-badge.js",
4
6
  "components/evoke-button/evoke-button.js",
5
7
  "components/evoke-card/evoke-card.js",
6
8
  "components/evoke-checkbox/evoke-checkbox.js",
9
+ "components/evoke-chip/evoke-chip.js",
7
10
  "components/evoke-input/evoke-input.js",
8
11
  "components/evoke-modal/evoke-modal.js",
12
+ "components/evoke-pagination/evoke-pagination.js",
13
+ "components/evoke-progress/evoke-progress.js",
14
+ "components/evoke-quantity-stepper/evoke-quantity-stepper.js",
9
15
  "components/evoke-radio-group/evoke-radio-group.js",
10
- "components/evoke-select/evoke-select.js"
16
+ "components/evoke-select/evoke-select.js",
17
+ "components/evoke-switch/evoke-switch.js",
18
+ "components/evoke-table/evoke-table.js",
19
+ "components/evoke-tabs/evoke-tabs.js",
20
+ "components/evoke-textarea/evoke-textarea.js",
21
+ "components/evoke-toast/evoke-toast.js",
22
+ "components/evoke-tooltip/evoke-tooltip.js"
11
23
  ],
12
24
  "mixins": [],
13
25
  "compiler": {
@@ -1,7 +1,18 @@
1
1
  evoke-alert { display: block; }
2
- evoke-alert .evoke-alert { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border-radius: var(--evoke-radius, 8px); border: 1px solid currentColor; font-family: var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif); }
3
- evoke-alert .evoke-alert--info { color: var(--evoke-info, #0891b2); background: #ecfeff; }
4
- evoke-alert .evoke-alert--success { color: var(--evoke-success, #16a34a); background: #f0fdf4; }
5
- evoke-alert .evoke-alert--warning { color: var(--evoke-warning, #d97706); background: #fffbeb; }
6
- evoke-alert .evoke-alert--danger { color: var(--evoke-danger, #dc2626); background: #fef2f2; }
7
- evoke-alert .evoke-alert__close { background: none; border: 0; color: inherit; font-size: 1.25rem; cursor: pointer; line-height: 1; }
2
+ evoke-alert .evoke-alert { --_c: var(--evoke-info, #0891b2); display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: var(--evoke-radius, 8px); border: 1px solid var(--_c); font-family: var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif); }
3
+ evoke-alert .evoke-alert--info { --_c: var(--evoke-info, #0891b2); }
4
+ evoke-alert .evoke-alert--success { --_c: var(--evoke-success, #16a34a); }
5
+ evoke-alert .evoke-alert--warning { --_c: var(--evoke-warning, #d97706); }
6
+ evoke-alert .evoke-alert--danger { --_c: var(--evoke-danger, #dc2626); }
7
+ /* subtle: tinted background, dark text (keeps 4.5:1 contrast), coloured border + icon */
8
+ evoke-alert .evoke-alert--subtle { background: color-mix(in srgb, var(--_c) 12%, var(--evoke-surface, #ffffff)); color: var(--evoke-text, #1a1a1a); }
9
+ evoke-alert .evoke-alert--subtle .evoke-alert__icon { color: var(--_c); }
10
+ /* solid: filled colour, white text */
11
+ evoke-alert .evoke-alert--solid { background: color-mix(in srgb, var(--_c) 78%, #000); border-color: color-mix(in srgb, var(--_c) 78%, #000); color: #fff; }
12
+ evoke-alert .evoke-alert__icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
13
+ evoke-alert .evoke-alert__content { flex: 1; min-width: 0; }
14
+ evoke-alert .evoke-alert__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; background: none; border: 0; border-radius: 50%; color: inherit; cursor: pointer; }
15
+ evoke-alert .evoke-alert__close:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
16
+ evoke-alert .evoke-alert__close:active { background: color-mix(in srgb, currentColor 24%, transparent); }
17
+ evoke-alert .evoke-alert__close:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 40%, transparent); }
18
+ evoke-alert .evoke-alert__close .evoke-icon { width: 16px; height: 16px; }
@@ -1,11 +1,15 @@
1
1
  import { h } from "@stencil/core";
2
+ import { renderIcon } from "../../utils/icons";
3
+ const TYPE_ICON = { info: 'info', success: 'check', warning: 'alert', danger: 'alert' };
2
4
  export class EvokeAlert {
3
5
  constructor() {
4
6
  this.type = 'info';
7
+ /** Subtle (tinted background) or solid (filled colour) */
8
+ this.appearance = 'subtle';
5
9
  this.dismissible = false;
6
10
  }
7
11
  render() {
8
- return (h("div", { key: 'aa100cfbdf5f8551d0a46c50aa649a523bd05da7', class: `evoke-alert evoke-alert--${this.type}`, role: "alert" }, h("div", { key: '93c4881344307580c8d1411259651f5eb22a72f5', class: "evoke-alert__content" }, h("slot", { key: 'ba362718033dff392088efed51e8332b8cccfa2d' })), this.dismissible && (h("button", { key: '5dcdd2e50ca6df6e430f59a4f88b63b3419c42b3', type: "button", class: "evoke-alert__close", "aria-label": "Dismiss", onClick: () => this.evokeDismiss.emit() }, "\u00D7"))));
12
+ return (h("div", { key: 'a1b27ec91bb55baeacdcf9547f5a6680faad87e6', class: `evoke-alert evoke-alert--${this.type} evoke-alert--${this.appearance}`, role: this.type === 'danger' || this.type === 'warning' ? 'alert' : 'status' }, renderIcon(TYPE_ICON[this.type], 'evoke-alert__icon'), h("div", { key: '499700905c4cd7ca6de877185ed0b8a02d1d1ed9', class: "evoke-alert__content" }, h("slot", { key: '122793b5693dc905c6bfbd680ae050a12be57400' })), this.dismissible && (h("button", { key: 'a6bd557fdefc34efcf8b87552130b9a55425c381', type: "button", class: "evoke-alert__close", "aria-label": "Dismiss", onClick: () => this.evokeDismiss.emit() }, renderIcon('x', 'evoke-icon')))));
9
13
  }
10
14
  static get is() { return "evoke-alert"; }
11
15
  static get originalStyleUrls() {
@@ -40,6 +44,26 @@ export class EvokeAlert {
40
44
  "attribute": "type",
41
45
  "defaultValue": "'info'"
42
46
  },
47
+ "appearance": {
48
+ "type": "string",
49
+ "mutable": false,
50
+ "complexType": {
51
+ "original": "'subtle' | 'solid'",
52
+ "resolved": "\"solid\" | \"subtle\"",
53
+ "references": {}
54
+ },
55
+ "required": false,
56
+ "optional": false,
57
+ "docs": {
58
+ "tags": [],
59
+ "text": "Subtle (tinted background) or solid (filled colour)"
60
+ },
61
+ "getter": false,
62
+ "setter": false,
63
+ "reflect": false,
64
+ "attribute": "appearance",
65
+ "defaultValue": "'subtle'"
66
+ },
43
67
  "dismissible": {
44
68
  "type": "boolean",
45
69
  "mutable": false,
@@ -0,0 +1,13 @@
1
+ evoke-app-bar { display: block; }
2
+ evoke-app-bar[sticky] { position: sticky; top: 0; z-index: 50; }
3
+ evoke-app-bar .evoke-appbar { --_fg: var(--evoke-text, #1a1a1a); box-sizing: border-box; display: flex; align-items: center; gap: 24px; min-height: 64px; padding: 8px 24px; font-family: var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif); background: var(--evoke-surface, #ffffff); color: var(--_fg); border-bottom: 1px solid var(--evoke-border, #dedede); }
4
+ evoke-app-bar .evoke-appbar--dark { --_fg: var(--evoke-secondary-contrast, #ffffff); background: var(--evoke-secondary, #0b1560); border-bottom-color: transparent; }
5
+ evoke-app-bar .evoke-appbar__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; flex: none; }
6
+ evoke-app-bar .evoke-appbar__nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; }
7
+ evoke-app-bar .evoke-appbar__actions { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; }
8
+ /* slotted nav links get consistent styling and states */
9
+ evoke-app-bar .evoke-appbar__nav a, evoke-app-bar .evoke-appbar__nav button { display: inline-flex; align-items: center; padding: 8px 14px; font: inherit; color: inherit; text-decoration: none; background: none; border: 0; border-radius: var(--evoke-radius-field, 8px); cursor: pointer; opacity: 0.85; transition: background-color 0.15s, opacity 0.15s; }
10
+ evoke-app-bar .evoke-appbar__nav a:hover, evoke-app-bar .evoke-appbar__nav button:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
11
+ evoke-app-bar .evoke-appbar__nav a:active, evoke-app-bar .evoke-appbar__nav button:active { background: color-mix(in srgb, currentColor 18%, transparent); }
12
+ evoke-app-bar .evoke-appbar__nav a[aria-current], evoke-app-bar .evoke-appbar__nav a.active { opacity: 1; font-weight: 600; box-shadow: inset 0 -2px 0 var(--evoke-primary, #ff5316); border-radius: 0; }
13
+ evoke-app-bar .evoke-appbar__nav a:focus-visible, evoke-app-bar .evoke-appbar__nav button:focus-visible { outline: 2px solid var(--evoke-primary, #ff5316); outline-offset: 1px; }
@@ -0,0 +1,94 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * @slot logo - brand/logo on the left
4
+ * @slot nav - navigation links in the middle (wrapped in a <nav>)
5
+ * @slot actions - buttons, badges or icons on the right
6
+ */
7
+ export class EvokeAppBar {
8
+ constructor() {
9
+ /** Light surface, or dark / brand-coloured (navy) */
10
+ this.appearance = 'light';
11
+ /** Stick to the top of the viewport while scrolling */
12
+ this.sticky = false;
13
+ /** Accessible name for the navigation landmark */
14
+ this.navLabel = 'Main';
15
+ }
16
+ render() {
17
+ return (h("header", { key: '11366baa08e286c8412eefbf82660f289fe42738', class: `evoke-appbar evoke-appbar--${this.appearance}` }, h("div", { key: '4a44bb53fc220b2c880fbafa79aecb2d195b2b85', class: "evoke-appbar__logo" }, h("slot", { key: 'bb727e24bb1058f0a6b6b4ffbe78616f639b15bd', name: "logo" })), h("nav", { key: '6d2023a4dad87266641d3cb2747218926c1750c7', class: "evoke-appbar__nav", "aria-label": this.navLabel }, h("slot", { key: 'ce4f50acddb09ebbc0c03538052cbd69e231fd2e', name: "nav" })), h("div", { key: 'ff64630598e48bf5b0b6708799247e8bcf54b184', class: "evoke-appbar__actions" }, h("slot", { key: 'e782ff890c366a72fe65df8f0544ad09c0818cc6', name: "actions" }))));
18
+ }
19
+ static get is() { return "evoke-app-bar"; }
20
+ static get originalStyleUrls() {
21
+ return {
22
+ "$": ["evoke-app-bar.css"]
23
+ };
24
+ }
25
+ static get styleUrls() {
26
+ return {
27
+ "$": ["evoke-app-bar.css"]
28
+ };
29
+ }
30
+ static get properties() {
31
+ return {
32
+ "appearance": {
33
+ "type": "string",
34
+ "mutable": false,
35
+ "complexType": {
36
+ "original": "'light' | 'dark'",
37
+ "resolved": "\"dark\" | \"light\"",
38
+ "references": {}
39
+ },
40
+ "required": false,
41
+ "optional": false,
42
+ "docs": {
43
+ "tags": [],
44
+ "text": "Light surface, or dark / brand-coloured (navy)"
45
+ },
46
+ "getter": false,
47
+ "setter": false,
48
+ "reflect": false,
49
+ "attribute": "appearance",
50
+ "defaultValue": "'light'"
51
+ },
52
+ "sticky": {
53
+ "type": "boolean",
54
+ "mutable": false,
55
+ "complexType": {
56
+ "original": "boolean",
57
+ "resolved": "boolean",
58
+ "references": {}
59
+ },
60
+ "required": false,
61
+ "optional": false,
62
+ "docs": {
63
+ "tags": [],
64
+ "text": "Stick to the top of the viewport while scrolling"
65
+ },
66
+ "getter": false,
67
+ "setter": false,
68
+ "reflect": true,
69
+ "attribute": "sticky",
70
+ "defaultValue": "false"
71
+ },
72
+ "navLabel": {
73
+ "type": "string",
74
+ "mutable": false,
75
+ "complexType": {
76
+ "original": "string",
77
+ "resolved": "string",
78
+ "references": {}
79
+ },
80
+ "required": false,
81
+ "optional": false,
82
+ "docs": {
83
+ "tags": [],
84
+ "text": "Accessible name for the navigation landmark"
85
+ },
86
+ "getter": false,
87
+ "setter": false,
88
+ "reflect": false,
89
+ "attribute": "nav-label",
90
+ "defaultValue": "'Main'"
91
+ }
92
+ };
93
+ }
94
+ }
@@ -0,0 +1,13 @@
1
+ evoke-badge { display: inline-block; }
2
+ evoke-badge .evoke-badge-wrap { position: relative; display: inline-flex; vertical-align: middle; }
3
+ evoke-badge .evoke-badge { --_bg: var(--evoke-danger, #dc2626); --_fg: #fff; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; background: var(--_bg); color: var(--_fg); font-family: var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif); font-weight: 600; }
4
+ evoke-badge .evoke-badge--primary { --_bg: color-mix(in srgb, var(--evoke-primary, #ff5316) 82%, #000); }
5
+ evoke-badge .evoke-badge--secondary { --_bg: var(--evoke-secondary, #0b1560); --_fg: var(--evoke-secondary-contrast, #ffffff); }
6
+ evoke-badge .evoke-badge--danger { --_bg: color-mix(in srgb, var(--evoke-danger, #dc2626) 85%, #000); }
7
+ evoke-badge .evoke-badge--success { --_bg: color-mix(in srgb, var(--evoke-success, #16a34a) 78%, #000); }
8
+ evoke-badge .evoke-badge--warning { --_bg: color-mix(in srgb, var(--evoke-warning, #d97706) 78%, #000); }
9
+ evoke-badge .evoke-badge--info { --_bg: color-mix(in srgb, var(--evoke-info, #0891b2) 78%, #000); }
10
+ evoke-badge .evoke-badge--count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 9999px; font-size: 0.75rem; line-height: 1; }
11
+ evoke-badge .evoke-badge--dot { width: 10px; height: 10px; border-radius: 50%; }
12
+ evoke-badge .evoke-badge-wrap--anchored > .evoke-badge { position: absolute; top: 0; right: 0; transform: translate(35%, -35%); box-shadow: 0 0 0 2px var(--evoke-surface, #ffffff); }
13
+ evoke-badge .evoke-badge__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }