@cntrl-site/components 1.0.118-alpha.3 → 1.0.118-alpha.4
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/{Burger-C3yVbQcq.js → Burger-B4kXX9aY.js} +1 -1
- package/dist/{Burger-BkVgNMGU.mjs → Burger-DyORh_vF.mjs} +1 -1
- package/dist/{ChroniclesComponent-DD3tqNNm.mjs → ChroniclesComponent-DVoJ0kdT.mjs} +442 -512
- package/dist/ChroniclesComponent-Nm_yIRmr.js +1 -0
- package/dist/Components/Grid/Grid.d.ts +7 -25
- package/dist/Components/PopupMenu/PopupMenu.d.ts +73 -0
- package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +594 -0
- package/dist/Components/PopupMenu/popupMenuLayout.d.ts +203 -0
- package/dist/Components/PopupMenu/popupMenuSnap.d.ts +61 -0
- package/dist/Components/helpers/SvgImage/loadSvgMaskUrl.d.ts +7 -0
- package/dist/{ControlSlider-BBAXRDLP.mjs → ControlSlider-3w-bHQEg.mjs} +4 -3
- package/dist/ControlSlider-DB4nbVLT.js +1 -0
- package/dist/{FAQ-DLh63Utr.js → FAQ-7HEkaoU6.js} +1 -1
- package/dist/{FAQ-CJHCMSBa.mjs → FAQ-GmiwRdFq.mjs} +1 -1
- package/dist/Grid-BuRdth9A.mjs +1622 -0
- package/dist/Grid-tqSSYh2-.js +408 -0
- package/dist/{Hive-CzabuuCc.js → Hive-34KvKNsa.js} +1 -1
- package/dist/{Hive-DyxYd5eg.mjs → Hive-7xHXyMM1.mjs} +1 -1
- package/dist/{HiveLightboxTitles-DhEeFKWs.mjs → HiveLightboxTitles-BCoL46-V.mjs} +1 -1
- package/dist/{HiveLightboxTitles-DlyptAaK.js → HiveLightboxTitles-DEeyQGcf.js} +1 -1
- package/dist/{Lightbox-DZckgBzK.js → Lightbox-Cb7lyaNt.js} +1 -1
- package/dist/{Lightbox-BY99NS14.mjs → Lightbox-DzPqgKP4.mjs} +1 -1
- package/dist/{LightboxJournal-Bf_rZzmz.js → LightboxJournal-B-vul_be.js} +1 -1
- package/dist/{LightboxJournal-BDUs6T0B.mjs → LightboxJournal-DisD2DLv.mjs} +1 -1
- package/dist/{LightboxStrip-RA4ABUC-.js → LightboxStrip-YDyEPEb6.js} +1 -1
- package/dist/{LightboxStrip-Cuhb2fIR.mjs → LightboxStrip-wCHUhAqN.mjs} +1 -1
- package/dist/{Mercury-B-s2Kvuq.js → Mercury-BmhtFYOw.js} +1 -1
- package/dist/{Mercury-CCW0Es-s.mjs → Mercury-Q788wrYQ.mjs} +1 -1
- package/dist/{OnelinerForm-C2Y_XMCY.js → OnelinerForm-CUmY-bXL.js} +1 -1
- package/dist/{OnelinerForm-BEu7_sho.mjs → OnelinerForm-D8WIB9Qy.mjs} +1 -1
- package/dist/PopupMenu-CYdDyzEt.mjs +1372 -0
- package/dist/PopupMenu-Di1fHgho.js +409 -0
- package/dist/{SimpleButton-C-o2W9bS.mjs → SimpleButton-DTpzfmb6.mjs} +1 -1
- package/dist/{SimpleButton-nGEcO2gB.js → SimpleButton-DtaCYa3y.js} +1 -1
- package/dist/{Slider20-DUi6qwnd.mjs → Slider20-CKngROrc.mjs} +1 -1
- package/dist/{Slider20-BOmjDRf2.js → Slider20-q0iGgnE3.js} +1 -1
- package/dist/SvgImage-CwRq9-ec.mjs +56 -0
- package/dist/SvgImage-_QN8ngad.js +1 -0
- package/dist/{TestimonialSingle-DrnyReim.mjs → TestimonialSingle-Bax71Hyo.mjs} +1 -1
- package/dist/{TestimonialSingle-BORQom3u.js → TestimonialSingle-CpEUendN.js} +1 -1
- package/dist/{Waterfall-DII4-WV5.js → Waterfall-B9YWMhrg.js} +1 -1
- package/dist/{Waterfall-3kKioKh2.mjs → Waterfall-znaoynn5.mjs} +1 -1
- package/dist/components-BYoTPJk3.js +1 -0
- package/dist/{components-BwAmTGJp.mjs → components-eK82xypT.mjs} +653 -30
- package/dist/components.css +1 -1
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +24 -24
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +63 -36
- package/dist/loadSvgMaskUrl-B6kHUyof.js +1 -0
- package/dist/loadSvgMaskUrl-DUhCVvpl.mjs +39 -0
- package/dist/sources.js +233 -514
- package/dist/sources.mjs +273 -555
- package/dist/types/Component.d.ts +7 -0
- package/dist/types/SchemaV1.d.ts +3 -0
- package/package.json +1 -1
- package/dist/ChroniclesComponent-BMbUwzk6.js +0 -1
- package/dist/Components/Grid/CustomGridComponent.d.ts +0 -41
- package/dist/ControlSlider-BCkVFl4w.js +0 -1
- package/dist/Grid-CUaVUaRa.js +0 -441
- package/dist/Grid-D19xZ_mh.mjs +0 -1800
- package/dist/SvgImage-B5mR9y6q.mjs +0 -51
- package/dist/SvgImage-DFlmxAoL.js +0 -1
- package/dist/components-D8RelPGE.js +0 -1
- package/dist/loadSvgMaskUrl-DfF7ay6h.js +0 -1
- package/dist/loadSvgMaskUrl-xHgGYgPe.mjs +0 -20
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
export type PopupMenuBlockType = 'text' | 'image' | 'listA' | 'listB';
|
|
2
|
+
/** The editor's layout grid, in fractions of the layout width like the grid itself is stored. */
|
|
3
|
+
export type PopupMenuGrid = {
|
|
4
|
+
columns: number;
|
|
5
|
+
columnWidth: number;
|
|
6
|
+
gutter: number;
|
|
7
|
+
/** The least room kept between two blocks one above the other in a column; none is the gutter. */
|
|
8
|
+
rowGap?: number;
|
|
9
|
+
/** The vertical rhythm's step, which blocks' tops snap to; none, or 0, leaves them free. */
|
|
10
|
+
beat?: number;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A block's place in the popup: `left` from the grid's left edge, `width` across, and `top` down from the popup's
|
|
14
|
+
* top, in fractions of the layout width like the popup's other sizes. Blocks sit anywhere on the grid, as an
|
|
15
|
+
* article's items do: its columns, the popup's edges and the other blocks are only what they snap to as they are
|
|
16
|
+
* moved or resized. A block is always drawn at its top; one reaching below the popup's bottom is scrolled to, the
|
|
17
|
+
* popup scrolling down as far as it reaches. `height`, set once an image block was resized by its top or bottom
|
|
18
|
+
* edge, holds it to that height, the image cut to fill it. Without it, the block is as tall as its content, as
|
|
19
|
+
* text and lists always are.
|
|
20
|
+
*/
|
|
21
|
+
export type PopupMenuPlacement = {
|
|
22
|
+
left: number;
|
|
23
|
+
width: number;
|
|
24
|
+
top: number;
|
|
25
|
+
height?: number;
|
|
26
|
+
};
|
|
27
|
+
/** A placement as saved before blocks were placed freely: `column` skipped from the left edge, `span` columns wide. */
|
|
28
|
+
export type PopupMenuColumnPlacement = {
|
|
29
|
+
column: number;
|
|
30
|
+
span: number;
|
|
31
|
+
top: number;
|
|
32
|
+
height?: number;
|
|
33
|
+
};
|
|
34
|
+
/** The popup's height when none is set, as a percentage of the screen's height. */
|
|
35
|
+
export declare const DEFAULT_POPUP_MENU_HEIGHT = 60;
|
|
36
|
+
/** The screen's height as a fraction of the layout width, where it is not known: a 1440 × 900 desktop. */
|
|
37
|
+
export declare const DEFAULT_POPUP_MENU_VIEWPORT_RATIO: number;
|
|
38
|
+
/** Where the popup sits across the screen, as a structured block, Catalogue's say, is aligned in the article. */
|
|
39
|
+
export declare const POPUP_MENU_ALIGNS: readonly ["left", "center", "right"];
|
|
40
|
+
export type PopupMenuAlign = (typeof POPUP_MENU_ALIGNS)[number];
|
|
41
|
+
/** The popup's grid when none is set, the desktop default: 12 columns of 99 with gutters of 20. */
|
|
42
|
+
export declare const DEFAULT_POPUP_MENU_GRID: PopupMenuGrid;
|
|
43
|
+
/**
|
|
44
|
+
* The popup's columns as the editor's grid-layout control sets them, as Catalogue's are: `columnsCount` columns
|
|
45
|
+
* `entryWidth` wide with `horizontalGap` between them, within `wrapperWidth`, which is at least as wide as they
|
|
46
|
+
* are and keeps them centred. `lockedParam` is the size the control holds while the others are changed.
|
|
47
|
+
*/
|
|
48
|
+
export type PopupMenuGridLayout = {
|
|
49
|
+
columnsCount?: number;
|
|
50
|
+
wrapperWidth?: number;
|
|
51
|
+
entryWidth?: number;
|
|
52
|
+
horizontalGap?: number;
|
|
53
|
+
lockedParam?: 'wrapperWidth' | 'entryWidth' | 'horizontalGap' | null;
|
|
54
|
+
};
|
|
55
|
+
/** The popup's own grid as it is set, sizes in fractions of the layout width like the popup's other sizes. */
|
|
56
|
+
export type PopupMenuGridSettings = {
|
|
57
|
+
gridLayout?: PopupMenuGridLayout | null;
|
|
58
|
+
verticalGap?: number;
|
|
59
|
+
/** @deprecated a column count, width and gutter of their own, as a menu saved before `gridLayout` has them */
|
|
60
|
+
gridColumns?: number;
|
|
61
|
+
/** @deprecated see gridColumns */
|
|
62
|
+
gridColumnWidth?: number;
|
|
63
|
+
/** @deprecated see gridColumns */
|
|
64
|
+
gridGutter?: number;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* The grid the popup's blocks are placed on, from its settings: whole columns, at least one, of the entry width
|
|
68
|
+
* set, with the gutter set between them and the vertical gap between blocks one above the other. Blocks' tops and
|
|
69
|
+
* heights are free, with no rhythm to snap to: the vertical gap alone keeps them apart, and a row height a menu
|
|
70
|
+
* was saved with is left behind. A menu saved before `gridLayout` keeps its own columns, width and gutter; what is
|
|
71
|
+
* not set at all, as in a menu saved before the popup had a grid of its own, is `fallback`'s, and a vertical gap
|
|
72
|
+
* never set is the gutter, the room blocks kept one above the other before it could be set apart.
|
|
73
|
+
*/
|
|
74
|
+
export declare function getPopupMenuGrid(settings: PopupMenuGridSettings, fallback?: PopupMenuGrid): PopupMenuGrid;
|
|
75
|
+
/** The least room kept between two blocks one above the other: the vertical gap, or, none set, the gutter. */
|
|
76
|
+
export declare function getPopupMenuRowGap(grid: PopupMenuGrid): number;
|
|
77
|
+
/** The popup's height as set: a percentage of the screen's height, from 0 to 100. */
|
|
78
|
+
export declare function getPopupMenuHeightPercent(settings: {
|
|
79
|
+
popupHeight?: number;
|
|
80
|
+
}): number;
|
|
81
|
+
/**
|
|
82
|
+
* The room the popup's blocks are placed in: its whole height, as it has no padding, in fractions of the layout
|
|
83
|
+
* width. `viewportRatio` is the screen's height as a fraction of the layout width, a desktop's where not known;
|
|
84
|
+
* the popup is measured as drawn once open, so this only places blocks before it is.
|
|
85
|
+
*/
|
|
86
|
+
export declare function getPopupMenuHeight(settings: {
|
|
87
|
+
popupHeight?: number;
|
|
88
|
+
}, viewportRatio?: number): number;
|
|
89
|
+
/** Where the popup is aligned across the screen; none set, as in a menu saved before it could be, is the centre. */
|
|
90
|
+
export declare function getPopupMenuAlign(settings: {
|
|
91
|
+
popupAlign?: unknown;
|
|
92
|
+
}): PopupMenuAlign;
|
|
93
|
+
/**
|
|
94
|
+
* The popup's width, in fractions of the layout width: its grid's Width, as a structured block, Catalogue's say,
|
|
95
|
+
* is as wide as its grid's. A menu saved before its grid had a Width is as wide as its columns and gutters.
|
|
96
|
+
*/
|
|
97
|
+
export declare function getPopupMenuWidth(settings: PopupMenuGridSettings, grid: PopupMenuGrid): number;
|
|
98
|
+
export type PopupMenuSides = {
|
|
99
|
+
top: number;
|
|
100
|
+
right: number;
|
|
101
|
+
bottom: number;
|
|
102
|
+
left: number;
|
|
103
|
+
};
|
|
104
|
+
/** A margin or padding as set: a side each, or, saved before it had four, one for every side. */
|
|
105
|
+
export type PopupMenuSidesSetting = number | Partial<PopupMenuSides> | null;
|
|
106
|
+
/** A margin or padding on every side, in fractions of the layout width; a side not set is none. */
|
|
107
|
+
export declare function getPopupMenuSides(sides: PopupMenuSidesSetting | undefined): PopupMenuSides;
|
|
108
|
+
export type PopupMenuLayout = {
|
|
109
|
+
seed: number;
|
|
110
|
+
grid: PopupMenuGrid;
|
|
111
|
+
placements: PopupMenuPlacement[];
|
|
112
|
+
/** Set once a block was moved by hand, after which the seed no longer gives this layout. */
|
|
113
|
+
edited?: boolean;
|
|
114
|
+
};
|
|
115
|
+
/** A layout as it may be saved: one from before blocks were placed freely has its placements in whole columns. */
|
|
116
|
+
export type PopupMenuSavedLayout = Omit<PopupMenuLayout, 'placements'> & {
|
|
117
|
+
placements: readonly (PopupMenuPlacement | PopupMenuColumnPlacement)[];
|
|
118
|
+
};
|
|
119
|
+
/** A column's width on the grid: as set, or, with none set, the columns spread alike over the whole layout width. */
|
|
120
|
+
export declare function getPopupMenuColumnWidth(grid: PopupMenuGrid): number;
|
|
121
|
+
/** How wide the grid blocks are placed on is: its columns and the gutters between them. */
|
|
122
|
+
export declare function getPopupMenuGridWidth(grid: PopupMenuGrid): number;
|
|
123
|
+
/** Both edges of every column, from the grid's left edge, left to right. */
|
|
124
|
+
export declare function getPopupMenuColumnEdges(grid: PopupMenuGrid): number[];
|
|
125
|
+
/** The place of `span` columns from `column` on, at `top`. */
|
|
126
|
+
export declare function getPopupMenuColumnsPlacement(grid: PopupMenuGrid, column: number, span: number, top: number, height?: number): PopupMenuPlacement;
|
|
127
|
+
/** The least a block may be resized across to: about 8px of a desktop layout. */
|
|
128
|
+
export declare function getPopupMenuMinWidth(): number;
|
|
129
|
+
/** Where a block without a placement yet sits: at the top left, a quarter of the columns wide. */
|
|
130
|
+
export declare function getDefaultPopupMenuPlacement(grid: PopupMenuGrid): PopupMenuPlacement;
|
|
131
|
+
/** A saved placement as a free one; one in whole columns is placed where those columns are on `grid`, the grid it was saved on. */
|
|
132
|
+
export declare function toPopupMenuPlacement(placement: PopupMenuPlacement | PopupMenuColumnPlacement, grid: PopupMenuGrid): PopupMenuPlacement;
|
|
133
|
+
/** A saved layout with every placement a free one; one that has them all so already comes back as it is. */
|
|
134
|
+
export declare function normalizePopupMenuLayout(layout: PopupMenuSavedLayout): PopupMenuLayout;
|
|
135
|
+
/** How wide each block type may be, as fractions of the grid's columns, and how often a row is left with empty cells. */
|
|
136
|
+
export type PopupMenuLayoutRules = {
|
|
137
|
+
span: Record<PopupMenuBlockType, {
|
|
138
|
+
min: number;
|
|
139
|
+
max: number;
|
|
140
|
+
}>;
|
|
141
|
+
/** Chance that a block starts a new row even though the current one has room left. */
|
|
142
|
+
breakChance: number;
|
|
143
|
+
};
|
|
144
|
+
export declare const defaultPopupMenuLayoutRules: PopupMenuLayoutRules;
|
|
145
|
+
/**
|
|
146
|
+
* Scatters the blocks over the grid row by row, in their content order so that reading and tab order
|
|
147
|
+
* stay as the user wrote them. Every block of a type takes the one whole-column span picked for that
|
|
148
|
+
* type, and lands at a random free column of the current row; a block that no longer fits, or one the
|
|
149
|
+
* dice break, opens the next row. The rows are spread evenly down the popup's `height`, each on a beat
|
|
150
|
+
* of the grid's rhythm, their blocks' tops level, which reads the same whatever the blocks' heights turn
|
|
151
|
+
* out to be. The same seed on the same grid always gives the same layout.
|
|
152
|
+
*/
|
|
153
|
+
export declare function generatePopupMenuLayout(blocks: readonly PopupMenuBlockType[], grid: PopupMenuGrid, seed: number, height: number, rules?: PopupMenuLayoutRules): PopupMenuLayout;
|
|
154
|
+
/**
|
|
155
|
+
* The top nearest to `top` on the grid's rhythm, within `room`, the most a top may be for the block to end
|
|
156
|
+
* inside the popup: past it, the last beat the block still ends above.
|
|
157
|
+
*/
|
|
158
|
+
export declare function snapPopupMenuTop(grid: PopupMenuGrid, top: number, room?: number): number;
|
|
159
|
+
/** The least a block may be resized to: a beat of the rhythm, or, where there is none, about 8px of a desktop layout. */
|
|
160
|
+
export declare function getPopupMenuMinHeight(grid: PopupMenuGrid): number;
|
|
161
|
+
/**
|
|
162
|
+
* The height nearest to `height` in whole beats of the grid's rhythm, at least one, and no more than `room`,
|
|
163
|
+
* the most the block may be for it to end inside the popup: past it, the most beats that still fit.
|
|
164
|
+
*/
|
|
165
|
+
export declare function snapPopupMenuHeight(grid: PopupMenuGrid, height: number, room?: number): number;
|
|
166
|
+
/** Whether two grids place blocks alike: the same columns, column width, gutter, vertical gap and rhythm. */
|
|
167
|
+
export declare function isSamePopupMenuGrid(a: PopupMenuGrid, b: PopupMenuGrid): boolean;
|
|
168
|
+
/**
|
|
169
|
+
* The layout on another grid, the layout grid as it is now rather than as it was when the layout was saved.
|
|
170
|
+
* Every block keeps its share of the grid's width, so that blocks on its columns stay on them as the columns
|
|
171
|
+
* widen or narrow, and stays within it; tops and set heights are kept. A layout already on `grid` comes back as it is.
|
|
172
|
+
*/
|
|
173
|
+
export declare function fitPopupMenuLayoutToGrid(layout: PopupMenuLayout, grid: PopupMenuGrid): PopupMenuLayout;
|
|
174
|
+
/**
|
|
175
|
+
* The room blocks are placed in and every block's height, in fractions of the layout width, as drawn. Blocks are
|
|
176
|
+
* moved within the room; settled, they are kept within it where they can be.
|
|
177
|
+
*/
|
|
178
|
+
export type PopupMenuMeasure = {
|
|
179
|
+
height: number;
|
|
180
|
+
heights: readonly number[];
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* The layout with one block moved to another left and top, keeping its size, held within the grid's width and,
|
|
184
|
+
* given the popup measured, where the block still ends inside it. Null when, measured, the block would cover part
|
|
185
|
+
* of another or come within a vertical gap of one above or below it.
|
|
186
|
+
*/
|
|
187
|
+
export declare function movePopupMenuBlock(layout: PopupMenuLayout, index: number, left: number, top: number, measure?: PopupMenuMeasure): PopupMenuLayout | null;
|
|
188
|
+
/**
|
|
189
|
+
* The layout with one block resized to `next`: at least the least width and height, and within the grid's width
|
|
190
|
+
* and, measured, the popup's height. Null on the same terms as movePopupMenuBlock. A block without a height keeps
|
|
191
|
+
* the one it was measured at.
|
|
192
|
+
*/
|
|
193
|
+
export declare function resizePopupMenuBlock(layout: PopupMenuLayout, index: number, next: PopupMenuPlacement, measure?: PopupMenuMeasure): PopupMenuLayout | null;
|
|
194
|
+
/**
|
|
195
|
+
* The layout with every block that comes within the vertical gap of one above it, in a column they share, pushed down
|
|
196
|
+
* below it onto the next beat. A generated layout spreads its rows without knowing how tall the blocks turn
|
|
197
|
+
* out, so a tall image or list can reach into the next row. Blocks are taken from the top down, each below
|
|
198
|
+
* every one already settled, so a pushed block pushes the ones under it in turn. A block pushed so low that it
|
|
199
|
+
* would reach below the popup's bottom, `measure.height`, moves instead to the column start nearest it where it
|
|
200
|
+
* is pushed least and still ends inside the popup, and stays where it was pushed, the popup scrolling to it, only
|
|
201
|
+
* where none does. A layout that crowds nowhere comes back as it is.
|
|
202
|
+
*/
|
|
203
|
+
export declare function settlePopupMenuLayout(layout: PopupMenuLayout, measure: PopupMenuMeasure): PopupMenuLayout;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { PopupMenuGrid, PopupMenuLayout, PopupMenuMeasure, PopupMenuPlacement } from './popupMenuLayout';
|
|
2
|
+
/**
|
|
3
|
+
* Snapping for the popup's blocks as they are moved and resized on the canvas, as an article's items snap: a block
|
|
4
|
+
* goes where the pointer takes it, and an edge or its centre comes to a line only once it is within a few pixels of
|
|
5
|
+
* one. All in fractions of the layout width, `xs` from the grid's left edge and `ys` from the popup's top.
|
|
6
|
+
* `baselines` are what a text block's first line's baseline snaps to, as an article's text snaps by its baselines:
|
|
7
|
+
* the grid's rows and the other text blocks' first baselines.
|
|
8
|
+
*/
|
|
9
|
+
export type PopupMenuSnapLines = {
|
|
10
|
+
xs: number[];
|
|
11
|
+
ys: number[];
|
|
12
|
+
baselines?: number[];
|
|
13
|
+
};
|
|
14
|
+
/** How near, in screen pixels, a block's edge or centre comes to a line before it snaps to it, as in an article. */
|
|
15
|
+
export declare const POPUP_MENU_SNAP_MARGIN_PX = 5;
|
|
16
|
+
/** The handles a block is resized by on the canvas, by the edges each one takes along. */
|
|
17
|
+
export type PopupMenuResizeHandle = 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left';
|
|
18
|
+
/**
|
|
19
|
+
* The grid's rows, as the editor draws them: a line every beat from the popup's top where the grid has a rhythm,
|
|
20
|
+
* else one every vertical gap, down to its bottom.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getPopupMenuGridRows(grid: PopupMenuGrid, room: number): number[];
|
|
23
|
+
/**
|
|
24
|
+
* The lines block `index` snaps to: both edges of every column, the grid's edges and centre, the popup's top and
|
|
25
|
+
* bottom, every beat where the grid has a rhythm, and the other blocks' edges and centres, and a vertical gap above
|
|
26
|
+
* and below each, where a block may sit right under or over it. A text block's first baseline snaps to the grid's
|
|
27
|
+
* rows and to the other text blocks' first baselines, `baselines` being each block's, down from its top, where it
|
|
28
|
+
* has one.
|
|
29
|
+
*/
|
|
30
|
+
export declare function getPopupMenuSnapLines(layout: PopupMenuLayout, index: number, measure: PopupMenuMeasure, baselines?: readonly (number | null | undefined)[]): PopupMenuSnapLines;
|
|
31
|
+
/** The lines any of `points` is on, to draw while the block is there; a baseline on any of `lines.baselines`. */
|
|
32
|
+
export declare function getPopupMenuSnapGuides(points: PopupMenuSnapLines, lines: PopupMenuSnapLines): PopupMenuSnapLines;
|
|
33
|
+
export type PopupMenuSnapMargin = {
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
};
|
|
37
|
+
export type PopupMenuSnapped = {
|
|
38
|
+
placement: PopupMenuPlacement;
|
|
39
|
+
guides: PopupMenuSnapLines;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* A block moved from `start`, `height` tall, by `dx` and `dy`: its left edge, centre or right edge snapped to the
|
|
43
|
+
* nearest line across, and its top, middle or bottom to the nearest line down, or, for a text block, its first
|
|
44
|
+
* line's `baseline`, that far down from its top, to the nearest of `lines.baselines`, whichever is nearer, each within
|
|
45
|
+
* `margin`; then held within the grid's width and the popup's height, `room`.
|
|
46
|
+
*/
|
|
47
|
+
export declare function snapPopupMenuMove(start: PopupMenuPlacement, height: number, dx: number, dy: number, lines: PopupMenuSnapLines, margin: PopupMenuSnapMargin, gridWidth: number, room: number, baseline?: number | null): PopupMenuSnapped;
|
|
48
|
+
export type PopupMenuResizeOptions = {
|
|
49
|
+
/** Shift: a corner keeps the block's shape as it was when the drag started. */
|
|
50
|
+
keepRatio?: boolean;
|
|
51
|
+
/** Alt: the opposite edge moves alike the other way, the block resized about its centre. */
|
|
52
|
+
fromCenter?: boolean;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* A block resized from `start`, `height` tall, by one of its handles moved by `dx` and `dy`, as an article's items
|
|
56
|
+
* are: the edge it is dragged by snaps to the nearest line within `margin`, the other staying where it was, or,
|
|
57
|
+
* from its centre, moving alike the other way. Held at the least width and height at least, and within the grid's
|
|
58
|
+
* width and the popup's height, `room`. A block that is not resized down keeps its height unset, as tall as its
|
|
59
|
+
* content.
|
|
60
|
+
*/
|
|
61
|
+
export declare function snapPopupMenuResize(start: PopupMenuPlacement, height: number, handle: PopupMenuResizeHandle, dx: number, dy: number, lines: PopupMenuSnapLines, margin: PopupMenuSnapMargin, gridWidth: number, room: number, minHeight: number, { keepRatio, fromCenter }?: PopupMenuResizeOptions): PopupMenuSnapped;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
export declare function isInlineMaskUrl(url: string): boolean;
|
|
2
|
+
/** A data: URL holds an SVG only when its media type says so. */
|
|
3
|
+
export declare function isSvgDataUrl(url: string): boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Whether a data: or blob: URL holds an SVG. A blob: URL, as an image is shown by in the
|
|
6
|
+
* editor while it uploads, says nothing of its type, so its blob is looked at.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isInlineSvgUrl(url: string): Promise<boolean>;
|
|
2
9
|
export declare function loadSvgMaskUrl(url: string): Promise<string>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as t, jsxs as v, Fragment as M } from "react/jsx-runtime";
|
|
2
2
|
import { useState as f, useRef as Y, useEffect as O } from "react";
|
|
3
3
|
import { S as q, a as K } from "./react-splide.esm-DQqds4PL.mjs";
|
|
4
|
+
/* empty css */
|
|
4
5
|
import c from "classnames";
|
|
5
6
|
import { R as Q } from "./RichTextRenderer-D52Xto59.mjs";
|
|
6
7
|
import { s } from "./scalingValue-C9JH5L6O.mjs";
|
|
7
|
-
import { S as N } from "./SvgImage-
|
|
8
|
+
import { S as N } from "./SvgImage-CwRq9-ec.mjs";
|
|
8
9
|
import { n as Z } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
9
10
|
const G = "ControlSlider-module__wrapper___sHEkd", J = "ControlSlider-module__hoverArrow___A-dOH", X = "ControlSlider-module__sliderItem___QQSkR", E = "ControlSlider-module__sliderImage___9hRl-", oo = "ControlSlider-module__arrow___05ghY", to = "ControlSlider-module__arrowVertical___tBfVN", eo = "ControlSlider-module__nextArrow___-30Yc", no = "ControlSlider-module__arrowInner___aEra3", io = "ControlSlider-module__arrowIcon___S4ztF", ro = "ControlSlider-module__arrowImg___2dwJW", lo = "ControlSlider-module__mirror___brd6U", ao = "ControlSlider-module__pagination___bicLF", so = "ControlSlider-module__paginationInner___bT-P-", co = "ControlSlider-module__paginationVertical___zYqKw", mo = "ControlSlider-module__paginationItem___nTRbk", _o = "ControlSlider-module__dot___p1Qun", go = "ControlSlider-module__activeDot___LHFaj", po = "ControlSlider-module__paginationInsideBottom___R3FWn", ho = "ControlSlider-module__paginationInsideTop___V-qb-", uo = "ControlSlider-module__paginationOutsideBottom___14w8D", fo = "ControlSlider-module__paginationOutsideTop___SCLqB", Co = "ControlSlider-module__paginationInsideLeft___yOBRZ", wo = "ControlSlider-module__paginationInsideRight___Rtt3o", vo = "ControlSlider-module__paginationOutsideLeft___lahaw", So = "ControlSlider-module__paginationOutsideRight___EtuQa", Io = "ControlSlider-module__imgWrapper___UjEgB", Ao = "ControlSlider-module__captionBlock___dJ6-j", yo = "ControlSlider-module__captionTextWrapper___HFlpf", Ro = "ControlSlider-module__captionText___uGBVc", bo = "ControlSlider-module__active___WZK4G", Lo = "ControlSlider-module__withPointerEvents___t-18M", ko = "ControlSlider-module__topLeftAlignment___zjnGM", xo = "ControlSlider-module__topCenterAlignment___gD1xW", Oo = "ControlSlider-module__topRightAlignment___NMapS", No = "ControlSlider-module__middleLeftAlignment___OnUrY", To = "ControlSlider-module__middleCenterAlignment___Tdkl0", zo = "ControlSlider-module__middleRightAlignment___wEbfX", Bo = "ControlSlider-module__bottomLeftAlignment___cTP2-", Vo = "ControlSlider-module__bottomCenterAlignment___c54fB", Wo = "ControlSlider-module__bottomRightAlignment___kEwrz", Fo = "ControlSlider-module__clickOverlay___DZA28", Do = "ControlSlider-module__contain___pLyq7", $o = "ControlSlider-module__cover___KdDat", o = {
|
|
10
11
|
wrapper: G,
|
|
@@ -61,7 +62,7 @@ const G = "ControlSlider-module__wrapper___sHEkd", J = "ControlSlider-module__ho
|
|
|
61
62
|
"bottom-center": o.bottomCenterAlignment,
|
|
62
63
|
"bottom-right": o.bottomRightAlignment
|
|
63
64
|
};
|
|
64
|
-
function
|
|
65
|
+
function Go({ settings: g, content: p, styles: z, isEditor: l }) {
|
|
65
66
|
const [m, B] = f(null), { widthSettings: A, fontSettings: S, letterSpacing: V, textAlign: W, wordSpacing: F, fontSizeLineHeight: y, textAppearance: I, color: D } = z.imageCaption ?? {}, [_, $] = f(void 0), [C, P] = f(null), [w, U] = f(0), [j, H] = f(0), { direction: n, transition: a, controls: e, pagination: i, imageCaption: h, triggers: u } = g, R = Y(a.type), { x: b, y: L } = g.controls.offset, k = (r) => {
|
|
66
67
|
m && m.go(r);
|
|
67
68
|
};
|
|
@@ -329,5 +330,5 @@ function T({ color: g, className: p }) {
|
|
|
329
330
|
return /* @__PURE__ */ t("svg", { viewBox: "0 0 10 18", className: p, children: /* @__PURE__ */ t("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ t("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: g, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
330
331
|
}
|
|
331
332
|
export {
|
|
332
|
-
|
|
333
|
+
Go as ControlSlider
|
|
333
334
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),g=require("react"),L=require("./react-splide.esm-CabaEmHi.js");;/* empty css */const d=require("classnames"),M=require("./RichTextRenderer-DEFXh5o6.js"),s=require("./scalingValue-CSHYgTZl.js"),k=require("./SvgImage-_QN8ngad.js"),U=require("./textStylesToCss-CNN3zZTV.js"),H="ControlSlider-module__wrapper___sHEkd",Y="ControlSlider-module__hoverArrow___A-dOH",K="ControlSlider-module__sliderItem___QQSkR",Q="ControlSlider-module__sliderImage___9hRl-",Z="ControlSlider-module__arrow___05ghY",G="ControlSlider-module__arrowVertical___tBfVN",J="ControlSlider-module__nextArrow___-30Yc",X="ControlSlider-module__arrowInner___aEra3",E="ControlSlider-module__arrowIcon___S4ztF",ee="ControlSlider-module__arrowImg___2dwJW",te="ControlSlider-module__mirror___brd6U",oe="ControlSlider-module__pagination___bicLF",ne="ControlSlider-module__paginationInner___bT-P-",ie="ControlSlider-module__paginationVertical___zYqKw",re="ControlSlider-module__paginationItem___nTRbk",le="ControlSlider-module__dot___p1Qun",ae="ControlSlider-module__activeDot___LHFaj",se="ControlSlider-module__paginationInsideBottom___R3FWn",ce="ControlSlider-module__paginationInsideTop___V-qb-",de="ControlSlider-module__paginationOutsideBottom___14w8D",_e="ControlSlider-module__paginationOutsideTop___SCLqB",me="ControlSlider-module__paginationInsideLeft___yOBRZ",ge="ControlSlider-module__paginationInsideRight___Rtt3o",pe="ControlSlider-module__paginationOutsideLeft___lahaw",ue="ControlSlider-module__paginationOutsideRight___EtuQa",he="ControlSlider-module__imgWrapper___UjEgB",fe="ControlSlider-module__captionBlock___dJ6-j",Ce="ControlSlider-module__captionTextWrapper___HFlpf",Se="ControlSlider-module__captionText___uGBVc",ve="ControlSlider-module__active___WZK4G",we="ControlSlider-module__withPointerEvents___t-18M",Ie="ControlSlider-module__topLeftAlignment___zjnGM",xe="ControlSlider-module__topCenterAlignment___gD1xW",Ae="ControlSlider-module__topRightAlignment___NMapS",ye="ControlSlider-module__middleLeftAlignment___OnUrY",Re="ControlSlider-module__middleCenterAlignment___Tdkl0",be="ControlSlider-module__middleRightAlignment___wEbfX",je="ControlSlider-module__bottomLeftAlignment___cTP2-",Le="ControlSlider-module__bottomCenterAlignment___c54fB",ke="ControlSlider-module__bottomRightAlignment___kEwrz",Ve="ControlSlider-module__clickOverlay___DZA28",Te="ControlSlider-module__contain___pLyq7",Oe="ControlSlider-module__cover___KdDat",e={wrapper:H,hoverArrow:Y,sliderItem:K,sliderImage:Q,arrow:Z,arrowVertical:G,nextArrow:J,arrowInner:X,arrowIcon:E,arrowImg:ee,mirror:te,pagination:oe,paginationInner:ne,paginationVertical:ie,paginationItem:re,dot:le,activeDot:ae,paginationInsideBottom:se,paginationInsideTop:ce,paginationOutsideBottom:de,paginationOutsideTop:_e,paginationInsideLeft:me,paginationInsideRight:ge,paginationOutsideLeft:pe,paginationOutsideRight:ue,imgWrapper:he,captionBlock:fe,captionTextWrapper:Ce,captionText:Se,active:ve,withPointerEvents:we,topLeftAlignment:Ie,topCenterAlignment:xe,topRightAlignment:Ae,middleLeftAlignment:ye,middleCenterAlignment:Re,middleRightAlignment:be,bottomLeftAlignment:je,bottomCenterAlignment:Le,bottomRightAlignment:ke,clickOverlay:Ve,contain:Te,cover:Oe},Ne={"top-left":e.topLeftAlignment,"top-center":e.topCenterAlignment,"top-right":e.topRightAlignment,"middle-left":e.middleLeftAlignment,"middle-center":e.middleCenterAlignment,"middle-right":e.middleRightAlignment,"bottom-left":e.bottomLeftAlignment,"bottom-center":e.bottomCenterAlignment,"bottom-right":e.bottomRightAlignment};function ze({settings:p,content:u,styles:T,isEditor:l}){const[_,O]=g.useState(null),{widthSettings:I,fontSettings:v,letterSpacing:N,textAlign:z,wordSpacing:B,fontSizeLineHeight:x,textAppearance:w,color:W}=T.imageCaption??{},[m,F]=g.useState(void 0),[C,q]=g.useState(null),[S,D]=g.useState(0),[$,P]=g.useState(0),{direction:n,transition:a,controls:o,pagination:i,imageCaption:h,triggers:f}=p,A=g.useRef(a.type),{x:y,y:R}=p.controls.offset,b=r=>{_&&_.go(r)};return g.useEffect(()=>{if(!C)return;const r=new ResizeObserver(c=>{if(!_)return;const[j]=c;F({width:Math.round(j.contentRect.width),height:Math.round(j.contentRect.height)})});return r.observe(C),()=>r.unobserve(C)},[C]),g.useEffect(()=>{!_||A.current===a.type||(P(r=>r+1),A.current=a.type)},[a.type]),t.jsx("div",{className:d(e.wrapper,{[e.editor]:l}),ref:q,children:t.jsxs("div",{className:e.sliderInner,style:{width:m?m.width:"100%",height:m?m.height:"100%",backgroundColor:a.backgroundColor&&a.type==="fade in"?a.backgroundColor:"transparent"},children:[p.imageCaption.isActive&&t.jsx("div",{className:d(e.captionBlock),children:t.jsx("div",{className:e.captionTextWrapper,children:u.map((r,c)=>t.jsx("div",{className:d(e.captionText,Ne[h.alignment],{[e.withPointerEvents]:c===S&&l,[e.active]:c===S}),style:{fontFamily:U.normalizeFontFamilyCssValue(v.fontFamily),fontWeight:v.fontWeight,fontStyle:v.fontStyle,width:I.sizing==="auto"?"max-content":s.scalingValue(I.width,l),letterSpacing:s.scalingValue(N,l),wordSpacing:s.scalingValue(B,l),textAlign:z,fontSize:s.scalingValue(x.fontSize,l),lineHeight:s.scalingValue(x.lineHeight,l),textTransform:w.textTransform??"none",textDecoration:w.textDecoration??"none",fontVariant:w.fontVariant??"normal",color:W,transitionDuration:a.duration?`${Math.round(parseInt(a.duration)/2)}ms`:"500ms"},children:t.jsx("div",{"data-styles":"imageCaption",className:e.captionTextInner,style:{"--link-hover-color":h.linkHoverColor,"--link-color":h.linkColor,position:"relative",top:s.scalingValue(h.offset.y,l),left:s.scalingValue(h.offset.x,l)},children:t.jsx(M.RichTextRenderer,{content:r.imageCaption})})},c))})}),t.jsx(L.Splide2,{onMove:r=>{D(r.index)},ref:O,options:{arrows:!1,speed:a.duration?parseInt(a.duration):500,autoplay:f.autoPlay!==null,...f.autoPlay!==null&&{interval:parseInt(f.autoPlay)*1e3},direction:n==="horiz"||a.type==="fade in"?"ltr":"ttb",pagination:!1,drag:f.triggersList.drag,perPage:1,width:m?m.width:"100%",height:m?m.height:"100%",type:a.type==="fade in"?"fade":"loop",rewind:!0},children:u.map((r,c)=>t.jsx(L.SplideSlide,{children:t.jsx("div",{className:e.sliderItem,children:t.jsx("div",{className:e.imgWrapper,children:t.jsx("img",{className:d(e.sliderImage,{[e.contain]:r.image.objectFit==="contain",[e.cover]:r.image.objectFit==="cover"}),src:r.image.assetId,alt:r.image.name??""})})})},c))},$),o.isActive&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:d(e.arrow,{[e.arrowVertical]:n==="vert",[e.hoverArrow]:o.show==="on hover"}),style:{color:o.color,"--arrow-hover-color":o.hover},children:t.jsxs("button",{onClick:()=>{b("-1")},className:e.arrowInner,style:{transform:`translate(${s.scalingValue(y,l)}, ${s.scalingValue(R*(n==="horiz"?1:-1),l)}) scale(${p.controls.scale/100}) rotate(${n==="horiz"?"0deg":"90deg"})`},children:[o.arrowsImgUrl&&t.jsx(k.SvgImage,{url:o.arrowsImgUrl,fill:o.color,hoverFill:o.hover,className:d(e.arrowImg,e.mirror)}),!o.arrowsImgUrl&&t.jsx(V,{color:o.color,className:d(e.arrowIcon,e.arrowImg,e.mirror)})]})}),t.jsx("div",{className:d(e.arrow,e.nextArrow,{[e.arrowVertical]:n==="vert",[e.hoverArrow]:o.show==="on hover"}),style:{color:o.color,"--arrow-hover-color":o.hover},children:t.jsxs("button",{className:e.arrowInner,onClick:()=>b("+1"),style:{transform:`translate(${s.scalingValue(y*(n==="horiz"?-1:1),l)}, ${s.scalingValue(R,l)}) scale(${p.controls.scale/100}) rotate(${n==="horiz"?"0deg":"90deg"})`},children:[o.arrowsImgUrl&&t.jsx(k.SvgImage,{url:o.arrowsImgUrl,fill:o.color,hoverFill:o.hover,className:e.arrowImg}),!o.arrowsImgUrl&&t.jsx(V,{color:o.color,className:d(e.arrowIcon,e.arrowImg)})]})})]}),f.triggersList.click&&t.jsx("div",{className:e.clickOverlay,onClick:()=>{_&&_.go("+1")}}),i.isActive&&t.jsx("div",{className:d(e.pagination,{[e.paginationInsideBottom]:i.position==="inside-1"&&n==="horiz",[e.paginationInsideTop]:i.position==="inside-2"&&n==="horiz",[e.paginationOutsideBottom]:i.position==="outside-1"&&n==="horiz",[e.paginationOutsideTop]:i.position==="outside-2"&&n==="horiz",[e.paginationInsideLeft]:i.position==="inside-1"&&n==="vert",[e.paginationInsideRight]:i.position==="inside-2"&&n==="vert",[e.paginationOutsideLeft]:i.position==="outside-1"&&n==="vert",[e.paginationOutsideRight]:i.position==="outside-2"&&n==="vert",[e.paginationVertical]:n==="vert"}),children:t.jsx("div",{className:e.paginationInner,style:{backgroundColor:i.colors[2],transform:`scale(${i.scale/100}) translate(${s.scalingValue(i.offset.x,l)}, ${s.scalingValue(i.offset.y,l)}) rotate(${n==="horiz"?"0deg":"90deg"})`},children:u.map((r,c)=>t.jsx("button",{onClick:()=>{_&&_.go(c)},className:d(e.paginationItem),children:t.jsx("div",{className:d(e.dot,{[e.activeDot]:c===S}),style:{backgroundColor:c===S?i.colors[0]:i.colors[1],"--pagination-hover-color":i.hover}})},c))})})]})})}function V({color:p,className:u}){return t.jsx("svg",{viewBox:"0 0 10 18",className:u,children:t.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:t.jsx("path",{d:"M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z",id:"Shape-Copy",fill:p,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}exports.ControlSlider=ze;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),m=require("react"),G=require("classnames"),p=require("./scalingValue-CSHYgTZl.js"),Gt=require("./buildColorVars-CE2D5cQV.js"),Kt=require("./useScopedStyles-Bf6yohVQ.js"),f=require("./textStylesToCss-CNN3zZTV.js"),Yt=require("./SvgImage-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),m=require("react"),G=require("classnames"),p=require("./scalingValue-CSHYgTZl.js"),Gt=require("./buildColorVars-CE2D5cQV.js"),Kt=require("./useScopedStyles-Bf6yohVQ.js"),f=require("./textStylesToCss-CNN3zZTV.js"),Yt=require("./SvgImage-_QN8ngad.js"),Zt=require("./RichTextRenderer-DEFXh5o6.js"),K=300,h=.004,Jt={questionColor:"question-color",answerColor:"answer-color",dividerColor:"divider-color",iconColor:"icon-color",questionHoverColor:"question-hover-color",iconHoverColor:"icon-hover-color",iconActiveColor:"icon-active-color",dividerHoverColor:"divider-hover-color"},Ut=["hover","focus","filled","success","error"];function Xt(t){return`calc(var(--cntrl-article-width, 100vw) * ${t/1440})`}function Y(t,r,n,s){return r!==void 0&&r<(t??.01)?`${n} ${s}`:n}function Z(t,r,n,s){const l=t??.01;return r===void 0||r>=l?{}:{[`--${n}-text-leading-gap`]:p.scalingValue((l-r)/2,s)}}function Et(t){return`
|
|
2
2
|
.${t}-wrapper {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
display: flex;
|
|
@@ -5,7 +5,7 @@ import { s as $ } from "./scalingValue-C9JH5L6O.mjs";
|
|
|
5
5
|
import { b as Xt } from "./buildColorVars-CLyWQm5K.mjs";
|
|
6
6
|
import { u as Et } from "./useScopedStyles-DhBG3557.mjs";
|
|
7
7
|
import { o as J, t as U } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
8
|
-
import { S as Pt } from "./SvgImage-
|
|
8
|
+
import { S as Pt } from "./SvgImage-CwRq9-ec.mjs";
|
|
9
9
|
import { R as to } from "./RichTextRenderer-D52Xto59.mjs";
|
|
10
10
|
const X = 300, m = 4e-3, oo = {
|
|
11
11
|
questionColor: "question-color",
|