@orangelogic/design-system 3.43.0 → 3.44.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/library/chunks/{bicolor-picker.BFLMj79r.js → bicolor-picker.pEuB5d7x.js} +1 -1
- package/library/chunks/{block-width.D0aVpqVS.js → block-width.C1BPe6lP.js} +424 -409
- package/library/chunks/{border-input-group.DvjGBsxF.js → border-input-group.D0_n4dvI.js} +1 -1
- package/library/chunks/{color-picker.CJL_5JjX.js → color-picker.DwYmn7LF.js} +2 -2
- package/library/chunks/{color-swatch-group.CWPweLjs.js → color-swatch-group.Pm-mqCgt.js} +13 -13
- package/library/chunks/{config-manager.D02Qm2fo.js → config-manager.B3oU6rhe.js} +11 -11
- package/library/chunks/{configs-controller.Cz3w_qEo.js → configs-controller.D3ER8OhT.js} +3 -3
- package/library/chunks/{confirm-popover.Difhn86O.js → confirm-popover.DENzK8Zo.js} +1 -1
- package/library/chunks/{document-viewer.c03KTUv2.js → document-viewer.C5yuaeGH.js} +3 -3
- package/library/chunks/{dropdown.jv7u3Wm8.js → dropdown.Bap8f8gT.js} +1 -1
- package/library/chunks/{file-on-demand.7OPAGIG4.js → file-on-demand.DZEBSyi3.js} +2 -2
- package/library/chunks/{menu-item.BpILLN4i.js → menu-item.FZopoctH.js} +1 -1
- package/library/chunks/{menu.BPTg0Ebu.js → menu.C7zSpVh7.js} +1 -1
- package/library/chunks/{shadow-input-group.ByN6pEvN.js → shadow-input-group.Dp6ME7lP.js} +1 -1
- package/library/chunks/{src.CblQoZkB.js → src.E-9k1EYO.js} +8 -8
- package/library/chunks/{tab-group.n9Wud7bJ.js → tab-group.BgkjcwaU.js} +3 -3
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +16 -16
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/confirm-popover.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/dropdown.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +4 -4
- package/library/components/organisms.js +3 -3
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/tab-group.js +1 -1
- package/library/components/types.js +5813 -5816
- package/library/package.json +1 -1
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +5 -1
- package/library/packages/molecules/src/view-and-sort/view-and-sort.d.ts +5 -3
- package/library/packages/organisms/src/content-builder/blocks/font-kit-advanced/font-kit-advanced.utils.d.ts +3 -0
- package/library/packages/types/src/asset-picker.d.ts +5 -0
- package/library/packages/types/src/font-kit.d.ts +2 -0
- package/package.json +1 -1
- package/library/chunks/{asset-link-format.1oRTjzY2.js → asset-link-format.BenfACwj.js} +1 -1
package/library/package.json
CHANGED
|
@@ -77,7 +77,8 @@ export default class CxAssetPicker extends CortexElement {
|
|
|
77
77
|
/** When true, uses the Site Builder search endpoint for asset fetching. */
|
|
78
78
|
isSiteBuilder: boolean;
|
|
79
79
|
private previewSrc;
|
|
80
|
-
|
|
80
|
+
/** Titles of the selected assets, one per record. */
|
|
81
|
+
private assetTitles;
|
|
81
82
|
/** Kept as an instance field so tests can stub this API call. */
|
|
82
83
|
private apiGetAssets;
|
|
83
84
|
private handleRequestAssetClick;
|
|
@@ -98,6 +99,9 @@ export default class CxAssetPicker extends CortexElement {
|
|
|
98
99
|
* type prefers its representative.
|
|
99
100
|
*/
|
|
100
101
|
resolvePreviewSrc(asset: Pick<Asset, 'representative' | 'src'> & Partial<Pick<Asset, 'type'>>): string;
|
|
102
|
+
private get previewMode();
|
|
103
|
+
private renderImagePreview;
|
|
104
|
+
private renderTitleLabel;
|
|
101
105
|
private renderAssetPreview;
|
|
102
106
|
render(): import('lit-html').TemplateResult<1>;
|
|
103
107
|
}
|
|
@@ -61,10 +61,12 @@ export default class CxViewAndSort extends CortexElement {
|
|
|
61
61
|
private handleItemTooltipMouseEnter;
|
|
62
62
|
private handleItemTooltipMouseLeave;
|
|
63
63
|
private handleActionClick;
|
|
64
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* Whether an item is one choice in a picker (e.g. items-per-page). Rendered as a `checkbox`
|
|
66
|
+
* item exposed as `menuitemradio`, with `no-uncheck` so activating the current choice again
|
|
67
|
+
* keeps it checked.
|
|
68
|
+
*/
|
|
65
69
|
private isSelectableOption;
|
|
66
|
-
/** Maps a data item to the `cx-menu-item` type that should render it. */
|
|
67
|
-
private resolveMenuItemType;
|
|
68
70
|
render(): TemplateResult<1>;
|
|
69
71
|
renderMenuSection(section: MenuSection): TemplateResult;
|
|
70
72
|
renderMenuItem(item: MenuItem, isHorizontal?: boolean, tooltip?: string): TemplateResult;
|
|
@@ -43,6 +43,9 @@ export declare function getFontStyleName(fontStyle: string): string;
|
|
|
43
43
|
* falling back to the raw value for non-standard weights.
|
|
44
44
|
*/
|
|
45
45
|
export declare function getFontWeightName(fontWeight: string): string;
|
|
46
|
+
export declare function getNearestFontWeightName(fontWeight: string): string;
|
|
47
|
+
/** Reads name ID 17, not name ID 2: many families put `Regular` in ID 2 for every face. */
|
|
48
|
+
export declare function toFontWeightName(names: object | undefined): string | undefined;
|
|
46
49
|
/**
|
|
47
50
|
* The kit's variants as font-picker options, for the "font kit default" entry.
|
|
48
51
|
* Deduped by weight and style: a kit built from several families holds the
|
|
@@ -16,6 +16,8 @@ export type Typeface = {
|
|
|
16
16
|
fontOutlinesFormat?: FontOutlinesFormat;
|
|
17
17
|
fontStyle: string;
|
|
18
18
|
fontWeight: string;
|
|
19
|
+
/** Weight name declared by the source file (e.g. `Thin`), used for off-scale weights. */
|
|
20
|
+
fontWeightName?: string;
|
|
19
21
|
/**
|
|
20
22
|
* The source file's OS/2 `usWidthClass` (1-9, 5 = normal). Absent for
|
|
21
23
|
* variants resolved without a file.
|
package/package.json
CHANGED
|
@@ -23,8 +23,8 @@ import { t as oe } from "./input.HC75Gdv_.js";
|
|
|
23
23
|
import { t as S } from "./option.CxsY_LQ-.js";
|
|
24
24
|
import { t as C } from "./space.Dd8jezXK.js";
|
|
25
25
|
import { t as w } from "./select.DLMCyAHm.js";
|
|
26
|
-
import { t as T } from "./details.DRv08ocO.js";
|
|
27
26
|
import { t as se } from "./divider.CqSNZCU8.js";
|
|
27
|
+
import { t as T } from "./details.DRv08ocO.js";
|
|
28
28
|
import { i as E, n as D, r as O } from "./asset-link-format.DhdgEsA0.js";
|
|
29
29
|
import { applyTransformationsToUrl as k, buildAssetSrcset as ce, buildTransformationString as A, resolveAutoFormat as le, resolveAutoMaxWidth as ue } from "../utils.js";
|
|
30
30
|
import { t as de } from "./v4.JyXW8GUB.js";
|