@commmerce/ui 1.8.0 → 1.9.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/dist/cdn.js +267 -240
- package/dist/components/action-menu.js +19 -3
- package/dist/components/app-frame.js +1 -1
- package/dist/components/board.js +1 -1
- package/dist/components/button.js +5 -3
- package/dist/components/combobox.d.ts +1 -1
- package/dist/components/date-picker.d.ts +1 -1
- package/dist/components/date-range-picker.d.ts +1 -1
- package/dist/components/layout.d.ts +7 -2
- package/dist/components/layout.js +15 -0
- package/dist/components/page-header.d.ts +2 -0
- package/dist/components/page-header.js +3 -1
- package/dist/components/resource-list.d.ts +1 -1
- package/dist/components/resource-list.js +3 -1
- package/dist/components/select.d.ts +4 -3
- package/dist/components/select.js +3 -2
- package/dist/components/text-field.d.ts +1 -1
- package/dist/components/timeline.js +13 -4
- package/dist/custom-elements.json +32 -20
- package/dist/field.js +3 -0
- package/package.json +3 -3
|
@@ -9,7 +9,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
9
9
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
10
10
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
11
11
|
};
|
|
12
|
-
var _CmActionMenu_instances, _CmActionMenu_observer, _CmActionMenu_id, _CmActionMenu_typed, _CmActionMenu_typedAt, _CmActionMenu_read, _CmActionMenu_outside, _CmActionMenu_trigger, _CmActionMenu_enabled, _CmActionMenu_setOpen, _CmActionMenu_focusActive, _CmActionMenu_triggerKey, _CmActionMenu_triggerClick, _CmActionMenu_move, _CmActionMenu_menuKey, _CmActionMenu_choose, _CmActionMenu_item, _CmActionMenu_rows;
|
|
12
|
+
var _CmActionMenu_instances, _CmActionMenu_observer, _CmActionMenu_id, _CmActionMenu_typed, _CmActionMenu_typedAt, _CmActionMenu_read, _CmActionMenu_outside, _CmActionMenu_trigger, _CmActionMenu_enabled, _CmActionMenu_setOpen, _CmActionMenu_focusActive, _CmActionMenu_fit, _CmActionMenu_triggerKey, _CmActionMenu_triggerClick, _CmActionMenu_move, _CmActionMenu_menuKey, _CmActionMenu_choose, _CmActionMenu_item, _CmActionMenu_rows;
|
|
13
13
|
import { html, css, nothing } from 'lit';
|
|
14
14
|
import { base, define, nextId } from '../base.js';
|
|
15
15
|
import { CmLocalizedElement, defineStrings } from '../localize.js';
|
|
@@ -168,6 +168,8 @@ export class CmActionMenu extends CmLocalizedElement {
|
|
|
168
168
|
__classPrivateFieldGet(this, _CmActionMenu_instances, "m", _CmActionMenu_trigger).call(this)?.focus();
|
|
169
169
|
}
|
|
170
170
|
updated(changed) {
|
|
171
|
+
if (changed.has('open') && this.open)
|
|
172
|
+
__classPrivateFieldGet(this, _CmActionMenu_instances, "m", _CmActionMenu_fit).call(this);
|
|
171
173
|
if (this._custom) {
|
|
172
174
|
const t = __classPrivateFieldGet(this, _CmActionMenu_instances, "m", _CmActionMenu_trigger).call(this);
|
|
173
175
|
if (t) {
|
|
@@ -225,7 +227,20 @@ _CmActionMenu_observer = new WeakMap(), _CmActionMenu_id = new WeakMap(), _CmAct
|
|
|
225
227
|
if (!v)
|
|
226
228
|
this._active = -1;
|
|
227
229
|
this.dispatchEvent(new CustomEvent('cm-toggle', { detail: { open: v }, bubbles: true, composed: true }));
|
|
228
|
-
}, _CmActionMenu_focusActive = function _CmActionMenu_focusActive() { this.renderRoot.querySelector(`[data-i="${this._active}"]`)?.focus(); },
|
|
230
|
+
}, _CmActionMenu_focusActive = function _CmActionMenu_focusActive() { this.renderRoot.querySelector(`[data-i="${this._active}"]`)?.focus(); }, _CmActionMenu_fit = function _CmActionMenu_fit() {
|
|
231
|
+
const pop = this.renderRoot.querySelector('.pop');
|
|
232
|
+
if (!pop)
|
|
233
|
+
return;
|
|
234
|
+
pop.classList.remove('to-end', 'to-start');
|
|
235
|
+
const r = pop.getBoundingClientRect(), vw = document.documentElement.clientWidth, m = 8;
|
|
236
|
+
const rtl = getComputedStyle(this).direction === 'rtl';
|
|
237
|
+
const endOverflow = rtl ? r.left < m : r.right > vw - m;
|
|
238
|
+
const startOverflow = rtl ? r.right > vw - m : r.left < m;
|
|
239
|
+
if (this.align !== 'end' && endOverflow)
|
|
240
|
+
pop.classList.add('to-end');
|
|
241
|
+
else if (this.align === 'end' && startOverflow)
|
|
242
|
+
pop.classList.add('to-start');
|
|
243
|
+
}, _CmActionMenu_move = function _CmActionMenu_move(to) {
|
|
229
244
|
this._active = to;
|
|
230
245
|
this.updateComplete.then(() => __classPrivateFieldGet(this, _CmActionMenu_instances, "m", _CmActionMenu_focusActive).call(this));
|
|
231
246
|
}, _CmActionMenu_choose = function _CmActionMenu_choose(e, it) {
|
|
@@ -317,7 +332,8 @@ CmActionMenu.styles = [
|
|
|
317
332
|
padding: var(--cm-space-4); text-align: start; background: var(--cm-bg-surface); border: var(--cm-border-1) solid var(--cm-border-subtle);
|
|
318
333
|
border-radius: var(--cm-radius-md); box-shadow: var(--cm-shadow-md);
|
|
319
334
|
}
|
|
320
|
-
:host([align='end']) .pop { inset-inline-start: auto; inset-inline-end: 0; }
|
|
335
|
+
:host([align='end']) .pop, .pop.to-end { inset-inline-start: auto; inset-inline-end: 0; }
|
|
336
|
+
:host([align='end']) .pop.to-start { inset-inline-start: 0; inset-inline-end: auto; }
|
|
321
337
|
.pop[hidden] { display: none; }
|
|
322
338
|
.head { padding: var(--cm-space-4) var(--cm-space-12) var(--cm-space-8); margin-bottom: 4px; border-bottom: var(--cm-border-1) solid var(--cm-border-subtle); overflow-wrap: anywhere; }
|
|
323
339
|
.head strong { display: block; font-size: 14px; font-weight: 500; }
|
|
@@ -208,7 +208,7 @@ CmAppFrame.styles = [
|
|
|
208
208
|
border: var(--cm-border-1) solid var(--cm-border-subtle); border-radius: var(--cm-radius-lg);
|
|
209
209
|
}
|
|
210
210
|
/* Inherited, so a cm-page inside a wrapper element (not slotted directly) is transparent too. */
|
|
211
|
-
:host([panel]) { --cm-page-background: transparent; }
|
|
211
|
+
:host([panel]) { --cm-page-background: transparent; --cm-page-header-background: transparent; } /* the white panel shows through, rounded corners intact (1.8.2) */
|
|
212
212
|
:host([panel]) ::slotted(cm-page) { background: transparent; }
|
|
213
213
|
main:focus { outline: none; }
|
|
214
214
|
.bottom { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 40; }
|
package/dist/components/board.js
CHANGED
|
@@ -364,7 +364,7 @@ CmBoardColumn.styles = [
|
|
|
364
364
|
flex: none; min-width: 24px; padding: 0 8px; font-size: 12px; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums;
|
|
365
365
|
background: var(--cm-bg-surface); color: var(--cm-text-default); border-radius: var(--cm-radius-full);
|
|
366
366
|
}
|
|
367
|
-
.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--cm-space-8) var(--cm-space-8); }
|
|
367
|
+
.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; /* x left to chain: a sideways swipe over cards scrolls the board (1.8.1) */ padding: 0 var(--cm-space-8) var(--cm-space-8); }
|
|
368
368
|
ul { display: flex; flex-direction: column; gap: var(--cm-space-8); margin: 0; padding: 0; list-style: none; }
|
|
369
369
|
ul:focus { outline: none; }
|
|
370
370
|
li { display: block; min-width: 0; }
|
|
@@ -89,7 +89,7 @@ export class CmButton extends CmLocalizedElement {
|
|
|
89
89
|
const icon = this.loading
|
|
90
90
|
? html `<span class="spinner" aria-hidden="true"></span>`
|
|
91
91
|
: html `<slot name="icon">${this.icon ? html `<cm-icon name=${this.icon} size="16"></cm-icon>` : nothing}</slot>`;
|
|
92
|
-
const text = this.iconOnly ? html `<span class="vh"><slot></slot></span>` : html `<slot></slot>`;
|
|
92
|
+
const text = this.iconOnly ? html `<span class="vh"><slot></slot></span>` : html `<span class="text"><slot></slot></span>`;
|
|
93
93
|
const counter = count
|
|
94
94
|
? html `<span class="count" part="count" aria-hidden="true">${count > COUNT_MAX ? this.t('countOverflow', { max: COUNT_MAX }) : this.formatNumber(count)}</span>${this.iconOnly ? nothing : html `<span class="vh"> ${this.t('count', { count })}</span>`}`
|
|
95
95
|
: nothing;
|
|
@@ -124,10 +124,12 @@ CmButton.properties = {
|
|
|
124
124
|
CmButton.styles = [
|
|
125
125
|
base,
|
|
126
126
|
css `
|
|
127
|
-
:host { display: inline-flex; vertical-align: middle; }
|
|
127
|
+
:host { display: inline-flex; vertical-align: middle; max-width: 100%; }
|
|
128
|
+
/* A label longer than the room (a button in a narrow card) ends with an ellipsis instead of spilling out (1.8.1). */
|
|
129
|
+
.text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
128
130
|
.btn {
|
|
129
131
|
position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--cm-space-8);
|
|
130
|
-
width: 100%; font: inherit; font-weight: 500; line-height: 1; white-space: nowrap;
|
|
132
|
+
width: 100%; min-width: 0; font: inherit; font-weight: 500; line-height: 1; white-space: nowrap;
|
|
131
133
|
border-radius: var(--cm-radius-sm); border: var(--cm-border-1) solid transparent;
|
|
132
134
|
cursor: pointer; text-decoration: none;
|
|
133
135
|
}
|
|
@@ -166,7 +166,7 @@ export declare class CmCombobox extends CmLocalizedElement {
|
|
|
166
166
|
* `small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. Default: a 40px box (since 1.6, owner standard; was 36px). On touch
|
|
167
167
|
* screens both are 44px. Since 1.5.
|
|
168
168
|
*/
|
|
169
|
-
size: 'default' | 'small';
|
|
169
|
+
size: 'default' | 'medium' | 'small';
|
|
170
170
|
/** Lets the merchant add what they typed when it isn't an option ("Add “summer”"). Fires a cancelable `cm-create`. */
|
|
171
171
|
allowCustom: boolean;
|
|
172
172
|
/** How typing narrows the list: `contains` (default), `starts-with`, or `none` when you filter on the server from `cm-search`. */
|
|
@@ -180,7 +180,7 @@ export declare class CmDatePicker extends CmLocalizedElement {
|
|
|
180
180
|
/** Whether the calendar is showing. */
|
|
181
181
|
open: boolean;
|
|
182
182
|
/** `small`: a 32px box with a 13px label (filter rows and panels). Default: a 40px box (since 1.6; was 36px). On touch screens both are 44px. */
|
|
183
|
-
size: 'default' | 'small';
|
|
183
|
+
size: 'default' | 'medium' | 'small';
|
|
184
184
|
/**
|
|
185
185
|
* Adds a time box next to the date box, so the field holds a date and a time. Times are typed (`3:30 pm`, `15:30`)
|
|
186
186
|
* and shown in the locale's clock (12-hour with am/pm for `en-IN`); Up and Down change the time by `step`.
|
|
@@ -215,7 +215,7 @@ export declare class CmDateRangePicker extends CmLocalizedElement {
|
|
|
215
215
|
/** Whether the calendar is showing. */
|
|
216
216
|
open: boolean;
|
|
217
217
|
/** `small`: a 32px box with a 13px label (filter rows and panels). Default: a 40px box (since 1.6; was 36px). On touch screens both are 44px. */
|
|
218
|
-
size: 'default' | 'small';
|
|
218
|
+
size: 'default' | 'medium' | 'small';
|
|
219
219
|
_startText: string;
|
|
220
220
|
_endText: string;
|
|
221
221
|
_focus: Date;
|
|
@@ -12,6 +12,10 @@ import { type SpaceStep } from '../spacing.js';
|
|
|
12
12
|
* below it with `aside-position="below"`, and the gap is `space-16` once the layout is 640px wide or less. The aside
|
|
13
13
|
* is placed by its variant, not by where it is in the source. Cards in a record layout's sections are as far apart as
|
|
14
14
|
* the columns.
|
|
15
|
+
*
|
|
16
|
+
* `variant="sidebar"` (since 1.8.2) puts a 240px `cm-layout-section variant="sidebar"` (views, folders or filters) on the
|
|
17
|
+
* start side of the list it filters, from 768px of the layout's own width; narrower, it stacks above the list. Use it
|
|
18
|
+
* for a ticket inbox or a mailbox instead of `one-third` / `two-thirds`, which give the views a third of the page.
|
|
15
19
|
* @element cm-layout
|
|
16
20
|
* @slot - `cm-layout-section` elements.
|
|
17
21
|
* @cssprop --cm-layout-sticky-top - With `sticky-aside`: how far from the top of the window the aside stops. Default
|
|
@@ -45,7 +49,7 @@ export declare class CmLayout extends LitElement {
|
|
|
45
49
|
* `default`: a six-track grid for `full`, `one-half`, `one-third` and `two-thirds` sections.
|
|
46
50
|
* `record` (since 1.7): a main column and a 320px `aside` section on the end side from 880px (a 1280px laptop window with the side navigation gives about 950px); see the element description.
|
|
47
51
|
*/
|
|
48
|
-
variant: 'default' | 'record';
|
|
52
|
+
variant: 'default' | 'record' | 'sidebar';
|
|
49
53
|
/** Record layout: where the aside goes once the columns stack (below 880px), `above` the main content (default) or `below` it. Since 1.7. */
|
|
50
54
|
asidePosition: 'above' | 'below';
|
|
51
55
|
/**
|
|
@@ -78,8 +82,9 @@ export declare class CmLayoutSection extends LitElement {
|
|
|
78
82
|
* Width on wide layouts: `full` (default), `one-half`, `one-third` or `two-thirds`. A detail page is a
|
|
79
83
|
* `two-thirds` main section and a `one-third` side section. Every section is full width once the layout stacks.
|
|
80
84
|
* `aside` (since 1.7) is the 320px side column of a `cm-layout variant="record"`; in other layouts it is `one-third`.
|
|
85
|
+
* `sidebar` (since 1.8.2) is the 240px start column of a `cm-layout variant="sidebar"`.
|
|
81
86
|
*/
|
|
82
|
-
variant: 'full' | 'one-half' | 'one-third' | 'two-thirds' | 'aside';
|
|
87
|
+
variant: 'full' | 'one-half' | 'one-third' | 'two-thirds' | 'aside' | 'sidebar';
|
|
83
88
|
static styles: import("lit").CSSResult[];
|
|
84
89
|
render(): import("lit-html").TemplateResult<1>;
|
|
85
90
|
}
|
|
@@ -25,6 +25,10 @@ import { spaceRules } from '../spacing.js';
|
|
|
25
25
|
* below it with `aside-position="below"`, and the gap is `space-16` once the layout is 640px wide or less. The aside
|
|
26
26
|
* is placed by its variant, not by where it is in the source. Cards in a record layout's sections are as far apart as
|
|
27
27
|
* the columns.
|
|
28
|
+
*
|
|
29
|
+
* `variant="sidebar"` (since 1.8.2) puts a 240px `cm-layout-section variant="sidebar"` (views, folders or filters) on the
|
|
30
|
+
* start side of the list it filters, from 768px of the layout's own width; narrower, it stacks above the list. Use it
|
|
31
|
+
* for a ticket inbox or a mailbox instead of `one-third` / `two-thirds`, which give the views a third of the page.
|
|
28
32
|
* @element cm-layout
|
|
29
33
|
* @slot - `cm-layout-section` elements.
|
|
30
34
|
* @cssprop --cm-layout-sticky-top - With `sticky-aside`: how far from the top of the window the aside stops. Default
|
|
@@ -158,6 +162,16 @@ CmLayout.styles = [
|
|
|
158
162
|
:host([variant='record']) ::slotted([variant='aside']) { grid-column: 2; }
|
|
159
163
|
:host([variant='record'][sticky-aside]:state(aside-fits)) ::slotted([variant='aside']) { position: sticky; }
|
|
160
164
|
}
|
|
165
|
+
/* Sidebar layout (1.8.2): a 240px column of views, folders or filters beside the list it filters (a ticket inbox,
|
|
166
|
+
a mailbox), from 768px of the layout's width; stacked above the list on phones. */
|
|
167
|
+
:host([variant='sidebar']) .layout { grid-template-columns: minmax(0, 1fr); }
|
|
168
|
+
:host([variant='sidebar']) ::slotted(*) { grid-column: 1 / -1; }
|
|
169
|
+
:host([variant='sidebar']) ::slotted([variant='sidebar']) { order: -1; }
|
|
170
|
+
@container cm-layout (min-width: 768px) {
|
|
171
|
+
:host([variant='sidebar']) .layout { grid-template-columns: 240px minmax(0, 1fr); grid-auto-flow: dense; } /* scale-exempt: the sidebar is a fixed 240px column */
|
|
172
|
+
:host([variant='sidebar']) ::slotted(*) { grid-column: 2; }
|
|
173
|
+
:host([variant='sidebar']) ::slotted([variant='sidebar']) { grid-column: 1; }
|
|
174
|
+
}
|
|
161
175
|
:host([variant='record'][sticky-aside]) ::slotted([variant='aside']) {
|
|
162
176
|
/* Read back by #measure(); only takes effect once the aside is sticky. --_header: cm-app-frame's header height. */
|
|
163
177
|
inset-block-start: var(--cm-layout-sticky-top, calc(var(--_header, 0px) + var(--cm-space-24)));
|
|
@@ -178,6 +192,7 @@ export class CmLayoutSection extends LitElement {
|
|
|
178
192
|
* Width on wide layouts: `full` (default), `one-half`, `one-third` or `two-thirds`. A detail page is a
|
|
179
193
|
* `two-thirds` main section and a `one-third` side section. Every section is full width once the layout stacks.
|
|
180
194
|
* `aside` (since 1.7) is the 320px side column of a `cm-layout variant="record"`; in other layouts it is `one-third`.
|
|
195
|
+
* `sidebar` (since 1.8.2) is the 240px start column of a `cm-layout variant="sidebar"`.
|
|
181
196
|
*/
|
|
182
197
|
this.variant = 'full';
|
|
183
198
|
}
|
|
@@ -33,6 +33,8 @@ export interface Breadcrumb {
|
|
|
33
33
|
* @slot actions - Buttons, right-aligned, secondary first and the primary action last (large size).
|
|
34
34
|
* @slot title-adornment - Badge or count next to the title.
|
|
35
35
|
* @csspart description - The `description` line under the title.
|
|
36
|
+
* @cssprop --cm-page-header-background - The header's background (default `bg-surface`). `cm-app-frame panel` makes it
|
|
37
|
+
* transparent, so the header doesn't square off the panel's rounded corners. Since 1.8.2.
|
|
36
38
|
* @fires cm-previous - When the previous-record arrow is pressed (with `pagination`).
|
|
37
39
|
* @fires cm-next - When the next-record arrow is pressed (with `pagination`).
|
|
38
40
|
*/
|
|
@@ -31,6 +31,8 @@ const strings = defineStrings('pageHeader', {
|
|
|
31
31
|
* @slot actions - Buttons, right-aligned, secondary first and the primary action last (large size).
|
|
32
32
|
* @slot title-adornment - Badge or count next to the title.
|
|
33
33
|
* @csspart description - The `description` line under the title.
|
|
34
|
+
* @cssprop --cm-page-header-background - The header's background (default `bg-surface`). `cm-app-frame panel` makes it
|
|
35
|
+
* transparent, so the header doesn't square off the panel's rounded corners. Since 1.8.2.
|
|
34
36
|
* @fires cm-previous - When the previous-record arrow is pressed (with `pagination`).
|
|
35
37
|
* @fires cm-next - When the next-record arrow is pressed (with `pagination`).
|
|
36
38
|
*/
|
|
@@ -116,7 +118,7 @@ CmPageHeader.styles = [
|
|
|
116
118
|
header {
|
|
117
119
|
display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--cm-space-12) var(--cm-space-20);
|
|
118
120
|
min-height: 64px; padding: var(--cm-space-12) var(--cm-space-24);
|
|
119
|
-
background: var(--cm-bg-surface); border-bottom: var(--cm-border-1) solid var(--cm-border-subtle);
|
|
121
|
+
background: var(--cm-page-header-background, var(--cm-bg-surface)); border-bottom: var(--cm-border-1) solid var(--cm-border-subtle);
|
|
120
122
|
}
|
|
121
123
|
.lead { flex: 1 1 280px; display: flex; align-items: center; gap: var(--cm-space-8); min-width: 0; }
|
|
122
124
|
/* flex: 1 (issue #32): the titles column takes the room the lead has, so a title-adornment badge sits beside the
|
|
@@ -35,7 +35,7 @@ declare module '../localize.js' {
|
|
|
35
35
|
* any content. With `href` the whole row is a link; otherwise clicking a selectable row ticks it.
|
|
36
36
|
* @element cm-resource-item
|
|
37
37
|
* @slot - Row content: name, details, badges. To line up with a `cm-table-header`, set `columns` and give one element per column.
|
|
38
|
-
* @slot media - A 40px thumbnail (32px on phones and in compact rows): a `cm-thumbnail` (recommended; `alt=""` when the row names the product)
|
|
38
|
+
* @slot media - A 40px thumbnail (32px on phones and in compact rows): a `cm-thumbnail` (recommended; `alt=""` when the row names the product), an `<img>`, or a `cm-icon` (centred in the square, for settings and navigation lists).
|
|
39
39
|
* @slot actions - Buttons at the end of the row. They do not toggle selection. When the row is too narrow for the
|
|
40
40
|
* content and the buttons (the content would get narrower than 12rem), they wrap onto a line of their own
|
|
41
41
|
* under the content, at the start: on phones (640px or less) by default, at any width with `actions="wrap"` (issue #31).
|
|
@@ -57,7 +57,7 @@ const checkboxStyles = css `
|
|
|
57
57
|
* any content. With `href` the whole row is a link; otherwise clicking a selectable row ticks it.
|
|
58
58
|
* @element cm-resource-item
|
|
59
59
|
* @slot - Row content: name, details, badges. To line up with a `cm-table-header`, set `columns` and give one element per column.
|
|
60
|
-
* @slot media - A 40px thumbnail (32px on phones and in compact rows): a `cm-thumbnail` (recommended; `alt=""` when the row names the product)
|
|
60
|
+
* @slot media - A 40px thumbnail (32px on phones and in compact rows): a `cm-thumbnail` (recommended; `alt=""` when the row names the product), an `<img>`, or a `cm-icon` (centred in the square, for settings and navigation lists).
|
|
61
61
|
* @slot actions - Buttons at the end of the row. They do not toggle selection. When the row is too narrow for the
|
|
62
62
|
* content and the buttons (the content would get narrower than 12rem), they wrap onto a line of their own
|
|
63
63
|
* under the content, at the start: on phones (640px or less) by default, at any width with `actions="wrap"` (issue #31).
|
|
@@ -178,6 +178,8 @@ CmResourceItem.styles = [
|
|
|
178
178
|
flex: none; width: var(--cm-resource-media-size, 40px); height: var(--cm-resource-media-size, 40px); object-fit: cover; border-radius: var(--cm-radius-sm); background: var(--cm-thumb-bg);
|
|
179
179
|
}
|
|
180
180
|
::slotted(cm-thumbnail[slot='media']) { --cm-thumbnail-size: var(--cm-resource-media-size, 40px); background: none; }
|
|
181
|
+
/* An icon as the media (a settings or navigation list): centred in the square, in the icon colour (1.8.1). */
|
|
182
|
+
::slotted(cm-icon[slot='media']) { display: inline-grid; place-items: center; box-sizing: border-box; color: var(--cm-icon-default); }
|
|
181
183
|
.content { flex: 1; min-width: 0; }
|
|
182
184
|
:host([columns]) .content {
|
|
183
185
|
display: grid; grid-template-columns: var(--cm-table-columns, minmax(0, 1fr)); column-gap: var(--cm-space-20); align-items: center;
|
|
@@ -115,10 +115,11 @@ export declare class CmSelect extends CmLocalizedElement {
|
|
|
115
115
|
*/
|
|
116
116
|
showGroup: boolean;
|
|
117
117
|
/**
|
|
118
|
-
* `small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels.
|
|
119
|
-
*
|
|
118
|
+
* `small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. `medium` (1.8.1): 36px, the height of a standard
|
|
119
|
+
* button, for a select in a row of buttons such as page header actions. Default: a 40px box (since 1.6, owner standard; was 36px). On touch
|
|
120
|
+
* screens all are 44px. Since 1.5.
|
|
120
121
|
*/
|
|
121
|
-
size: 'default' | 'small';
|
|
122
|
+
size: 'default' | 'medium' | 'small';
|
|
122
123
|
/**
|
|
123
124
|
* Shows a spinner in place of the chevron while you load the options (the box is `aria-busy`); the list doesn't
|
|
124
125
|
* open until it is cleared. For options fetched as the merchant types, use `cm-combobox`. Since 1.6.
|
|
@@ -65,8 +65,9 @@ export class CmSelect extends CmLocalizedElement {
|
|
|
65
65
|
*/
|
|
66
66
|
this.showGroup = false;
|
|
67
67
|
/**
|
|
68
|
-
* `small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels.
|
|
69
|
-
*
|
|
68
|
+
* `small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. `medium` (1.8.1): 36px, the height of a standard
|
|
69
|
+
* button, for a select in a row of buttons such as page header actions. Default: a 40px box (since 1.6, owner standard; was 36px). On touch
|
|
70
|
+
* screens all are 44px. Since 1.5.
|
|
70
71
|
*/
|
|
71
72
|
this.size = 'default';
|
|
72
73
|
/**
|
|
@@ -112,7 +112,7 @@ export declare class CmTextField extends CmLocalizedElement {
|
|
|
112
112
|
/** Native autocomplete hint, e.g. `email`, `postal-code`. */
|
|
113
113
|
autocomplete?: string;
|
|
114
114
|
/** `small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. Default: a 40px box (since 1.6, owner standard; was 36px). On touch screens both are 44px. */
|
|
115
|
-
size: 'default' | 'small';
|
|
115
|
+
size: 'default' | 'medium' | 'small';
|
|
116
116
|
/**
|
|
117
117
|
* Lowest allowed value for `number`, `date`, `time` and `datetime-local`, in the value's format (`2026-11-16T15:30`
|
|
118
118
|
* for `datetime-local`). The browser's picker doesn't offer earlier dates; an earlier value makes the field invalid.
|
|
@@ -171,8 +171,8 @@ export class CmTimelineItem extends CmLocalizedElement {
|
|
|
171
171
|
? html `<cm-icon name=${this.icon} size="16"></cm-icon>` : html `<span class="dot"></span>`}</span>
|
|
172
172
|
<div class="main">
|
|
173
173
|
<div class="head">
|
|
174
|
-
<span class="title" part="title"><slot name="heading">${this.heading}</slot></span>
|
|
175
|
-
<slot name="badge"></slot>
|
|
174
|
+
<span class="lead"><span class="title" part="title"><slot name="heading">${this.heading}</slot></span>
|
|
175
|
+
<slot name="badge"></slot></span>
|
|
176
176
|
${timeEl}
|
|
177
177
|
</div>
|
|
178
178
|
<div class="meta" part="meta" ?hidden=${!this.meta && !this._meta}><slot name="meta" @slotchange=${(e) => __classPrivateFieldGet(this, _CmTimelineItem_instances, "m", _CmTimelineItem_has).call(this, e, '_meta')}>${this.meta}</slot></div>
|
|
@@ -230,9 +230,12 @@ CmTimelineItem.styles = [
|
|
|
230
230
|
.icon.critical { background: var(--cm-bg-critical); color: var(--cm-text-critical); border-color: transparent; }
|
|
231
231
|
.dot { width: 8px; height: 8px; border-radius: var(--cm-radius-full); background: currentColor; }
|
|
232
232
|
.main { flex: 1; min-width: 0; padding-block-start: calc((32px - 20px) / 2); } /* the first line centred on the 32px icon */
|
|
233
|
-
.head { display: flex;
|
|
233
|
+
.head { display: flex; align-items: flex-start; gap: var(--cm-space-8); }
|
|
234
|
+
/* Heading and badges wrap inside their own column, so the time keeps its place at the end of the first line
|
|
235
|
+
however long the heading is (1.8.1; before, a long heading pushed the time onto a line of its own). */
|
|
236
|
+
.lead { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--cm-space-8); row-gap: 4px; }
|
|
234
237
|
.title { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
|
|
235
|
-
.when { margin-inline-start: auto; }
|
|
238
|
+
.when { flex: none; display: flex; margin-inline-start: auto; margin-block-start: 2px; } /* 16px time on the 20px first line */
|
|
236
239
|
time {
|
|
237
240
|
position: relative; display: inline-block; font-size: 12px; line-height: 16px; color: var(--cm-text-tertiary); white-space: nowrap; font-variant-numeric: tabular-nums;
|
|
238
241
|
border-radius: var(--cm-radius-xs);
|
|
@@ -250,6 +253,12 @@ CmTimelineItem.styles = [
|
|
|
250
253
|
}
|
|
251
254
|
.toggle:focus-visible { outline: 2px solid var(--cm-border-strong); outline-offset: 2px; border-radius: var(--cm-radius-xs); }
|
|
252
255
|
.actions { display: flex; flex-wrap: wrap; gap: var(--cm-space-8); margin-block-start: var(--cm-space-8); }
|
|
256
|
+
/* Phones: the time goes under the heading, left-aligned, so the heading keeps the full width. */
|
|
257
|
+
@media (max-width: 640px) {
|
|
258
|
+
.head { flex-wrap: wrap; row-gap: 2px; }
|
|
259
|
+
.lead { flex-basis: 100%; }
|
|
260
|
+
.when { margin-inline-start: 0; margin-block-start: 0; }
|
|
261
|
+
}
|
|
253
262
|
[hidden] { display: none !important; }
|
|
254
263
|
.sr { position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
255
264
|
::slotted([slot='badge']) { flex: none; }
|
|
@@ -709,6 +709,12 @@
|
|
|
709
709
|
"name": "#focusActive",
|
|
710
710
|
"privacy": "private"
|
|
711
711
|
},
|
|
712
|
+
{
|
|
713
|
+
"kind": "method",
|
|
714
|
+
"name": "#fit",
|
|
715
|
+
"privacy": "private",
|
|
716
|
+
"description": "Opens toward the other side when the menu would run off the screen (1.8.1: a More menu at the end of a page header)."
|
|
717
|
+
},
|
|
712
718
|
{
|
|
713
719
|
"kind": "field",
|
|
714
720
|
"name": "#triggerKey",
|
|
@@ -9333,7 +9339,7 @@
|
|
|
9333
9339
|
"name": "size",
|
|
9334
9340
|
"privacy": "public",
|
|
9335
9341
|
"type": {
|
|
9336
|
-
"text": "'default' | 'small'"
|
|
9342
|
+
"text": "'default' | 'medium' | 'small'"
|
|
9337
9343
|
},
|
|
9338
9344
|
"default": "'default'",
|
|
9339
9345
|
"description": "`small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. Default: a 40px box (since 1.6, owner standard; was 36px). On touch\nscreens both are 44px. Since 1.5.",
|
|
@@ -10055,7 +10061,7 @@
|
|
|
10055
10061
|
{
|
|
10056
10062
|
"name": "size",
|
|
10057
10063
|
"type": {
|
|
10058
|
-
"text": "'default' | 'small'"
|
|
10064
|
+
"text": "'default' | 'medium' | 'small'"
|
|
10059
10065
|
},
|
|
10060
10066
|
"default": "'default'",
|
|
10061
10067
|
"description": "`small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. Default: a 40px box (since 1.6, owner standard; was 36px). On touch\nscreens both are 44px. Since 1.5.",
|
|
@@ -13156,7 +13162,7 @@
|
|
|
13156
13162
|
"name": "size",
|
|
13157
13163
|
"privacy": "public",
|
|
13158
13164
|
"type": {
|
|
13159
|
-
"text": "'default' | 'small'"
|
|
13165
|
+
"text": "'default' | 'medium' | 'small'"
|
|
13160
13166
|
},
|
|
13161
13167
|
"default": "'default'",
|
|
13162
13168
|
"description": "`small`: a 32px box with a 13px label (filter rows and panels). Default: a 40px box (since 1.6; was 36px). On touch screens both are 44px.",
|
|
@@ -13898,7 +13904,7 @@
|
|
|
13898
13904
|
{
|
|
13899
13905
|
"name": "size",
|
|
13900
13906
|
"type": {
|
|
13901
|
-
"text": "'default' | 'small'"
|
|
13907
|
+
"text": "'default' | 'medium' | 'small'"
|
|
13902
13908
|
},
|
|
13903
13909
|
"default": "'default'",
|
|
13904
13910
|
"description": "`small`: a 32px box with a 13px label (filter rows and panels). Default: a 40px box (since 1.6; was 36px). On touch screens both are 44px.",
|
|
@@ -14287,7 +14293,7 @@
|
|
|
14287
14293
|
"name": "size",
|
|
14288
14294
|
"privacy": "public",
|
|
14289
14295
|
"type": {
|
|
14290
|
-
"text": "'default' | 'small'"
|
|
14296
|
+
"text": "'default' | 'medium' | 'small'"
|
|
14291
14297
|
},
|
|
14292
14298
|
"default": "'default'",
|
|
14293
14299
|
"description": "`small`: a 32px box with a 13px label (filter rows and panels). Default: a 40px box (since 1.6; was 36px). On touch screens both are 44px.",
|
|
@@ -14893,7 +14899,7 @@
|
|
|
14893
14899
|
{
|
|
14894
14900
|
"name": "size",
|
|
14895
14901
|
"type": {
|
|
14896
|
-
"text": "'default' | 'small'"
|
|
14902
|
+
"text": "'default' | 'medium' | 'small'"
|
|
14897
14903
|
},
|
|
14898
14904
|
"default": "'default'",
|
|
14899
14905
|
"description": "`small`: a 32px box with a 13px label (filter rows and panels). Default: a 40px box (since 1.6; was 36px). On touch screens both are 44px.",
|
|
@@ -18452,7 +18458,7 @@
|
|
|
18452
18458
|
"declarations": [
|
|
18453
18459
|
{
|
|
18454
18460
|
"kind": "class",
|
|
18455
|
-
"description": "The body of an admin page: sections side by side, for example the main column and side column of a detail page.\nSections stack into one column, in source order, when the layout is narrower than 768px (a container query, so\nit follows the space the layout gets, not the window). Put the main section first.\n\n`variant=\"record\"` (since 1.7) is the standard record page: a lead, contact, deal, account or ticket, an order or a\nproduct. Put in one main `cm-layout-section` and one `cm-layout-section variant=\"aside\"`. From 880px of the layout's\nown width the aside is a 320px column on the end side (on the left in right-to-left pages) and the main column takes\nthe rest, `space-24` apart. Narrower, they stack: the aside goes above the main content (the key facts first) or\nbelow it with `aside-position=\"below\"`, and the gap is `space-16` once the layout is 640px wide or less. The aside\nis placed by its variant, not by where it is in the source. Cards in a record layout's sections are as far apart as\nthe columns.",
|
|
18461
|
+
"description": "The body of an admin page: sections side by side, for example the main column and side column of a detail page.\nSections stack into one column, in source order, when the layout is narrower than 768px (a container query, so\nit follows the space the layout gets, not the window). Put the main section first.\n\n`variant=\"record\"` (since 1.7) is the standard record page: a lead, contact, deal, account or ticket, an order or a\nproduct. Put in one main `cm-layout-section` and one `cm-layout-section variant=\"aside\"`. From 880px of the layout's\nown width the aside is a 320px column on the end side (on the left in right-to-left pages) and the main column takes\nthe rest, `space-24` apart. Narrower, they stack: the aside goes above the main content (the key facts first) or\nbelow it with `aside-position=\"below\"`, and the gap is `space-16` once the layout is 640px wide or less. The aside\nis placed by its variant, not by where it is in the source. Cards in a record layout's sections are as far apart as\nthe columns.\n\n`variant=\"sidebar\"` (since 1.8.2) puts a 240px `cm-layout-section variant=\"sidebar\"` (views, folders or filters) on the\nstart side of the list it filters, from 768px of the layout's own width; narrower, it stacks above the list. Use it\nfor a ticket inbox or a mailbox instead of `one-third` / `two-thirds`, which give the views a third of the page.",
|
|
18456
18462
|
"name": "CmLayout",
|
|
18457
18463
|
"cssProperties": [
|
|
18458
18464
|
{
|
|
@@ -18484,7 +18490,7 @@
|
|
|
18484
18490
|
"name": "variant",
|
|
18485
18491
|
"privacy": "public",
|
|
18486
18492
|
"type": {
|
|
18487
|
-
"text": "'default' | 'record'"
|
|
18493
|
+
"text": "'default' | 'record' | 'sidebar'"
|
|
18488
18494
|
},
|
|
18489
18495
|
"default": "'default'",
|
|
18490
18496
|
"description": "`default`: a six-track grid for `full`, `one-half`, `one-third` and `two-thirds` sections.\n`record` (since 1.7): a main column and a 320px `aside` section on the end side from 880px (a 1280px laptop window with the side navigation gives about 950px); see the element description.",
|
|
@@ -18596,7 +18602,7 @@
|
|
|
18596
18602
|
{
|
|
18597
18603
|
"name": "variant",
|
|
18598
18604
|
"type": {
|
|
18599
|
-
"text": "'default' | 'record'"
|
|
18605
|
+
"text": "'default' | 'record' | 'sidebar'"
|
|
18600
18606
|
},
|
|
18601
18607
|
"default": "'default'",
|
|
18602
18608
|
"description": "`default`: a six-track grid for `full`, `one-half`, `one-third` and `two-thirds` sections.\n`record` (since 1.7): a main column and a 320px `aside` section on the end side from 880px (a 1280px laptop window with the side navigation gives about 950px); see the element description.",
|
|
@@ -18644,10 +18650,10 @@
|
|
|
18644
18650
|
"name": "variant",
|
|
18645
18651
|
"privacy": "public",
|
|
18646
18652
|
"type": {
|
|
18647
|
-
"text": "'full' | 'one-half' | 'one-third' | 'two-thirds' | 'aside'"
|
|
18653
|
+
"text": "'full' | 'one-half' | 'one-third' | 'two-thirds' | 'aside' | 'sidebar'"
|
|
18648
18654
|
},
|
|
18649
18655
|
"default": "'full'",
|
|
18650
|
-
"description": "Width on wide layouts: `full` (default), `one-half`, `one-third` or `two-thirds`. A detail page is a\n`two-thirds` main section and a `one-third` side section. Every section is full width once the layout stacks.\n`aside` (since 1.7) is the 320px side column of a `cm-layout variant=\"record\"`; in other layouts it is `one-third`.",
|
|
18656
|
+
"description": "Width on wide layouts: `full` (default), `one-half`, `one-third` or `two-thirds`. A detail page is a\n`two-thirds` main section and a `one-third` side section. Every section is full width once the layout stacks.\n`aside` (since 1.7) is the 320px side column of a `cm-layout variant=\"record\"`; in other layouts it is `one-third`.\n`sidebar` (since 1.8.2) is the 240px start column of a `cm-layout variant=\"sidebar\"`.",
|
|
18651
18657
|
"attribute": "variant",
|
|
18652
18658
|
"reflects": true
|
|
18653
18659
|
}
|
|
@@ -18656,10 +18662,10 @@
|
|
|
18656
18662
|
{
|
|
18657
18663
|
"name": "variant",
|
|
18658
18664
|
"type": {
|
|
18659
|
-
"text": "'full' | 'one-half' | 'one-third' | 'two-thirds' | 'aside'"
|
|
18665
|
+
"text": "'full' | 'one-half' | 'one-third' | 'two-thirds' | 'aside' | 'sidebar'"
|
|
18660
18666
|
},
|
|
18661
18667
|
"default": "'full'",
|
|
18662
|
-
"description": "Width on wide layouts: `full` (default), `one-half`, `one-third` or `two-thirds`. A detail page is a\n`two-thirds` main section and a `one-third` side section. Every section is full width once the layout stacks.\n`aside` (since 1.7) is the 320px side column of a `cm-layout variant=\"record\"`; in other layouts it is `one-third`.",
|
|
18668
|
+
"description": "Width on wide layouts: `full` (default), `one-half`, `one-third` or `two-thirds`. A detail page is a\n`two-thirds` main section and a `one-third` side section. Every section is full width once the layout stacks.\n`aside` (since 1.7) is the 320px side column of a `cm-layout variant=\"record\"`; in other layouts it is `one-third`.\n`sidebar` (since 1.8.2) is the 240px start column of a `cm-layout variant=\"sidebar\"`.",
|
|
18663
18669
|
"fieldName": "variant"
|
|
18664
18670
|
}
|
|
18665
18671
|
],
|
|
@@ -23124,6 +23130,12 @@
|
|
|
23124
23130
|
"kind": "class",
|
|
23125
23131
|
"description": "Top of an admin page: breadcrumbs, the page title and the page's main actions.\nThe Figma file calls this the \"Save Bar\" (80px desktop, 50px mobile).\nOn narrow screens the breadcrumbs collapse to a back link to the parent page. `back-href` (since 1.7) shows that\nback link at every width instead, before the title: use it on record pages opened from a list (a lead, an order).\nType (owner standard, 1.6): title 24/32 semibold (20/28 on phones), description 13/18, breadcrumbs 13/18.\nA badge in `title-adornment` sits beside the title and wraps under it only when the title runs out of room.",
|
|
23126
23132
|
"name": "CmPageHeader",
|
|
23133
|
+
"cssProperties": [
|
|
23134
|
+
{
|
|
23135
|
+
"description": "The header's background (default `bg-surface`). `cm-app-frame panel` makes it transparent, so the header doesn't square off the panel's rounded corners. Since 1.8.2.",
|
|
23136
|
+
"name": "--cm-page-header-background"
|
|
23137
|
+
}
|
|
23138
|
+
],
|
|
23127
23139
|
"cssParts": [
|
|
23128
23140
|
{
|
|
23129
23141
|
"description": "The `description` line under the title.",
|
|
@@ -25183,7 +25195,7 @@
|
|
|
25183
25195
|
"name": ""
|
|
25184
25196
|
},
|
|
25185
25197
|
{
|
|
25186
|
-
"description": "A 40px thumbnail (32px on phones and in compact rows): a `cm-thumbnail` (recommended; `alt=\"\"` when the row names the product)
|
|
25198
|
+
"description": "A 40px thumbnail (32px on phones and in compact rows): a `cm-thumbnail` (recommended; `alt=\"\"` when the row names the product), an `<img>`, or a `cm-icon` (centred in the square, for settings and navigation lists).",
|
|
25187
25199
|
"name": "media"
|
|
25188
25200
|
},
|
|
25189
25201
|
{
|
|
@@ -27686,10 +27698,10 @@
|
|
|
27686
27698
|
"name": "size",
|
|
27687
27699
|
"privacy": "public",
|
|
27688
27700
|
"type": {
|
|
27689
|
-
"text": "'default' | 'small'"
|
|
27701
|
+
"text": "'default' | 'medium' | 'small'"
|
|
27690
27702
|
},
|
|
27691
27703
|
"default": "'default'",
|
|
27692
|
-
"description": "`small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. Default: a 40px box (since 1.6, owner standard; was 36px). On touch\nscreens
|
|
27704
|
+
"description": "`small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. `medium` (1.8.1): 36px, the height of a standard\nbutton, for a select in a row of buttons such as page header actions. Default: a 40px box (since 1.6, owner standard; was 36px). On touch\nscreens all are 44px. Since 1.5.",
|
|
27693
27705
|
"attribute": "size",
|
|
27694
27706
|
"reflects": true
|
|
27695
27707
|
},
|
|
@@ -28145,10 +28157,10 @@
|
|
|
28145
28157
|
{
|
|
28146
28158
|
"name": "size",
|
|
28147
28159
|
"type": {
|
|
28148
|
-
"text": "'default' | 'small'"
|
|
28160
|
+
"text": "'default' | 'medium' | 'small'"
|
|
28149
28161
|
},
|
|
28150
28162
|
"default": "'default'",
|
|
28151
|
-
"description": "`small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. Default: a 40px box (since 1.6, owner standard; was 36px). On touch\nscreens
|
|
28163
|
+
"description": "`small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. `medium` (1.8.1): 36px, the height of a standard\nbutton, for a select in a row of buttons such as page header actions. Default: a 40px box (since 1.6, owner standard; was 36px). On touch\nscreens all are 44px. Since 1.5.",
|
|
28152
28164
|
"fieldName": "size"
|
|
28153
28165
|
},
|
|
28154
28166
|
{
|
|
@@ -32501,7 +32513,7 @@
|
|
|
32501
32513
|
"name": "size",
|
|
32502
32514
|
"privacy": "public",
|
|
32503
32515
|
"type": {
|
|
32504
|
-
"text": "'default' | 'small'"
|
|
32516
|
+
"text": "'default' | 'medium' | 'small'"
|
|
32505
32517
|
},
|
|
32506
32518
|
"default": "'default'",
|
|
32507
32519
|
"description": "`small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. Default: a 40px box (since 1.6, owner standard; was 36px). On touch screens both are 44px.",
|
|
@@ -32891,7 +32903,7 @@
|
|
|
32891
32903
|
{
|
|
32892
32904
|
"name": "size",
|
|
32893
32905
|
"type": {
|
|
32894
|
-
"text": "'default' | 'small'"
|
|
32906
|
+
"text": "'default' | 'medium' | 'small'"
|
|
32895
32907
|
},
|
|
32896
32908
|
"default": "'default'",
|
|
32897
32909
|
"description": "`small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. Default: a 40px box (since 1.6, owner standard; was 36px). On touch screens both are 44px.",
|
package/dist/field.js
CHANGED
|
@@ -18,6 +18,9 @@ export const fieldStyles = css `
|
|
|
18
18
|
--_cm-field-pad: var(--cm-space-12, 12px);
|
|
19
19
|
}
|
|
20
20
|
:host([size='small']) { --_cm-field-h: var(--cm-control-height-sm, 32px); --_cm-field-pad: var(--cm-space-8, 8px); }
|
|
21
|
+
/* medium (1.8.1): 36px, the height of a standard button, for fields in a row of buttons (page header actions). */
|
|
22
|
+
:host([size='medium']) { --_cm-field-h: var(--cm-control-height-md, 36px); }
|
|
23
|
+
@media (pointer: coarse) { :host([size='medium']) { --_cm-field-h: var(--cm-control-height-touch, 44px); } }
|
|
21
24
|
@media (pointer: coarse) {
|
|
22
25
|
:host, :host([size='small']) { --_cm-field-h: var(--cm-control-height-touch, 44px); --_cm-field-font: var(--cm-font-size-16, 16px); }
|
|
23
26
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commmerce/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Commmerce UI web components: build apps that feel native to the Commmerce admin. Works in plain HTML, React, Vue and server-rendered pages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"test": "vitest run"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@commmerce/icons": "1.
|
|
54
|
-
"@commmerce/tokens": "1.
|
|
53
|
+
"@commmerce/icons": "1.9.0",
|
|
54
|
+
"@commmerce/tokens": "1.9.0",
|
|
55
55
|
"lit": "3.2.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|