ooxml-ui 0.20.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/README.md +47 -2
  2. package/dist/base.d.ts +118 -0
  3. package/dist/{account.d.ts → chrome/account-profile.d.ts} +0 -6
  4. package/dist/chrome/account.d.ts +17 -0
  5. package/dist/chrome/backstage.d.ts +78 -0
  6. package/dist/chrome/find-bar.d.ts +111 -0
  7. package/dist/chrome/print-preview.d.ts +39 -0
  8. package/dist/chrome/ruler.d.ts +43 -0
  9. package/dist/chrome/status-bar.d.ts +80 -0
  10. package/dist/chrome/status-item.d.ts +40 -0
  11. package/dist/chrome/tab-strip.d.ts +88 -0
  12. package/dist/chrome/title-bar-types.d.ts +75 -0
  13. package/dist/chrome/title-bar.d.ts +81 -0
  14. package/dist/{chunk-7XBKSYGM.js → chunk-2X6QYQ3Q.js} +10 -1
  15. package/dist/{chunk-4JQLQROF.js → chunk-3MDKXKKQ.js} +53 -65
  16. package/dist/chunk-5A4REH6T.js +259 -0
  17. package/dist/chunk-E47762NY.js +90 -0
  18. package/dist/chunk-HNGJI5EZ.js +834 -0
  19. package/dist/{chunk-G3LAGZEW.js → chunk-HSJH6SUW.js} +33 -1
  20. package/dist/{chunk-W5PYFBEZ.js → chunk-HZ422LTR.js} +1 -49
  21. package/dist/chunk-LKLZOPTO.js +4536 -0
  22. package/dist/controls.d.ts +56 -46
  23. package/dist/controls.js +5 -5
  24. package/dist/dialog/dialog-footer.d.ts +40 -0
  25. package/dist/dialog/dialog.d.ts +52 -0
  26. package/dist/{options.d.ts → dialog/options-dialog.d.ts} +46 -1
  27. package/dist/form/checkable.d.ts +49 -0
  28. package/dist/form/checkbox.d.ts +8 -0
  29. package/dist/form/radio.d.ts +68 -0
  30. package/dist/form/search-field.d.ts +54 -0
  31. package/dist/{select-menu.d.ts → form/select-menu.d.ts} +3 -13
  32. package/dist/form/select.d.ts +115 -0
  33. package/dist/form/switch.d.ts +11 -0
  34. package/dist/form/zoom-slider.d.ts +78 -0
  35. package/dist/glyph.d.ts +2 -0
  36. package/dist/icon.d.ts +19 -0
  37. package/dist/icons.d.ts +0 -3
  38. package/dist/icons.js +1 -3
  39. package/dist/index.d.ts +4 -1
  40. package/dist/index.js +16 -12
  41. package/dist/menu/command-search.d.ts +74 -0
  42. package/dist/menu/context-menu.d.ts +89 -0
  43. package/dist/menu/menu-button.d.ts +77 -0
  44. package/dist/menu/menu-item.d.ts +52 -0
  45. package/dist/{menu-model.d.ts → menu/menu-model.d.ts} +2 -0
  46. package/dist/menu/menu-separator.d.ts +7 -0
  47. package/dist/notices/paste-options.d.ts +41 -0
  48. package/dist/notices/read-only-banner.d.ts +53 -0
  49. package/dist/notices/toasts.d.ts +40 -0
  50. package/dist/presence/presence.d.ts +53 -0
  51. package/dist/presence.d.ts +1 -31
  52. package/dist/presence.js +3 -3
  53. package/dist/ribbon/button.d.ts +60 -0
  54. package/dist/ribbon/gallery-styles.d.ts +2 -0
  55. package/dist/ribbon/gallery.d.ts +97 -0
  56. package/dist/ribbon/ribbon-group.d.ts +35 -0
  57. package/dist/{ribbon-section.d.ts → ribbon/ribbon-section.d.ts} +14 -1
  58. package/dist/ribbon/ribbon-stack.d.ts +10 -0
  59. package/dist/ribbon/ribbon-tabs.d.ts +82 -0
  60. package/dist/ribbon/ribbon-toggle.d.ts +49 -0
  61. package/dist/ribbon/ribbon-toolbar.d.ts +15 -0
  62. package/dist/smartart/smartart.d.ts +43 -0
  63. package/dist/smartart.d.ts +1 -14
  64. package/dist/smartart.js +3 -3
  65. package/dist/styles.d.ts +1 -4
  66. package/dist/teams/app-rail.d.ts +29 -0
  67. package/dist/teams/avatar.d.ts +39 -0
  68. package/dist/teams/base.d.ts +17 -0
  69. package/dist/teams/call-controls.d.ts +61 -0
  70. package/dist/teams/call-grid.d.ts +33 -0
  71. package/dist/teams/channel-list.d.ts +40 -0
  72. package/dist/teams/chat-composer.d.ts +60 -0
  73. package/dist/teams/chat-list.d.ts +51 -0
  74. package/dist/teams/icons.d.ts +3 -0
  75. package/dist/teams/index.d.ts +14 -0
  76. package/dist/teams/prejoin.d.ts +40 -0
  77. package/dist/teams.js +5 -0
  78. package/dist/theme.js +2 -2
  79. package/dist/tokens.d.ts +245 -214
  80. package/package.json +12 -6
  81. package/dist/backstage.d.ts +0 -28
  82. package/dist/button.d.ts +0 -14
  83. package/dist/checkable.d.ts +0 -4
  84. package/dist/chrome-controls.d.ts +0 -52
  85. package/dist/chunk-24MMSCKW.js +0 -119
  86. package/dist/chunk-UEJ4F33J.js +0 -78
  87. package/dist/chunk-W7YI5DSJ.js +0 -5970
  88. package/dist/command-search.d.ts +0 -18
  89. package/dist/context-menu.d.ts +0 -20
  90. package/dist/dialog.d.ts +0 -13
  91. package/dist/document-notices.d.ts +0 -55
  92. package/dist/find-bar.d.ts +0 -15
  93. package/dist/gallery-styles.d.ts +0 -7
  94. package/dist/gallery-view.d.ts +0 -53
  95. package/dist/gallery.d.ts +0 -20
  96. package/dist/menu.d.ts +0 -15
  97. package/dist/print-preview.d.ts +0 -11
  98. package/dist/radio.d.ts +0 -1
  99. package/dist/ribbon-tabs.d.ts +0 -14
  100. package/dist/ribbon-toggle.d.ts +0 -1
  101. package/dist/ribbon.d.ts +0 -24
  102. package/dist/ruler.d.ts +0 -10
  103. package/dist/search-field.d.ts +0 -1
  104. package/dist/select-styles.d.ts +0 -6
  105. package/dist/select.d.ts +0 -19
  106. package/dist/status-bar-view.d.ts +0 -50
  107. package/dist/status-bar.d.ts +0 -19
  108. package/dist/tab-strip.d.ts +0 -20
  109. package/dist/title-bar-search.d.ts +0 -43
  110. package/dist/title-bar-strip.d.ts +0 -20
  111. package/dist/title-bar.d.ts +0 -49
  112. package/dist/zoom-slider.d.ts +0 -9
  113. /package/dist/{safe-svg.d.ts → ribbon/safe-svg.d.ts} +0 -0
  114. /package/dist/{smartart-svg.d.ts → smartart/smartart-svg.d.ts} +0 -0
