@gemboss/ui 0.65.0 → 0.66.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/CHANGELOG.md +165 -1
- package/README.md +24 -0
- package/catalog/editor.html +21 -13
- package/catalog/index.html +4 -4
- package/gemboss-ui.css +3 -3
- package/package.json +6 -1
- package/parts/components.css +2 -2
- package/parts/core.css +1 -1
- package/parts/shell.css +1 -1
- package/src/auth.tsx +1 -15
- package/src/confirm-buttons.ts +35 -0
- package/src/confirm-dialog.css +1 -0
- package/src/confirm-dialog.tsx +124 -0
- package/src/create-shell.css +1 -1
- package/src/create-shell.tsx +7 -4
- package/src/dialog.css +1 -0
- package/src/dialog.tsx +46 -7
- package/src/editor/controls.tsx +54 -17
- package/src/editor/field-control.tsx +4 -1
- package/src/editor/field-frame.tsx +20 -10
- package/src/editor/field-spec.ts +3 -2
- package/src/editor/index.ts +5 -3
- package/src/editor/label-side.ts +9 -3
- package/src/editor/panel.tsx +39 -12
- package/src/editor/secret-field.tsx +116 -0
- package/src/editor-color.css +1 -1
- package/src/editor-plain.js +1 -1
- package/src/editor.css +1 -1
- package/src/eye-icon.tsx +14 -0
- package/src/gemboss-field.css +1 -1
- package/src/icons-plain.js +1 -0
- package/src/icons.tsx +9 -0
- package/src/index.ts +4 -1
- package/src/kit-plain.css +1 -1
- package/src/list-page.css +1 -1
- package/src/list-page.tsx +94 -51
- package/src/list-toolbar.css +1 -0
- package/src/list-toolbar.tsx +85 -0
- package/src/menu-keys.ts +3 -1
- package/src/search-dialog.tsx +4 -1
- package/src/segmented.tsx +21 -5
- package/src/service-switcher.tsx +2 -2
- package/src/settings-dialog.tsx +2 -2
- package/src/ui.css +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,171 @@
|
|
|
2
2
|
|
|
3
3
|
Versions up to 0.9.0 are described in the README, each in the section that introduced it.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 0.66.0 (09/11/2026)
|
|
6
|
+
|
|
7
|
+
**The icon set for surfaces without React: `@gemboss/ui/icons-plain.js`** (09/11/2026; GemNews' side rail and widget panel are plain
|
|
8
|
+
JavaScript, and a hand-copied path drifts). A classic script that adds to `globalThis.gembossUI`, like every other `*-plain.js`.
|
|
9
|
+
- `gembossUI.icon(name, { size, title })` returns the SVG `<Icon name size title>` renders (fill on the `<g>`, `aria-hidden` unless
|
|
10
|
+
titled, then `role="img"` + `<title>`, escaped as React escapes it). `size` as `<Icon>` takes it. An unknown name returns "" and
|
|
11
|
+
nothing throws, `null` options included.
|
|
12
|
+
- `gembossUI.ICON_NAMES`: the set's names, in icons.tsx order.
|
|
13
|
+
- Its `ICONS` block is written the way service-switcher-plain.js's and team-chat-plain.js's are: by `icons-plain.test.ts`, from
|
|
14
|
+
`renderToStaticMarkup(<Icon>)` (`UPDATE_PLAIN_CATALOGUE=1`). The test is red when the block and icons.tsx differ, when any icon
|
|
15
|
+
(plain, sized in px or a CSS length, titled with quotes and markup) differs from `<Icon>`, or when the package stops exporting or
|
|
16
|
+
shipping the file; negative controls move a path, hand-edit the file and swap the apostrophe escape.
|
|
17
|
+
- New icons, drawn on the same 20px grid with the 1.5px stroke: `chevronUp`, `bookmark`, `trophy`, `flame`, `grip`, `timer` (an
|
|
18
|
+
hourglass), `target`.
|
|
19
|
+
- Weight ceiling: `packages/ui/src/icons-plain.js` in weight-budget.json.
|
|
20
|
+
|
|
21
|
+
**A colour row is ONE field, and its hex is never cut** (09/11/2026; §9.1, measured on prod in Theme editor › Global styles at 1366:
|
|
22
|
+
a 330px panel, the label-beside row's 174px control column left the hex box 62px between the swatch and a 64px % box, and 8 of 9 hex
|
|
23
|
+
values were cut, "#6b7280" scrollWidth 80 in 60).
|
|
24
|
+
- `ColorControl`: the hex and its opacity are one field, as Figma and Shopify draw it: `[swatch] [#6b7280 │ 100%]`. The group is the
|
|
25
|
+
kit's field box (`gemboss-field gemboss-field--group gemboss-ei-color-group`); the text box (in `.gemboss-ei-color-box`, under the
|
|
26
|
+
theme colour's name) and the % box (`data-alpha`) are its `gemboss-field__bare` parts, a hairline between them. Each part keeps its
|
|
27
|
+
name (the label's; "… opacity"). Markup change: a host that styled `.gemboss-ei-color > .gemboss-ei-inp` or read the text box as
|
|
28
|
+
`gemboss-field` reads the group now.
|
|
29
|
+
- editor-color.css (ONE FIELD): the group starts from room for the widest 7-digit hex and "100%" in its own face (`13.5ch + 19px`:
|
|
30
|
+
"#DDDDDD" 8.8ch in Arial, "100%" 4.7ch in Verdana), lanes 8 · 2 and 3 · 3px, so swatch, hex and % share one line from a 330px panel
|
|
31
|
+
up and at a phone's 390. Where the line is shorter (a panel under ~320px, a phone's 320, a 44px swatch under a finger at 330) the field
|
|
32
|
+
goes under the swatch, the column wide: never cut. A field with no % part (a theme colour) needs room for its hex part only. Focus:
|
|
33
|
+
the group's ring, and a line under the part that has it. 44px tall under a finger at any width, and the % part at least 44px wide there in any face (its "100%" room is 41px in a narrow face at 13px: Liberation Sans in CI), counted in the group's room. The two boxes' widths (64 / 72px % box,
|
|
34
|
+
96px text box at a phone's width) are gone.
|
|
35
|
+
- gemboss-field.css: a field group's disabled look and its hover guard read any `gemboss-field__bare` part inside it, not only a direct
|
|
36
|
+
child (`:has(.gemboss-field__bare:disabled)`): the colour field's hex part sits in its own box, and an off field with no % part
|
|
37
|
+
still showed the hover border.
|
|
38
|
+
- editor-plain.js: the % part it adds once a colour is typed into a row drawn with none is the group's last part, with the text box's
|
|
39
|
+
classes. It went right after the text, inside the text box, and cut the hex. Same gzip weight as before.
|
|
40
|
+
- Chromium test `editor-color-hex-never-cut-browser.test.tsx`: panels 280 / 330 / 400 at a fine pointer (one line at 330 and 400),
|
|
41
|
+
a phone's 390 and 320, 330 under a finger, focus and names, the plain page, each in the system face, a narrow one (Arial / Liberation
|
|
42
|
+
Sans) and a wide one (Verdana / DejaVu Sans), so macOS and CI measure the same widths; main's markup and CSS, and main's insertion
|
|
43
|
+
(on "#DDDDDD", the widest hex), as its negative controls.
|
|
44
|
+
|
|
45
|
+
**`ListToolbar`: the row over a list** (09/11/2026; Chris 08/11: one control set, audit row 8). A search that grows to fill the row
|
|
46
|
+
and, at its right, the list's choices as selects (filters, then sort), its view switch and what acts on the same list (`tools`). One
|
|
47
|
+
row; on a phone the search keeps its line and the rest wraps under it. Built from the kit's own parts: the one text field
|
|
48
|
+
(`gemboss-field--group` holding the search glyph, the count while there is a search, and a clear that keeps the focus in the field;
|
|
49
|
+
the browser's own ✕ is hidden), `.ui-select`, `IconSegmented`. Its own entry, `list-toolbar.css` (0.4 KB gzip: the row's layout and
|
|
50
|
+
the clear). The GemBoss admin's 22 list screens draw it through components/shell/ListToolbar; the toolkits laid out rows of their
|
|
51
|
+
own (`gc-filters`, `cp-toolbar`) and can move onto it. list-toolbar-browser.test.tsx (1280 mouse, 390 finger, a negative control).
|
|
52
|
+
|
|
53
|
+
**An embedded editor's top bar is no longer under the app frame's nav on a phone** (09/11/2026). `main:has(.gemboss-editor)`
|
|
54
|
+
clipped with `overflow: hidden`, which made `main` the scroll container of the app frame's sticky nav: on a phone the nav's `top: 56px`
|
|
55
|
+
counted from `main` (already at 56) and drew 56px low, over the embedded editor's top bar (GemSeel › Cart box on prod: a tap on Save
|
|
56
|
+
landed on a nav tab). `overflow: clip` cuts the same overflow without being a scroll container. Chromium test
|
|
57
|
+
`embedded-editor-under-sticky-nav-browser.test.ts`, with `hidden` restored as its negative control.
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
- `FieldFrame` / `PartsFrame` `labels` (`FrameClusterLabels`): a host's own name for a cluster where the kit's (Look · Layout · Visibility ·
|
|
62
|
+
Code) would say the wrong thing; the plugin kernel's settings name theirs Look and Behavior (one control set 08/11/2026).
|
|
63
|
+
|
|
64
|
+
**Global styles in the settings frame** (09/11/2026; one settings frame: every settings surface in the element panel's frame).
|
|
65
|
+
- `FieldFrame` `after`: the host's parts after every one of the schema's groups in Look, its shared groups' chips too (the admin's Global
|
|
66
|
+
styles: its form set, product cards and bundle picker after its colours and type). Searched as every part is. A Look of `after` parts
|
|
67
|
+
only is drawn.
|
|
68
|
+
- A part's search skips what sits under `[data-search-skip]` (a widget's preview inside a part: its headings and labels are no setting's).
|
|
69
|
+
- Removed: `.gemboss-bundle-look .gemboss-ei-body` 44px rules (the admin's bundle form is a group of the settings frame, its rows the kit's
|
|
70
|
+
sizes: 44px under a finger).
|
|
71
|
+
|
|
72
|
+
**Checkbox: a yes the seller gives** (09/11/2026; one control set: the plain kit's `.ui-check` had no React control, and the admin, which
|
|
73
|
+
cannot load kit-plain.css, drew five of its own in its publish review).
|
|
74
|
+
- `Checkbox` (`@gemboss/ui/editor`): a box and its own words in one label (`label.ui-check.gemboss-ei-check`), one target, `describedBy`,
|
|
75
|
+
off with `disabled` and its `why` in the tooltip. For a consent or a pick in a list; a setting's On / Off stays FieldControl's `toggle`.
|
|
76
|
+
- ONE checkbox look: `.gemboss-ei-check` / `.gemboss-ei-checkbox` (editor.css) carry `.ui-check`'s numbers (a 44px target at every width,
|
|
77
|
+
an 18px box in the kit's accent, the words at the host's size, faded and not-allowed while off), for a host without kit-plain.css; a kit
|
|
78
|
+
test holds the two to the same numbers.
|
|
79
|
+
|
|
80
|
+
**SecretField: a secret the seller gives** (09/11/2026; one control set: every admin surface that takes a token or a key drew its own
|
|
81
|
+
password box, Polaris' or a raw input, each with its own words for "it is stored").
|
|
82
|
+
- `SecretField` (`@gemboss/ui/editor`): the masked box (autocomplete off, no spell check, 1Password and LastPass told to stay out; a
|
|
83
|
+
browser's own password manager may still offer to save it), Show / Hide for checking a paste (masked again when emptied), Paste (the
|
|
84
|
+
clipboard, never over what was typed meanwhile, with a line saying ⌘V / Ctrl+V when the browser refuses it), Enter for the host's submit.
|
|
85
|
+
Copy, cut and a drag out do nothing: a secret goes in, it does not come back out. Stored (`saved`, with its `at`), the box is gone: "Saved,
|
|
86
|
+
ends in …" with at most the last four characters the host hands (`secretTail`), never the secret, and Replace opens an empty box (Cancel
|
|
87
|
+
closes it; `replacing` controlled or not, `onReplacing`).
|
|
88
|
+
- `EyeIcon` is one module (eye-icon.tsx), drawn by PasswordField and SecretField.
|
|
89
|
+
- `LABEL_SIDE.secret` (beside): its box and buttons in the control column, the buttons under the box where the column is narrow.
|
|
90
|
+
|
|
91
|
+
- `Menu` (React): a click outside closes it in the capture phase (09/11/2026), so a control that stops its own click (the funnel
|
|
92
|
+
board's offer cards and rule pills) no longer leaves the menu floating over what it opened. menu-browser.test.ts 24, with the
|
|
93
|
+
bubble-phase listener as its negative control. The plain menus (kit-plain.js `initMenus`) still listen in the bubble phase:
|
|
94
|
+
that listener also closes a chosen row's menu after the row's own handler, so it moves on its own.
|
|
95
|
+
- `Segmented`: an option with an `href` is a link (`linkAs` for the app's Link), the one on `aria-current="page"` (ui.css already
|
|
96
|
+
draws `.ui-seg a[aria-current]`), and its press is the link's own, so a filter that is a URL keeps a new tab and a copied link;
|
|
97
|
+
`onChange` is optional for a group of links (09/11/2026, Analytics' device). segmented-browser.test.tsx: the links, and `scroll`
|
|
98
|
+
at 320 in a flex row (the group scrolls, the last option reachable whole) with its negative control (without it the last shows
|
|
99
|
+
5 of its 64px).
|
|
100
|
+
|
|
101
|
+
**`PanelTabs` is the admin's one tab row** (09/11/2026; Chris 08/11: one control set). The funnel inspector and the workflow panel
|
|
102
|
+
drew their own tablists (two looks, one with no keys); both are `PanelTabs` now, and the admin's gate `one-tab-row.test.ts` names the
|
|
103
|
+
rows not moved yet. `PanelTabs` with roving focus now takes Home and End (the first and the last tab), beside ← → (the WAI-ARIA tabs
|
|
104
|
+
pattern).
|
|
105
|
+
For the offer editor's Offer · Who & when · Design (UI book OF-1, moved the same day), an inspector row's tab takes `hint` (a muted
|
|
106
|
+
second line, the tab's description rather than part of its name; the row becomes a size container and under 300px only the labels
|
|
107
|
+
stay; every tab of such a row is drawn in the same column), `tabId` (its own id, for the panel's `aria-labelledby`) and `title` (a
|
|
108
|
+
tooltip); the row takes `flush` (no margin of its own, in a card outside the editor's column). editor.css 8.7 KB gzip of 9.0.
|
|
109
|
+
|
|
110
|
+
**Every label beside its control in the element panel** (09/11/2026; Chris 04–08/11: every setting that fits one row has its label beside
|
|
111
|
+
it, decided by one table). The label-side table and `Field`:
|
|
112
|
+
- `LABEL_SIDE.screens` is `beside`: Screens is three device pictures, each named in its tooltip and for a screen reader, as a vertical
|
|
113
|
+
alignment's pictures are (label-side audit decision E). Its three words did not fit the control column, so it was the last one-row
|
|
114
|
+
choice with its label above.
|
|
115
|
+
- `LABEL_SIDE.note` (`above`): a sentence where a control would be (a value filled from the section's copy, a product's metafield, a
|
|
116
|
+
list's content source; a setting edited in another place). The admin's gate reads a labelled field that holds words and no control as one.
|
|
117
|
+
- `Field` `labelId`: the label's own id, for a control that is a group of boxes it names (`aria-labelledby`).
|
|
118
|
+
- `Field` `onBlur`: the focus leaving a part of the field, after the part's own blur (a text box saved when the focus leaves its toolbar,
|
|
119
|
+
chips and link box too).
|
|
120
|
+
|
|
121
|
+
**A bar with no centre is one row and keeps its name** (08/11/2026). `EditorTopbar` with no `center` (a plugin's editor: Cart box,
|
|
122
|
+
Banner, a popup) borrowed the page editor's narrow rows: at 390 it drew ← on one row, Save alone on a second and an empty third, 133px
|
|
123
|
+
tall, with its name hidden below 1200px. Matching on the empty centre (`editor.css`), it is now one row at every width with the name
|
|
124
|
+
ellipsised and Save at the right; every bar with a centre (page, section, theme editors) is unchanged. Chromium test
|
|
125
|
+
`editor-topbar-no-centre-browser.test.ts` with a negative control on the stylesheet without the block.
|
|
126
|
+
|
|
127
|
+
- `FieldSpec` `text`: `inputType: "date"`, the browser's own date picker (value YYYY-MM-DD), for a day a form asks for (GemSeel's export
|
|
128
|
+
dates, one control set 08/11/2026). A `url`, `search` or `date` box sets `autocomplete="off"`: the browser's remembered entries would cover
|
|
129
|
+
the results, the picker or the buttons under it.
|
|
130
|
+
|
|
131
|
+
**PageActions: a page's header actions, as ListPage draws them, on any page** (08/11/2026; Chris 08/11: one control set, the same
|
|
132
|
+
component on every surface). The admin's Store hub is a Polaris Page, not a ListPage, and drew its own copy of the fold.
|
|
133
|
+
Added
|
|
134
|
+
- `PageActions` (`primaryAction` or `primary`, `secondaryActions`, `moreActions`, `actionGroups`, `linkAs`): the header actions
|
|
135
|
+
ListPage draws, now its own component, and ListPage draws them with it (the same markup and classes). The first two secondary
|
|
136
|
+
actions stand from a 560px column, all of them are behind one ⋯ below it and below 768px; `moreActions` are behind ⋯ at every
|
|
137
|
+
width; the primary stands last (`primaryAction` a node, or `primary` an action drawn dark with the secondary ones' rules: off with
|
|
138
|
+
its reason, busy, a link). With no secondary action there is one ⋯, not a wide and a narrow one.
|
|
139
|
+
- The column is the nearest `ui-page-column` query container. ListPage's page is one (`container: ui-list-page ui-page-column`,
|
|
140
|
+
`ui-list-page` kept for the admin's own queries); another page names its column so.
|
|
141
|
+
- `ListPageAction.busy`: off, with these words in place of its own ("Reading your site…"), on the button (aria-busy) and its ⋯ row.
|
|
142
|
+
- The admin's Store header is PageActions since this (gemboss #6961), its copy gone. Its Journal's Share report moves from before
|
|
143
|
+
⋯ to after it (the primary, last, as every kit and Polaris header).
|
|
144
|
+
- The actions' words and fill variables are on `.ui-list-page__actions` too, so they read the same outside a ListPage.
|
|
145
|
+
|
|
146
|
+
**ConfirmDialog: the question before an act the server does, for every app** (09/11/2026; Chris 08/11: one control set). It was the
|
|
147
|
+
admin's own, drawn in a Polaris Modal: a portal under the browser's top layer, so a confirm asked from a kit Sheet or Dialog opened behind
|
|
148
|
+
it, and seven admin screens drew a red button of their own in a kit Dialog instead. Now it is the kit's Dialog, so it opens over anything.
|
|
149
|
+
Added
|
|
150
|
+
- `ConfirmDialog` (`open`, `title`, `action`, `destructive`, `alternative`, `cancelLabel`, `busyCloseLabel`, `disabled`, `busy`, `error`,
|
|
151
|
+
`canRetry`, `wide`, `onConfirm`, `onClose`): the admin's API and rules unchanged. It stays open while the server answers (Escape, ✕, the
|
|
152
|
+
backdrop and Cancel wait too, unless `busyCloseLabel` names a way out for a long batch), says a refusal in place with Try again, closes
|
|
153
|
+
when the caller turns `open` false, and calls `onClose` only for a person's close. Its body is mounted only while it is shown, as the
|
|
154
|
+
Polaris Modal's was. An off button is `aria-disabled` and keeps the focus in the question; the focus starts on Cancel. `wide`: 620
|
|
155
|
+
instead of 460, for a question that lists what goes. Its own entry, `confirm-dialog.css`: its sentence and its busy ring.
|
|
156
|
+
- `useConfirmAsk<T>()`: one question about one thing (a row's Delete): `ask(item)`, `confirm(act)` (busy while it runs; a refusal the
|
|
157
|
+
act returns stays in the question; null closes it), `close`, and the item kept after it closes.
|
|
158
|
+
- `Dialog` `dismissible` (default true): false while a question waits. Escape (anywhere, including a second press, which Chrome lets
|
|
159
|
+
through a prevented `cancel`), ✕ and the backdrop do nothing.
|
|
160
|
+
- `dialog.css`, imported by Dialog (so by Sheet, ConfirmDialog, SettingsDialog, the service switcher and SearchDialog too): the native
|
|
161
|
+
popup's frame (no browser padding, the .5 scrim, the body scrolling between a fixed head and foot). kit-plain.css keeps the same for a
|
|
162
|
+
plain-HTML page; a surface that loads ui.css without it (the admin) stood every kit Dialog in the browser's 1em padding and 10% scrim.
|
|
163
|
+
Changed
|
|
164
|
+
- `.ui-modal--wide` and the destructive button (`ui-btn--critical`, `ui-btn--primary ui-btn--critical`) move from kit-plain.css to
|
|
165
|
+
ui.css: the admin's red buttons drew as plain ones (a confirm's Delete, the cart canvas's Throw it away).
|
|
166
|
+
- Tab belongs to the open kit popup (`holdTab`, in Dialog, Sheet, SettingsDialog, the service switcher and SearchDialog): a dialog of the
|
|
167
|
+
page it was opened from (Polaris' Modal, the admin's Modal) no longer hears a Tab from the popup's own content. Their traps prevented
|
|
168
|
+
the key at their last control and focused their first, which the browser refuses under a modal dialog, so Tab was stuck on a kit
|
|
169
|
+
popup's last button. A dialog drawn inside the popup keeps its own Tab.
|
|
6
170
|
|
|
7
171
|
## 0.65.0 (08/11/2026)
|
|
8
172
|
|
package/README.md
CHANGED
|
@@ -87,6 +87,8 @@ its CSS out of the build with it (`sideEffects`). gzip of the minified file, as
|
|
|
87
87
|
| minichart | `@gemboss/ui/minichart.css` | `packages/ui/src/minichart.css` | `Sparkline`, `ShareBar` (0.30.0) | 0.5 KB | those components import it |
|
|
88
88
|
| setup-guide | `@gemboss/ui/setup-guide.css` | `packages/ui/src/setup-guide.css` | `SetupGuide` (0.30.0) | 0.9 KB | `SetupGuide` imports it |
|
|
89
89
|
| reader-dialog | `@gemboss/ui/reader-dialog.css` | `packages/ui/src/reader-dialog.css` | `ReaderDialog`: the popup sized for reading a document (0.41.0) | 0.4 KB | `ReaderDialog` imports it |
|
|
90
|
+
| confirm-dialog | `@gemboss/ui/confirm-dialog.css` | `packages/ui/src/confirm-dialog.css` | `ConfirmDialog`: the question before an act the server does, its sentence and its busy ring (09/11/2026, unreleased) | 0.3 KB | `ConfirmDialog` imports it |
|
|
91
|
+
| dialog | `@gemboss/ui/dialog.css` | `packages/ui/src/dialog.css` | `Dialog` and everything drawn in it or through `useModalDialog` (Sheet, ConfirmDialog, SettingsDialog, the service switcher, SearchDialog): the native popup's frame where ui.css is loaded without kit-plain.css (09/11/2026, unreleased) | 0.2 KB | `Dialog` imports it |
|
|
90
92
|
| service-switcher | `@gemboss/ui/service-switcher.css` | `packages/ui/src/service-switcher.css` | `ServiceSwitcher` and `Switcher`: the button after the brand and its panel (0.36.0; any list, illustrated tiles 0.40.0) | 2.2 KB | `ServiceSwitcher` imports it, and `BrandLockup` through it (README "ServiceSwitcher") |
|
|
91
93
|
| language-switcher | `@gemboss/ui/language-switcher.css` | `packages/ui/src/language-switcher.css` | `LanguageSwitcher`: the globe + "EN" / "VI" / "中" and the menu of languages (21/10/2026; works without the core) | 1.1 KB | `LanguageSwitcher` imports it; a plain-HTML page links it with `language-switcher-plain.js` (README "LanguageSwitcher") |
|
|
92
94
|
| team-chat | `@gemboss/ui/team-chat.css` | `packages/ui/src/team-chat.css` | the team chat layer (20/10/2026): rail, messages, composer, thread and people panels, the screen's layout | 3.6 KB | `TeamChat` and its pieces import it (with `Avatar`'s portal.css and `Reactions`' reactions.css); a plain-HTML page links it (README "The team chat layer") |
|
|
@@ -1693,6 +1695,27 @@ import { FLEET_LANGUAGES, LanguageSwitcher, matchLanguage } from "@gemboss/ui";
|
|
|
1693
1695
|
| CSS | `language-switcher.css`, its own entry, 1.1 KB gzip, imported by the component. The menu's base rules (the core's `ui-menu` ones) are repeated there with the core's values, so a page that links only this file (gemboss.ai, whose pages the core would reset; GemNews's extension) draws the same menu. The surface and the box at zero specificity (`:where`); the rows, the hint and the separator at ONE class (0,1,0, since 22/10/2026), the core's own weight: an app's `button { font: inherit }` (0,0,1) cannot make them 16px, and one class of the app's (`.gb-lang__item { … }` after it, `.my-bar .gb-lang__item`) restyles them on purpose (the gap and corners take two: `.gb-lang__item.ui-menu__item`, so app-shell.css's unset tokens on a page without the core cannot zero the gap). Tokens, so `data-theme="dark"` follows, each with its light value as the fallback: no core, no `gemboss-tokens.css`, still right (light) |
|
|
1694
1696
|
| The topbar | AppShell's phone bar (☰, brand, search, toggle, switcher, account chip) fits it at 320 / 360 / 390, between ThemeToggle and the chip, no horizontal scroll. A portal `Topbar` with `TopbarNav` does NOT have that room (GemFeedback: brand, tab menu, search, theme, Sign in, no room for a 55px button at 320–390, and at 601–687 the tabs ran under it): there the switcher goes in the folded tab menu, `TopbarNav foot`, and its end-slot copy wears `gb-topnav-unfolded` (README "Public portal pieces" › TopbarNav) |
|
|
1695
1697
|
|
|
1698
|
+
### Plain HTML: icons, `@gemboss/ui/icons-plain.js` (09/11/2026)
|
|
1699
|
+
|
|
1700
|
+
The `Icon` set for a page with no React (GemNews' side rail and widget panel). A classic script that ADDS to `gembossUI`, like every
|
|
1701
|
+
other `*-plain.js`: after `kit-plain.js` when the page has it, on its own when it does not; by `src`, or inlined. Never copy a path into
|
|
1702
|
+
a surface: it stops following the set.
|
|
1703
|
+
|
|
1704
|
+
```html
|
|
1705
|
+
<script src="ui/icons-plain.js"></script> <!-- GemNews copies it from node_modules like language-switcher.css -->
|
|
1706
|
+
<script>
|
|
1707
|
+
button.innerHTML = gembossUI.icon("search") + "<span>Search</span>"; // decorative: aria-hidden="true"
|
|
1708
|
+
mark.innerHTML = gembossUI.icon("bookmark", { size: 16, title: "Saved" }); // named: role="img" + <title>
|
|
1709
|
+
</script>
|
|
1710
|
+
```
|
|
1711
|
+
|
|
1712
|
+
| | |
|
|
1713
|
+
| --- | --- |
|
|
1714
|
+
| `gembossUI.icon(name, { size, title })` | the SVG `<Icon name size title>` renders (20px grid, 1.5px stroke, fill on the `<g>`; empty shapes self-closed). `size` as `<Icon>` takes it: 20 when absent, else as given (px or a CSS length). Unknown name: `""`; nothing throws, `null` options included |
|
|
1715
|
+
| `gembossUI.ICON_NAMES` | every name, in icons.tsx order |
|
|
1716
|
+
| Where the shapes come from | the `ICONS` block between `// icons:begin` and `// icons:end`, WRITTEN by `icons-plain.test.ts` from `renderToStaticMarkup(<Icon>)`, the way service-switcher-plain.js's and team-chat-plain.js's are. After changing icons.tsx: `UPDATE_PLAIN_CATALOGUE=1 npx vitest run packages/ui/src/icons-plain.test.ts`; the test is red until you do |
|
|
1717
|
+
| Weight | about 3 KB gzip minified, the whole set (load it once); ceiling in weight-budget.json |
|
|
1718
|
+
|
|
1696
1719
|
### Plain HTML: `gembossUI.languageSwitcher()` (21/10/2026)
|
|
1697
1720
|
|
|
1698
1721
|
For a page with no React (gemboss.ai, GemNews's extension popup, GemFactory, GemCare, GemPress): `language-switcher-plain.js`
|
|
@@ -3604,6 +3627,7 @@ something the base cannot express, add a token or a prop here, and every surface
|
|
|
3604
3627
|
| `gemboss-ui.css` | built at stage time and shipped minified (0.19.0); since 0.23.0 the COMPATIBILITY BUNDLE, frozen: `apps/admin/scripts/export-ui-css.mjs` (tokens + kit + field + `packages/ui/src/shell.css`, with Polaris `--p-*` resolved to their fallbacks) + `packages/ui/src/app-shell.css` + `auth.css` + `assistant.css` + `menu.css` + `kit-plain.css` + `chat.css` + `chat-composer.css` (`packages/ui/scripts/build-css.mjs`) |
|
|
3605
3628
|
| `packages/ui/src/shell.css` | the SHARED SHELL (rail, topbar, main, mobile drawer, the assistant's thread rail, popover surface, account chip). Exported as `@gemboss/ui/shell-source.css` since 0.23.0 (`@gemboss/ui/shell.css` is the built part). The admin's `gemboss-shell.css` @imports it on line 2; the export refuses a shared-shell rule in the admin's sheet or an admin-only rule here (one owner). |
|
|
3606
3629
|
| `packages/ui/src/menu-plain.js` | 23/10/2026: `gembossUI.initMenuKeys()`, a menu's roles and keys and one menu open at a time for plain HTML (`@gemboss/ui/menu-plain.js`), the same as `menu-keys.ts`. After `kit-plain.js`; runs by itself. See "Plain-HTML behaviour". |
|
|
3630
|
+
| `packages/ui/src/icons-plain.js` | 09/11/2026: `gembossUI.icon(name, { size, title })` and `gembossUI.ICON_NAMES`, the icon set for plain HTML (`@gemboss/ui/icons-plain.js`), the same SVG as `<Icon>`. Its `ICONS` block is written by `icons-plain.test.ts` (`UPDATE_PLAIN_CATALOGUE=1`), never by hand. See "Plain HTML: icons". |
|
|
3607
3631
|
| `packages/ui/src/menu.css` | 23/10/2026: the ⋯ menu and its icon button, moved out of `kit-plain.css` (same rules, same order in the core). Imported by `Menu`; see "Menu". |
|
|
3608
3632
|
| `packages/ui/src/kit-plain.css` | primitives for surfaces that render plain HTML, not React (0.2.1): key/value list (the menu and the icon button are `menu.css` since 23/10/2026); 0.3.0 adds `ui-link` / `ui-prose`, the media card (`ui-card--media`, `__media`, `__body`, `__foot`) and the popup's `ui-modal__body` / `__foot`. Shipped inside `gemboss-ui.css`; the admin does not import it (its first-load CSS budget has ~0.1 KB headroom).; (0.4.0) report pages: delta, large KPI grid, bar list, column chart, legend, funnel, card grid, section head. |
|
|
3609
3633
|
| `packages/ui/src/kit-plain.js` | 0.3.0: the behaviour those surfaces each wrote by hand: `gembossUI.openModal` (Escape, backdrop, Tab trap, stacking, ask-before-close, focus back), `toast` (text, error tone), `initMenus` (outside click, item with focus back on ⋯ first, blur, Escape closes the menu before the popup); 0.5.0: `confirm`, `initShell`, `initPasswordFields` / `resetPasswordFields`. A classic script: inline it or `<script src>`; see "Plain-HTML behaviour" above. |
|
package/catalog/editor.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
.cat-code summary{padding:10px 16px;font-size:13px;cursor:pointer;color:var(--gemboss-text-muted);border-top:1px solid var(--gemboss-divider);min-height:24px}
|
|
9
9
|
.cat-code pre,.cat-api{margin:0;padding:12px 16px;overflow:auto;background:#0f1012;color:#e8e8e6;font-size:12px;line-height:1.5;border-radius:0}
|
|
10
10
|
.cat-api{border-radius:12px;margin:0 0 16px}</style></head><body><div class="cat">
|
|
11
|
-
<h1>@gemboss/ui 0.
|
|
11
|
+
<h1>@gemboss/ui 0.66.0 · Editor</h1>
|
|
12
12
|
<p>Khung của mọi editor: <code>EditorFrame</code> (cột trái · khe kéo · preview · cột phải dock trên mép phải preview) và <code>EditorTopbar</code> (← · tiêu đề · cụm giữa · cụm phải · dòng trạng thái). Là đúng khung của theme / page / section editor trong admin. Gói chỉ vẽ KHUNG; chat, Configure, canvas, page picker, menu, Publish là của editor, đi vào bằng slot. Trang HTML thuần nạp <code>editor.css</code> + <code>editor-plain.js</code> rồi gọi <code>gembossUI.initEditorFrame()</code>: kéo khe (chuột, chạm, phím mũi tên / Home / End), đổi thiết bị, mở ⋯ và Publish ▾, ẩn cột trái, Chat | Preview trên điện thoại. <a href="index.html">← Catalog</a></p>
|
|
13
13
|
<h2>React</h2><pre class="cat-api"><code>import "@gemboss/ui/editor.css";
|
|
14
14
|
import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs, EditorSaveState, DeviceToggle } from "@gemboss/ui/editor";
|
|
@@ -320,7 +320,7 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
320
320
|
<Field label="Padding"><EdgeBox label="Padding" values={pad} onChange={(side, raw) => …} onCommit={save} /></Field>
|
|
321
321
|
<Field label="Image" htmlFor="img"><ImageControl id="img" value={url} onChange={setUrl} /></Field>
|
|
322
322
|
</InspectorGroup></code></pre>
|
|
323
|
-
<figure class="cat-demo"><figcaption>1280 (chuột): cột Configure 360px, đủ control, nhóm Motion đang gập</figcaption><div class="cat-wide"><iframe title="1280 (chuột): cột Configure 360px, đủ control, nhóm Motion đang gập" style="width:1280px;height:1120px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"><link rel="stylesheet" href="../src/editor-color.css"></head><body><div class="gemboss-ec" style="width:360px;height:1040px"><div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels"><button type="button" role="tab" data-value="configure" class="gemboss-ec-tab" aria-selected="true">Settings</button><button type="button" role="tab" data-value="chat" class="gemboss-ec-tab" aria-selected="false">Chat</button></div><div class="gemboss-ec-dock-body" style="padding:0"><aside class="gemboss-ei gemboss-ei--docked" role="region" aria-label="Settings — Hero"><header class="gemboss-ei-head"><span class="gemboss-ei-title">Hero<small>hero-banner.default.v1</small></span><button type="button" class="gemboss-ei-act" title="Duplicate section" aria-label="Duplicate section">⧉</button><button type="button" class="gemboss-ei-act" title="Restore this section to its previous version" aria-label="Restore this section">↺</button></header><div class="gemboss-ei-tabs" role="tablist"><button type="button" role="tab" data-value="content" class="gemboss-ei-tab" aria-selected="false" tabindex="-1">Content</button><button type="button" role="tab" data-value="design" class="gemboss-ei-tab on" aria-selected="true" tabindex="0">Design</button><button type="button" role="tab" data-value="advanced" class="gemboss-ei-tab" aria-selected="false" tabindex="-1">Advanced</button></div><div class="gemboss-ei-body"><div class="gemboss-ei-pane"><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Layout<small class="gemboss-ei-gh-note">· all screens</small></button><div class="gemboss-ei-fld"><label>Content width</label><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Content width"><button type="button" data-value="full" aria-pressed="false" class="is-text">Full</button><button type="button" data-value="contained" aria-pressed="true" class="is-text active">Contained</button><button type="button" data-value="narrow" aria-pressed="false" class="is-text">Narrow</button></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label>Columns</label><button type="button" class="gemboss-ei-help" aria-label="About Columns" aria-describedby=":R18u:" aria-expanded="false">?</button></div><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Columns"><button type="button" data-value="2" disabled="" aria-pressed="false" class="is-text">2</button><button type="button" data-value="3" disabled="" aria-pressed="true" class="is-text active">3</button><button type="button" data-value="4" disabled="" aria-pressed="false" class="is-text">4</button></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R18u:">Disabled while a change is applied.</p></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Spacing</button><div class="gemboss-ei-fld"><label>Padding</label><div class="gemboss-ei-edgebox"><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding top" value="24"/><span>T</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding right" value=""/><span>R</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding bottom" value="24"/><span>B</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding left" value=""/><span>L</span></div></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label>Margin</label><button type="button" class="gemboss-ei-help" aria-label="About Margin" aria-describedby=":R19e:" aria-expanded="false">?</button></div><div class="gemboss-ei-edgebox"><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="16" aria-label="Margin top" value=""/><span>T</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Margin right" value=""/><span>R</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="16" aria-label="Margin bottom" value=""/><span>B</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Margin left" value=""/><span>L</span></div></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19e:">Empty edges follow desktop.</p></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Color</button><div class="gemboss-ei-fld"><label for="cat-bg">Background</label><div class="gemboss-ei-color"><button type="button" class="gemboss-ei-swatch" aria-label="Background swatch" aria-haspopup="dialog" aria-expanded="false"><span class="gemboss-ei-swatch-fill" style="--sw:rgba(244, 239, 230, 1)"></span></button><span class="gemboss-ei-color-box"><input id="cat-bg" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="#f4efe6"/></span><input class="gemboss-field gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" value="100%"/></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label for="cat-ov">Overlay</label><button type="button" class="gemboss-ei-help" aria-label="About Overlay" aria-describedby=":R19u:" aria-expanded="false">?</button></div><div class="gemboss-ei-color"><button type="button" class="gemboss-ei-swatch" aria-label="Overlay swatch" aria-haspopup="dialog" aria-expanded="false" disabled="" title="Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name." aria-describedby=":Rb9u:"><span class="gemboss-ei-swatch-fill"></span></button><span class="gemboss-ei-color-box"><input id="cat-ov" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="linear-gradient(90deg,#000,#0000)"/></span><p id=":Rb9u:" class="gemboss-ei-color-why">Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name.</p></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19u:">A gradient: the swatch cannot show it, so it is off.</p></div><div class="gemboss-ei-fld"><label for="cat-op">Opacity<span class="gemboss-ei-rangeval" data-suffix="%">80%</span></label><input id="cat-op" type="range" class="gemboss-ei-range" min="0" max="100" step="1" value="80"/></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Media</button><div class="gemboss-ei-fld"><label for="cat-img">Image</label><div class="gemboss-ei-img"><div class="gemboss-ei-img-thumb" aria-hidden="true">—</div><div class="gemboss-ei-img-ctl"><input id="cat-img" class="gemboss-field gemboss-ei-inp" placeholder="Paste image URL…" value=""/><div class="gemboss-ei-img-actions"><button type="button" class="ui-btn" aria-expanded="false">Library</button><button type="button" class="ui-btn" data-gb-image-clear>Remove</button></div></div></div></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="closed" aria-expanded="false"><span class="gemboss-ei-chev" aria-hidden="true">▸</span>Motion</button><div class="gemboss-ei-fld"><label>Reveal</label><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Reveal"><button type="button" data-value="none" aria-pressed="true" class="is-text active">None</button><button type="button" data-value="fade" aria-pressed="false" class="is-text">Fade</button></div></div></div></div></div></aside></div></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div class="gemboss-ec" style="width:360px;height:1040px">
|
|
323
|
+
<figure class="cat-demo"><figcaption>1280 (chuột): cột Configure 360px, đủ control, nhóm Motion đang gập</figcaption><div class="cat-wide"><iframe title="1280 (chuột): cột Configure 360px, đủ control, nhóm Motion đang gập" style="width:1280px;height:1120px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"><link rel="stylesheet" href="../src/editor-color.css"></head><body><div class="gemboss-ec" style="width:360px;height:1040px"><div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels"><button type="button" role="tab" data-value="configure" class="gemboss-ec-tab" aria-selected="true">Settings</button><button type="button" role="tab" data-value="chat" class="gemboss-ec-tab" aria-selected="false">Chat</button></div><div class="gemboss-ec-dock-body" style="padding:0"><aside class="gemboss-ei gemboss-ei--docked" role="region" aria-label="Settings — Hero"><header class="gemboss-ei-head"><span class="gemboss-ei-title">Hero<small>hero-banner.default.v1</small></span><button type="button" class="gemboss-ei-act" title="Duplicate section" aria-label="Duplicate section">⧉</button><button type="button" class="gemboss-ei-act" title="Restore this section to its previous version" aria-label="Restore this section">↺</button></header><div class="gemboss-ei-tabs" role="tablist"><button type="button" role="tab" data-value="content" class="gemboss-ei-tab" aria-selected="false" tabindex="-1">Content</button><button type="button" role="tab" data-value="design" class="gemboss-ei-tab on" aria-selected="true" tabindex="0">Design</button><button type="button" role="tab" data-value="advanced" class="gemboss-ei-tab" aria-selected="false" tabindex="-1">Advanced</button></div><div class="gemboss-ei-body"><div class="gemboss-ei-pane"><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Layout<small class="gemboss-ei-gh-note">· all screens</small></button><div class="gemboss-ei-fld"><label>Content width</label><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Content width"><button type="button" data-value="full" aria-pressed="false" class="is-text">Full</button><button type="button" data-value="contained" aria-pressed="true" class="is-text active">Contained</button><button type="button" data-value="narrow" aria-pressed="false" class="is-text">Narrow</button></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label>Columns</label><button type="button" class="gemboss-ei-help" aria-label="About Columns" aria-describedby=":R18u:" aria-expanded="false">?</button></div><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Columns"><button type="button" data-value="2" disabled="" aria-pressed="false" class="is-text">2</button><button type="button" data-value="3" disabled="" aria-pressed="true" class="is-text active">3</button><button type="button" data-value="4" disabled="" aria-pressed="false" class="is-text">4</button></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R18u:">Disabled while a change is applied.</p></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Spacing</button><div class="gemboss-ei-fld"><label>Padding</label><div class="gemboss-ei-edgebox"><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding top" value="24"/><span>T</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding right" value=""/><span>R</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding bottom" value="24"/><span>B</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding left" value=""/><span>L</span></div></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label>Margin</label><button type="button" class="gemboss-ei-help" aria-label="About Margin" aria-describedby=":R19e:" aria-expanded="false">?</button></div><div class="gemboss-ei-edgebox"><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="16" aria-label="Margin top" value=""/><span>T</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Margin right" value=""/><span>R</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="16" aria-label="Margin bottom" value=""/><span>B</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Margin left" value=""/><span>L</span></div></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19e:">Empty edges follow desktop.</p></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Color</button><div class="gemboss-ei-fld"><label for="cat-bg">Background</label><div class="gemboss-ei-color"><button type="button" class="gemboss-ei-swatch" aria-label="Background swatch" aria-haspopup="dialog" aria-expanded="false"><span class="gemboss-ei-swatch-fill" style="--sw:rgba(244, 239, 230, 1)"></span></button><span class="gemboss-field gemboss-field--group gemboss-ei-color-group"><span class="gemboss-ei-color-box"><input id="cat-bg" class="gemboss-field__bare gemboss-ei-inp" placeholder="Not set" value="#f4efe6"/></span><input class="gemboss-field__bare gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" value="100%"/></span></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label for="cat-ov">Overlay</label><button type="button" class="gemboss-ei-help" aria-label="About Overlay" aria-describedby=":R19u:" aria-expanded="false">?</button></div><div class="gemboss-ei-color"><button type="button" class="gemboss-ei-swatch" aria-label="Overlay swatch" aria-haspopup="dialog" aria-expanded="false" disabled="" title="Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name." aria-describedby=":Rb9u:"><span class="gemboss-ei-swatch-fill"></span></button><span class="gemboss-field gemboss-field--group gemboss-ei-color-group"><span class="gemboss-ei-color-box"><input id="cat-ov" class="gemboss-field__bare gemboss-ei-inp" placeholder="Not set" value="linear-gradient(90deg,#000,#0000)"/></span></span><p id=":Rb9u:" class="gemboss-ei-color-why">Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name.</p></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19u:">A gradient: the swatch cannot show it, so it is off.</p></div><div class="gemboss-ei-fld"><label for="cat-op">Opacity<span class="gemboss-ei-rangeval" data-suffix="%">80%</span></label><input id="cat-op" type="range" class="gemboss-ei-range" min="0" max="100" step="1" value="80"/></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Media</button><div class="gemboss-ei-fld"><label for="cat-img">Image</label><div class="gemboss-ei-img"><div class="gemboss-ei-img-thumb" aria-hidden="true">—</div><div class="gemboss-ei-img-ctl"><input id="cat-img" class="gemboss-field gemboss-ei-inp" placeholder="Paste image URL…" value=""/><div class="gemboss-ei-img-actions"><button type="button" class="ui-btn" aria-expanded="false">Library</button><button type="button" class="ui-btn" data-gb-image-clear>Remove</button></div></div></div></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="closed" aria-expanded="false"><span class="gemboss-ei-chev" aria-hidden="true">▸</span>Motion</button><div class="gemboss-ei-fld"><label>Reveal</label><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Reveal"><button type="button" data-value="none" aria-pressed="true" class="is-text active">None</button><button type="button" data-value="fade" aria-pressed="false" class="is-text">Fade</button></div></div></div></div></div></aside></div></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div class="gemboss-ec" style="width:360px;height:1040px">
|
|
324
324
|
<div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels">
|
|
325
325
|
<button type="button" role="tab" data-value="configure" class="gemboss-ec-tab" aria-selected="true">Settings</button>
|
|
326
326
|
<button type="button" role="tab" data-value="chat" class="gemboss-ec-tab" aria-selected="false">Chat</button>
|
|
@@ -425,10 +425,12 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
425
425
|
<span class="gemboss-ei-swatch-fill" style="--sw:rgba(244, 239, 230, 1)">
|
|
426
426
|
</span>
|
|
427
427
|
</button>
|
|
428
|
-
<span class="gemboss-ei-color-
|
|
429
|
-
<
|
|
428
|
+
<span class="gemboss-field gemboss-field--group gemboss-ei-color-group">
|
|
429
|
+
<span class="gemboss-ei-color-box">
|
|
430
|
+
<input id="cat-bg" class="gemboss-field__bare gemboss-ei-inp" placeholder="Not set" value="#f4efe6"/>
|
|
431
|
+
</span>
|
|
432
|
+
<input class="gemboss-field__bare gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" value="100%"/>
|
|
430
433
|
</span>
|
|
431
|
-
<input class="gemboss-field gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" value="100%"/>
|
|
432
434
|
</div>
|
|
433
435
|
</div>
|
|
434
436
|
<div class="gemboss-ei-fld">
|
|
@@ -441,8 +443,10 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
441
443
|
<span class="gemboss-ei-swatch-fill">
|
|
442
444
|
</span>
|
|
443
445
|
</button>
|
|
444
|
-
<span class="gemboss-ei-color-
|
|
445
|
-
<
|
|
446
|
+
<span class="gemboss-field gemboss-field--group gemboss-ei-color-group">
|
|
447
|
+
<span class="gemboss-ei-color-box">
|
|
448
|
+
<input id="cat-ov" class="gemboss-field__bare gemboss-ei-inp" placeholder="Not set" value="linear-gradient(90deg,#000,#0000)"/>
|
|
449
|
+
</span>
|
|
446
450
|
</span>
|
|
447
451
|
<p id=":Rb9u:" class="gemboss-ei-color-why">Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name.</p>
|
|
448
452
|
</div>
|
|
@@ -487,7 +491,7 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
487
491
|
</aside>
|
|
488
492
|
</div>
|
|
489
493
|
</div></code></pre></details></figure>
|
|
490
|
-
<figure class="cat-demo"><figcaption>390 (điện thoại): ô nhập 16px, control 44px</figcaption><div class="cat-wide"><iframe title="390 (điện thoại): ô nhập 16px, control 44px" style="width:390px;height:1240px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"><link rel="stylesheet" href="../src/editor-color.css"></head><body><div class="gemboss-ec" style="width:360px;height:1040px"><div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels"><button type="button" role="tab" data-value="configure" class="gemboss-ec-tab" aria-selected="true">Settings</button><button type="button" role="tab" data-value="chat" class="gemboss-ec-tab" aria-selected="false">Chat</button></div><div class="gemboss-ec-dock-body" style="padding:0"><aside class="gemboss-ei gemboss-ei--docked" role="region" aria-label="Settings — Hero"><header class="gemboss-ei-head"><span class="gemboss-ei-title">Hero<small>hero-banner.default.v1</small></span><button type="button" class="gemboss-ei-act" title="Duplicate section" aria-label="Duplicate section">⧉</button><button type="button" class="gemboss-ei-act" title="Restore this section to its previous version" aria-label="Restore this section">↺</button></header><div class="gemboss-ei-tabs" role="tablist"><button type="button" role="tab" data-value="content" class="gemboss-ei-tab" aria-selected="false" tabindex="-1">Content</button><button type="button" role="tab" data-value="design" class="gemboss-ei-tab on" aria-selected="true" tabindex="0">Design</button><button type="button" role="tab" data-value="advanced" class="gemboss-ei-tab" aria-selected="false" tabindex="-1">Advanced</button></div><div class="gemboss-ei-body"><div class="gemboss-ei-pane"><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Layout<small class="gemboss-ei-gh-note">· all screens</small></button><div class="gemboss-ei-fld"><label>Content width</label><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Content width"><button type="button" data-value="full" aria-pressed="false" class="is-text">Full</button><button type="button" data-value="contained" aria-pressed="true" class="is-text active">Contained</button><button type="button" data-value="narrow" aria-pressed="false" class="is-text">Narrow</button></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label>Columns</label><button type="button" class="gemboss-ei-help" aria-label="About Columns" aria-describedby=":R18u:" aria-expanded="false">?</button></div><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Columns"><button type="button" data-value="2" disabled="" aria-pressed="false" class="is-text">2</button><button type="button" data-value="3" disabled="" aria-pressed="true" class="is-text active">3</button><button type="button" data-value="4" disabled="" aria-pressed="false" class="is-text">4</button></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R18u:">Disabled while a change is applied.</p></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Spacing</button><div class="gemboss-ei-fld"><label>Padding</label><div class="gemboss-ei-edgebox"><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding top" value="24"/><span>T</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding right" value=""/><span>R</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding bottom" value="24"/><span>B</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding left" value=""/><span>L</span></div></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label>Margin</label><button type="button" class="gemboss-ei-help" aria-label="About Margin" aria-describedby=":R19e:" aria-expanded="false">?</button></div><div class="gemboss-ei-edgebox"><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="16" aria-label="Margin top" value=""/><span>T</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Margin right" value=""/><span>R</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="16" aria-label="Margin bottom" value=""/><span>B</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Margin left" value=""/><span>L</span></div></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19e:">Empty edges follow desktop.</p></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Color</button><div class="gemboss-ei-fld"><label for="cat-bg">Background</label><div class="gemboss-ei-color"><button type="button" class="gemboss-ei-swatch" aria-label="Background swatch" aria-haspopup="dialog" aria-expanded="false"><span class="gemboss-ei-swatch-fill" style="--sw:rgba(244, 239, 230, 1)"></span></button><span class="gemboss-ei-color-box"><input id="cat-bg" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="#f4efe6"/></span><input class="gemboss-field gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" value="100%"/></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label for="cat-ov">Overlay</label><button type="button" class="gemboss-ei-help" aria-label="About Overlay" aria-describedby=":R19u:" aria-expanded="false">?</button></div><div class="gemboss-ei-color"><button type="button" class="gemboss-ei-swatch" aria-label="Overlay swatch" aria-haspopup="dialog" aria-expanded="false" disabled="" title="Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name." aria-describedby=":Rb9u:"><span class="gemboss-ei-swatch-fill"></span></button><span class="gemboss-ei-color-box"><input id="cat-ov" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="linear-gradient(90deg,#000,#0000)"/></span><p id=":Rb9u:" class="gemboss-ei-color-why">Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name.</p></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19u:">A gradient: the swatch cannot show it, so it is off.</p></div><div class="gemboss-ei-fld"><label for="cat-op">Opacity<span class="gemboss-ei-rangeval" data-suffix="%">80%</span></label><input id="cat-op" type="range" class="gemboss-ei-range" min="0" max="100" step="1" value="80"/></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Media</button><div class="gemboss-ei-fld"><label for="cat-img">Image</label><div class="gemboss-ei-img"><div class="gemboss-ei-img-thumb" aria-hidden="true">—</div><div class="gemboss-ei-img-ctl"><input id="cat-img" class="gemboss-field gemboss-ei-inp" placeholder="Paste image URL…" value=""/><div class="gemboss-ei-img-actions"><button type="button" class="ui-btn" aria-expanded="false">Library</button><button type="button" class="ui-btn" data-gb-image-clear>Remove</button></div></div></div></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="closed" aria-expanded="false"><span class="gemboss-ei-chev" aria-hidden="true">▸</span>Motion</button><div class="gemboss-ei-fld"><label>Reveal</label><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Reveal"><button type="button" data-value="none" aria-pressed="true" class="is-text active">None</button><button type="button" data-value="fade" aria-pressed="false" class="is-text">Fade</button></div></div></div></div></div></aside></div></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div class="gemboss-ec" style="width:360px;height:1040px">
|
|
494
|
+
<figure class="cat-demo"><figcaption>390 (điện thoại): ô nhập 16px, control 44px</figcaption><div class="cat-wide"><iframe title="390 (điện thoại): ô nhập 16px, control 44px" style="width:390px;height:1240px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"><link rel="stylesheet" href="../src/editor-color.css"></head><body><div class="gemboss-ec" style="width:360px;height:1040px"><div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels"><button type="button" role="tab" data-value="configure" class="gemboss-ec-tab" aria-selected="true">Settings</button><button type="button" role="tab" data-value="chat" class="gemboss-ec-tab" aria-selected="false">Chat</button></div><div class="gemboss-ec-dock-body" style="padding:0"><aside class="gemboss-ei gemboss-ei--docked" role="region" aria-label="Settings — Hero"><header class="gemboss-ei-head"><span class="gemboss-ei-title">Hero<small>hero-banner.default.v1</small></span><button type="button" class="gemboss-ei-act" title="Duplicate section" aria-label="Duplicate section">⧉</button><button type="button" class="gemboss-ei-act" title="Restore this section to its previous version" aria-label="Restore this section">↺</button></header><div class="gemboss-ei-tabs" role="tablist"><button type="button" role="tab" data-value="content" class="gemboss-ei-tab" aria-selected="false" tabindex="-1">Content</button><button type="button" role="tab" data-value="design" class="gemboss-ei-tab on" aria-selected="true" tabindex="0">Design</button><button type="button" role="tab" data-value="advanced" class="gemboss-ei-tab" aria-selected="false" tabindex="-1">Advanced</button></div><div class="gemboss-ei-body"><div class="gemboss-ei-pane"><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Layout<small class="gemboss-ei-gh-note">· all screens</small></button><div class="gemboss-ei-fld"><label>Content width</label><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Content width"><button type="button" data-value="full" aria-pressed="false" class="is-text">Full</button><button type="button" data-value="contained" aria-pressed="true" class="is-text active">Contained</button><button type="button" data-value="narrow" aria-pressed="false" class="is-text">Narrow</button></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label>Columns</label><button type="button" class="gemboss-ei-help" aria-label="About Columns" aria-describedby=":R18u:" aria-expanded="false">?</button></div><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Columns"><button type="button" data-value="2" disabled="" aria-pressed="false" class="is-text">2</button><button type="button" data-value="3" disabled="" aria-pressed="true" class="is-text active">3</button><button type="button" data-value="4" disabled="" aria-pressed="false" class="is-text">4</button></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R18u:">Disabled while a change is applied.</p></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Spacing</button><div class="gemboss-ei-fld"><label>Padding</label><div class="gemboss-ei-edgebox"><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding top" value="24"/><span>T</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding right" value=""/><span>R</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding bottom" value="24"/><span>B</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding left" value=""/><span>L</span></div></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label>Margin</label><button type="button" class="gemboss-ei-help" aria-label="About Margin" aria-describedby=":R19e:" aria-expanded="false">?</button></div><div class="gemboss-ei-edgebox"><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="16" aria-label="Margin top" value=""/><span>T</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Margin right" value=""/><span>R</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="16" aria-label="Margin bottom" value=""/><span>B</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Margin left" value=""/><span>L</span></div></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19e:">Empty edges follow desktop.</p></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Color</button><div class="gemboss-ei-fld"><label for="cat-bg">Background</label><div class="gemboss-ei-color"><button type="button" class="gemboss-ei-swatch" aria-label="Background swatch" aria-haspopup="dialog" aria-expanded="false"><span class="gemboss-ei-swatch-fill" style="--sw:rgba(244, 239, 230, 1)"></span></button><span class="gemboss-field gemboss-field--group gemboss-ei-color-group"><span class="gemboss-ei-color-box"><input id="cat-bg" class="gemboss-field__bare gemboss-ei-inp" placeholder="Not set" value="#f4efe6"/></span><input class="gemboss-field__bare gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" value="100%"/></span></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label for="cat-ov">Overlay</label><button type="button" class="gemboss-ei-help" aria-label="About Overlay" aria-describedby=":R19u:" aria-expanded="false">?</button></div><div class="gemboss-ei-color"><button type="button" class="gemboss-ei-swatch" aria-label="Overlay swatch" aria-haspopup="dialog" aria-expanded="false" disabled="" title="Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name." aria-describedby=":Rb9u:"><span class="gemboss-ei-swatch-fill"></span></button><span class="gemboss-field gemboss-field--group gemboss-ei-color-group"><span class="gemboss-ei-color-box"><input id="cat-ov" class="gemboss-field__bare gemboss-ei-inp" placeholder="Not set" value="linear-gradient(90deg,#000,#0000)"/></span></span><p id=":Rb9u:" class="gemboss-ei-color-why">Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name.</p></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19u:">A gradient: the swatch cannot show it, so it is off.</p></div><div class="gemboss-ei-fld"><label for="cat-op">Opacity<span class="gemboss-ei-rangeval" data-suffix="%">80%</span></label><input id="cat-op" type="range" class="gemboss-ei-range" min="0" max="100" step="1" value="80"/></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Media</button><div class="gemboss-ei-fld"><label for="cat-img">Image</label><div class="gemboss-ei-img"><div class="gemboss-ei-img-thumb" aria-hidden="true">—</div><div class="gemboss-ei-img-ctl"><input id="cat-img" class="gemboss-field gemboss-ei-inp" placeholder="Paste image URL…" value=""/><div class="gemboss-ei-img-actions"><button type="button" class="ui-btn" aria-expanded="false">Library</button><button type="button" class="ui-btn" data-gb-image-clear>Remove</button></div></div></div></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="closed" aria-expanded="false"><span class="gemboss-ei-chev" aria-hidden="true">▸</span>Motion</button><div class="gemboss-ei-fld"><label>Reveal</label><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Reveal"><button type="button" data-value="none" aria-pressed="true" class="is-text active">None</button><button type="button" data-value="fade" aria-pressed="false" class="is-text">Fade</button></div></div></div></div></div></aside></div></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div class="gemboss-ec" style="width:360px;height:1040px">
|
|
491
495
|
<div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels">
|
|
492
496
|
<button type="button" role="tab" data-value="configure" class="gemboss-ec-tab" aria-selected="true">Settings</button>
|
|
493
497
|
<button type="button" role="tab" data-value="chat" class="gemboss-ec-tab" aria-selected="false">Chat</button>
|
|
@@ -592,10 +596,12 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
592
596
|
<span class="gemboss-ei-swatch-fill" style="--sw:rgba(244, 239, 230, 1)">
|
|
593
597
|
</span>
|
|
594
598
|
</button>
|
|
595
|
-
<span class="gemboss-ei-color-
|
|
596
|
-
<
|
|
599
|
+
<span class="gemboss-field gemboss-field--group gemboss-ei-color-group">
|
|
600
|
+
<span class="gemboss-ei-color-box">
|
|
601
|
+
<input id="cat-bg" class="gemboss-field__bare gemboss-ei-inp" placeholder="Not set" value="#f4efe6"/>
|
|
602
|
+
</span>
|
|
603
|
+
<input class="gemboss-field__bare gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" value="100%"/>
|
|
597
604
|
</span>
|
|
598
|
-
<input class="gemboss-field gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" value="100%"/>
|
|
599
605
|
</div>
|
|
600
606
|
</div>
|
|
601
607
|
<div class="gemboss-ei-fld">
|
|
@@ -608,8 +614,10 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
608
614
|
<span class="gemboss-ei-swatch-fill">
|
|
609
615
|
</span>
|
|
610
616
|
</button>
|
|
611
|
-
<span class="gemboss-ei-color-
|
|
612
|
-
<
|
|
617
|
+
<span class="gemboss-field gemboss-field--group gemboss-ei-color-group">
|
|
618
|
+
<span class="gemboss-ei-color-box">
|
|
619
|
+
<input id="cat-ov" class="gemboss-field__bare gemboss-ei-inp" placeholder="Not set" value="linear-gradient(90deg,#000,#0000)"/>
|
|
620
|
+
</span>
|
|
613
621
|
</span>
|
|
614
622
|
<p id=":Rb9u:" class="gemboss-ei-color-why">Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name.</p>
|
|
615
623
|
</div>
|