@gemboss/ui 0.66.0 → 0.68.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 +217 -2
- package/README.md +9 -4
- package/catalog/editor.html +1 -1
- package/catalog/index.html +3 -3
- package/gemboss-ui.css +3 -3
- package/package.json +5 -1
- package/parts/components.css +2 -2
- package/parts/core.css +1 -1
- package/parts/shell.css +1 -1
- package/src/assistant/engine.tsx +2 -18
- package/src/board-auto-more.tsx +168 -0
- package/src/collections.tsx +10 -1
- package/src/confirm-buttons.ts +4 -2
- package/src/confirm-dialog.tsx +7 -3
- package/src/copy-field.css +1 -0
- package/src/copy-field.tsx +48 -0
- package/src/copy-text.ts +20 -0
- package/src/create-shell.css +1 -1
- package/src/dialog.tsx +68 -11
- package/src/editor/choice-cards.tsx +71 -0
- package/src/editor/controls.tsx +10 -5
- package/src/editor/field-control.tsx +117 -57
- package/src/editor/field-spec.ts +45 -9
- package/src/editor/grow-to-text.ts +51 -0
- package/src/editor/index.ts +11 -2
- package/src/editor/items-field.tsx +185 -0
- package/src/editor/items.ts +126 -0
- package/src/editor/label-side.ts +2 -1
- package/src/editor/repeater.tsx +37 -7
- package/src/editor/secret-field.tsx +5 -3
- package/src/editor/switch.tsx +34 -0
- package/src/editor-grow.css +1 -0
- package/src/editor-insert.css +1 -1
- package/src/editor-repeater.css +1 -1
- package/src/editor-switch.css +1 -0
- package/src/editor.css +1 -1
- package/src/gemboss-field.css +1 -1
- package/src/index.ts +3 -0
- package/src/kit-plain.css +1 -1
- package/src/segmented.tsx +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,107 @@
|
|
|
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
|
+
## 0.68.0 (10/11/2026)
|
|
6
|
+
|
|
7
|
+
**A Dialog asks before it loses work** (10/11/2026, one control set). `Dialog` `dirty`: while it is true, Escape, ✕ and a press
|
|
8
|
+
on the backdrop open the kit's `ConfirmDialog` over it instead of closing ("Discard unsaved changes?" · Keep editing · Discard and
|
|
9
|
+
close: the admin's PluginPopup words, popup-close.ts). Keep editing leaves it as it was and the focus where it was; Discard closes
|
|
10
|
+
the question, then the Dialog (`onClose` once, the focus on its opener). A close the browser makes anyway (Chrome's second Escape)
|
|
11
|
+
opens it again and asks; `open` turning false never asks. `dirtyAsk` gives the question a surface's own words or language
|
|
12
|
+
(`title`, `body`, `action`, `cancelLabel`, `closeLabel`). Without `dirty` nothing changes, and no question is mounted.
|
|
13
|
+
`useModalDialog` takes `ask` (the same rule for a frame of its own) and returns `requestClose` and `leave`. For content-radar's
|
|
14
|
+
composer, which kept a hand-built frame to ask "Close the composer?". First caller: the admin's Plan › New idea / Edit the
|
|
15
|
+
hypothesis (IdeaDialog), whose four fields were lost to one Escape.
|
|
16
|
+
|
|
17
|
+
**One box grows with its text: `GrowLine`** (10/11/2026; follow-up #46). Text `code` (a line of code or a CSS value, #7080's `CodeLine`)
|
|
18
|
+
and textarea `grow` (a sentence a shopper reads, below) had been written a day apart, each with its own field-sizing check, height setter,
|
|
19
|
+
line-break rule and Enter. They are one component now, on `editor/grow-to-text.ts`: `code` adds the monospace face, no spell check and
|
|
20
|
+
no phone corrections, and `overflow-wrap: anywhere` (a line of code may have no space to break at). Both carry `aria-invalid` (the
|
|
21
|
+
`grow` box did not). One CSS rule sizes it (`editor-grow.css`; editor.css drops its copy). `editor-field-control.test.tsx` keeps it one:
|
|
22
|
+
only grow-to-text.ts sizes a box to its text, field-control draws one `rows={1}` box, one `field-sizing` rule (red on the two boxes).
|
|
23
|
+
|
|
24
|
+
**A sentence that grows: the textarea's `grow`** (09/11/2026; §9.1, measured on prod in the cart drawer's settings at a 330px panel:
|
|
25
|
+
"Progress message" and "When reached" were one-line boxes beside their labels, "You're {amount} away fro…").
|
|
26
|
+
- `FieldSpec` textarea `grow?: boolean`: a sentence or two (a message a shopper reads, a template with {tokens}). One line tall to start,
|
|
27
|
+
as tall as its text after (`textarea.gemboss-ei-grow`, `field-sizing: content`), its label above (a textarea's side); `rows` does not
|
|
28
|
+
apply. Where a browser lacks `field-sizing`, `editor/grow-to-text.ts` (`useGrowToText`) sets the height, again when the box's width
|
|
29
|
+
changes (watching the box drawn now). Still one line of text: Enter commits (not the Enter that ends an input method's composition),
|
|
30
|
+
a line break typed or pasted becomes a space, the caret staying where it was.
|
|
31
|
+
- The admin's plugin settings declare such sentences `message` (the cart drawer's progress and reached lines, its errors, its low-stock
|
|
32
|
+
and gift lines, the cookie banner's message, the sales assistant's opening line) and draw them with it.
|
|
33
|
+
- Chromium test `editor-textarea-grow-browser.test.tsx`: a long message all in sight at 280 / 330 / 400 and a phone's 390, a short one a
|
|
34
|
+
line, the fallback without `field-sizing`; the same message in a text box (cut at 330) and in two rows (out of sight at 280) as its
|
|
35
|
+
negative controls.
|
|
36
|
+
|
|
37
|
+
## 0.67.0 (09/11/2026)
|
|
38
|
+
|
|
39
|
+
**A question in the viewer's language, all of it** (09/11/2026; GemCommunity asks in en / vi / zh, gemcommunity #451). `ConfirmDialog`
|
|
40
|
+
`retryLabel`: the refused button's words (default "Try again"), and `closeLabel`: the ✕'s name (default "Close", passed to the
|
|
41
|
+
kit's Dialog). Without them nothing changes. confirm-buttons.ts takes `retryLabel` too (not shown once a refusal is final:
|
|
42
|
+
`canRetry={false}` keeps the action's words, off).
|
|
43
|
+
|
|
44
|
+
**The Items control opens an item picked elsewhere** (09/11/2026, Items editor PR 2: the canvas ↔ row link).
|
|
45
|
+
- `ItemsField` `open` (`{ index, field?, seq }`): that item's row opens alone and comes into view, and the field that shows the part picked
|
|
46
|
+
is marked (`data-canvas-focus`, outlined in editor-repeater.css), the focus left where the seller is. Read once per `seq`: moving or
|
|
47
|
+
removing rows afterwards opens no other row. `index` and `onActive` speak the STORED list's places (a row the host holds unsaved sits
|
|
48
|
+
among the shown ones and is heard as null).
|
|
49
|
+
- `ItemsField` `keepDraftsAs`: unsaved rows kept by name, so they outlive the control (a panel drawn again) and show in every control of
|
|
50
|
+
the same list.
|
|
51
|
+
- `RepeaterList` `openRequest` (`{ key, seq }`) opens a row from outside; with `single`, `onActive` now hears each row opened by hand or
|
|
52
|
+
by itself (added, duplicated) and the open one folded (null), inline as in a popover, so a host shows that item on its page.
|
|
53
|
+
|
|
54
|
+
**The Items control: every list setting, one control** (09/11/2026; Chris "one shared control set", fast and handy, clicks before typing).
|
|
55
|
+
- `ItemsField` (`@gemboss/ui/editor`), on `RepeaterList` + `useKeyedRows`: each item one line (its picture or its words, a ⋯ with Move
|
|
56
|
+
up / Move down / Duplicate / Remove), its grip drags it, Alt+↑ / ↓ moves it; a click opens that item's fields in place, one item at a
|
|
57
|
+
time, drawn by `FieldRows` so each label sits where the label-side table says; "+ Add <item>" puts in the list's `starter` row, opens it
|
|
58
|
+
and focuses its first field; `min` / `max` turn Remove / Add and Duplicate off, each saying why; `rowHolds` keeps a row the host cannot
|
|
59
|
+
save yet as a draft, unsaved. ONE write per change: the whole list. Remove asks nothing (every host draws it with an Undo).
|
|
60
|
+
- FieldSpec `repeater` is drawn with it (FieldControl): it was boxes per row, keyed by index, no reorder, a write per key typed and an
|
|
61
|
+
object drawn as "[object Object]". New on the spec: `fields` (a row's fields, any kind a form draws; `from`: older keys a value is
|
|
62
|
+
stored under), `noun`, `min`, `max`, `starter`, `title`, `thumb`. `item` stays, and without `starter` "+ Add" still puts in every key
|
|
63
|
+
empty, so a list's stored rows keep their shape.
|
|
64
|
+
- `editor/items.ts` (`@gemboss/ui/editor/items`, no React): a row read and written as stored. One field's write keeps every other key, a
|
|
65
|
+
picture's alt text (`{ url, altText }`), an older key's name, a string row as a string; emptying a field the row does not hold changes
|
|
66
|
+
nothing; a value its control cannot show is kept and named, never drawn as words.
|
|
67
|
+
- `RepeaterList` `single` (one row open at a time), `canRemove` / `removeWhy`; `FieldRows` `shopId` (an app's kinds in every field of a run).
|
|
68
|
+
- A text box's or a text area's count ("2/4", `maxLength`) sits under its box, at the box's end (`.gemboss-ei-count`), wherever it is drawn:
|
|
69
|
+
in a row it ran across the field like a note, so it stood under the label. A number's bounds and a field's help still run across.
|
|
70
|
+
|
|
71
|
+
**A SecretField box is never filled with a saved login** (09/11/2026; GemPersonalizer's Gearment keys, #7102). Its box says
|
|
72
|
+
`autocomplete="new-password"`, not `"off"`: Chrome ignores "off" on a password box and can fill the seller's saved admin.gemboss.ai
|
|
73
|
+
password into it, which a save then stores as a partner's key and sends to that partner (the admin's own gate,
|
|
74
|
+
a-secret-field-is-not-a-login-form.test.ts, measured it 07/10/2026). "new-password" is the value Chrome never fills; it may offer to
|
|
75
|
+
suggest a password, a nuisance, not a leak. Every SecretField takes it (no prop sets it back), and `password-autocomplete.test.tsx` holds
|
|
76
|
+
it: each state that draws the box renders "new-password", and a scan of packages/ui fails on any password box (a literal
|
|
77
|
+
`type="password"`, a `type={…}` that can be one, or an HTML string) that says "off". Markup change: a host that read the box's
|
|
78
|
+
`autocomplete` as "off" reads "new-password".
|
|
79
|
+
|
|
80
|
+
**A text box names the phone's keypad** (09/11/2026; one control set, GemPersonalizer's orders tab). `FieldSpec` text `inputMode`
|
|
81
|
+
(`decimal` | `numeric`): the keypad for a value kept as typed text (a cost typed as "12.50"); a `number` field keeps its own. Text
|
|
82
|
+
`verbatim`: an ID typed as written elsewhere (Gearment's store ID) is not spell-checked, corrected, capitalised or filled from the
|
|
83
|
+
browser's remembered entries, as the raw box it replaces was not (unlike `code`, it keeps the text face and its label beside it).
|
|
84
|
+
`Checkbox` `labelHidden`: its words read only, the box alone in the middle of a 44px square (`.gemboss-ei-check--bare`, editor.css,
|
|
85
|
+
which travels with the Checkbox); a tick on a print file's tile was 26px wide under a finger. A worded checkbox is unchanged (a min-width on it would
|
|
86
|
+
undo its min-content floor in a row and split its words). The orders tab's Gearment keys (SecretField), routing lists, sample state,
|
|
87
|
+
partner settings, mockup cost box and print-file tick are the kit's: the admin's one-control-set list 46 → 40 files.
|
|
88
|
+
|
|
89
|
+
**`Board` `autoMore`: a server-paged column reads on as it is scrolled** (09/11/2026; Chris on content-radar's Ideas board: "scroll
|
|
90
|
+
xuống dưới là infinite loop luôn chứ nhỉ"). `<Board autoMore …>` (or `autoMore={{ max, margin }}`): when a column's `ui-more` row comes
|
|
91
|
+
within 400px of the bottom of the scrolling area (the nearest scrolling ancestor, else the viewport) the row's own control is pressed, at
|
|
92
|
+
most 4 times a column, then the button is left for the reader, so what is under the board stays reachable. Only a press handled in place
|
|
93
|
+
counts: `onLoadMore`'s button or a router link (`linkAs` + `scroll: false`); a plain `<a>` (its navigation is cancelled, it would reload the
|
|
94
|
+
page at the top again and again) and kit-plain's `fetchMore` link (it moves focus and speaks) are left to the reader. One press in flight for the
|
|
95
|
+
whole document (a router keeps only the last of several navigations, so three columns ending together and pressed at once loaded one:
|
|
96
|
+
content-radar's Ideas, 09/11/2026): a press is over when its cards grow, its navigation has landed, its button is back after "Loading…",
|
|
97
|
+
its column is gone, or after 20 s (link) / 8 s (button); a press that added nothing rests that column 8 s while the others go on. A row the
|
|
98
|
+
reader has passed counts as reached while the reader is still beside the board, so a short column whose end went by while another page
|
|
99
|
+
loaded still reads on; below the whole board nothing loads; a column scrolled out sideways loads when shown. The column with the fewest
|
|
100
|
+
automatic loads goes first. A
|
|
101
|
+
column drawn anew with fewer cards (a new filter) starts over. Its client half is
|
|
102
|
+
an island the board draws inside itself (board-auto-more.tsx, `data-gb-auto-more`), so the board stays plain and needs no id.
|
|
103
|
+
board-auto-more.test.ts in Chromium (test:ui-browser): both ways, 1280 and 390, max, the plain link, fetchMore, a filter, a failed load, a
|
|
104
|
+
scrolling panel, negative controls without `autoMore`.
|
|
105
|
+
|
|
5
106
|
## 0.66.0 (09/11/2026)
|
|
6
107
|
|
|
7
108
|
**The icon set for surfaces without React: `@gemboss/ui/icons-plain.js`** (09/11/2026; GemNews' side rail and widget panel are plain
|
|
@@ -18,6 +119,38 @@ JavaScript, and a hand-copied path drifts). A classic script that adds to `globa
|
|
|
18
119
|
hourglass), `target`.
|
|
19
120
|
- Weight ceiling: `packages/ui/src/icons-plain.js` in weight-budget.json.
|
|
20
121
|
|
|
122
|
+
**A CSS value that runs long is read whole: the text field's `code`** (09/11/2026; §9.1, measured on prod in Theme editor › Global
|
|
123
|
+
styles at 1366: Mono font, Subtle and Strong border were 174px one-line boxes beside their labels in a 330px panel, the stack 172px and
|
|
124
|
+
the strong border 270px out of sight).
|
|
125
|
+
- `FieldSpec` text `code?: boolean`: a line of code or a CSS value that runs long (a condition's expression, a font stack, a border, a
|
|
126
|
+
shadow), the one `code` (the element panel's "Show when" expression, which drew a one-line monospace box, is drawn by it too). `controlOf` names it the `code`
|
|
127
|
+
control, so its label is above (LABEL_SIDE, unchanged) and every surface that declares such a field gets it.
|
|
128
|
+
- `FieldControl` draws it as `CodeLine`: one line of text in a monospace box across the field that wraps and grows with it
|
|
129
|
+
(`textarea.gemboss-ei-code-line` in `editor-grow.css`, its own entry since editor.css had no room; `field-sizing: content`; where a browser lacks that, the component sets the height, again when the
|
|
130
|
+
box's width changes). Enter commits (it leaves the box, as a text box's Enter does), not the Enter that ends an input method's
|
|
131
|
+
composition; a line break typed or pasted becomes a space, the caret staying where it was. No spell check, no autocorrect. Not with
|
|
132
|
+
`prefix` or `inputType` (not drawn with `code`).
|
|
133
|
+
- Chromium test `editor-code-line-browser.test.tsx`: a value over 420px all in sight at 280 / 330 / 400 and a phone's 390, the
|
|
134
|
+
fallback without `field-sizing`, Enter, paste and the caret, an input method's Enter, a short value one line; the same value in a
|
|
135
|
+
text box beside its label (as on main) as its negative control.
|
|
136
|
+
|
|
137
|
+
**The Items control: every list setting, one control** (09/11/2026; Chris "one shared control set", fast and handy, clicks before typing).
|
|
138
|
+
- `ItemsField` (`@gemboss/ui/editor`), on `RepeaterList` + `useKeyedRows`: each item one line (its picture or its words, a ⋯ with Move
|
|
139
|
+
up / Move down / Duplicate / Remove), its grip drags it, Alt+↑ / ↓ moves it; a click opens that item's fields in place, one item at a
|
|
140
|
+
time, drawn by `FieldRows` so each label sits where the label-side table says; "+ Add <item>" puts in the list's `starter` row, opens it
|
|
141
|
+
and focuses its first field; `min` / `max` turn Remove / Add and Duplicate off, each saying why; `rowHolds` keeps a row the host cannot
|
|
142
|
+
save yet as a draft, unsaved. ONE write per change: the whole list. Remove asks nothing (every host draws it with an Undo).
|
|
143
|
+
- FieldSpec `repeater` is drawn with it (FieldControl): it was boxes per row, keyed by index, no reorder, a write per key typed and an
|
|
144
|
+
object drawn as "[object Object]". New on the spec: `fields` (a row's fields, any kind a form draws; `from`: older keys a value is
|
|
145
|
+
stored under), `noun`, `min`, `max`, `starter`, `title`, `thumb`. `item` stays, and without `starter` "+ Add" still puts in every key
|
|
146
|
+
empty, so a list's stored rows keep their shape.
|
|
147
|
+
- `editor/items.ts` (`@gemboss/ui/editor/items`, no React): a row read and written as stored. One field's write keeps every other key, a
|
|
148
|
+
picture's alt text (`{ url, altText }`), an older key's name, a string row as a string; emptying a field the row does not hold changes
|
|
149
|
+
nothing; a value its control cannot show is kept and named, never drawn as words.
|
|
150
|
+
- `RepeaterList` `single` (one row open at a time), `canRemove` / `removeWhy`; `FieldRows` `shopId` (an app's kinds in every field of a run).
|
|
151
|
+
- A text box's or a text area's count ("2/4", `maxLength`) sits under its box, at the box's end (`.gemboss-ei-count`), wherever it is drawn:
|
|
152
|
+
in a row it ran across the field like a note, so it stood under the label. A number's bounds and a field's help still run across.
|
|
153
|
+
|
|
21
154
|
**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
155
|
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
156
|
values were cut, "#6b7280" scrollWidth 80 in 60).
|
|
@@ -42,6 +175,79 @@ values were cut, "#6b7280" scrollWidth 80 in 60).
|
|
|
42
175
|
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
176
|
(on "#DDDDDD", the widest hex), as its negative controls.
|
|
44
177
|
|
|
178
|
+
**What the theme editor's last hand-built controls needed** (09/11/2026; one control set, Chris 08/11: "một bộ control dùng chung"). The
|
|
179
|
+
element panel's Style and Show when, the POD buy box's pickers and print area, a theme section's words, Layout style and Custom CSS, and
|
|
180
|
+
Global styles' menus, form set, Quick view and style pack drew their own `<select>` / `<input>` / `<textarea>` / radio cards; they are the
|
|
181
|
+
kit's now (the admin's one-control-set list: 53 → 46 files). Added once, here:
|
|
182
|
+
- `ChoiceCards` (`@gemboss/ui/editor`): one choice of a few where each needs its words and a picture to be told apart before it is picked.
|
|
183
|
+
Real radios in one group (`name`): Tab enters at the one picked, the arrow keys move the pick; each card is its radio's label, one 44px
|
|
184
|
+
target at every width; the picture before the words or after them (`pictureAt`). Its look is in editor.css (`.gemboss-ei-choice*`).
|
|
185
|
+
- `SelectOption` `group`: a list draws a heading (`<optgroup>`) for each run of choices naming the same group (an element's styles: This
|
|
186
|
+
shop · Shared library). Chips draw none.
|
|
187
|
+
- `FieldSpec` text `code`: a line of code (a condition's expression), monospace, not spell-checked, its label above (the table's `code`).
|
|
188
|
+
One `code` since its merge with the CSS-value line (below): drawn as `CodeLine`, which wraps and grows; no one-line monospace box.
|
|
189
|
+
- `FieldControl` `note`: a line in sight under a select or a switch, inside its field (a row's note spans it), the control described by it
|
|
190
|
+
(`<id>-note`). `listId`: a `<datalist>` the host draws once for many text boxes (a menu's addresses).
|
|
191
|
+
- A number box steps with ↑ / ↓ as the browser's own number box does: by its `step` (1 by default), held to its bounds, an empty box from
|
|
192
|
+
its floor; each step is a draft like a key typed, written when the box is left.
|
|
193
|
+
- `describedBy` reaches On / Off and chips (on their group), as FieldControl's doc already said; `Seg` and `Segmented` take `describedBy`.
|
|
194
|
+
- A text or number box keeps what is typed when a host hands its draft back as the value (a host that shows each draft at once): a "0"
|
|
195
|
+
typed in a box held to 1 stays "0" until the box is left, then it is 1. Any other value from outside replaces the draft, as before.
|
|
196
|
+
|
|
197
|
+
**ChoiceCards: a card shown but not choosable** (09/11/2026; one control set, the plugin kernel's Uninstall dialog: Erase my data stays
|
|
198
|
+
in sight for a member who is not the store's Owner, off, its line saying why). `ChoiceCard` `disabled`: its radio off, the card faded
|
|
199
|
+
(`data-disabled`, the group's own look); the other cards stay choosable. The plugin kernel's last Polaris and hand-built controls (Show in
|
|
200
|
+
the menu, a widget's Theme, a library row's name and live tick, each theme's live look, Uninstall's Keep / Erase and its tick, a review
|
|
201
|
+
card's tick) are the kit's now: the admin's one-control-set list 46 → 40 files.
|
|
202
|
+
|
|
203
|
+
**What the theme editor's last hand-built controls needed** (09/11/2026; one control set, Chris 08/11: "một bộ control dùng chung"). The
|
|
204
|
+
element panel's Style and Show when, the POD buy box's pickers and print area, a theme section's words, Layout style and Custom CSS, and
|
|
205
|
+
Global styles' menus, form set, Quick view and style pack drew their own `<select>` / `<input>` / `<textarea>` / radio cards; they are the
|
|
206
|
+
kit's now (the admin's one-control-set list: 53 → 46 files). Added once, here:
|
|
207
|
+
- `ChoiceCards` (`@gemboss/ui/editor`): one choice of a few where each needs its words and a picture to be told apart before it is picked.
|
|
208
|
+
Real radios in one group (`name`): Tab enters at the one picked, the arrow keys move the pick; each card is its radio's label, one 44px
|
|
209
|
+
target at every width; the picture before the words or after them (`pictureAt`). Its look is in editor.css (`.gemboss-ei-choice*`).
|
|
210
|
+
- `SelectOption` `group`: a list draws a heading (`<optgroup>`) for each run of choices naming the same group (an element's styles: This
|
|
211
|
+
shop · Shared library). Chips draw none.
|
|
212
|
+
- `FieldSpec` text `code`: a line of code (a condition's expression), monospace, not spell-checked, its label above (the table's `code`).
|
|
213
|
+
- `FieldControl` `note`: a line in sight under a select or a switch, inside its field (a row's note spans it), the control described by it
|
|
214
|
+
(`<id>-note`). `listId`: a `<datalist>` the host draws once for many text boxes (a menu's addresses).
|
|
215
|
+
- A number box steps with ↑ / ↓ as the browser's own number box does: by its `step` (1 by default), held to its bounds, an empty box from
|
|
216
|
+
its floor; each step is a draft like a key typed, written when the box is left.
|
|
217
|
+
- `describedBy` reaches On / Off and chips (on their group), as FieldControl's doc already said; `Seg` and `Segmented` take `describedBy`.
|
|
218
|
+
- A text or number box keeps what is typed when a host hands its draft back as the value (a host that shows each draft at once): a "0"
|
|
219
|
+
typed in a box held to 1 stays "0" until the box is left, then it is 1. Any other value from outside replaces the draft, as before.
|
|
220
|
+
|
|
221
|
+
**What the Studio's own controls needed** (09/11/2026; one control set: the Studio's moments, run-funnel checks, holiday skin, media import,
|
|
222
|
+
canvas prompt bars, go-live link, cart-canvas switch and insert menu drew Polaris fields or raw boxes of their own; the admin's one-control-set
|
|
223
|
+
list 46 → 38 files). Added once, here:
|
|
224
|
+
- `CopyField` (`@gemboss/ui`, its own entry `copy-field.css`): a value to take away. Its read-only box (focus selects it), Copy link (Copied
|
|
225
|
+
for two seconds, or "Copy it by hand" with the box selected when the browser refuses the clipboard) and the host's actions after it, one row.
|
|
226
|
+
- `Switch` (`@gemboss/ui/editor`, its own entry `editor-switch.css`): on / off in place where a field's On / Off does not fit (a part's switch
|
|
227
|
+
on a canvas tag). The plain kit's `.ui-switch` numbers for a host without kit-plain.css; 44px under a finger, at least 24px under a mouse.
|
|
228
|
+
- `SelectOption` `disabled`: a list's option shown and not pickable ("Removed from the library", "This page has no sections").
|
|
229
|
+
- `PickSearch` and `PickerSearch` exported from `@gemboss/ui/editor`: the pickers' own search box for a host's combobox (the insert menu).
|
|
230
|
+
`editor-insert.css` no longer sizes a bare `input.gemboss-editor-insert-search` (the box is PickSearch's).
|
|
231
|
+
- No change to `ChatComposer`: with no chips it is already one row, the box and Send on it (both canvas prompt bars draw it so).
|
|
232
|
+
|
|
233
|
+
**What the theme editor's last hand-built controls needed** (09/11/2026; one control set, Chris 08/11: "một bộ control dùng chung"). The
|
|
234
|
+
element panel's Style and Show when, the POD buy box's pickers and print area, a theme section's words, Layout style and Custom CSS, and
|
|
235
|
+
Global styles' menus, form set, Quick view and style pack drew their own `<select>` / `<input>` / `<textarea>` / radio cards; they are the
|
|
236
|
+
kit's now (the admin's one-control-set list: 53 → 46 files). Added once, here:
|
|
237
|
+
- `ChoiceCards` (`@gemboss/ui/editor`): one choice of a few where each needs its words and a picture to be told apart before it is picked.
|
|
238
|
+
Real radios in one group (`name`): Tab enters at the one picked, the arrow keys move the pick; each card is its radio's label, one 44px
|
|
239
|
+
target at every width; the picture before the words or after them (`pictureAt`). Its look is in editor.css (`.gemboss-ei-choice*`).
|
|
240
|
+
- `SelectOption` `group`: a list draws a heading (`<optgroup>`) for each run of choices naming the same group (an element's styles: This
|
|
241
|
+
shop · Shared library). Chips draw none.
|
|
242
|
+
- `FieldSpec` text `code`: a line of code (a condition's expression), monospace, not spell-checked, its label above (the table's `code`).
|
|
243
|
+
- `FieldControl` `note`: a line in sight under a select or a switch, inside its field (a row's note spans it), the control described by it
|
|
244
|
+
(`<id>-note`). `listId`: a `<datalist>` the host draws once for many text boxes (a menu's addresses).
|
|
245
|
+
- A number box steps with ↑ / ↓ as the browser's own number box does: by its `step` (1 by default), held to its bounds, an empty box from
|
|
246
|
+
its floor; each step is a draft like a key typed, written when the box is left.
|
|
247
|
+
- `describedBy` reaches On / Off and chips (on their group), as FieldControl's doc already said; `Seg` and `Segmented` take `describedBy`.
|
|
248
|
+
- A text or number box keeps what is typed when a host hands its draft back as the value (a host that shows each draft at once): a "0"
|
|
249
|
+
typed in a box held to 1 stays "0" until the box is left, then it is 1. Any other value from outside replaces the draft, as before.
|
|
250
|
+
|
|
45
251
|
**`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
252
|
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
253
|
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
|
|
@@ -57,7 +263,6 @@ landed on a nav tab). `overflow: clip` cuts the same overflow without being a sc
|
|
|
57
263
|
`embedded-editor-under-sticky-nav-browser.test.ts`, with `hidden` restored as its negative control.
|
|
58
264
|
|
|
59
265
|
|
|
60
|
-
|
|
61
266
|
- `FieldFrame` / `PartsFrame` `labels` (`FrameClusterLabels`): a host's own name for a cluster where the kit's (Look · Layout · Visibility ·
|
|
62
267
|
Code) would say the wrong thing; the plugin kernel's settings name theirs Look and Behavior (one control set 08/11/2026).
|
|
63
268
|
|
|
@@ -77,6 +282,17 @@ cannot load kit-plain.css, drew five of its own in its publish review).
|
|
|
77
282
|
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
283
|
test holds the two to the same numbers.
|
|
79
284
|
|
|
285
|
+
**A number box takes the decimal keypad, and reads a comma as its point** (09/11/2026; one control set: GemPersonalizer's print widths in
|
|
286
|
+
inches, its print box in percent and a size chart's measurements were Polaris number boxes and raw `inputmode=decimal` cells).
|
|
287
|
+
`FieldSpec` `number` takes `inputMode` (`decimal` | `numeric`), the text box's option: default `numeric`, which on an iPhone has no point,
|
|
288
|
+
so "12.5" could not be typed there; `decimal` opens digits and a point. Every kit number box reads a comma typed for its point as one: the
|
|
289
|
+
decimal keypad of a comma locale (vi, de) has a "," and no ".", and "31,25" read as no number left the box empty (a commit of ""). For each
|
|
290
|
+
key, the commit, the echo check and ↑ / ↓. Chromium cases in editor-field-control-browser.test.tsx, with the decimal keypad and without.
|
|
291
|
+
- A refused field is painted in the admin too: `.gemboss-field[aria-invalid="true"]` (and a field group holding one) moved from
|
|
292
|
+
kit-plain.css to gemboss-field.css, the field's own sheet. The admin loads no kit-plain.css, so a FieldControl given `invalid` (quiz's
|
|
293
|
+
page address, cookie-consent's answer id, GemPersonalizer's print numbers) set `aria-invalid` and drew a plain box. Plain pages load
|
|
294
|
+
both sheets, the field's first: the same look. The plain list and text area (`.ui-select`, `.ui-textarea`) keep theirs in kit-plain.css.
|
|
295
|
+
|
|
80
296
|
**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
297
|
password box, Polaris' or a raw input, each with its own words for "it is stored").
|
|
82
298
|
- `SecretField` (`@gemboss/ui/editor`): the masked box (autocomplete off, no spell check, 1Password and LastPass told to stay out; a
|
|
@@ -2576,7 +2792,6 @@ Changed
|
|
|
2576
2792
|
- The phone topbar with a switcher in it: under 360px the search's floor drops from 96 to 56px (the bar has no other
|
|
2577
2793
|
room: ☰, mark, button, search, assistant, account). A bar without the switcher is unchanged.
|
|
2578
2794
|
|
|
2579
|
-
|
|
2580
2795
|
## 0.35.7 (15/10/2026)
|
|
2581
2796
|
|
|
2582
2797
|
**The rail's scrollbar runs down the rail's edge.** The 12px side gutter was padding on `.icon-nav`, so the scroll box
|
package/README.md
CHANGED
|
@@ -2137,10 +2137,14 @@ import { Avatar, Dialog, Leaderboard, Podium, SearchDialog, ThemeToggle, themeSc
|
|
|
2137
2137
|
chriskoh26/gemboss-www, published on npm): the whole site kit (tokens from one `system.json`, header with the mega
|
|
2138
2138
|
menu, footer, sections, the rules Claude Code follows in `AGENTS.md`, and a CLI that checks a site and reports gaps).
|
|
2139
2139
|
Chris chose it on 24/10/2026 so GemPages, Gemians and every other GemCommerce website follow one kit. This layer stays
|
|
2140
|
-
until the pages still on it (
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2140
|
+
until the pages still on it (the community home) move over; do not adopt it on a new page. **GemNews is not one of them**
|
|
2141
|
+
(Chris 09/11/2026: "đồng bộ style của gemnews và gemcommunity và theo gemboss ui"): the GemNews new tab and news.gemboss.ai
|
|
2142
|
+
are an APP surface, like GemCommunity's member pages, and follow `@gemboss/ui` (tokens, `theme-dark.css`, the plain kit,
|
|
2143
|
+
`icons-plain.js`), not `@gemboss/website-ui`.
|
|
2144
|
+
|
|
2145
|
+
**Which layer.** A PUBLIC page (gemboss.ai, the docs, a product's home page before sign-in) uses this layer. An APP
|
|
2146
|
+
surface (the admin, a portal behind sign-in, GemFeedback's board, GemCommunity's member pages, the GemNews new tab and
|
|
2147
|
+
news.gemboss.ai) keeps `Topbar` + `BrandLockup` and the rest of `@gemboss/ui`. Chris 20/10/2026: "có gemboss
|
|
2144
2148
|
ui thì có gemboss website ui"; measured the same day, the public pages had drifted on the same detail: the logo name 18px on
|
|
2145
2149
|
gemboss.ai and the docs, 16px on news, 13.3px on the community home; the bar 65 / 57 / 69 / 56px.
|
|
2146
2150
|
|
|
@@ -3558,6 +3562,7 @@ node packages/ui/scripts/collections-gate.mjs --url https://partner-radar.ops.ge
|
|
|
3558
3562
|
|---|---|---|
|
|
3559
3563
|
| A work list: items with an #ID, filters, a review queue, links people send each other (GemFactory board) | **Pages**, `ui-pager` with numbers, position in the URL (`?p=3`) | Back returns to the same place, a link opens the same page, the total is visible. Infinite scroll loses all three. |
|
|
3560
3564
|
| One column of a Kanban (GemFactory), or a feed read top to bottom | **Load more**, `ui-more` | Nobody jumps to page 9 of one column or of a feed. |
|
|
3565
|
+
| The same, where the reader scans down a long column (content-radar Ideas) | **Load more** that loads itself: a server-paged `Board` with `autoMore` (09/11/2026) | The column reads on; after 4 automatic loads the button is back, so the footer and the next column stay reachable. Only loads handled in place (onLoadMore, a router link) are pressed. |
|
|
3561
3566
|
|
|
3562
3567
|
`ui-pager`: `<a rel="prev">` · page links · `<span class="ui-pager__gap" aria-hidden="true">…</span>` · the current page as
|
|
3563
3568
|
`<a aria-current="page">` (filled) · `<a rel="next">` · `<span class="ui-pager__range">201–250 of 655</span>` (pushed right).
|
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.68.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";
|
package/catalog/index.html
CHANGED
|
@@ -27,7 +27,7 @@ body{margin:0;background:var(--gemboss-app-bg,#f1f1f1);color:var(--gemboss-text)
|
|
|
27
27
|
@media (max-width:760px){.cat{grid-template-columns:1fr;padding:16px}.cat-nav{position:static;flex-direction:row;flex-wrap:wrap}}
|
|
28
28
|
</style></head><body>
|
|
29
29
|
<div class="cat"><nav class="cat-nav" aria-label="Mục"><a href="#tokens">Token</a><a href="#buttons">Nút</a><a href="#fields">Ô nhập</a><a href="#choice">Tab, nhóm nút, thẻ</a><a href="#surfaces">Thẻ, số liệu, bảng, trạng thái trống</a><a href="#report">Báo cáo</a><a href="#collections">Bảng, list, lưới, board</a><a href="#resizer">Thanh kéo giữa hai cột</a><a href="#modal">Hộp thoại, toast, menu (JS thuần)</a><a href="#sheet">Ngăn trượt cạnh phải</a><a href="#reader">Hộp đọc tài liệu</a><a href="#settings">Hộp cài đặt</a><a href="#switcher">Chuyển dịch vụ</a><a href="#shell">Khung app</a><a href="#nav">Chờ điều hướng</a><a href="#page">Bề rộng nội dung</a><a href="#portal">Cổng công khai: tab trên topbar, tìm kiếm, sáng / tối, người dẫn đầu</a><a href="#site">Trang công khai: thanh trên, logo cỡ site, nút, chân trang</a><a href="#auth">Đăng nhập</a><a href="#setup">Hướng dẫn thiết lập</a><a href="#chat">Thân chat</a><a href="#reactions">Reactions</a><a href="#team-chat">Chat đội</a><a href="#action-card">Thẻ hành động</a><a href="#assistant-engine">Trợ lý: chọn engine</a><a href="#assistant-bridge">Trợ lý: cầu nối trên máy (0.32.0)</a><a href="#assistant-chat">Trợ lý: khung chat (0.29.0)</a><a href="#assistant">Trợ lý: cột phiên</a><a href="#icons">Icon</a><a href="#editor">Editor</a></nav>
|
|
30
|
-
<main><header class="cat-head"><h1>@gemboss/ui 0.
|
|
30
|
+
<main><header class="cat-head"><h1>@gemboss/ui 0.68.0</h1><p>Ngôn ngữ thiết kế chung của các công cụ GemBoss. Markup dưới mỗi ví dụ là đúng thứ package render ra; bề mặt không dùng React (HTML tĩnh, Python) chép markup này và nạp <code>gemboss-ui.css</code>. Dựng từ gemboss <code>463a72a34c27</code>.</p></header>
|
|
31
31
|
<section id="tokens"><h2>Token</h2><p>Đổi giao diện một bề mặt bằng cách đặt lại token, không viết đè class. Tên và giá trị đọc thẳng từ gemboss-ui.css.</p><div class="cat-swatches"><div class="cat-swatch"><i style="background:var(--gemboss-primary)"></i><code>--gemboss-primary</code><span>#1b1c1e</span></div><div class="cat-swatch"><i style="background:var(--gemboss-primary-dark)"></i><code>--gemboss-primary-dark</code><span>#000000</span></div><div class="cat-swatch"><i style="background:var(--gemboss-primary-soft)"></i><code>--gemboss-primary-soft</code><span>#f2f3f5</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent)"></i><code>--gemboss-accent</code><span>#5661f5</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent-strong)"></i><code>--gemboss-accent-strong</code><span>#3a44de</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent-soft)"></i><code>--gemboss-accent-soft</code><span>#eef0fe</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent-wash)"></i><code>--gemboss-accent-wash</code><span>#f7f8ff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent-tint)"></i><code>--gemboss-accent-tint</code><span>#dfe2ff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent-mid)"></i><code>--gemboss-accent-mid</code><span>#c9cffd</span></div><div class="cat-swatch"><i style="background:var(--gemboss-text-strong)"></i><code>--gemboss-text-strong</code><span>#1b1c1e</span></div><div class="cat-swatch"><i style="background:var(--gemboss-text)"></i><code>--gemboss-text</code><span>#1b1c1e</span></div><div class="cat-swatch"><i style="background:var(--gemboss-text-muted)"></i><code>--gemboss-text-muted</code><span>#686b71</span></div><div class="cat-swatch"><i style="background:var(--gemboss-surface)"></i><code>--gemboss-surface</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-canvas)"></i><code>--gemboss-canvas</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-preview-canvas)"></i><code>--gemboss-preview-canvas</code><span>#eceef1</span></div><div class="cat-swatch"><i style="background:var(--gemboss-rail-bg)"></i><code>--gemboss-rail-bg</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-panel-bg)"></i><code>--gemboss-panel-bg</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-divider)"></i><code>--gemboss-divider</code><span>#e5e7ea</span></div><div class="cat-swatch"><i style="background:var(--gemboss-divider-soft)"></i><code>--gemboss-divider-soft</code><span>#edeff2</span></div><div class="cat-swatch"><i style="background:var(--gemboss-hover)"></i><code>--gemboss-hover</code><span>#eceef2</span></div><div class="cat-swatch"><i style="background:var(--gemboss-active-bg)"></i><code>--gemboss-active-bg</code><span>#f0f1f4</span></div><div class="cat-swatch"><i style="background:var(--gemboss-active-fg)"></i><code>--gemboss-active-fg</code><span>#1b1c1e</span></div><div class="cat-swatch"><i style="background:var(--gemboss-danger)"></i><code>--gemboss-danger</code><span>#d72c0d</span></div><div class="cat-swatch"><i style="background:var(--gemboss-danger-strong)"></i><code>--gemboss-danger-strong</code><span>#b42318</span></div><div class="cat-swatch"><i style="background:var(--gemboss-danger-soft)"></i><code>--gemboss-danger-soft</code><span>#fff0e9</span></div><div class="cat-swatch"><i style="background:var(--gemboss-danger-border)"></i><code>--gemboss-danger-border</code><span>#f5c9bc</span></div><div class="cat-swatch"><i style="background:var(--gemboss-success)"></i><code>--gemboss-success</code><span>#007f5f</span></div><div class="cat-swatch"><i style="background:var(--gemboss-success-strong)"></i><code>--gemboss-success-strong</code><span>#0a6a4c</span></div><div class="cat-swatch"><i style="background:var(--gemboss-success-soft)"></i><code>--gemboss-success-soft</code><span>#e3f1df</span></div><div class="cat-swatch"><i style="background:var(--gemboss-success-border)"></i><code>--gemboss-success-border</code><span>#b7dfcd</span></div><div class="cat-swatch"><i style="background:var(--gemboss-warning)"></i><code>--gemboss-warning</code><span>#9a6700</span></div><div class="cat-swatch"><i style="background:var(--gemboss-warning-soft)"></i><code>--gemboss-warning-soft</code><span>#fff8e0</span></div><div class="cat-swatch"><i style="background:var(--gemboss-warning-border)"></i><code>--gemboss-warning-border</code><span>#f5d569</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-bg)"></i><code>--gemboss-dark-bg</code><span>#0a0a0c</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-rail)"></i><code>--gemboss-dark-rail</code><span>#0e0e11</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-surface)"></i><code>--gemboss-dark-surface</code><span>#16161a</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-surface-2)"></i><code>--gemboss-dark-surface-2</code><span>#1e1e24</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-divider)"></i><code>--gemboss-dark-divider</code><span>#2a2a31</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-text)"></i><code>--gemboss-dark-text</code><span>#ededf0</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-muted)"></i><code>--gemboss-dark-muted</code><span>#9a9aa4</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-bg)"></i><code>--gemboss-field-bg</code><span>#fdfdfd</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-bg-hover)"></i><code>--gemboss-field-bg-hover</code><span>#fafafa</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-ink)"></i><code>--gemboss-field-ink</code><span>#303030</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-placeholder)"></i><code>--gemboss-field-placeholder</code><span>#616161</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-line)"></i><code>--gemboss-field-line</code><span>#8a8a8a</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-line-hover)"></i><code>--gemboss-field-line-hover</code><span>#616161</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-line-active)"></i><code>--gemboss-field-line-active</code><span>#1a1a1a</span></div><div class="cat-swatch"><i style="background:var(--gemboss-chip-ink)"></i><code>--gemboss-chip-ink</code><span>#303633</span></div><div class="cat-swatch"><i style="background:var(--gemboss-chip-line)"></i><code>--gemboss-chip-line</code><span>#cfd6ce</span></div><div class="cat-swatch"><i style="background:var(--gemboss-chip-line-hover)"></i><code>--gemboss-chip-line-hover</code><span>#aab4ad</span></div><div class="cat-swatch"><i style="background:var(--gemboss-chip-bg-hover)"></i><code>--gemboss-chip-bg-hover</code><span>#f6f7f5</span></div><div class="cat-swatch"><i style="background:var(--gemboss-on-primary)"></i><code>--gemboss-on-primary</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-app-bg)"></i><code>--gemboss-app-bg</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-fill-tertiary)"></i><code>--gemboss-fill-tertiary</code><span>#2a2b33</span></div><div class="cat-swatch"><i style="background:var(--gemboss-fill-tertiary-hover)"></i><code>--gemboss-fill-tertiary-hover</code><span>#33353f</span></div><div class="cat-swatch"><i style="background:var(--gemboss-fill-tertiary-active)"></i><code>--gemboss-fill-tertiary-active</code><span>#3a3c46</span></div></div><table class="ui-table cat-scale"><thead><tr><th>Token</th><th>Giá trị</th><th>Mẫu</th></tr></thead><tbody><tr><td><code>--gemboss-fs-micro</code></td><td>11px</td><td style="font-size:var(--gemboss-fs-micro)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-caption</code></td><td>12px</td><td style="font-size:var(--gemboss-fs-caption)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-body</code></td><td>14px</td><td style="font-size:var(--gemboss-fs-body)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-body-lg</code></td><td>16px</td><td style="font-size:var(--gemboss-fs-body-lg)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-h3</code></td><td>16px</td><td style="font-size:var(--gemboss-fs-h3)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-h2</code></td><td>20px</td><td style="font-size:var(--gemboss-fs-h2)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-h1</code></td><td>24px</td><td style="font-size:var(--gemboss-fs-h1)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-display</code></td><td>30px</td><td style="font-size:var(--gemboss-fs-display)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-radius-xs</code></td><td>4px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-xs)"></i></td></tr><tr><td><code>--gemboss-radius-sm</code></td><td>6px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-sm)"></i></td></tr><tr><td><code>--gemboss-radius-md</code></td><td>8px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-md)"></i></td></tr><tr><td><code>--gemboss-radius-lg</code></td><td>12px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-lg)"></i></td></tr><tr><td><code>--gemboss-radius-xl</code></td><td>16px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-xl)"></i></td></tr><tr><td><code>--gemboss-radius-2xl</code></td><td>20px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-2xl)"></i></td></tr><tr><td><code>--gemboss-radius-full</code></td><td>999px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-full)"></i></td></tr><tr><td><code>--gemboss-shadow-resting</code></td><td class="cat-small">0 1px 2px rgba(31, 30, 29, 0.04), 0 2px 6px rgba(31, 30, 29, 0.06)</td><td><i class="cat-radius" style="box-shadow:var(--gemboss-shadow-resting);border:0"></i></td></tr><tr><td><code>--gemboss-shadow-raised</code></td><td class="cat-small">0 4px 16px rgba(31, 30, 29, 0.10)</td><td><i class="cat-radius" style="box-shadow:var(--gemboss-shadow-raised);border:0"></i></td></tr><tr><td><code>--gemboss-shadow-overlay</code></td><td class="cat-small">0 16px 48px rgba(31, 30, 29, 0.18)</td><td><i class="cat-radius" style="box-shadow:var(--gemboss-shadow-overlay);border:0"></i></td></tr></tbody></table></section>
|
|
32
32
|
<section id="buttons"><h2>Nút</h2><p>Một lớp <code>ui-btn</code>, ba biến thể, tông đỏ, một cỡ nhỏ. Cao 28px dưới chuột như Button của Polaris (ô nhập và ô chọn 32, như TextField), 44px dưới ngón tay và ở khổ điện thoại, cỡ nhỏ cũng vậy. Dùng được trên <code><button></code> lẫn <code><a></code> (căn giữa sẵn).</p><figure class="cat-demo"><figcaption>Mặc định · chính · ghost · nhỏ · tắt</figcaption><div class="cat-live"><div class="cat-row"><button type="button" class="ui-btn">Lưu nháp</button><button type="button" class="ui-btn ui-btn--primary">Xuất bản</button><button type="button" class="ui-btn ui-btn--ghost">Huỷ</button><button type="button" class="ui-btn ui-btn--sm">Nhỏ</button><button type="button" class="ui-btn ui-btn--primary" disabled>Đang lưu…</button><a class="ui-btn" href="#buttons">Link dạng nút</a></div></div><details class="cat-code"><summary>Markup</summary><pre><code><div class="cat-row">
|
|
33
33
|
<button type="button" class="ui-btn">Lưu nháp</button>
|
|
@@ -13032,7 +13032,7 @@ document.querySelector(".gb-tc-body").append(tc.jumpToLatest({ count:
|
|
|
13032
13032
|
</section>
|
|
13033
13033
|
</div>
|
|
13034
13034
|
</div></code></pre></details></figure></section>
|
|
13035
|
-
<section id="assistant"><h2>Trợ lý: cột phiên</h2><p><code>SessionRail</code> (React). Khung toàn màn hình / cửa sổ nổi / cột phải cao hết màn (<code>allowSide</code>) / thanh là <code>AssistantHost</code>, cần React vì có trạng thái.</p><figure class="cat-demo"><figcaption>SessionRail</figcaption><div class="cat-live"><div style="height:360px;display:flex"><aside class="gemboss-assistant-rail"><div class="gemboss-assistant-rail-top"><button type="button" class="gemboss-assistant-newchat" title="Phiên mới"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H5.5A1.5 1.5 0 0 0 4 5.5v9A1.5 1.5 0 0 0 5.5 16h9a1.5 1.5 0 0 0 1.5-1.5V9"></path><path d="M14.5 3.5l2 2L10 12H8v-2z"></path></g></svg><span>Phiên mới</span></button><button type="button" class="gemboss-assistant-collapse" aria-label="Collapse sidebar" title="Collapse"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5l-5 5 5 5"></path></g></svg></button></div><div class="gemboss-assistant-search gemboss-field gemboss-field--group"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="9" r="5"></circle><path d="M13 13l3.5 3.5"></path></g></svg><input class="gemboss-field__bare" placeholder="Tìm phiên…" aria-label="Search history" value=""/><kbd class="gemboss-assistant-kbd">/</kbd></div><div class="gemboss-assistant-threads"><div class="gemboss-assistant-group"><div class="gemboss-assistant-group-label">Đã ghim</div><div class="gemboss-assistant-thread"><button type="button" class="gemboss-assistant-thread-main" title="So sánh advertorial với listicle"><span class="gemboss-assistant-thread-titlerow"><svg viewBox="0 0 20 20" class="gemboss-assistant-pin-dot" aria-hidden="true" focusable="false"><path d="M8 3.5h4l-.5 5 2.5 2.5H6l2.5-2.5z" fill="currentColor"></path><path d="M10 11v5.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"></path></svg><span class="gemboss-assistant-thread-title">So sánh advertorial với listicle</span></span><span class="gemboss-assistant-thread-meta">
|
|
13035
|
+
<section id="assistant"><h2>Trợ lý: cột phiên</h2><p><code>SessionRail</code> (React). Khung toàn màn hình / cửa sổ nổi / cột phải cao hết màn (<code>allowSide</code>) / thanh là <code>AssistantHost</code>, cần React vì có trạng thái.</p><figure class="cat-demo"><figcaption>SessionRail</figcaption><div class="cat-live"><div style="height:360px;display:flex"><aside class="gemboss-assistant-rail"><div class="gemboss-assistant-rail-top"><button type="button" class="gemboss-assistant-newchat" title="Phiên mới"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H5.5A1.5 1.5 0 0 0 4 5.5v9A1.5 1.5 0 0 0 5.5 16h9a1.5 1.5 0 0 0 1.5-1.5V9"></path><path d="M14.5 3.5l2 2L10 12H8v-2z"></path></g></svg><span>Phiên mới</span></button><button type="button" class="gemboss-assistant-collapse" aria-label="Collapse sidebar" title="Collapse"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5l-5 5 5 5"></path></g></svg></button></div><div class="gemboss-assistant-search gemboss-field gemboss-field--group"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="9" r="5"></circle><path d="M13 13l3.5 3.5"></path></g></svg><input class="gemboss-field__bare" placeholder="Tìm phiên…" aria-label="Search history" value=""/><kbd class="gemboss-assistant-kbd">/</kbd></div><div class="gemboss-assistant-threads"><div class="gemboss-assistant-group"><div class="gemboss-assistant-group-label">Đã ghim</div><div class="gemboss-assistant-thread"><button type="button" class="gemboss-assistant-thread-main" title="So sánh advertorial với listicle"><span class="gemboss-assistant-thread-titlerow"><svg viewBox="0 0 20 20" class="gemboss-assistant-pin-dot" aria-hidden="true" focusable="false"><path d="M8 3.5h4l-.5 5 2.5 2.5H6l2.5-2.5z" fill="currentColor"></path><path d="M10 11v5.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"></path></svg><span class="gemboss-assistant-thread-title">So sánh advertorial với listicle</span></span><span class="gemboss-assistant-thread-meta">1/10/2026</span></button><div class="gemboss-assistant-thread-actions"><button type="button" class="gemboss-assistant-thread-act" aria-label="Options"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="5" cy="10" r=".8"></circle><circle cx="10" cy="10" r=".8"></circle><circle cx="15" cy="10" r=".8"></circle></g></svg></button></div></div></div><div class="gemboss-assistant-group"><div class="gemboss-assistant-group-label">Hôm nay</div><div class="gemboss-assistant-thread active"><button type="button" class="gemboss-assistant-thread-main" title="Store nào đang dựng loạt landing?"><span class="gemboss-assistant-thread-titlerow"><span class="gemboss-assistant-thread-title">Store nào đang dựng loạt landing?</span></span><span class="gemboss-assistant-thread-meta">3 giờ trước</span></button><div class="gemboss-assistant-thread-actions"><button type="button" class="gemboss-assistant-thread-act" aria-label="Options"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="5" cy="10" r=".8"></circle><circle cx="10" cy="10" r=".8"></circle><circle cx="15" cy="10" r=".8"></circle></g></svg></button></div></div></div><div class="gemboss-assistant-group"><div class="gemboss-assistant-group-label">Hôm qua</div><div class="gemboss-assistant-thread"><button type="button" class="gemboss-assistant-thread-main" title="Landing điểm cao nhất của corpus"><span class="gemboss-assistant-thread-titlerow"><span class="gemboss-assistant-thread-title">Landing điểm cao nhất của corpus</span></span><span class="gemboss-assistant-thread-meta">1 ngày trước</span></button><div class="gemboss-assistant-thread-actions"><button type="button" class="gemboss-assistant-thread-act" aria-label="Options"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="5" cy="10" r=".8"></circle><circle cx="10" cy="10" r=".8"></circle><circle cx="15" cy="10" r=".8"></circle></g></svg></button></div></div></div></div></aside></div></div><details class="cat-code"><summary>Markup</summary><pre><code><div style="height:360px;display:flex">
|
|
13036
13036
|
<aside class="gemboss-assistant-rail">
|
|
13037
13037
|
<div class="gemboss-assistant-rail-top">
|
|
13038
13038
|
<button type="button" class="gemboss-assistant-newchat" title="Phiên mới">
|
|
@@ -13081,7 +13081,7 @@ document.querySelector(".gb-tc-body").append(tc.jumpToLatest({ count:
|
|
|
13081
13081
|
</svg>
|
|
13082
13082
|
<span class="gemboss-assistant-thread-title">So sánh advertorial với listicle</span>
|
|
13083
13083
|
</span>
|
|
13084
|
-
<span class="gemboss-assistant-thread-meta">
|
|
13084
|
+
<span class="gemboss-assistant-thread-meta">1/10/2026</span>
|
|
13085
13085
|
</button>
|
|
13086
13086
|
<div class="gemboss-assistant-thread-actions">
|
|
13087
13087
|
<button type="button" class="gemboss-assistant-thread-act" aria-label="Options">
|