@@ -227,7 +227,39 @@ var OFFICE_TOKENS = {
227
227
  "--office-title-bar-name-max-width": "240px",
228
228
  "--office-title-bar-name-max-width-narrow": "140px",
229
229
  "--office-title-bar-search-max-width": "448px",
230
- "--office-title-bar-results-max-height": "256px"
230
+ "--office-title-bar-results-max-height": "256px",
231
+ // Component: team workspace (a Teams-like surface)
232
+ "--office-teams-brand": "#5b5fc7",
233
+ "--office-teams-brand-hover": "#4f52b2",
234
+ "--office-teams-brand-pressed": "#3f4296",
235
+ "--office-teams-brand-subtle": "#e8ebfa",
236
+ "--office-teams-brand-foreground": "#ffffff",
237
+ "--office-teams-rail": "#ebebeb",
238
+ "--office-teams-panel": "#f5f5f5",
239
+ "--office-teams-bubble": "#f5f5f5",
240
+ "--office-teams-bubble-own": "#e8ebfa",
241
+ "--office-teams-divider": "#e0e0e0",
242
+ "--office-teams-text-subtle": "#616161",
243
+ "--office-presence-available": "#6bb700",
244
+ "--office-presence-busy": "#c50f1f",
245
+ "--office-presence-away": "#eaa300",
246
+ "--office-presence-offline": "#8a8886",
247
+ "--office-file-docx": "#2b579a",
248
+ "--office-file-xlsx": "#217346",
249
+ "--office-file-pptx": "#c43e1c",
250
+ "--office-file-vsdx": "#3955a3",
251
+ "--office-file-other": "#6b7280",
252
+ "--office-call-background": "#292929",
253
+ "--office-call-tile": "#3d3d3d",
254
+ "--office-call-foreground": "#ffffff",
255
+ "--office-call-muted-foreground": "#c8c8c8",
256
+ "--office-call-control": "#3d3d3d",
257
+ "--office-call-control-hover": "#525252",
258
+ "--office-call-danger": "#c4314b",
259
+ "--office-call-danger-hover": "#a72a40",
260
+ "--office-call-live": "#6bb700",
261
+ "--office-call-scrim": "rgb(0 0 0 / 60%)",
262
+ "--office-shadow-teams": "0 2px 4px rgb(0 0 0 / 14%), 0 0 2px rgb(0 0 0 / 12%)"
231
263
  };
