เริ่มต้น
บันทึกการเปลี่ยนแปลง
เวอร์ชันล่าสุดคือ 0.41.0 ก่อนย้าย .components ของแอปไปเวอร์ชันใหม่ ให้อ่านทุกเวอร์ชันที่ข้าม แล้วทำตามบรรทัด Apps ของแต่ละเวอร์ชันใน Pull Request เดียวกัน
บันทึกเขียนเป็นภาษาอังกฤษ เพราะนักพัฒนาและเครื่องมือ AI อ่านจากไฟล์ CHANGELOG.md ในที่เก็บเดียวกันนี้
อัปเกรดจากเวอร์ชันของคุณ
แอปของคุณใช้เวอร์ชัน
ดูได้จาก git -C .components describe --tags
ทุกเวอร์ชัน
0.41.0
2026-11-27
Minorไม่ต้องแก้โค้ดล่าสุดApps: A
DataTablerow under the pointer is now a lighter grey than the table's header, half ofink-50instead of the sameink-50, so the header no longer looks like one of the rows while you move along them. Selected rows are unchanged..data-table tbody tr:hoverusesbg-ink-50/50. Over a white Card this is about#fbfbfb, against the header's#f7f7f7.
0.40.0
2026-11-27
Minorไม่ต้องแก้โค้ดApps: Nothing looks different:
Panelkeeps working until 1.0.0. Move everyPaneltoCardbefore then, and write no newPanel. The harness's screen checker reports each one.Deprecated:
Panel, removed in 1.0.0. UseCard, which does everything Panel does, because every part of Card is optional.<Panel>becomes<Card>.<Panel title={x}>becomes<Card title={x} description={…} icon={…}>, because a card that holds a section of a page always has its header, with an outline icon from lucide-react that fits the content. A Panel inside a Panel becomes<Card tone="muted">inside a Card.classNamestays the same. Card spaces its content from its header itself, so drop a wrapper that only addedmt-4under a Panel's title. The Panel docs page shows the old and new code.Panelis marked@deprecatedin its JSDoc.PageHeader, in the same file, isn't.- The docs site and the MCP now show every
@deprecatednote. A deprecated component's page opens with a Deprecated alert. A deprecated prop says so in the props table. In the MCP,get_componentgives a Deprecated: line for the component and for each deprecated prop, such asCard'shref, andlist_componentsmarks the component (deprecated). - The Forms and tables page guide, the AppShell, DashedContainer, DataTable, Card and RecordSection pages, and the MCP's
get_startednow say Card only. The guide's reason and attachments section is a Card with its header.
0.39.0
2026-11-26
Minorไม่ต้องแก้โค้ดApps:
BudgetBartakes an optionalreserved: the budget held by purchase requests with no purchase order yet (ก่อนผูกพัน). A screen whose budget balance has a reserved figure, such as Flow 1's budget screens, should pass it, because remaining is now allocated less reserved, committed and actual. Without it, the bar would show remaining too high. Screens that leave it out look the same as before.BudgetBartakesreserved?: number. When it's passed, even as 0, the bar shows a fifth figure, ก่อนผูกพัน (Reserved), between Allocated and Committed, and the five figures wrap to fit the card. It also adds a blue segment after committed,url(#gv-c4), and a legend entry,bg-c4. Remaining subtracts it.- With
reservedleft out, the figures, bar and legend are unchanged. - The BudgetBar docs page shows Flow 1: 150,000.00 reserved after the purchase request, committed after the purchase order, actual after payment, with remaining 350,000.00 throughout. An example without reservations shows the old layout.
components.md0.1.24 mentionsreserved.
0.38.0
2026-11-26
Minorไม่ต้องแก้โค้ดApps:
Comboboxtakes an optionalicon, the leading icon, which defaults toSearchas before. A Combobox that finds one kind of thing, such as a unit filter, may now pass an icon that says so, such asBuildingComplexfor a unit orUserRoundfor a person.Building2is lucide's old name forBuildingComplexand draws the same icon.Comboboxtakesicon?: LucideIcon, shown at the start of the field in place of the magnifier. Leave it out to keepSearch.- The Combobox docs page has a new example, Another icon, with a unit filter using
BuildingComplexandhideLabel.
0.37.0
2026-11-26
Minorไม่ต้องแก้โค้ดApps: In a
DialogorDrawer, the lists ofSelect,ComboboxandSearchInput, theDateInputcalendar, and theActionMenuandPopoverboxes now float over the dialog. They no longer stretch it or make it scroll. Each opens below its field, or above when there isn't room below, and never goes past the top or bottom of the screen: one taller than the room scrolls inside itself. Outside a dialog nothing changes. Remove any extra space or bottom padding a screen added under these fields in a dialog to make room for a list.useFloatInDialog, used bySelect,Combobox,SearchInput,DateInput,ActionMenuandPopover, places a panel with fixed positioning when its field is inside an opendialog. It flips the panel above when there's more room there, limits its height to the room on that side, keeps 8 pixels from the screen's edges, lines it up with the field's start or end, and follows the field on scroll, resize and size changes. It isn't exported..menu[data-float="true"]and.popover[data-float="true"], in the utilities layer, read the measured position from--float-top,--float-left,--float-max-hand--float-anchor-w. A floating list keeps its usual 18rem cap, ormin(32rem, 70vh)for cards, and a list as wide as its field keeps the field's width.NativeSelectandColourInputare unchanged: the browser draws their pickers above the page already.- The Dialog docs page has a new example, Fields that open a list or a box, in a dialog, with a
DateInput,Select,NativeSelect,Combobox,SearchInput,ColourInput,PopoverandActionMenu, so developers can try each near the top and bottom of a short window. A new rule says to leave no extra room for these panels. components.md0.1.23 describes floating panels in the Overlays section.
0.36.0
2026-11-26
Minorไม่ต้องแก้โค้ดApps: Tables behave as before until a screen passes
active. A screen whose filter bar has a filter with no chip, such as a statusSegmented, should passfilters.activewhile that filter narrows the list, and makeonClearAllput it back on All. Without it, a filter that leaves no rows shows the first-use empty state, which hides the filter bar and offers the create action, so people can't switch the filter back.TableFilterstakesactive: the filters on the bar are narrowing the list, even where a filter has no chip, such as aSegmentedthat isn't on its All choice. It counts as filtering along with any chips. With no rows, the table shows No results, "ไม่พบรายการที่ตรงกับเงื่อนไข" (Nothing matches these filters) with Clear search and filters, and keeps the filter bar, instead ofempty's first-use state.- With
activeand no chips, the filter bar ends with its own Clear all, a quiet button that callsonClearAll, because there's no row of chips to hold one. onClearAll's JSDoc says it resets every filter, including those without a chip.- The DataTable docs page's filter bar example passes
activeand resets the status in Clear all. A new example, A filter that matches nothing, starts on a status with no requests. Rules for screens say when to passactive. components.md0.1.22 describesactive, and when the table shows No records yet or No results.
0.35.0
2026-11-26
Minorไม่ต้องแก้โค้ดApps: A
DataTable'sfilters.panelnow always shows, in one row on the left of the filter bar, with no Search criteria button to open it first. The search box sits on the right at about a fifth of the table's width. The table's search box, the top bar's search and select, and everySegmentednow have 12 pixel corners like every other input, instead of round ends. A panel built as a form, such as a grid of labelled fields with an Apply button, still works but now always shows: rebuild it from compact fields, aSegmentedwith acounton each choice and aSelect,ComboboxorDateInputwithhideLabeland a placeholder that names the filter, which apply as soon as they change.DataTable's filter bar:.table-toolsis one row, withfilters.panelon the left in.table-filters, always showing, and the search box on the right in.table-search, a fifth of the table's width and at least 14rem, or the whole row at phone width. The Search criteria button, its count and the hidden panel are gone, and the toolbar's controls line up along their bottom edge. Filter chips and Clear all still show under the bar while any filter is in use.Select,ComboboxandDateInputtakehideLabel, which keeps the label for screen readers only, for a field whose placeholder names it on screen, such as a filter in the filter bar.FormFieldtakes it too.SegmentedOptiontakescount, shown after the label in.seg-count, such as how many requests each status has.- Every input has 12 pixel corners (
rounded-control): the table's search box and the top bar's search and select lost their round ends, and.seghas 12 pixel corners with 8 pixel corners on its buttons. ASegmentedin the filter bar is as tall as the fields beside it. - The DataTable docs page's filter example is now a filter bar with a status
Segmentedwith counts, a unitSelectand a date range, and its Rules for screens say how a filter bar is built. The Segmented page has a count example. The FilterChips, TableState and TableFirstUse pages say filter bar instead of criteria. components.md0.1.21 describes the filter bar,hideLabel,countand the 12 pixel corners on every input.
0.34.0
2026-11-26
Minorไม่ต้องแก้โค้ดApps: Existing list tables gain a search box and sortable headings. Every
DataTablegiven all its rows (nototal,pagedleft on) now shows a search box saying ค้นหา (Search) when it has a text column, and every column with a heading sorts from its heading. Passsearchto say what can be searched;search={false}orsortable: falseturns one off. Paging was already on by default and is unchanged. A list the core API pages (total) gets none of this by itself, as before: give every such listsearchwithonChange,sortable: trueon the columns the core API can sort withonSortChange, andonPageChange, and fetch again. In a column withopens, only the value is now the link: left-aligned, with anavatartile andsubline no longer underlined. Cards that hold a section of a page should have atitle, a shortdescriptionand anicon: add the missing ones.DataTable'ssearchtakesTableSearch | false. Left out on a table that has every row, has a text or searchable column and isn'tpaged={false}, the table shows its own search box with the placeholder ค้นหา (Search) in the screen language.falsehides it. A record's lines (paged={false}) still have none unlesssearchis passed, and a list the core API pages (total) still needssearchwithonChange, because the table can't search rows it doesn't have.DataColumn'ssortablenow defaults to true in a table that has every row and pages them, for every column with a heading: text, number, money, date and badge columns all sort, badges by their label.sortable: falseturns one off. Withtotalit stays false unless set, because the core API sorts, and a record's lines (paged={false}) keep their order unless a column sayssortable: true.- Paging:
pagedis true by default, and the range, page size and pager show under every list table that has rows. Withtotal, the screen passespagewithonPageChangeandpageSizewithonPageSizeChange. The DataTable docs page andcomponents.mdsay so. - In a column with
opens, the link or button now wraps only the value. Before, it wrapped the whole cell: a button centred it, so the column didn't line up left, and anavatarcolumn's initials tile andsubline were underlined with the name. The value is now left-aligned, and the tile and thesubline sit outside the link. - Card: a new rule for screens. A card that holds a section of a page always has its header: a
title, a short one-linedescriptionand an outlineiconfrom lucide-react that fits the content. The Card docs page says so in When to use it and Rules for screens, and its examples, the DashedContainer, Steps and DataTable examples, and the docs site's own cards now show one. The harness's screen check (0.31.2) reports a<Card>without its title, description or icon. - The DataTable docs page's Rules for screens say every list table has a search box and sorts and pages, what a list with
totalmust pass, and how an opens column looks. components.md0.1.20 describes the default search box, sorting and paging, the opens column and the card header rule.
0.33.0
2026-11-25
Minorไม่ต้องแก้โค้ดApps:
Stepswithout the new fields renders exactly as before. Screens can now give each step adescriptionand its owncontent, for a step-by-step task such as a request form.Steptakesdescription, a line or two under the label, such as who acts, what the step needs, or when it was done. It shows in both orientations, in.step-desc.Steptakescontent: the step's own area, holding any of the library's components, such as a form,FileDrop,Chips, aBadgeorButtons. - Vertical: every step that has content shows it under its label and description, in.step-bodyand.step-content, beside the line that joins the circles. For a one-step-at-a-time task, pass content to the current step only. - Horizontal: a row has no room for it, so only the current step's content shows, under the row, in.step-panel.Stepsthen renders adivaround itsol, andclassNamegoes on thatdiv. - Content is at the page's normal text size, so a form in a step looks as it does anywhere else.- On a feature
Card, a step's description is light, like the card's own description. - The Steps docs page has four new examples: descriptions under each step, a request form step by step with Back and Next, a badge, chips and buttons in steps, and a row whose current step shows its form under it. Its Rules for screens cover what to put in content.
components.md0.1.19 describesdescriptionandcontent.
0.32.1
2026-11-25
Patchไม่ต้องแก้โค้ดApps: On a feature
Card, theIconButtoninactionand any quietButtonnow keep their white icon and text on hover, on a translucent white circle. Before, hover turned them white on near-white. This fixes the web dashboard's first scenario card.- Every
.icon-btngot the near-white--g-secondary-hovergradient on hover, and every.btn-quietthe light brand one, on a feature card too. There the white icon or text vanished into it. On.card[data-tone="feature"]that gradient is now off, so hover shows only the card's ownbg-white/15. - The Card docs page's feature card example now has an
IconButtoninaction, so its hover shows.
- Every
0.32.0
2026-11-25
Minorไม่ต้องแก้โค้ดApps:
Cardwithhrefstill works and looks the same until 1.0.0. Move off it in the pin Pull Request, as Deprecated says.Deprecated:
Card'shref, removed in 1.0.0. A card is no longer a link itself. Open a page through anIconButtonwithhrefin the card'sactioninstead, such asaction={<IconButton icon={ArrowUpRight} label="ดูคำขอที่รออนุมัติ" href="/approvals" />}. The label says where it goes, in the screen language. A card that already has anactionkeeps it, and the page link goes in itsfooteras a smallButtonwithhref.Card'shrefis marked@deprecated, with the move written in its JSDoc. Its JSDoc says to open a page throughaction.- The Card docs page replaces "The whole card as a link" with "Opening a page from a card", using an
IconButtoninaction. Its Rules for screens now start with: never make the whole card a link. components.md0.1.18 says the same.
0.31.0
2026-11-25
Minorไม่ต้องแก้โค้ดApps: Screens look and behave the same. Each component's HTML now carries two extra attributes,
data-uianddata-ui-part, which draw nothing. Use the names they give, shown as badges on the docs site, to say which part of a screen to change, such as "the DataTable pager" or "the Card footer".- Every exported component marks its outermost element with
data-ui="Name", its exported name, such asdata-ui="DataTable". - Its main sections carry
data-ui-part="part", named after the prop that fills them where there is one, such asCard'stitle,actionandfooter,PageHeader'skickerandactions, orAppShell'srail,topbarandpage. Otherwise they get a plain noun, such asDataTable'stoolbar,table,totalRowandpager. - Components that render no element of their own get no mark:
AppThemeProvider,LangProviderandChartPaints.TagInputrenders aFormField, so it shows asFormField. - The docs site shows each mark as a badge on every example, such as
Card › footer. Each name shows once per example. The tag button in the top bar hides or shows them, and the choice is remembered. npm run checknow refuses an exported component without itsdata-ui.AGENTS.mdandcomponents.mddescribe the marks.
- Every exported component marks its outermost element with
0.30.0
2026-11-25
Minorไม่ต้องแก้โค้ดApps: Screens look the same. A
DataTablethat sits on aCardorPanelshould now go in the newDashedContainer: wrap it as<DashedContainer><DataTable … /></DashedContainer>when you next touch that screen.- New component
DashedContainer, exported from@bsru/ui, with the class.dashed-container. It draws a dashed outline with space inside, and no background, heading or shadow, around one block inside aCardorPanel. It can hold aDataTable, a preview or a group of figures. It takeschildren, andclassNamefor placement only. On a feature card its outline is translucent white. - The new DashedContainer docs page shows a
DataTableon aCard, andKeyFiguresin aPanel. The DataTable page and both dashboard pages put their tables on cards in one. - On the docs site, the props tables sit on a
Cardin aDashedContainer, and each example's data table sits in one too. components.md0.1.14 describesDashedContainer, and its Data table Look row says to put a table on a card in one.
- New component
0.29.0
2026-11-25
Minorไม่ต้องแก้โค้ดApps: A
DataTablewith atotalcolumn now shows its total row at phone width too, as a labelled block under the rows. Screens can show a record's own lines withDataTableinstead ofLineItems.Deprecated:
LineItemsand its typeLineItem, removed in 1.0.0. UseDataTablewithpaged={false}:columnsbecomes fourDataColumns, withkind: "number"andunit: "unit"on the quantity, andkind: "money"on the unit price and the amount, plustotal: trueon the amount.itemsbecomesrowswithrowKey="key", andtotal={x}becomestotals={{ amount: x }}.captionandtotalLabelstay the same. The LineItems docs page shows the old and new code.DataColumntakesunit, another row field shown after a number or money value, such as เครื่อง after a quantity of 5. Sorting and the total use the number alone. A column withunitdoesn't wrap.DataTabletakespaged,trueby default.paged={false}shows every row, with no range text, page size or pager, for a short list that belongs to one record, such as a purchase request's lines. Withtotalset it has no effect. The total row's default label is then รวม (Total) instead of รวมทุกหน้า (Total, all pages).DataTable'stotalsnow also work withouttotal: a column intotalsshows the core API's figure instead of adding up the rows, so a record's total always matches its amount. A list the core API pages works as before.DataTable's total row was hidden at phone width. It now shows there as a labelled block, asLineItems' total did. With more than one total column, each label adds the column's name.- The DataTable docs page has a "Lines of a record" example. The Tabs and Drawer pages show a request's lines with
DataTable.components.mddescribesunit,paged, record lines and the phone total row.
0.28.1
2026-11-25
Patchไม่ต้องแก้โค้ดApps:
Stepsinside a featureCardshows its numbers and ticks again, in white on the brand colour.- A step's number was white on white inside
Card tone="feature":.stepkept its white fill but took the card's white text..stepnow sets its own text colour,text-ink-900. - On a feature card,
Stepshas its own look on the brand gradient. A step to come is a translucent white ring with a white number, the step in progress a solid white ring, and a done step solid white with a brand tick. The vertical lines are translucent white, solid from a done step. This applies to both orientations. - The Steps docs page has a vertical example on a feature card.
components.md's Step tracker row says so.
- A step's number was white on white inside
0.28.0
2026-11-25
Minorไม่ต้องแก้โค้ดApps: Existing
Stepslook and behave the same. Screens can now passorientation="vertical"and leave outcurrent.Stepstakesorientation,"horizontal"by default, which keeps today's row."vertical"stacks the steps in a.steps-verticalcolumn: each label beside its circle and wrapping, with a thin line from circle to circle, in the brand colour from a done step. Any number of steps fits a card or a narrow column.Steps'scurrentis now optional. Left out, the list is a plain outline of a process that isn't running: every step shows its number, and none is ticked, bold oraria-current. Given, it works as before.- New type
StepsOrientation, exported from@bsru/ui. - The Steps docs page has a vertical outline and a vertical example with
current.components.md's Step tracker row describes both.
0.27.2
2026-11-25
Patchไม่ต้องแก้โค้ดApps: Screens look and behave the same.
- Every Pull Request that changes what the apps get, meaning anything in
ui/,source/ortokens.json, is now a release: it bumpsVERSIONand adds its entry here.AGENTS.mdsays so in the rules for a component change. npm run checkcompares the branch withorigin/main, and refuses a change toui/,source/ortokens.jsonthat leavesVERSIONas it was. It names the files. Where there's no git history, such as inside the docs site's image, it skips this check.
- Every Pull Request that changes what the apps get, meaning anything in
0.27.1
2026-11-25
Patchไม่ต้องแก้โค้ดApps: Screens look and behave the same.
CHANGELOG.mdholds the release notes for every version, newest first, starting from 0.1.0. Read every entry after the version an app is on, up to the one it moves to, before moving the.componentspin.npm run checkrefuses a release whoseVERSIONhas no entry at the top ofCHANGELOG.md, an entry out of order, or a Type that doesn't match the version number.- The docs site has a Release notes page under Start here, built from
CHANGELOG.md. Pick the version an app is on to see only the versions it crosses, with every code change and deprecation listed first. - The docs site shows the library's version in the menu and on the Overview, linked to the release notes.
AGENTS.md's release steps andREADME.mdsay how to write an entry.
0.27.0
2026-11-25
Minorไม่ต้องแก้โค้ดApps: The gold demo strip now spans the whole window at its top edge, square and 20px tall, and stays there while the page scrolls.
.demo-stripis one line, 20px tall,sticky top-0with square corners, inAppShell,SignInLayoutandStatusPage.AppShellrenders thedemostrip as the shell's first child, before<header class="topbar">instead of inside it. On wide screens the menu and the top bar start 10px below the strip.- On phones the top bar sticks just below the strip (
top-5). - The strip's text,
<p>element and class are unchanged. Only its place moved, so a test that looks for it inside the header would fail. Neither app's tests do. - The
demoprop's JSDoc andcomponents.mdsay where the strip goes.
0.26.1
2026-11-25
Patchไม่ต้องแก้โค้ดApps: The sign-in figures look sharp, with no glow blurring their edges.
SignInFigureno longer adds the bloom pass (EffectComposerandBloom).- The lights still glow through the halo sprites and
GlowLine's faint wide stroke. @react-three/postprocessingandpostprocessingstay inpackage.json, so an app that installed them for the figures needs no change.
0.26.0
2026-11-25
Minorไม่ต้องแก้โค้ดApps: Everything clickable shows the hand pointer on mouseover, and disabled controls show the not-allowed cursor.
- A new
:where()rule in@layer basegives the hand pointer to buttons, links, summaries, selects, checkbox, radio, file, colour and range inputs, file picker buttons, the labels that toggle them, and thebutton,link,tab,option,menuitem,switch,checkbox,radioandtreeitemroles. - A second rule gives not-allowed to disabled controls, including
aria-disabledones and those in a disabledfieldset. - Both rules have no specificity, so a component's own cursor still wins.
.switch,.radio-card,.menu-item,.menu-cardand.search-optionshow not-allowed when disabled.- The pointer rule is in the style guide's
README.md, andcomponents.mdhas a Pointer row.
- A new
0.25.1
2026-11-25
Patchไม่ต้องแก้โค้ดApps: The sign-in figures look sharper at the brand panel's capped size.
SignInFigure's bloom is tighter: radius 0.75 to 0.35, intensity 1.6 to 1.1, threshold 0.6 to 0.7, smoothing 0.25 to 0.2.- No prop, type or class changes.
0.25.0
2026-11-25
Minorไม่ต้องแก้โค้ดApps: On tall screens the 3D figure in the sign-in page's brand panel stays at most 384px tall, centred, instead of growing with the window.
.signin-scenegetslg:max-h-96(24rem). Screens where the space is already under 24rem look the same.components.md's Brand panel row says so.- bsru-erp-auth renders the same markup and picks this up with its own pin move.
0.24.2
2026-11-25
Patchไม่ต้องแก้โค้ดApps: The
AppShellside menu fits the shell's height, so its rounded foot no longer runs off the bottom behind the iPad Safari toolbar or in a shorter box..shellfills the visible window with100dvhand holds its one grid row to that height (minmax(0,1fr))..railand.shell-mainstretch to the shell's row instead of takingcalc(100vh - 1.25rem)from the window.- On phones the menu still slides in at full height.
components.md's Left menu row says how the shell is sized.
0.24.1
2026-11-24
Patchไม่ต้องแก้โค้ดApps: The isometric figures now match the app's primary colour, and pages no longer show a second scrollbar beside the page panel.
SignInFigure,ConnectedFigure,ApprovalFigure,AuditFigureandAssistantFigureread--color-brand-300to--color-brand-900and--g-railfrom the page, for the app set bydata-app. Until the tokens can be read, the library's own values stand..shell-pageis nowrelative, so absolutely placed parts, such as a props table's screen-reader caption, stay inside the page panel and scroll with it.- No prop, type, default, export or class changes. The figures'
appprop keeps its meaning.
0.24.0
2026-11-24
Minorต้องแก้โค้ดApps: Add
@fontsource/figtreeat exactly version 5.3.0 to the app's dependencies (npm install --save-exact @fontsource/figtree@5.3.0), because the library'sui/src/fonts.css, imported byui/src/styles.css, now imports it. No screen code changes; screens get a three-panel frame, Figtree for English text and only two font weights.- App frame: on wide screens the left menu, the top bar and the page are separate light grey panels on white, with 20px corners, 10px from the window's edge. Only the page panel scrolls.
AppShellwraps the screen's content in<div class="shell-page">, and the top bar's inner row has.topbar-bar. - Side menu: the current page is a white tile with semibold dark text and an 8px round brand bar on the menu's edge. Other items are light weight, and submenu links are 16px like groups.
--font-sansis now"Figtree", "IBM Plex Sans Thai", …: English letters and numbers use Figtree, and Thai falls through to IBM Plex Sans Thai.- Two font weights on screens: Light 300 for normal text (body, field values, table data, unselected menu items, segments, tabs and page numbers) and Semibold 600 for highlights (selected or current items, buttons, labels, table headers, badges and key figures). Don't use 400 or 500 on screens. Trirong headings keep 600, and issued documents keep Sarabun 400 and 700.
- bsru-erp-auth's sign-in build also needs
figtreein its font-copy list.
- App frame: on wide screens the left menu, the top bar and the page are separate light grey panels on white, with 20px corners, 10px from the window's edge. Only the page panel scrolls.
0.23.0
2026-11-24
Minorไม่ต้องแก้โค้ดApps: Panels lose their border and gain a soft shadow, and
GaugeChart,DataTable, the top bar and the left menu are restyled; existing props keep their meaning.- New
Card(a server component):title,description,icon,action,header,footer,tone(plain,featureormuted) andhref, which makes the whole card a link through its title. Classes.card,.card-head,.card-icon,.card-title,.card-desc,.card-action,.card-body,.card-footand.card-link. .panel(Panel, the status page card, the table's empty state) is white with no border and a very soft shadow. A panel inside a panel turns light grey.KpiTilestakes optionalvariant="cards"(.kpi-card) andhighlight={i}, which features one card in the new--g-featuregradient.Sparklinetakeslightandarea, with a newurl(#g-area-light)paint.GaugeChartis a segmented thick half ring: the result in series 1, the stretch to the target in a newurl(#gv-deep)paint instead of the black tick, the rest hatched, the figure inside the ring and a legend (.bg-deep,.bg-hatch). New optional propsrestLabelandcaption.DataTable: soft grey header, taller rows, bold money figures, rounded square page buttons (.page-gapfor gaps) and a pill search box (.table-tools). A column takes a new optionalavatar, which shows the value's initials in a round tile.AppShell: top-bar controls sit on white with no border, and the account button is a white pill (.account-btn). The left menu scrolls with a hidden scrollbar and a More pill (.rail-scroll,.rail-nav). The collapsed menu is 72px wide and the seal keeps its shape (.rail-brand img).
- New
0.22.0
2026-11-24
Minorไม่ต้องแก้โค้ดApps: The
AppShelland charts are restyled, with a light grey menu, deeper forest greens, neutral greys, pill buttons and rounder corners.AppShellleft menu: a light grey panel with round corners. The current link is a white tile with a 4px brand gradient bar on the menu's edge, and its group getsdata-current="true". The submenu clips with.rail-sub-inner. The right column is nowdiv.shell-main(it wasdiv.min-w-0and keepsmin-w-0). The top bar is grey with no border, its icon buttons are white circles and search is a white pill.- Greens are deeper:
green-300#8ccfae,green-500#3a9b6c,green-700#1c6846,green-800#155134,green-900#0f3b26. The primary gradient runs from #237d52 to #155134. Theink-*greys and the page, surface, raised, control, ink and top-bar gradients are neutral, with no green or purple tint. - Corners: controls 12px, panels 20px, overlays 24px.
Button,IconButton, segments and page buttons are pills. - Charts:
BarChartrounds the top corners by 4px;GaugeChartis a 28px half ring over a hatchedurl(#hatch)track (TRACKpoints at it,gh-trackstays);BulletCharttracks are hatched pills;DonutChartis a 36px ring with gaps; lines are 2.5px; legend keys are dots. Seriesc1is #237d52; console keeps purple first. - New page guide Pages → Dashboard (
page-dashboard), with an ERP budget overview and a console system overview built fromPageHeader,KpiTiles,BarChart,GaugeChart,DonutChartandDataTable.
0.21.0
2026-11-24
Minorต้องแก้โค้ดApps: In bsru-erp-console only, add
data-app="console"to<html>and wrap the content insideLangProviderin<AppThemeProvider app="console">(aroundToastProvider), asui/README.mdshows; without it console stays green. bsru-erp-web needs no change and looks the same.- New tokens
brand-*(base colour) andaccent-*(second colour) intheme.css. In web they are green and purple. Under[data-app="console"]they swap, with the rail, hero, primary, fill and soft gradients, chart seriesc1andc2, and the heatmap ramp.[data-app="web"]restores web inside a console page. - Every brand use in
components.cssusesbrand-*oraccent-*. Status colours never swap;.badge-paiduses a new--g-success, so it stays green in console. - New
AppThemeProvider({ app }),useAppTheme()and typeAppTheme. The provider setsdata-appon adisplay: contentswrapper. DataTable,BulkBar,Selectchips,Steps, record links and the shell's unread dot and avatar use brand or accent, and chart paints read CSS variables.SignInFigureand each*Figuretake an optionalapp, which defaults to the provider, then to web.- The brand caption in
SignInLayoutandStatusPagehastext-brand-100instead oftext-green-100. Update any test that checks that class. tokens.jsongainsconsoleandpaintgroups. The docs get a Web/Console switch and an AppThemeProvider page.
- New tokens
0.20.0
2026-11-24
Minorไม่ต้องแก้โค้ดApps: The isometric figures send a comet every 4 seconds instead of every 2, and
AssistantFigureshows a larger scene.ConnectedFigure,AssistantFigureandSignInFiguretake an optionalinterval: the seconds between comets, default 4.AssistantFigureis rebuilt on a 9 × 9 plate. The MCP server passes each request in turn to one of five systems on their own tiles: the database, files, images, an API and the security guard.- A trip runs assistant → server → system → server → assistant, and the system lights up when the request reaches it.
- The server's rack lights are dark at rest and wink only while a request or answer passes through.
0.19.1
2026-11-24
Patchไม่ต้องแก้โค้ดApps:
AssistantFigure's MCP server and data store are lit differently.- The MCP server loses its roof slab, shield and flash, and becomes a rack of small blue, green and amber lights that wink on their own rhythm.
- The data store loses its lit bands and glow. Its rims are drawn in yellow light, and a wave runs up them when a request arrives.
- No prop, type or default changes.
0.19.0
2026-11-24
Minorไม่ต้องแก้โค้ดApps: Nothing in
@bsru/uichanged.- New
AssistantFigureinui/src/signin-figures, also theassistantkind ofSignInFigure: an AI assistant sends requests through the MCP server to the ERP's data store, and the answers come back. Pressing the assistant sends a request at once. SignInFigureKindgainsassistant. This widens it, so existing code still compiles.- The docs get an
AssistantFigurepage in the Isometric 3D section, and the sign-in examples get a fourth message, เชื่อมต่อ AI ผ่าน MCP.
- New
0.18.0
2026-11-24
Minorไม่ต้องแก้โค้ดApps: Nothing in
@bsru/uichanged.- New exports
ConnectedFigure,ApprovalFigureandAuditFigurefromui/src/signin-figures, besideSignInFigure. They take no props and fill their container. - Outside the sign-in panel, a figure paints the brand gradient over its own box. Inside the panel it still matches the panel's gradient.
- The docs get an Isometric 3D menu section after Charts, with a page for each figure and for
SignInFigure.
- New exports
0.17.2
2026-11-24
Patchไม่ต้องแก้โค้ดApps: The sign-in figures' boxes and cylinders show three tones, as if lit from above.
- Each top is a little lighter than its colour, the side facing right a little darker, and the side facing left darkest. Nothing casts a shadow.
- This replaces 0.17.1's lighter band on the bases' sides. No prop, type or default of
SignInFigurechanged.
0.17.1
2026-11-24
Patchไม่ต้องแก้โค้ดApps: The sign-in figures' bases read as solid slabs.
- The plate is 0.3 thick, and the floor tiles and pads 0.08. Their upright faces take a lighter green band.
- The phone and the record stack moved up to sit on the thicker tiles. No prop, type or default of
SignInFigurechanged.
0.17.0
2026-11-24
Minorไม่ต้องแก้โค้ดApps:
SignInFigureisn't exported from@bsru/ui, so web and console don't load three.js, and sign-in pages look the same unless a slide setsart.SignInSlidetakes an optionalart: a figure shown in the brand panel between the logo and the headline, on wide screens only, in the new.signin-scene. It's hidden from screen readers.- New
SignInFigurein its own entry,ui/src/signin-figures, with kindsconnected,approvalandaudit. Parts can be pressed, and a drag turns the figure a little. With reduced motion a figure moves only when pressed. - The library's
package.jsonaddsthree0.186.1,@react-three/fiber9.8.2,@react-three/drei10.7.9,@react-three/postprocessing3.2.2,postprocessing6.39.6 and@types/three0.186.0. Only code that importsui/src/signin-figuresneeds them. - The
SignInLayoutdocs page has a new example, andcomponents.mddescribes.signin-sceneand the new entry.
0.16.0
2026-11-23
Minorไม่ต้องแก้โค้ดApps: Additions only; existing screens look the same.
- New
SignInLayout: a green brand panel (brand,headline,description,slides,image,imageAlt) beside a white form side (title,subtitle,children,alternatives,footer,topAction,notice). On phones the panel becomes a compact header. - New
StatusPage:kindisnotFound,forbidden,serverErrorormaintenance, each with an icon, default code and Thai and English wording.codeoverrides the code andnullhides it. Other props:title,description,actions,reference,expectedBack,brand,notice, andfill(defaulttrue;fill={false}sits insideAppShell's content area). - New exported types
PageBrand,SignInSlide,StatusKindandStatusReference, and new classes.page-*,.signin-*and.status-*. - New Pages group in the docs with guides
page-sign-in,page-not-found,page-forbidden,page-server-errorandpage-maintenance. The sign-in guide has no Remember me, no register link, one failure message for every cause and no Google or Facebook buttons. - bsru-erp-auth copies this markup for its sign-in pages, and should move to the
SignInLayoutmarkup once its pin reaches 0.16.0.
- New
0.15.0
2026-11-23
Minorไม่ต้องแก้โค้ดApps: On phones and tablets (
pointer: coarse) small text is slightly larger; desktop is unchanged.- On touch screens
text-xsis 14px,text-sm15px,text-base17px andtext-lg20px, following Apple's default Dynamic Type sizes.text-xland up are unchanged. - Fields stay at 16px or more, so iPhones don't zoom in on focus.
data-touchon the root element asks for the touch sizes on any screen.tokens.jsongains atext-touchgroup.
- On touch screens
0.14.2
2026-11-23
Patchไม่ต้องแก้โค้ดApps: Docs site only.
- Docs site only: device previews are drawn at the device's real physical size, matched to the viewer's screen with a card held against it. No component, prop or class changes.
0.14.1
2026-11-23
Patchไม่ต้องแก้โค้ดApps: Docs site only.
- Docs site only: each device preview draws the device's body around its screen at real proportions, adds the iPhone 15 series and gives the Galaxy Z Fold8 Ultra its own sizes. No component, prop or class changes.
0.14.0
2026-11-23
Minorไม่ต้องแก้โค้ดApps: New props are optional and keep today's look; search fields no longer show the browser's own clear button beside the library's.
Select,ComboboxandSearchInputtakeimageon an option or item,layout="cards"to show options as a grid of cards, andmenuWidth:trigger(default),sm20rem,md28rem,lg42rem orxl56rem.- New exported types
OptionLayoutandMenuWidth. A list wider than the room to its right lines up with the field's right edge, and slides along to stay on a phone's screen through a measured--menu-shift. SearchInputtakessuggestionsandonSuggestionPick, and becomes a combobox only when given them.- Fix: Chrome and Safari no longer show their own clear button beside a search field's.
- Docs only, from the untagged 0.13.1: each device preview is shown at the device's full size, scaled down to fit the page.
0.13.0
2026-11-23
Minorไม่ต้องแก้โค้ดApps: The new prop is optional.
AppShelltakes an optionalactionsprop: extra top-bar controls between search and the language switch, such as a help button.- The docs' top bar has a device list that shows every example at a phone, foldable or tablet screen size, so the components' own breakpoints respond as on the device.
0.12.0
2026-11-23
Minorไม่ต้องแก้โค้ดApps: The apps use only the React components and
ui/src/styles.css, which don't change.- Removes the static guide page:
source/src/page.html, theUI.*scripts insource/src/js/,source/scripts/build.mjs,source/package.json,source/src/app.css,source/src/fonts.cssandnpm run build:static. source/src/theme.cssandsource/src/components.cssstay. No class, token or component is removed, and no import path changes.- The phone screen guidance moves to a new Phone screens section under Foundations on the docs home.
components.mdandcharts.mdpoint to the React components.
- Removes the static guide page:
0.11.0
2026-11-23
Minorไม่ต้องแก้โค้ดApps: A
DateInputwithout alabelnow includes itsplaceholderin its screen-reader name, and calendar cells lose their 1px padding.DateInputtakeskind="range": a first and last day in one calendar. The value is an ISO interval such as2026-12-15/2026-12-19, and the field shows15–19 ธ.ค. 2569 (5 วัน).minandmaxare days.DateInputtakes new optionalaria-describedbyandaria-invalid, so aFormFieldgroup's hint and error reach each field.DateKindgainsrange. New classes.cal-cell[data-range](start, end, middle, single) and.cal-hint.- The DateInput page says when to use
kind="range"and when to use two fields in a group. The FormField examples are now a range of twoDateInputs.
0.10.1
2026-11-23
Patchไม่ต้องแก้โค้ดApps: Docs and comments only.
- Docs and comments only: the TextInput page drops its deprecated date examples, and the FormField page, its JSDoc and the README point dates to
DateInput.TextInputstill acceptsdate,datetime-local,monthandweek.
- Docs and comments only: the TextInput page drops its deprecated date examples, and the FormField page, its JSDoc and the README point dates to
0.10.0
2026-11-23
Minorไม่ต้องแก้โค้ดApps: Additions only; existing date fields keep working.
Deprecated:
TextInputwithtypedate,datetime-local,monthorweek— useDateInputwithkinddate,datetime,monthorweekinstead.- New
DateInput, a date picker drawn by the library.kindisdate(default),datetime,monthorweek(ISO weeks, Monday first). - Its words follow
LangProvider, with the Buddhist year in Thai, such as8 ธ.ค. 2569. Values stay ISO with the Gregorian year, asTextInput's did:2026-12-08,2026-12-08T09:30,2026-12,2026-W50. - Props:
value,defaultValue,onValueChange,min,max,minuteStep(default 5),placeholder,name,disabled,label,hint,errorandrequired. - New type
DateKind, and new classes.date-trigger,.cal,.cal-head,.cal-title,.cal-grid,.cal-wk,.cal-cell,.cal-months,.cal-timeand.cal-foot.
- New
0.9.0
2026-11-20
Minorไม่ต้องแก้โค้ดApps: The global search button keeps its label and ⌘ K shortcut on one line at medium widths.
- New
Panel: the white bordered surface (.panel) for one group of content, with an optionaltitle. It renders in server code. - New
PageHeader:kicker,title(the page's oneh1),descriptionandactions. It renders in server code. Buttontakes an optionallangprop for a label in another language, such as an English language switch on a Thai page.- Use
Button,PanelandPageHeaderinstead of a plain<button class="btn btn-secondary">, apanelsection, or text-size and colour classes on a heading.
- New
0.8.1
2026-11-20
Patchไม่ต้องแก้โค้ดApps: Docs only.
- Docs only:
AGENTS.mdgets backward compatibility rules. A patch only fixes and a minor only adds. Nothing is removed, renamed, narrowed or changed in default or meaning outside a major release; it's marked@deprecatedfirst.classNameon a component only places it in the layout.
- Docs only:
0.8.0
2026-11-20
Minorไม่ต้องแก้โค้ดApps:
Draweris 40rem (640px) wide instead of 30rem, and the page behind an open drawer, dialog or global search no longer scrolls.- New components:
Switch,RadioCards,RangeInput,ColourInput,NativeSelect,ActionMenu,Popover,StatusDot,Stamp,DocumentSheet,Breadcrumb,RecordHeaderandConfirmChange. TextInputadds thedatetime-local,monthandweektypes, andIconButtontakescountfor a red number on its corner.- New
CopyButton(variant="button",copiedLabel,size,outline,onCopy) anduseCopyhook, styled bydata-copy="copied"or"failed". Drawertakessummary({ title, status, figure }) andloading, with new classes.drawer-head,.drawer-body,.drawer-summary,.drawer-figureand.drawer-foot.- The drawer body scrolls with a hidden scrollbar and a More pill while more is below (
.scroll-quiet,.scroll-fade,.scroll-more).
- New components:
0.7.0
2026-11-20
Minorไม่ต้องแก้โค้ดApps:
AppShell's newsearchprop is optional.- New
GlobalSearch: opens from a button or Ctrl K (⌘ K on a Mac), lists results by group, and works as a combobox with the keyboard. Withitemsonly it searches them itself; withonQueryChangethe screen searches through the API and passes results back, withstatus. AppShelltakes an optionalsearchprop that putsGlobalSearchin the top bar.- New classes
.search-trigger,.kbd,dialog.search-dialog,.search-box,.search-group,.search-optionand.search-hit. - Docs: each example's data shows as a Data passed in table with allowed values, the Props section is now All props, and the docs' top bar searches components, examples, props, types, colour tokens and icons.
- New
0.6.1
2026-11-20
Patchต้องแก้โค้ดApps: Delete the app's
/style-guidepage and any import from@bsru/ui/style-guide/(such asStyleGuidePage), becauseui/style-guide/is removed. bsru-erp-web and bsru-erp-console already removed that page (web#22, console#22).- Removes
ui/style-guide/, the specimen page the apps showed at/style-guide. - To try a component, use its page on the docs site (
npm run dev, http://localhost:3200), or a real screen through the app's.components.
- Removes
0.6.0
2026-11-20
Minorต้องแก้โค้ดApps: Pin this repository at
.components/instead of.style-guide/; intsconfig.jsonset"@bsru/ui": ["./.components/ui/src/index.ts"]and"@bsru/ui/*": ["./.components/ui/*"]; insrc/app/globals.cssimport../../.components/ui/src/styles.cssand change each@source not "../../.style-guide/…"line to../../.components/…. Imports from@bsru/uistay the same.- The repository and package are renamed from
bsru-erp-style-guidetobsru-erp-components. GitHub redirects the old address. - The Icon page has a gallery of all 2,015 icons in lucide-react 1.66.0. Pressing a tile copies
<Icon icon={Name} />. - The docs home starts with Foundations: the 36 colour tokens with their
bg-classes, 12 gradients, the three typefaces, text sizes and weights, radius and shadow.
- The repository and package are renamed from
0.5.1
2026-11-20
Patchต้องแก้โค้ดApps: Pin this repository at
.style-guide/instead of reaching it through.harness/style-guide; intsconfig.jsonset"@bsru/ui": ["./.style-guide/ui/src/index.ts"]and"@bsru/ui/*": ["./.style-guide/ui/*"]; insrc/app/globals.cssimport../../.style-guide/ui/src/styles.cssand use the@source notlines inui/README.md. An app that already pins at.components/has nothing to do here.ui/README.mdgives the app set-up with.style-guidepaths fortsconfig.jsonandglobals.css.- Links into the harness change from
../knowledge/and../docs/to../.harness/. A release now moves the apps' pins directly, with no harness step.
0.5.0
2026-11-20
Minorต้องแก้โค้ดApps: Pass
MoneyInput'sdefaultValueas a number ornullinstead of text, for exampledefaultValue={150000}instead ofdefaultValue="150,000.00"; its newvalueis a number too.OtpInput'slabelnow shows on screen, and the other changed props became optional, so they need no change.- New
Button: tonesprimary,secondary,dangerandquiet, withicon,iconAfter, a small size,busy,disabled,wide,hrefandform. - New
IconButton:labelis the accessible name and the hover text, with two sizes,outline,danger,pressedandhref. - New
TextInput(text, email, url, date and time, with an optional leading icon) andFormField, which wraps a native control the library doesn't, withgroupfor a group of controls. - Every input takes
label,hint,errorandrequired, and can be controlled withvalueandonValueChange.PasswordInput,SearchInputandPhoneInputgainvalue;NumberStepperkeeps typed values withinminandmax;FileDropadds and removes files;TagInput'sonAddcan returnfalse. SelectandComboboxtakelabel, solabelledByis optional. Use thelabelanderrorprops andButtoninstead of hand-written labels andbtnmarkup.
- New
0.4.0
2026-11-20
Minorต้องแก้โค้ดApps: Wherever code passes a
Textpair such as["รายการ", "Items"]toAppShell(ShellBrand,ShellGroup,ShellLink,ShellNotification,ShellAccount,ShellMenuItem,crumbs,demo) or to a chart (LineChart,BarChart,DonutChart,GaugeChart,BulletChart,WaterfallChart,Heatmap,SlopeChart,KpiTiles,LineSeries,WaterfallStep,Kpi), pass one plain string translated with the app'st()instead, for props such astitle,ariaLabel,label,unitandlegend.- No component prop takes a
Textpair any more. - The rule for text: the screen's own words come from the app's message files through
t(); data from the core API is shown as given; the component's own words, such as Next page, live in the library and followLangProvider. - The
LangProviderpage shows the set-up with next-intl: pass the app's locale once, and handleonChangeby setting theNEXT_LOCALEcookie and refreshing. - Fix: React keys in
AppShellandKpiTilesuse the label itself instead of the English half of the pair.
- No component prop takes a
0.3.0
2026-11-20
Minorไม่ต้องแก้โค้ดApps:
DataTableis new.- New
DataTable: a screen passescolumns(DataColumn<Row>[]),rows,rowKey,captionandsearch, and the table renders the rest. - A column's
kindistext,number,money,date(Buddhist year in Thai) orbadge(looked up inbadges).sub,opens,totalandhideOnPhoneadd a second line, open the row, add a total and hide the column on phones. - It handles search, the criteria panel and filter chips, sorting, paging, selection with bulk actions, a total row,
onOpenoropenHref, and the loading, error, first-use and no-results states. - With all rows, it searches, sorts and pages them itself. For a server-paged list, pass
total(andtotals), and it reports each change so the screen can query again.sort,page,pageSize,search.valueandselection.selectedcan each be controlled.
- New
0.2.0
2026-11-20
Minorไม่ต้องแก้โค้ดApps: Component code is unchanged; only JSDoc comments were added.
- A docs site with a page for every component: what it's for, live examples with their code and data, a props table, its data types and rules for screens. Run
npm ci, thennpm run dev, and open http://localhost:3200. - Every prop and type has a JSDoc description, and the props tables are generated from them.
- The README and
AGENTS.mdset the rule that screens pass data only.
- A docs site with a page for every component: what it's for, live examples with their code and data, a props table, its data types and rules for screens. Run
0.1.0
2026-11-20
Minorไม่ต้องแก้โค้ดApps: First release of the library as its own repository, with the same components, classes and tokens as the harness's
style-guide/at harness v0.23.0.- React components in
ui/src, imported as@bsru/ui:AppShell,Dialog,Drawer,Select,Combobox, the inputs,Tabs,Steps,ToastProvider, the record parts, and the charts such asLineChart,BarChart,DonutChart,GaugeChartandKpiTiles. - Tokens and classes in
source/src/theme.cssandsource/src/components.css, imported throughui/src/styles.css, and described intokens.json,tokens.md,components.mdandcharts.md. npm run check,npm run tokensandnpm run build, with a CI check and a gitleaks secret scan.
- React components in