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.
- package/README.md +47 -2
- package/dist/base.d.ts +118 -0
- package/dist/{account.d.ts → chrome/account-profile.d.ts} +0 -6
- package/dist/chrome/account.d.ts +17 -0
- package/dist/chrome/backstage.d.ts +78 -0
- package/dist/chrome/find-bar.d.ts +111 -0
- package/dist/chrome/print-preview.d.ts +39 -0
- package/dist/chrome/ruler.d.ts +43 -0
- package/dist/chrome/status-bar.d.ts +80 -0
- package/dist/chrome/status-item.d.ts +40 -0
- package/dist/chrome/tab-strip.d.ts +88 -0
- package/dist/chrome/title-bar-types.d.ts +75 -0
- package/dist/chrome/title-bar.d.ts +81 -0
- package/dist/{chunk-7XBKSYGM.js → chunk-2X6QYQ3Q.js} +10 -1
- package/dist/{chunk-4JQLQROF.js → chunk-3MDKXKKQ.js} +53 -65
- package/dist/chunk-5A4REH6T.js +259 -0
- package/dist/chunk-E47762NY.js +90 -0
- package/dist/chunk-HNGJI5EZ.js +834 -0
- package/dist/{chunk-G3LAGZEW.js → chunk-HSJH6SUW.js} +33 -1
- package/dist/{chunk-W5PYFBEZ.js → chunk-HZ422LTR.js} +1 -49
- package/dist/chunk-LKLZOPTO.js +4536 -0
- package/dist/controls.d.ts +56 -46
- package/dist/controls.js +5 -5
- package/dist/dialog/dialog-footer.d.ts +40 -0
- package/dist/dialog/dialog.d.ts +52 -0
- package/dist/{options.d.ts → dialog/options-dialog.d.ts} +46 -1
- package/dist/form/checkable.d.ts +49 -0
- package/dist/form/checkbox.d.ts +8 -0
- package/dist/form/radio.d.ts +68 -0
- package/dist/form/search-field.d.ts +54 -0
- package/dist/{select-menu.d.ts → form/select-menu.d.ts} +3 -13
- package/dist/form/select.d.ts +115 -0
- package/dist/form/switch.d.ts +11 -0
- package/dist/form/zoom-slider.d.ts +78 -0
- package/dist/glyph.d.ts +2 -0
- package/dist/icon.d.ts +19 -0
- package/dist/icons.d.ts +0 -3
- package/dist/icons.js +1 -3
- package/dist/index.d.ts +4 -1
- package/dist/index.js +16 -12
- package/dist/menu/command-search.d.ts +74 -0
- package/dist/menu/context-menu.d.ts +89 -0
- package/dist/menu/menu-button.d.ts +77 -0
- package/dist/menu/menu-item.d.ts +52 -0
- package/dist/{menu-model.d.ts → menu/menu-model.d.ts} +2 -0
- package/dist/menu/menu-separator.d.ts +7 -0
- package/dist/notices/paste-options.d.ts +41 -0
- package/dist/notices/read-only-banner.d.ts +53 -0
- package/dist/notices/toasts.d.ts +40 -0
- package/dist/presence/presence.d.ts +53 -0
- package/dist/presence.d.ts +1 -31
- package/dist/presence.js +3 -3
- package/dist/ribbon/button.d.ts +60 -0
- package/dist/ribbon/gallery-styles.d.ts +2 -0
- package/dist/ribbon/gallery.d.ts +97 -0
- package/dist/ribbon/ribbon-group.d.ts +35 -0
- package/dist/{ribbon-section.d.ts → ribbon/ribbon-section.d.ts} +14 -1
- package/dist/ribbon/ribbon-stack.d.ts +10 -0
- package/dist/ribbon/ribbon-tabs.d.ts +82 -0
- package/dist/ribbon/ribbon-toggle.d.ts +49 -0
- package/dist/ribbon/ribbon-toolbar.d.ts +15 -0
- package/dist/smartart/smartart.d.ts +43 -0
- package/dist/smartart.d.ts +1 -14
- package/dist/smartart.js +3 -3
- package/dist/styles.d.ts +1 -4
- package/dist/teams/app-rail.d.ts +29 -0
- package/dist/teams/avatar.d.ts +39 -0
- package/dist/teams/base.d.ts +17 -0
- package/dist/teams/call-controls.d.ts +61 -0
- package/dist/teams/call-grid.d.ts +33 -0
- package/dist/teams/channel-list.d.ts +40 -0
- package/dist/teams/chat-composer.d.ts +60 -0
- package/dist/teams/chat-list.d.ts +51 -0
- package/dist/teams/icons.d.ts +3 -0
- package/dist/teams/index.d.ts +14 -0
- package/dist/teams/prejoin.d.ts +40 -0
- package/dist/teams.js +5 -0
- package/dist/theme.js +2 -2
- package/dist/tokens.d.ts +245 -214
- package/package.json +12 -6
- package/dist/backstage.d.ts +0 -28
- package/dist/button.d.ts +0 -14
- package/dist/checkable.d.ts +0 -4
- package/dist/chrome-controls.d.ts +0 -52
- package/dist/chunk-24MMSCKW.js +0 -119
- package/dist/chunk-UEJ4F33J.js +0 -78
- package/dist/chunk-W7YI5DSJ.js +0 -5970
- package/dist/command-search.d.ts +0 -18
- package/dist/context-menu.d.ts +0 -20
- package/dist/dialog.d.ts +0 -13
- package/dist/document-notices.d.ts +0 -55
- package/dist/find-bar.d.ts +0 -15
- package/dist/gallery-styles.d.ts +0 -7
- package/dist/gallery-view.d.ts +0 -53
- package/dist/gallery.d.ts +0 -20
- package/dist/menu.d.ts +0 -15
- package/dist/print-preview.d.ts +0 -11
- package/dist/radio.d.ts +0 -1
- package/dist/ribbon-tabs.d.ts +0 -14
- package/dist/ribbon-toggle.d.ts +0 -1
- package/dist/ribbon.d.ts +0 -24
- package/dist/ruler.d.ts +0 -10
- package/dist/search-field.d.ts +0 -1
- package/dist/select-styles.d.ts +0 -6
- package/dist/select.d.ts +0 -19
- package/dist/status-bar-view.d.ts +0 -50
- package/dist/status-bar.d.ts +0 -19
- package/dist/tab-strip.d.ts +0 -20
- package/dist/title-bar-search.d.ts +0 -43
- package/dist/title-bar-strip.d.ts +0 -20
- package/dist/title-bar.d.ts +0 -49
- package/dist/zoom-slider.d.ts +0 -9
- /package/dist/{safe-svg.d.ts → ribbon/safe-svg.d.ts} +0 -0
- /package/dist/{smartart-svg.d.ts → smartart/smartart-svg.d.ts} +0 -0
package/dist/tokens.d.ts
CHANGED
|
@@ -7,220 +7,251 @@
|
|
|
7
7
|
* forced-colours values. Component tokens default to the semantic ones.
|
|
8
8
|
*/
|
|
9
9
|
export declare const OFFICE_TOKENS: {
|
|
10
|
-
readonly '--office-foreground':
|
|
11
|
-
readonly '--office-muted-foreground':
|
|
12
|
-
readonly '--office-background':
|
|
13
|
-
readonly '--office-surface':
|
|
14
|
-
readonly '--office-selected':
|
|
15
|
-
readonly '--office-border':
|
|
16
|
-
readonly '--office-accent':
|
|
17
|
-
readonly '--office-accent-foreground':
|
|
18
|
-
readonly '--office-ring':
|
|
19
|
-
readonly '--office-danger':
|
|
20
|
-
readonly '--office-danger-foreground':
|
|
21
|
-
readonly '--office-warning':
|
|
22
|
-
readonly '--office-warning-foreground':
|
|
23
|
-
readonly '--office-info':
|
|
24
|
-
readonly '--office-popover':
|
|
25
|
-
readonly '--office-popover-foreground':
|
|
26
|
-
readonly '--office-overlay':
|
|
27
|
-
readonly '--office-notice-background':
|
|
28
|
-
readonly '--office-notice-foreground':
|
|
29
|
-
readonly '--office-notice-border':
|
|
30
|
-
readonly '--office-notice-accent':
|
|
31
|
-
readonly '--office-keytip-background':
|
|
32
|
-
readonly '--office-keytip-foreground':
|
|
33
|
-
readonly '--office-keytip-border':
|
|
34
|
-
readonly '--office-highlight':
|
|
35
|
-
readonly '--office-paper':
|
|
36
|
-
readonly '--office-accent-hover':
|
|
37
|
-
readonly '--office-font':
|
|
38
|
-
readonly '--office-font-size-3xs':
|
|
39
|
-
readonly '--office-font-size-2xs':
|
|
40
|
-
readonly '--office-font-size-xs':
|
|
41
|
-
readonly '--office-font-size-sm':
|
|
42
|
-
readonly '--office-font-size':
|
|
43
|
-
readonly '--office-font-size-md':
|
|
44
|
-
readonly '--office-font-size-lg':
|
|
45
|
-
readonly '--office-font-size-xl':
|
|
46
|
-
readonly '--office-font-weight-medium':
|
|
47
|
-
readonly '--office-font-weight-bold':
|
|
48
|
-
readonly '--office-line-height':
|
|
49
|
-
readonly '--office-line-height-tight':
|
|
50
|
-
readonly '--office-icon-stroke':
|
|
51
|
-
readonly '--office-space-px':
|
|
52
|
-
readonly '--office-space-0':
|
|
53
|
-
readonly '--office-space-1':
|
|
54
|
-
readonly '--office-space-1-5':
|
|
55
|
-
readonly '--office-space-2':
|
|
56
|
-
readonly '--office-space-2-5':
|
|
57
|
-
readonly '--office-space-3':
|
|
58
|
-
readonly '--office-space-3-5':
|
|
59
|
-
readonly '--office-space-4':
|
|
60
|
-
readonly '--office-space-5':
|
|
61
|
-
readonly '--office-space-6':
|
|
62
|
-
readonly '--office-border-width':
|
|
63
|
-
readonly '--office-border-width-thick':
|
|
64
|
-
readonly '--office-radius-xs':
|
|
65
|
-
readonly '--office-radius-sm':
|
|
66
|
-
readonly '--office-radius':
|
|
67
|
-
readonly '--office-radius-md':
|
|
68
|
-
readonly '--office-radius-lg':
|
|
69
|
-
readonly '--office-radius-full':
|
|
70
|
-
readonly '--office-focus-width':
|
|
71
|
-
readonly '--office-focus-offset':
|
|
72
|
-
readonly '--office-target-size':
|
|
73
|
-
readonly '--office-target-size-touch':
|
|
74
|
-
readonly '--office-control-height':
|
|
75
|
-
readonly '--office-control-height-md':
|
|
76
|
-
readonly '--office-control-height-lg':
|
|
77
|
-
readonly '--office-input-height':
|
|
78
|
-
readonly '--office-control-height-xs':
|
|
79
|
-
readonly '--office-icon-size-xs':
|
|
80
|
-
readonly '--office-icon-size-sm':
|
|
81
|
-
readonly '--office-icon-size':
|
|
82
|
-
readonly '--office-icon-size-md':
|
|
83
|
-
readonly '--office-icon-size-ml':
|
|
84
|
-
readonly '--office-icon-size-lg':
|
|
85
|
-
readonly '--office-shadow-sm':
|
|
86
|
-
readonly '--office-shadow':
|
|
87
|
-
readonly '--office-shadow-lg':
|
|
88
|
-
readonly '--office-z-popover':
|
|
89
|
-
readonly '--office-z-dialog':
|
|
90
|
-
readonly '--office-z-backstage':
|
|
91
|
-
readonly '--office-duration-fast':
|
|
92
|
-
readonly '--office-duration':
|
|
93
|
-
readonly '--office-duration-spin':
|
|
94
|
-
readonly '--office-field-height':
|
|
95
|
-
readonly '--office-field-height-lg':
|
|
96
|
-
readonly '--office-field-radius':
|
|
97
|
-
readonly '--office-field-border':
|
|
98
|
-
readonly '--office-field-border-focus':
|
|
99
|
-
readonly '--office-field-background':
|
|
100
|
-
readonly '--office-field-foreground':
|
|
101
|
-
readonly '--office-field-placeholder':
|
|
102
|
-
readonly '--office-checkbox-size':
|
|
103
|
-
readonly '--office-checkbox-size-touch':
|
|
104
|
-
readonly '--office-checkbox-radius':
|
|
105
|
-
readonly '--office-checkbox-border':
|
|
106
|
-
readonly '--office-checkbox-background':
|
|
107
|
-
readonly '--office-checkbox-accent':
|
|
108
|
-
readonly '--office-checkbox-accent-foreground':
|
|
109
|
-
readonly '--office-radio-dot-size':
|
|
110
|
-
readonly '--office-radio-dot-size-touch':
|
|
111
|
-
readonly '--office-switch-width':
|
|
112
|
-
readonly '--office-switch-height':
|
|
113
|
-
readonly '--office-switch-width-touch':
|
|
114
|
-
readonly '--office-switch-height-touch':
|
|
115
|
-
readonly '--office-switch-border-width':
|
|
116
|
-
readonly '--office-switch-knob-size':
|
|
117
|
-
readonly '--office-switch-knob-size-touch':
|
|
118
|
-
readonly '--office-switch-knob-offset':
|
|
119
|
-
readonly '--office-switch-border':
|
|
120
|
-
readonly '--office-switch-track':
|
|
121
|
-
readonly '--office-switch-track-on':
|
|
122
|
-
readonly '--office-switch-thumb':
|
|
123
|
-
readonly '--office-switch-thumb-on':
|
|
124
|
-
readonly '--office-ribbon-tab-height':
|
|
125
|
-
readonly '--office-ribbon-group-gap':
|
|
126
|
-
readonly '--office-ribbon-group-height':
|
|
127
|
-
readonly '--office-ribbon-group-padding':
|
|
128
|
-
readonly '--office-ribbon-separator-inset':
|
|
129
|
-
readonly '--office-ribbon-separator':
|
|
130
|
-
readonly '--office-ribbon-caption-size':
|
|
131
|
-
readonly '--office-ribbon-caption-padding':
|
|
132
|
-
readonly '--office-launcher-inset-end':
|
|
133
|
-
readonly '--office-launcher-inset-bottom':
|
|
134
|
-
readonly '--office-ribbon-compact-row-max':
|
|
135
|
-
readonly '--office-ribbon-stack-max-height':
|
|
136
|
-
readonly '--office-ribbon-collapse-x':
|
|
137
|
-
readonly '--office-ribbon-collapse-y':
|
|
138
|
-
readonly '--office-command-icon-color':
|
|
139
|
-
readonly '--office-command-large-height':
|
|
140
|
-
readonly '--office-command-large-min-width':
|
|
141
|
-
readonly '--office-command-large-max-width':
|
|
142
|
-
readonly '--office-command-large-icon':
|
|
143
|
-
readonly '--office-command-small-icon':
|
|
144
|
-
readonly '--office-command-tall-height':
|
|
145
|
-
readonly '--office-command-tall-min-width':
|
|
146
|
-
readonly '--office-command-tall-icon':
|
|
147
|
-
readonly '--office-command-active':
|
|
148
|
-
readonly '--office-collapsed-group-min-width':
|
|
149
|
-
readonly '--office-ribbon-caption-line-height':
|
|
150
|
-
readonly '--office-ribbon-row-height':
|
|
151
|
-
readonly '--office-ribbon-file-min-width':
|
|
152
|
-
readonly '--office-launcher-width':
|
|
153
|
-
readonly '--office-launcher-height':
|
|
154
|
-
readonly '--office-tab-indicator-width':
|
|
155
|
-
readonly '--office-status-bar-height':
|
|
156
|
-
readonly '--office-tab-height':
|
|
157
|
-
readonly '--office-tab-max-width':
|
|
158
|
-
readonly '--office-zoom-slider-width':
|
|
159
|
-
readonly '--office-zoom-slider-min-width':
|
|
160
|
-
readonly '--office-zoom-value-width':
|
|
161
|
-
readonly '--office-dialog-width':
|
|
162
|
-
readonly '--office-dialog-max-width':
|
|
163
|
-
readonly '--office-dialog-max-height':
|
|
164
|
-
readonly '--office-dialog-min-width':
|
|
165
|
-
readonly '--office-dialog-button-min-width':
|
|
166
|
-
readonly '--office-options-width':
|
|
167
|
-
readonly '--office-options-nav-width':
|
|
168
|
-
readonly '--office-options-min-height':
|
|
169
|
-
readonly '--office-options-label-width':
|
|
170
|
-
readonly '--office-options-row-height':
|
|
171
|
-
readonly '--office-options-number-width':
|
|
172
|
-
readonly '--office-info-size':
|
|
173
|
-
readonly '--office-selection-bar-width':
|
|
174
|
-
readonly '--office-backstage-nav-width':
|
|
175
|
-
readonly '--office-backstage-nav-background':
|
|
176
|
-
readonly '--office-backstage-nav-foreground':
|
|
177
|
-
readonly '--office-backstage-item-hover':
|
|
178
|
-
readonly '--office-backstage-padding':
|
|
179
|
-
readonly '--office-backstage-back-size':
|
|
180
|
-
readonly '--office-backstage-item-height':
|
|
181
|
-
readonly '--office-menu-min-width':
|
|
182
|
-
readonly '--office-menu-max-height':
|
|
183
|
-
readonly '--office-context-menu-min-width':
|
|
184
|
-
readonly '--office-search-popup-min-width':
|
|
185
|
-
readonly '--office-search-popup-max-height':
|
|
186
|
-
readonly '--office-select-max-height':
|
|
187
|
-
readonly '--office-select-background':
|
|
188
|
-
readonly '--office-select-menu-min-width':
|
|
189
|
-
readonly '--office-select-option-active':
|
|
190
|
-
readonly '--office-select-ribbon-menu-width':
|
|
191
|
-
readonly '--office-font-picker-max-height':
|
|
192
|
-
readonly '--office-font-picker-width':
|
|
193
|
-
readonly '--office-chevron-size':
|
|
194
|
-
readonly '--office-ribbon-combo-height':
|
|
195
|
-
readonly '--office-ribbon-icon-select-width':
|
|
196
|
-
readonly '--office-search-width':
|
|
197
|
-
readonly '--office-print-preview-width':
|
|
198
|
-
readonly '--office-find-max-width':
|
|
199
|
-
readonly '--office-find-bar-height':
|
|
200
|
-
readonly '--office-ruler-size':
|
|
201
|
-
readonly '--office-avatar-size':
|
|
202
|
-
readonly '--office-avatar-color':
|
|
203
|
-
readonly '--office-toast-width':
|
|
204
|
-
readonly '--office-account-field-width':
|
|
205
|
-
readonly '--office-gallery-trigger-height':
|
|
206
|
-
readonly '--office-gallery-strip-background':
|
|
207
|
-
readonly '--office-gallery-command-min-width':
|
|
208
|
-
readonly '--office-gallery-command-max-width':
|
|
209
|
-
readonly '--office-gallery-command-height':
|
|
210
|
-
readonly '--office-gallery-command-icon':
|
|
211
|
-
readonly '--office-gallery-popup-max-height':
|
|
212
|
-
readonly '--office-title-bar-height':
|
|
213
|
-
readonly '--office-title-bar-below-height':
|
|
214
|
-
readonly '--office-title-bar-background':
|
|
215
|
-
readonly '--office-title-bar-foreground':
|
|
216
|
-
readonly '--office-title-bar-border':
|
|
217
|
-
readonly '--office-title-bar-mark-size':
|
|
218
|
-
readonly '--office-title-bar-mark-background':
|
|
219
|
-
readonly '--office-title-bar-mark-foreground':
|
|
220
|
-
readonly '--office-title-bar-name-max-width':
|
|
221
|
-
readonly '--office-title-bar-name-max-width-narrow':
|
|
222
|
-
readonly '--office-title-bar-search-max-width':
|
|
223
|
-
readonly '--office-title-bar-results-max-height':
|
|
10
|
+
readonly '--office-foreground': '#1f2937';
|
|
11
|
+
readonly '--office-muted-foreground': '#6b7280';
|
|
12
|
+
readonly '--office-background': '#ffffff';
|
|
13
|
+
readonly '--office-surface': '#f3f4f6';
|
|
14
|
+
readonly '--office-selected': '#e5e7eb';
|
|
15
|
+
readonly '--office-border': '#d1d5db';
|
|
16
|
+
readonly '--office-accent': '#2563eb';
|
|
17
|
+
readonly '--office-accent-foreground': '#ffffff';
|
|
18
|
+
readonly '--office-ring': '#2563eb';
|
|
19
|
+
readonly '--office-danger': '#b91c1c';
|
|
20
|
+
readonly '--office-danger-foreground': '#ffffff';
|
|
21
|
+
readonly '--office-warning': '#d97706';
|
|
22
|
+
readonly '--office-warning-foreground': '#ffffff';
|
|
23
|
+
readonly '--office-info': '#3b82f6';
|
|
24
|
+
readonly '--office-popover': 'var(--office-background, #ffffff)';
|
|
25
|
+
readonly '--office-popover-foreground': 'var(--office-foreground, #1f2937)';
|
|
26
|
+
readonly '--office-overlay': 'rgb(0 0 0 / 40%)';
|
|
27
|
+
readonly '--office-notice-background': '#fef3c7';
|
|
28
|
+
readonly '--office-notice-foreground': '#78350f';
|
|
29
|
+
readonly '--office-notice-border': 'rgb(180 83 9 / 30%)';
|
|
30
|
+
readonly '--office-notice-accent': '#d97706';
|
|
31
|
+
readonly '--office-keytip-background': '#ffffff';
|
|
32
|
+
readonly '--office-keytip-foreground': '#1f1f1f';
|
|
33
|
+
readonly '--office-keytip-border': '#8a8886';
|
|
34
|
+
readonly '--office-highlight': '#dc2626';
|
|
35
|
+
readonly '--office-paper': '#ffffff';
|
|
36
|
+
readonly '--office-accent-hover': 'color-mix(in srgb, var(--office-accent, #2563eb) 85%, #000)';
|
|
37
|
+
readonly '--office-font': 'system-ui, -apple-system, "Segoe UI", sans-serif';
|
|
38
|
+
readonly '--office-font-size-3xs': '9px';
|
|
39
|
+
readonly '--office-font-size-2xs': '10px';
|
|
40
|
+
readonly '--office-font-size-xs': '11px';
|
|
41
|
+
readonly '--office-font-size-sm': '12px';
|
|
42
|
+
readonly '--office-font-size': '13px';
|
|
43
|
+
readonly '--office-font-size-md': '14px';
|
|
44
|
+
readonly '--office-font-size-lg': '15px';
|
|
45
|
+
readonly '--office-font-size-xl': '18px';
|
|
46
|
+
readonly '--office-font-weight-medium': '500';
|
|
47
|
+
readonly '--office-font-weight-bold': '600';
|
|
48
|
+
readonly '--office-line-height': '1.4';
|
|
49
|
+
readonly '--office-line-height-tight': '1.2';
|
|
50
|
+
readonly '--office-icon-stroke': '1.5';
|
|
51
|
+
readonly '--office-space-px': '1px';
|
|
52
|
+
readonly '--office-space-0': '2px';
|
|
53
|
+
readonly '--office-space-1': '4px';
|
|
54
|
+
readonly '--office-space-1-5': '6px';
|
|
55
|
+
readonly '--office-space-2': '8px';
|
|
56
|
+
readonly '--office-space-2-5': '10px';
|
|
57
|
+
readonly '--office-space-3': '12px';
|
|
58
|
+
readonly '--office-space-3-5': '14px';
|
|
59
|
+
readonly '--office-space-4': '16px';
|
|
60
|
+
readonly '--office-space-5': '20px';
|
|
61
|
+
readonly '--office-space-6': '24px';
|
|
62
|
+
readonly '--office-border-width': '1px';
|
|
63
|
+
readonly '--office-border-width-thick': '2px';
|
|
64
|
+
readonly '--office-radius-xs': '2px';
|
|
65
|
+
readonly '--office-radius-sm': '3px';
|
|
66
|
+
readonly '--office-radius': '4px';
|
|
67
|
+
readonly '--office-radius-md': '6px';
|
|
68
|
+
readonly '--office-radius-lg': '8px';
|
|
69
|
+
readonly '--office-radius-full': '999px';
|
|
70
|
+
readonly '--office-focus-width': '2px';
|
|
71
|
+
readonly '--office-focus-offset': '2px';
|
|
72
|
+
readonly '--office-target-size': '28px';
|
|
73
|
+
readonly '--office-target-size-touch': '44px';
|
|
74
|
+
readonly '--office-control-height': '24px';
|
|
75
|
+
readonly '--office-control-height-md': '28px';
|
|
76
|
+
readonly '--office-control-height-lg': '32px';
|
|
77
|
+
readonly '--office-input-height': '26px';
|
|
78
|
+
readonly '--office-control-height-xs': '22px';
|
|
79
|
+
readonly '--office-icon-size-xs': '10px';
|
|
80
|
+
readonly '--office-icon-size-sm': '12px';
|
|
81
|
+
readonly '--office-icon-size': '14px';
|
|
82
|
+
readonly '--office-icon-size-md': '16px';
|
|
83
|
+
readonly '--office-icon-size-ml': '18px';
|
|
84
|
+
readonly '--office-icon-size-lg': '20px';
|
|
85
|
+
readonly '--office-shadow-sm': '0 1px 3px rgb(0 0 0 / 20%)';
|
|
86
|
+
readonly '--office-shadow': '0 6px 20px rgb(0 0 0 / 18%)';
|
|
87
|
+
readonly '--office-shadow-lg': '0 10px 25px rgb(0 0 0 / 20%)';
|
|
88
|
+
readonly '--office-z-popover': '1100';
|
|
89
|
+
readonly '--office-z-dialog': '1000';
|
|
90
|
+
readonly '--office-z-backstage': '30';
|
|
91
|
+
readonly '--office-duration-fast': '.12s';
|
|
92
|
+
readonly '--office-duration': '.15s';
|
|
93
|
+
readonly '--office-duration-spin': '.8s';
|
|
94
|
+
readonly '--office-field-height': '28px';
|
|
95
|
+
readonly '--office-field-height-lg': '40px';
|
|
96
|
+
readonly '--office-field-radius': '5px';
|
|
97
|
+
readonly '--office-field-border': 'var(--office-border, #d1d5db)';
|
|
98
|
+
readonly '--office-field-border-focus': 'var(--office-ring, #2563eb)';
|
|
99
|
+
readonly '--office-field-background': 'var(--office-background, #ffffff)';
|
|
100
|
+
readonly '--office-field-foreground': 'var(--office-foreground, #1f2937)';
|
|
101
|
+
readonly '--office-field-placeholder': 'var(--office-muted-foreground, #6b7280)';
|
|
102
|
+
readonly '--office-checkbox-size': '16px';
|
|
103
|
+
readonly '--office-checkbox-size-touch': '22px';
|
|
104
|
+
readonly '--office-checkbox-radius': '3px';
|
|
105
|
+
readonly '--office-checkbox-border': 'var(--office-border, #d1d5db)';
|
|
106
|
+
readonly '--office-checkbox-background': 'var(--office-background, #ffffff)';
|
|
107
|
+
readonly '--office-checkbox-accent': 'var(--office-accent, #2563eb)';
|
|
108
|
+
readonly '--office-checkbox-accent-foreground': 'var(--office-accent-foreground, #ffffff)';
|
|
109
|
+
readonly '--office-radio-dot-size': '8px';
|
|
110
|
+
readonly '--office-radio-dot-size-touch': '12px';
|
|
111
|
+
readonly '--office-switch-width': '32px';
|
|
112
|
+
readonly '--office-switch-height': '18px';
|
|
113
|
+
readonly '--office-switch-width-touch': '44px';
|
|
114
|
+
readonly '--office-switch-height-touch': '24px';
|
|
115
|
+
readonly '--office-switch-border-width': '1px';
|
|
116
|
+
readonly '--office-switch-knob-size': '12px';
|
|
117
|
+
readonly '--office-switch-knob-size-touch': '18px';
|
|
118
|
+
readonly '--office-switch-knob-offset': '2px';
|
|
119
|
+
readonly '--office-switch-border': 'var(--office-border, #d1d5db)';
|
|
120
|
+
readonly '--office-switch-track': 'var(--office-surface, #f3f4f6)';
|
|
121
|
+
readonly '--office-switch-track-on': 'var(--office-accent, #2563eb)';
|
|
122
|
+
readonly '--office-switch-thumb': 'var(--office-foreground, #1f2937)';
|
|
123
|
+
readonly '--office-switch-thumb-on': 'var(--office-accent-foreground, #ffffff)';
|
|
124
|
+
readonly '--office-ribbon-tab-height': '35px';
|
|
125
|
+
readonly '--office-ribbon-group-gap': '2px';
|
|
126
|
+
readonly '--office-ribbon-group-height': '78px';
|
|
127
|
+
readonly '--office-ribbon-group-padding': '4px 8px 2px';
|
|
128
|
+
readonly '--office-ribbon-separator-inset': '0px';
|
|
129
|
+
readonly '--office-ribbon-separator': 'color-mix(in srgb, var(--office-border, #d1d5db) 60%, transparent)';
|
|
130
|
+
readonly '--office-ribbon-caption-size': '10px';
|
|
131
|
+
readonly '--office-ribbon-caption-padding': '2px 0 0';
|
|
132
|
+
readonly '--office-launcher-inset-end': '-6px';
|
|
133
|
+
readonly '--office-launcher-inset-bottom': '-1px';
|
|
134
|
+
readonly '--office-ribbon-compact-row-max': '36px';
|
|
135
|
+
readonly '--office-ribbon-stack-max-height': '80px';
|
|
136
|
+
readonly '--office-ribbon-collapse-x': '8px';
|
|
137
|
+
readonly '--office-ribbon-collapse-y': '120px';
|
|
138
|
+
readonly '--office-command-icon-color': 'currentColor';
|
|
139
|
+
readonly '--office-command-large-height': '66px';
|
|
140
|
+
readonly '--office-command-large-min-width': '48px';
|
|
141
|
+
readonly '--office-command-large-max-width': '80px';
|
|
142
|
+
readonly '--office-command-large-icon': '32px';
|
|
143
|
+
readonly '--office-command-small-icon': '16px';
|
|
144
|
+
readonly '--office-command-tall-height': '62px';
|
|
145
|
+
readonly '--office-command-tall-min-width': '40px';
|
|
146
|
+
readonly '--office-command-tall-icon': '30px';
|
|
147
|
+
readonly '--office-command-active': 'color-mix(in srgb, var(--office-accent, #2563eb) 15%, transparent)';
|
|
148
|
+
readonly '--office-collapsed-group-min-width': '56px';
|
|
149
|
+
readonly '--office-ribbon-caption-line-height': '12px';
|
|
150
|
+
readonly '--office-ribbon-row-height': '22px';
|
|
151
|
+
readonly '--office-ribbon-file-min-width': '52px';
|
|
152
|
+
readonly '--office-launcher-width': '16px';
|
|
153
|
+
readonly '--office-launcher-height': '14px';
|
|
154
|
+
readonly '--office-tab-indicator-width': '2.5px';
|
|
155
|
+
readonly '--office-status-bar-height': '24px';
|
|
156
|
+
readonly '--office-tab-height': '28px';
|
|
157
|
+
readonly '--office-tab-max-width': '220px';
|
|
158
|
+
readonly '--office-zoom-slider-width': '120px';
|
|
159
|
+
readonly '--office-zoom-slider-min-width': '48px';
|
|
160
|
+
readonly '--office-zoom-value-width': '40px';
|
|
161
|
+
readonly '--office-dialog-width': 'auto';
|
|
162
|
+
readonly '--office-dialog-max-width': 'min(640px, 100vw)';
|
|
163
|
+
readonly '--office-dialog-max-height': '90vh';
|
|
164
|
+
readonly '--office-dialog-min-width': 'min(320px, 100vw)';
|
|
165
|
+
readonly '--office-dialog-button-min-width': '76px';
|
|
166
|
+
readonly '--office-options-width': 'min(820px, 100vw)';
|
|
167
|
+
readonly '--office-options-nav-width': '180px';
|
|
168
|
+
readonly '--office-options-min-height': 'min(440px, 70vh)';
|
|
169
|
+
readonly '--office-options-label-width': '180px';
|
|
170
|
+
readonly '--office-options-row-height': '30px';
|
|
171
|
+
readonly '--office-options-number-width': '80px';
|
|
172
|
+
readonly '--office-info-size': '15px';
|
|
173
|
+
readonly '--office-selection-bar-width': '3px';
|
|
174
|
+
readonly '--office-backstage-nav-width': '200px';
|
|
175
|
+
readonly '--office-backstage-nav-background': 'var(--office-accent, #2563eb)';
|
|
176
|
+
readonly '--office-backstage-nav-foreground': 'var(--office-accent-foreground, #ffffff)';
|
|
177
|
+
readonly '--office-backstage-item-hover': 'rgb(0 0 0 / 22%)';
|
|
178
|
+
readonly '--office-backstage-padding': '28px 40px';
|
|
179
|
+
readonly '--office-backstage-back-size': '36px';
|
|
180
|
+
readonly '--office-backstage-item-height': '38px';
|
|
181
|
+
readonly '--office-menu-min-width': '180px';
|
|
182
|
+
readonly '--office-menu-max-height': '60vh';
|
|
183
|
+
readonly '--office-context-menu-min-width': '200px';
|
|
184
|
+
readonly '--office-search-popup-min-width': '240px';
|
|
185
|
+
readonly '--office-search-popup-max-height': '320px';
|
|
186
|
+
readonly '--office-select-max-height': '240px';
|
|
187
|
+
readonly '--office-select-background': 'var(--office-background, #ffffff)';
|
|
188
|
+
readonly '--office-select-menu-min-width': '90px';
|
|
189
|
+
readonly '--office-select-option-active': 'color-mix(in srgb, var(--office-accent, #2563eb) 20%, var(--office-popover, #ffffff))';
|
|
190
|
+
readonly '--office-select-ribbon-menu-width': '192px';
|
|
191
|
+
readonly '--office-font-picker-max-height': '320px';
|
|
192
|
+
readonly '--office-font-picker-width': '256px';
|
|
193
|
+
readonly '--office-chevron-size': '6px';
|
|
194
|
+
readonly '--office-ribbon-combo-height': '28px';
|
|
195
|
+
readonly '--office-ribbon-icon-select-width': '36px';
|
|
196
|
+
readonly '--office-search-width': '320px';
|
|
197
|
+
readonly '--office-print-preview-width': '420px';
|
|
198
|
+
readonly '--office-find-max-width': '640px';
|
|
199
|
+
readonly '--office-find-bar-height': '40px';
|
|
200
|
+
readonly '--office-ruler-size': '18px';
|
|
201
|
+
readonly '--office-avatar-size': '48px';
|
|
202
|
+
readonly '--office-avatar-color': 'var(--office-muted-foreground, #6b7280)';
|
|
203
|
+
readonly '--office-toast-width': '360px';
|
|
204
|
+
readonly '--office-account-field-width': '320px';
|
|
205
|
+
readonly '--office-gallery-trigger-height': '24px';
|
|
206
|
+
readonly '--office-gallery-strip-background': 'color-mix(in srgb, var(--office-surface, #f3f4f6) 30%, transparent)';
|
|
207
|
+
readonly '--office-gallery-command-min-width': '54px';
|
|
208
|
+
readonly '--office-gallery-command-max-width': '78px';
|
|
209
|
+
readonly '--office-gallery-command-height': '58px';
|
|
210
|
+
readonly '--office-gallery-command-icon': '24px';
|
|
211
|
+
readonly '--office-gallery-popup-max-height': '65vh';
|
|
212
|
+
readonly '--office-title-bar-height': '36px';
|
|
213
|
+
readonly '--office-title-bar-below-height': '28px';
|
|
214
|
+
readonly '--office-title-bar-background': 'var(--office-surface, #f3f4f6)';
|
|
215
|
+
readonly '--office-title-bar-foreground': 'var(--office-foreground, #1f2937)';
|
|
216
|
+
readonly '--office-title-bar-border': 'var(--office-border, #d1d5db)';
|
|
217
|
+
readonly '--office-title-bar-mark-size': '20px';
|
|
218
|
+
readonly '--office-title-bar-mark-background': 'var(--office-accent, #2563eb)';
|
|
219
|
+
readonly '--office-title-bar-mark-foreground': 'var(--office-accent-foreground, #ffffff)';
|
|
220
|
+
readonly '--office-title-bar-name-max-width': '240px';
|
|
221
|
+
readonly '--office-title-bar-name-max-width-narrow': '140px';
|
|
222
|
+
readonly '--office-title-bar-search-max-width': '448px';
|
|
223
|
+
readonly '--office-title-bar-results-max-height': '256px';
|
|
224
|
+
readonly '--office-teams-brand': '#5b5fc7';
|
|
225
|
+
readonly '--office-teams-brand-hover': '#4f52b2';
|
|
226
|
+
readonly '--office-teams-brand-pressed': '#3f4296';
|
|
227
|
+
readonly '--office-teams-brand-subtle': '#e8ebfa';
|
|
228
|
+
readonly '--office-teams-brand-foreground': '#ffffff';
|
|
229
|
+
readonly '--office-teams-rail': '#ebebeb';
|
|
230
|
+
readonly '--office-teams-panel': '#f5f5f5';
|
|
231
|
+
readonly '--office-teams-bubble': '#f5f5f5';
|
|
232
|
+
readonly '--office-teams-bubble-own': '#e8ebfa';
|
|
233
|
+
readonly '--office-teams-divider': '#e0e0e0';
|
|
234
|
+
readonly '--office-teams-text-subtle': '#616161';
|
|
235
|
+
readonly '--office-presence-available': '#6bb700';
|
|
236
|
+
readonly '--office-presence-busy': '#c50f1f';
|
|
237
|
+
readonly '--office-presence-away': '#eaa300';
|
|
238
|
+
readonly '--office-presence-offline': '#8a8886';
|
|
239
|
+
readonly '--office-file-docx': '#2b579a';
|
|
240
|
+
readonly '--office-file-xlsx': '#217346';
|
|
241
|
+
readonly '--office-file-pptx': '#c43e1c';
|
|
242
|
+
readonly '--office-file-vsdx': '#3955a3';
|
|
243
|
+
readonly '--office-file-other': '#6b7280';
|
|
244
|
+
readonly '--office-call-background': '#292929';
|
|
245
|
+
readonly '--office-call-tile': '#3d3d3d';
|
|
246
|
+
readonly '--office-call-foreground': '#ffffff';
|
|
247
|
+
readonly '--office-call-muted-foreground': '#c8c8c8';
|
|
248
|
+
readonly '--office-call-control': '#3d3d3d';
|
|
249
|
+
readonly '--office-call-control-hover': '#525252';
|
|
250
|
+
readonly '--office-call-danger': '#c4314b';
|
|
251
|
+
readonly '--office-call-danger-hover': '#a72a40';
|
|
252
|
+
readonly '--office-call-live': '#6bb700';
|
|
253
|
+
readonly '--office-call-scrim': 'rgb(0 0 0 / 60%)';
|
|
254
|
+
readonly '--office-shadow-teams': '0 2px 4px rgb(0 0 0 / 14%), 0 0 2px rgb(0 0 0 / 12%)';
|
|
224
255
|
};
|
|
225
256
|
export type OfficeToken = keyof typeof OFFICE_TOKENS;
|
|
226
257
|
/** `var(--office-…, <default>)` for a declared token. The default comes from the table. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ooxml-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Shared, format-neutral web components and styles for the Office viewers (Word, PowerPoint, Excel)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"custom-elements",
|
|
@@ -63,6 +63,11 @@
|
|
|
63
63
|
"import": "./dist/smartart.js",
|
|
64
64
|
"default": "./dist/smartart.js"
|
|
65
65
|
},
|
|
66
|
+
"./teams": {
|
|
67
|
+
"types": "./dist/teams/index.d.ts",
|
|
68
|
+
"import": "./dist/teams.js",
|
|
69
|
+
"default": "./dist/teams.js"
|
|
70
|
+
},
|
|
66
71
|
"./package.json": "./package.json"
|
|
67
72
|
},
|
|
68
73
|
"publishConfig": {
|
|
@@ -76,14 +81,15 @@
|
|
|
76
81
|
"test:package": "node scripts/package-smoke.mjs"
|
|
77
82
|
},
|
|
78
83
|
"dependencies": {
|
|
79
|
-
"
|
|
84
|
+
"lit": "^3.3.3",
|
|
85
|
+
"ooxml-core": "^0.15.0"
|
|
80
86
|
},
|
|
81
87
|
"devDependencies": {
|
|
82
|
-
"@types/jsdom": "^
|
|
83
|
-
"jsdom": "^
|
|
88
|
+
"@types/jsdom": "^30.0.0",
|
|
89
|
+
"jsdom": "^30.1.2",
|
|
84
90
|
"tsup": "^8.5.1",
|
|
85
|
-
"typescript": "^
|
|
86
|
-
"vitest": "^
|
|
91
|
+
"typescript": "^7.0.2",
|
|
92
|
+
"vitest": "^5.0.3"
|
|
87
93
|
},
|
|
88
94
|
"engines": {
|
|
89
95
|
"node": ">=22"
|
package/dist/backstage.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Office's File view (backstage): a navigation column and one page per item. Generalised from
|
|
3
|
-
* pptx-viewer's `BACKSTAGE_NAV` model (render/backstage.ts) and the Visio viewer's backstage.
|
|
4
|
-
*/
|
|
5
|
-
export interface OfficeBackstageItem {
|
|
6
|
-
id: string;
|
|
7
|
-
label: string;
|
|
8
|
-
/** Items in the footer group sit at the bottom of the column (Account, Options). */
|
|
9
|
-
group?: 'footer';
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
/** Tooltip, for example why an item is disabled. */
|
|
12
|
-
title?: string;
|
|
13
|
-
}
|
|
14
|
-
/** An item was chosen; cancelable (`preventDefault()` keeps the current page). */
|
|
15
|
-
export type OfficeBackstageSelectEvent = CustomEvent<{
|
|
16
|
-
id: string;
|
|
17
|
-
}>;
|
|
18
|
-
export type OfficeBackstageCloseEvent = CustomEvent<{
|
|
19
|
-
reason: 'back' | 'escape' | 'api';
|
|
20
|
-
}>;
|
|
21
|
-
/**
|
|
22
|
-
* `<office-ui-backstage>`: set `items`, put one light-DOM child per page with
|
|
23
|
-
* `data-backstage-page="<id>"`, then `show(id)`. Choosing an item emits `office-backstage-select`
|
|
24
|
-
* and, unless prevented, shows its page; items without a page (Save, Close) only emit. Back and
|
|
25
|
-
* Escape emit a cancelable `office-backstage-close` and close. Attributes: `open`, `selected`,
|
|
26
|
-
* `label` (default "File"), `back-label`. Nav buttons carry `data-backstage-item`.
|
|
27
|
-
*/
|
|
28
|
-
export declare const defineBackstage: import("./registry.js").Definer;
|
package/dist/button.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type OfficeCommandEvent = CustomEvent<{
|
|
2
|
-
command: string;
|
|
3
|
-
}>;
|
|
4
|
-
/**
|
|
5
|
-
* Command button. Attributes: `label`, `icon`, `command`, `disabled`, `pressed` (aria-pressed),
|
|
6
|
-
* `expanded` (aria-expanded), `icon-only`, `variant="stacked"`, `size="large|small"` (ribbon
|
|
7
|
-
* large and small commands), `tall` (with `icon-only`: a tool tile), `active`, `badge`, `caret`
|
|
8
|
-
* (a trailing menu chevron), `title`, `keyshortcuts` (forwarded as aria-keyshortcuts).
|
|
9
|
-
* Activation (pointer, Enter, Space) emits one bubbling, composed `office-command` `{ command }`;
|
|
10
|
-
* Enter and Space never reach the host's own key handlers. Nothing happens when disabled.
|
|
11
|
-
* Static `requestEvent`, `idAttribute` and `detailKey`, and the `iconName()` and `showsCaret()`
|
|
12
|
-
* methods, let a product subclass keep its published contract and glyph set.
|
|
13
|
-
*/
|
|
14
|
-
export declare const defineButton: import("./registry.js").Definer;
|
package/dist/checkable.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** `<office-ui-checkbox checked disabled value aria-label>`. */
|
|
2
|
-
export declare const defineCheckbox: import("./registry.js").Definer;
|
|
3
|
-
/** `<office-ui-switch>`: same contract as the checkbox with `role="switch"`. */
|
|
4
|
-
export declare const defineSwitch: import("./registry.js").Definer;
|