232
264
  function tok(name) {
233
265
  return `var(${name}, ${OFFICE_TOKENS[name]})`;
@@ -1,5 +1,3 @@
1
- import { definer, attachStyles, controlCss } from './chunk-UEJ4F33J.js';
2
-
3
1
  // src/icons.ts
4
2
  var registry = /* @__PURE__ */ new Map();
5
3
  var BUILT_IN = {
@@ -105,51 +103,5 @@ function paintIcon(svg, name) {
105
103
  svg.append(path);
106
104
  return true;
107
105
  }
108
- var ICON_CSS = `
109
- svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5;
110
- stroke-linecap: round; stroke-linejoin: round; }
111
- `;
112
- var defineIcon = definer("office-ui-icon", () => {
113
- class OfficeUiIcon extends HTMLElement {
114
- static observedAttributes = ["name", "label"];
115
- svg;
116
- constructor() {
117
- super();
118
- const root = this.attachShadow({ mode: "open" });
119
- attachStyles(
120
- root,
121
- controlCss(`:host { display: inline-flex; width: 1em; height: 1em; } ${ICON_CSS}`)
122
- );
123
- this.svg = createIconSvg(this.ownerDocument);
124
- root.append(this.svg);
125
- }
126
- connectedCallback() {
127
- this.sync();
128
- }
129
- attributeChangedCallback() {
130
- this.sync();
131
- }
132
- get name() {
133
- return this.getAttribute("name") ?? "";
134
- }
135
- set name(value) {
136
- this.setAttribute("name", value);
137
- }
138
- sync() {
139
- paintIcon(this.svg, this.name);
140
- const label = this.getAttribute("label");
141
- if (label) {
142
- this.setAttribute("role", "img");
143
- this.setAttribute("aria-label", label);
144
- this.removeAttribute("aria-hidden");
145
- } else {
146
- this.removeAttribute("role");
147
- this.removeAttribute("aria-label");
148
- this.setAttribute("aria-hidden", "true");
149
- }
150
- }
151
- }
152
- return OfficeUiIcon;
153
- });
154
106
 
155
- export { ICON_CSS, createIconSvg, defineIcon, getIcon, listIcons, paintIcon, registerIcon };
107
+ export { createIconSvg, getIcon, listIcons, paintIcon, registerIcon };