ข้ามไปยังเนื้อหา

เริ่มต้น

บันทึกการเปลี่ยนแปลง

เวอร์ชันล่าสุดคือ 0.41.0 ก่อนย้าย .components ของแอปไปเวอร์ชันใหม่ ให้อ่านทุกเวอร์ชันที่ข้าม แล้วทำตามบรรทัด Apps ของแต่ละเวอร์ชันใน Pull Request เดียวกัน

บันทึกเขียนเป็นภาษาอังกฤษ เพราะนักพัฒนาและเครื่องมือ AI อ่านจากไฟล์ CHANGELOG.md ในที่เก็บเดียวกันนี้

อัปเกรดจากเวอร์ชันของคุณ

แอปของคุณใช้เวอร์ชัน

ดูได้จาก git -C .components describe --tags

ทุกเวอร์ชัน

  1. 0.41.0

    2026-11-27

    Minorไม่ต้องแก้โค้ดล่าสุด

    Apps: A DataTable row under the pointer is now a lighter grey than the table's header, half of ink-50 instead of the same ink-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:hover uses bg-ink-50/50. Over a white Card this is about #fbfbfb, against the header's #f7f7f7.
  2. 0.40.0

    2026-11-27

    Minorไม่ต้องแก้โค้ด

    Apps: Nothing looks different: Panel keeps working until 1.0.0. Move every Panel to Card before then, and write no new Panel. The harness's screen checker reports each one.

    Deprecated: Panel, removed in 1.0.0. Use Card, 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. className stays the same. Card spaces its content from its header itself, so drop a wrapper that only added mt-4 under a Panel's title. The Panel docs page shows the old and new code.

    • Panel is marked @deprecated in its JSDoc. PageHeader, in the same file, isn't.
    • The docs site and the MCP now show every @deprecated note. A deprecated component's page opens with a Deprecated alert. A deprecated prop says so in the props table. In the MCP, get_component gives a Deprecated: line for the component and for each deprecated prop, such as Card's href, and list_components marks the component (deprecated).
    • The Forms and tables page guide, the AppShell, DashedContainer, DataTable, Card and RecordSection pages, and the MCP's get_started now say Card only. The guide's reason and attachments section is a Card with its header.
  3. 0.39.0

    2026-11-26

    Minorไม่ต้องแก้โค้ด

    Apps: BudgetBar takes an optional reserved: 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.

    • BudgetBar takes reserved?: 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 reserved left 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.md 0.1.24 mentions reserved.
  4. 0.38.0

    2026-11-26

    Minorไม่ต้องแก้โค้ด

    Apps: Combobox takes an optional icon, the leading icon, which defaults to Search as before. A Combobox that finds one kind of thing, such as a unit filter, may now pass an icon that says so, such as BuildingComplex for a unit or UserRound for a person. Building2 is lucide's old name for BuildingComplex and draws the same icon.

    • Combobox takes icon?: LucideIcon, shown at the start of the field in place of the magnifier. Leave it out to keep Search.
    • The Combobox docs page has a new example, Another icon, with a unit filter using BuildingComplex and hideLabel.
  5. 0.37.0

    2026-11-26

    Minorไม่ต้องแก้โค้ด

    Apps: In a Dialog or Drawer, the lists of Select, Combobox and SearchInput, the DateInput calendar, and the ActionMenu and Popover boxes 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 by Select, Combobox, SearchInput, DateInput, ActionMenu and Popover, places a panel with fixed positioning when its field is inside an open dialog. 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-h and --float-anchor-w. A floating list keeps its usual 18rem cap, or min(32rem, 70vh) for cards, and a list as wide as its field keeps the field's width.
    • NativeSelect and ColourInput are 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, Popover and ActionMenu, 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.md 0.1.23 describes floating panels in the Overlays section.
  6. 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 status Segmented, should pass filters.active while that filter narrows the list, and make onClearAll put 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.

    • TableFilters takes active: the filters on the bar are narrowing the list, even where a filter has no chip, such as a Segmented that 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 of empty's first-use state.
    • With active and no chips, the filter bar ends with its own Clear all, a quiet button that calls onClearAll, 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 active and 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 pass active.
    • components.md 0.1.22 describes active, and when the table shows No records yet or No results.
  7. 0.35.0

    2026-11-26

    Minorไม่ต้องแก้โค้ด

    Apps: A DataTable's filters.panel now 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 every Segmented now 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, a Segmented with a count on each choice and a Select, Combobox or DateInput with hideLabel and a placeholder that names the filter, which apply as soon as they change.

    • DataTable's filter bar: .table-tools is one row, with filters.panel on 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, Combobox and DateInput take hideLabel, 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. FormField takes it too.
    • SegmentedOption takes count, 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 .seg has 12 pixel corners with 8 pixel corners on its buttons. A Segmented in 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 Segmented with counts, a unit Select and 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.md 0.1.21 describes the filter bar, hideLabel, count and the 12 pixel corners on every input.
  8. 0.34.0

    2026-11-26

    Minorไม่ต้องแก้โค้ด

    Apps: Existing list tables gain a search box and sortable headings. Every DataTable given all its rows (no total, paged left on) now shows a search box saying ค้นหา (Search) when it has a text column, and every column with a heading sorts from its heading. Pass search to say what can be searched; search={false} or sortable: false turns 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 list search with onChange, sortable: true on the columns the core API can sort with onSortChange, and onPageChange, and fetch again. In a column with opens, only the value is now the link: left-aligned, with an avatar tile and sub line no longer underlined. Cards that hold a section of a page should have a title, a short description and an icon: add the missing ones.

    • DataTable's search takes TableSearch | false. Left out on a table that has every row, has a text or searchable column and isn't paged={false}, the table shows its own search box with the placeholder ค้นหา (Search) in the screen language. false hides it. A record's lines (paged={false}) still have none unless search is passed, and a list the core API pages (total) still needs search with onChange, because the table can't search rows it doesn't have.
    • DataColumn's sortable now 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: false turns one off. With total it stays false unless set, because the core API sorts, and a record's lines (paged={false}) keep their order unless a column says sortable: true.
    • Paging: paged is true by default, and the range, page size and pager show under every list table that has rows. With total, the screen passes page with onPageChange and pageSize with onPageSizeChange. The DataTable docs page and components.md say 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 an avatar column's initials tile and sub line were underlined with the name. The value is now left-aligned, and the tile and the sub line 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-line description and an outline icon from 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 total must pass, and how an opens column looks.
    • components.md 0.1.20 describes the default search box, sorting and paging, the opens column and the card header rule.
  9. 0.33.0

    2026-11-25

    Minorไม่ต้องแก้โค้ด

    Apps: Steps without the new fields renders exactly as before. Screens can now give each step a description and its own content, for a step-by-step task such as a request form.

    • Step takes description, 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.
    • Step takes content: the step's own area, holding any of the library's components, such as a form, FileDrop, Chips, a Badge or Buttons. - Vertical: every step that has content shows it under its label and description, in .step-body and .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. Steps then renders a div around its ol, and className goes on that div. - 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.md 0.1.19 describes description and content.
  10. 0.32.1

    2026-11-25

    Patchไม่ต้องแก้โค้ด

    Apps: On a feature Card, the IconButton in action and any quiet Button now 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-btn got the near-white --g-secondary-hover gradient on hover, and every .btn-quiet the 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 own bg-white/15.
    • The Card docs page's feature card example now has an IconButton in action, so its hover shows.
  11. 0.32.0

    2026-11-25

    Minorไม่ต้องแก้โค้ด

    Apps: Card with href still works and looks the same until 1.0.0. Move off it in the pin Pull Request, as Deprecated says.

    Deprecated: Card's href, removed in 1.0.0. A card is no longer a link itself. Open a page through an IconButton with href in the card's action instead, such as action={<IconButton icon={ArrowUpRight} label="ดูคำขอที่รออนุมัติ" href="/approvals" />}. The label says where it goes, in the screen language. A card that already has an action keeps it, and the page link goes in its footer as a small Button with href.

    • Card's href is marked @deprecated, with the move written in its JSDoc. Its JSDoc says to open a page through action.
    • The Card docs page replaces "The whole card as a link" with "Opening a page from a card", using an IconButton in action. Its Rules for screens now start with: never make the whole card a link.
    • components.md 0.1.18 says the same.
  12. 0.31.0

    2026-11-25

    Minorไม่ต้องแก้โค้ด

    Apps: Screens look and behave the same. Each component's HTML now carries two extra attributes, data-ui and data-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 as data-ui="DataTable".
    • Its main sections carry data-ui-part="part", named after the prop that fills them where there is one, such as Card's title, action and footer, PageHeader's kicker and actions, or AppShell's rail, topbar and page. Otherwise they get a plain noun, such as DataTable's toolbar, table, totalRow and pager.
    • Components that render no element of their own get no mark: AppThemeProvider, LangProvider and ChartPaints. TagInput renders a FormField, so it shows as FormField.
    • 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 check now refuses an exported component without its data-ui. AGENTS.md and components.md describe the marks.
  13. 0.30.0

    2026-11-25

    Minorไม่ต้องแก้โค้ด

    Apps: Screens look the same. A DataTable that sits on a Card or Panel should now go in the new DashedContainer: 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 a Card or Panel. It can hold a DataTable, a preview or a group of figures. It takes children, and className for placement only. On a feature card its outline is translucent white.
    • The new DashedContainer docs page shows a DataTable on a Card, and KeyFigures in a Panel. The DataTable page and both dashboard pages put their tables on cards in one.
    • On the docs site, the props tables sit on a Card in a DashedContainer, and each example's data table sits in one too.
    • components.md 0.1.14 describes DashedContainer, and its Data table Look row says to put a table on a card in one.
  14. 0.29.0

    2026-11-25

    Minorไม่ต้องแก้โค้ด

    Apps: A DataTable with a total column now shows its total row at phone width too, as a labelled block under the rows. Screens can show a record's own lines with DataTable instead of LineItems.

    Deprecated: LineItems and its type LineItem, removed in 1.0.0. Use DataTable with paged={false}: columns becomes four DataColumns, with kind: "number" and unit: "unit" on the quantity, and kind: "money" on the unit price and the amount, plus total: true on the amount. items becomes rows with rowKey="key", and total={x} becomes totals={{ amount: x }}. caption and totalLabel stay the same. The LineItems docs page shows the old and new code.

    • DataColumn takes unit, 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 with unit doesn't wrap.
    • DataTable takes paged, true by 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. With total set it has no effect. The total row's default label is then รวม (Total) instead of รวมทุกหน้า (Total, all pages).
    • DataTable's totals now also work without total: a column in totals shows 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, as LineItems' 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.md describes unit, paged, record lines and the phone total row.
  15. 0.28.1

    2026-11-25

    Patchไม่ต้องแก้โค้ด

    Apps: Steps inside a feature Card shows its numbers and ticks again, in white on the brand colour.

    • A step's number was white on white inside Card tone="feature": .step kept its white fill but took the card's white text. .step now sets its own text colour, text-ink-900.
    • On a feature card, Steps has 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.
  16. 0.28.0

    2026-11-25

    Minorไม่ต้องแก้โค้ด

    Apps: Existing Steps look and behave the same. Screens can now pass orientation="vertical" and leave out current.

    • Steps takes orientation, "horizontal" by default, which keeps today's row. "vertical" stacks the steps in a .steps-vertical column: 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's current is 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 or aria-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.
  17. 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/ or tokens.json, is now a release: it bumps VERSION and adds its entry here. AGENTS.md says so in the rules for a component change.
    • npm run check compares the branch with origin/main, and refuses a change to ui/, source/ or tokens.json that leaves VERSION as it was. It names the files. Where there's no git history, such as inside the docs site's image, it skips this check.
  18. 0.27.1

    2026-11-25

    Patchไม่ต้องแก้โค้ด

    Apps: Screens look and behave the same.

    • CHANGELOG.md holds 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 .components pin.
    • npm run check refuses a release whose VERSION has no entry at the top of CHANGELOG.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 and README.md say how to write an entry.
  19. 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-strip is one line, 20px tall, sticky top-0 with square corners, in AppShell, SignInLayout and StatusPage.
    • AppShell renders the demo strip 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 demo prop's JSDoc and components.md say where the strip goes.
  20. 0.26.1

    2026-11-25

    Patchไม่ต้องแก้โค้ด

    Apps: The sign-in figures look sharp, with no glow blurring their edges.

    • SignInFigure no longer adds the bloom pass (EffectComposer and Bloom).
    • The lights still glow through the halo sprites and GlowLine's faint wide stroke.
    • @react-three/postprocessing and postprocessing stay in package.json, so an app that installed them for the figures needs no change.
  21. 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 base gives the hand pointer to buttons, links, summaries, selects, checkbox, radio, file, colour and range inputs, file picker buttons, the labels that toggle them, and the button, link, tab, option, menuitem, switch, checkbox, radio and treeitem roles.
    • A second rule gives not-allowed to disabled controls, including aria-disabled ones and those in a disabled fieldset.
    • Both rules have no specificity, so a component's own cursor still wins.
    • .switch, .radio-card, .menu-item, .menu-card and .search-option show not-allowed when disabled.
    • The pointer rule is in the style guide's README.md, and components.md has a Pointer row.
  22. 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.
  23. 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-scene gets lg: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.
  24. 0.24.2

    2026-11-25

    Patchไม่ต้องแก้โค้ด

    Apps: The AppShell side 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.

    • .shell fills the visible window with 100dvh and holds its one grid row to that height (minmax(0,1fr)).
    • .rail and .shell-main stretch to the shell's row instead of taking calc(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.
  25. 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, AuditFigure and AssistantFigure read --color-brand-300 to --color-brand-900 and --g-rail from the page, for the app set by data-app. Until the tokens can be read, the library's own values stand.
    • .shell-page is now relative, 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' app prop keeps its meaning.
  26. 0.24.0

    2026-11-24

    Minorต้องแก้โค้ด

    Apps: Add @fontsource/figtree at exactly version 5.3.0 to the app's dependencies (npm install --save-exact @fontsource/figtree@5.3.0), because the library's ui/src/fonts.css, imported by ui/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. AppShell wraps 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-sans is 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 figtree in its font-copy list.
  27. 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, feature or muted) and href, 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-foot and .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.
    • KpiTiles takes optional variant="cards" (.kpi-card) and highlight={i}, which features one card in the new --g-feature gradient. Sparkline takes light and area, with a new url(#g-area-light) paint.
    • GaugeChart is a segmented thick half ring: the result in series 1, the stretch to the target in a new url(#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 props restLabel and caption.
    • DataTable: soft grey header, taller rows, bold money figures, rounded square page buttons (.page-gap for gaps) and a pill search box (.table-tools). A column takes a new optional avatar, 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).
  28. 0.22.0

    2026-11-24

    Minorไม่ต้องแก้โค้ด

    Apps: The AppShell and charts are restyled, with a light grey menu, deeper forest greens, neutral greys, pill buttons and rounder corners.

    • AppShell left 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 gets data-current="true". The submenu clips with .rail-sub-inner. The right column is now div.shell-main (it was div.min-w-0 and keeps min-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. The ink-* 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: BarChart rounds the top corners by 4px; GaugeChart is a 28px half ring over a hatched url(#hatch) track (TRACK points at it, gh-track stays); BulletChart tracks are hatched pills; DonutChart is a 36px ring with gaps; lines are 2.5px; legend keys are dots. Series c1 is #237d52; console keeps purple first.
    • New page guide Pages → Dashboard (page-dashboard), with an ERP budget overview and a console system overview built from PageHeader, KpiTiles, BarChart, GaugeChart, DonutChart and DataTable.
  29. 0.21.0

    2026-11-24

    Minorต้องแก้โค้ด

    Apps: In bsru-erp-console only, add data-app="console" to <html> and wrap the content inside LangProvider in <AppThemeProvider app="console"> (around ToastProvider), as ui/README.md shows; without it console stays green. bsru-erp-web needs no change and looks the same.

    • New tokens brand-* (base colour) and accent-* (second colour) in theme.css. In web they are green and purple. Under [data-app="console"] they swap, with the rail, hero, primary, fill and soft gradients, chart series c1 and c2, and the heatmap ramp. [data-app="web"] restores web inside a console page.
    • Every brand use in components.css uses brand-* or accent-*. Status colours never swap; .badge-paid uses a new --g-success, so it stays green in console.
    • New AppThemeProvider({ app }), useAppTheme() and type AppTheme. The provider sets data-app on a display: contents wrapper.
    • DataTable, BulkBar, Select chips, Steps, record links and the shell's unread dot and avatar use brand or accent, and chart paints read CSS variables. SignInFigure and each *Figure take an optional app, which defaults to the provider, then to web.
    • The brand caption in SignInLayout and StatusPage has text-brand-100 instead of text-green-100. Update any test that checks that class.
    • tokens.json gains console and paint groups. The docs get a Web/Console switch and an AppThemeProvider page.
  30. 0.20.0

    2026-11-24

    Minorไม่ต้องแก้โค้ด

    Apps: The isometric figures send a comet every 4 seconds instead of every 2, and AssistantFigure shows a larger scene.

    • ConnectedFigure, AssistantFigure and SignInFigure take an optional interval: the seconds between comets, default 4.
    • AssistantFigure is 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.
  31. 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.
  32. 0.19.0

    2026-11-24

    Minorไม่ต้องแก้โค้ด

    Apps: Nothing in @bsru/ui changed.

    • New AssistantFigure in ui/src/signin-figures, also the assistant kind of SignInFigure: 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.
    • SignInFigureKind gains assistant. This widens it, so existing code still compiles.
    • The docs get an AssistantFigure page in the Isometric 3D section, and the sign-in examples get a fourth message, เชื่อมต่อ AI ผ่าน MCP.
  33. 0.18.0

    2026-11-24

    Minorไม่ต้องแก้โค้ด

    Apps: Nothing in @bsru/ui changed.

    • New exports ConnectedFigure, ApprovalFigure and AuditFigure from ui/src/signin-figures, beside SignInFigure. 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.
  34. 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 SignInFigure changed.
  35. 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 SignInFigure changed.
  36. 0.17.0

    2026-11-24

    Minorไม่ต้องแก้โค้ด

    Apps: SignInFigure isn't exported from @bsru/ui, so web and console don't load three.js, and sign-in pages look the same unless a slide sets art.

    • SignInSlide takes an optional art: 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 SignInFigure in its own entry, ui/src/signin-figures, with kinds connected, approval and audit. 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.json adds three 0.186.1, @react-three/fiber 9.8.2, @react-three/drei 10.7.9, @react-three/postprocessing 3.2.2, postprocessing 6.39.6 and @types/three 0.186.0. Only code that imports ui/src/signin-figures needs them.
    • The SignInLayout docs page has a new example, and components.md describes .signin-scene and the new entry.
  37. 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: kind is notFound, forbidden, serverError or maintenance, each with an icon, default code and Thai and English wording. code overrides the code and null hides it. Other props: title, description, actions, reference, expectedBack, brand, notice, and fill (default true; fill={false} sits inside AppShell's content area).
    • New exported types PageBrand, SignInSlide, StatusKind and StatusReference, 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-error and page-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 SignInLayout markup once its pin reaches 0.16.0.
  38. 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-xs is 14px, text-sm 15px, text-base 17px and text-lg 20px, following Apple's default Dynamic Type sizes. text-xl and up are unchanged.
    • Fields stay at 16px or more, so iPhones don't zoom in on focus.
    • data-touch on the root element asks for the touch sizes on any screen.
    • tokens.json gains a text-touch group.
  39. 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.
  40. 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.
  41. 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, Combobox and SearchInput take image on an option or item, layout="cards" to show options as a grid of cards, and menuWidth: trigger (default), sm 20rem, md 28rem, lg 42rem or xl 56rem.
    • New exported types OptionLayout and MenuWidth. 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.
    • SearchInput takes suggestions and onSuggestionPick, 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.
  42. 0.13.0

    2026-11-23

    Minorไม่ต้องแก้โค้ด

    Apps: The new prop is optional.

    • AppShell takes an optional actions prop: 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.
  43. 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, the UI.* scripts in source/src/js/, source/scripts/build.mjs, source/package.json, source/src/app.css, source/src/fonts.css and npm run build:static.
    • source/src/theme.css and source/src/components.css stay. 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.md and charts.md point to the React components.
  44. 0.11.0

    2026-11-23

    Minorไม่ต้องแก้โค้ด

    Apps: A DateInput without a label now includes its placeholder in its screen-reader name, and calendar cells lose their 1px padding.

    • DateInput takes kind="range": a first and last day in one calendar. The value is an ISO interval such as 2026-12-15/2026-12-19, and the field shows 15–19 ธ.ค. 2569 (5 วัน). min and max are days.
    • DateInput takes new optional aria-describedby and aria-invalid, so a FormField group's hint and error reach each field.
    • DateKind gains range. 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 two DateInputs.
  45. 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. TextInput still accepts date, datetime-local, month and week.
  46. 0.10.0

    2026-11-23

    Minorไม่ต้องแก้โค้ด

    Apps: Additions only; existing date fields keep working.

    Deprecated: TextInput with type date, datetime-local, month or week — use DateInput with kind date, datetime, month or week instead.

    • New DateInput, a date picker drawn by the library. kind is date (default), datetime, month or week (ISO weeks, Monday first).
    • Its words follow LangProvider, with the Buddhist year in Thai, such as 8 ธ.ค. 2569. Values stay ISO with the Gregorian year, as TextInput'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, error and required.
    • New type DateKind, and new classes .date-trigger, .cal, .cal-head, .cal-title, .cal-grid, .cal-wk, .cal-cell, .cal-months, .cal-time and .cal-foot.
  47. 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 optional title. It renders in server code.
    • New PageHeader: kicker, title (the page's one h1), description and actions. It renders in server code.
    • Button takes an optional lang prop for a label in another language, such as an English language switch on a Thai page.
    • Use Button, Panel and PageHeader instead of a plain <button class="btn btn-secondary">, a panel section, or text-size and colour classes on a heading.
  48. 0.8.1

    2026-11-20

    Patchไม่ต้องแก้โค้ด

    Apps: Docs only.

    • Docs only: AGENTS.md gets 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 @deprecated first. className on a component only places it in the layout.
  49. 0.8.0

    2026-11-20

    Minorไม่ต้องแก้โค้ด

    Apps: Drawer is 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, RecordHeader and ConfirmChange.
    • TextInput adds the datetime-local, month and week types, and IconButton takes count for a red number on its corner.
    • New CopyButton (variant="button", copiedLabel, size, outline, onCopy) and useCopy hook, styled by data-copy="copied" or "failed".
    • Drawer takes summary ({ title, status, figure }) and loading, with new classes .drawer-head, .drawer-body, .drawer-summary, .drawer-figure and .drawer-foot.
    • The drawer body scrolls with a hidden scrollbar and a More pill while more is below (.scroll-quiet, .scroll-fade, .scroll-more).
  50. 0.7.0

    2026-11-20

    Minorไม่ต้องแก้โค้ด

    Apps: AppShell's new search prop 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. With items only it searches them itself; with onQueryChange the screen searches through the API and passes results back, with status.
    • AppShell takes an optional search prop that puts GlobalSearch in the top bar.
    • New classes .search-trigger, .kbd, dialog.search-dialog, .search-box, .search-group, .search-option and .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.
  51. 0.6.1

    2026-11-20

    Patchต้องแก้โค้ด

    Apps: Delete the app's /style-guide page and any import from @bsru/ui/style-guide/ (such as StyleGuidePage), because ui/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.
  52. 0.6.0

    2026-11-20

    Minorต้องแก้โค้ด

    Apps: Pin this repository at .components/ instead of .style-guide/; in tsconfig.json set "@bsru/ui": ["./.components/ui/src/index.ts"] and "@bsru/ui/*": ["./.components/ui/*"]; in src/app/globals.css import ../../.components/ui/src/styles.css and change each @source not "../../.style-guide/…" line to ../../.components/…. Imports from @bsru/ui stay the same.

    • The repository and package are renamed from bsru-erp-style-guide to bsru-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.
  53. 0.5.1

    2026-11-20

    Patchต้องแก้โค้ด

    Apps: Pin this repository at .style-guide/ instead of reaching it through .harness/style-guide; in tsconfig.json set "@bsru/ui": ["./.style-guide/ui/src/index.ts"] and "@bsru/ui/*": ["./.style-guide/ui/*"]; in src/app/globals.css import ../../.style-guide/ui/src/styles.css and use the @source not lines in ui/README.md. An app that already pins at .components/ has nothing to do here.

    • ui/README.md gives the app set-up with .style-guide paths for tsconfig.json and globals.css.
    • Links into the harness change from ../knowledge/ and ../docs/ to ../.harness/. A release now moves the apps' pins directly, with no harness step.
  54. 0.5.0

    2026-11-20

    Minorต้องแก้โค้ด

    Apps: Pass MoneyInput's defaultValue as a number or null instead of text, for example defaultValue={150000} instead of defaultValue="150,000.00"; its new value is a number too. OtpInput's label now shows on screen, and the other changed props became optional, so they need no change.

    • New Button: tones primary, secondary, danger and quiet, with icon, iconAfter, a small size, busy, disabled, wide, href and form.
    • New IconButton: label is the accessible name and the hover text, with two sizes, outline, danger, pressed and href.
    • New TextInput (text, email, url, date and time, with an optional leading icon) and FormField, which wraps a native control the library doesn't, with group for a group of controls.
    • Every input takes label, hint, error and required, and can be controlled with value and onValueChange. PasswordInput, SearchInput and PhoneInput gain value; NumberStepper keeps typed values within min and max; FileDrop adds and removes files; TagInput's onAdd can return false.
    • Select and Combobox take label, so labelledBy is optional. Use the label and error props and Button instead of hand-written labels and btn markup.
  55. 0.4.0

    2026-11-20

    Minorต้องแก้โค้ด

    Apps: Wherever code passes a Text pair such as ["รายการ", "Items"] to AppShell (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's t() instead, for props such as title, ariaLabel, label, unit and legend.

    • No component prop takes a Text pair 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 follow LangProvider.
    • The LangProvider page shows the set-up with next-intl: pass the app's locale once, and handle onChange by setting the NEXT_LOCALE cookie and refreshing.
    • Fix: React keys in AppShell and KpiTiles use the label itself instead of the English half of the pair.
  56. 0.3.0

    2026-11-20

    Minorไม่ต้องแก้โค้ด

    Apps: DataTable is new.

    • New DataTable: a screen passes columns (DataColumn<Row>[]), rows, rowKey, caption and search, and the table renders the rest.
    • A column's kind is text, number, money, date (Buddhist year in Thai) or badge (looked up in badges). sub, opens, total and hideOnPhone add 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, onOpen or openHref, 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 (and totals), and it reports each change so the screen can query again. sort, page, pageSize, search.value and selection.selected can each be controlled.
  57. 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, then npm 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.md set the rule that screens pass data only.
  58. 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 as LineChart, BarChart, DonutChart, GaugeChart and KpiTiles.
    • Tokens and classes in source/src/theme.css and source/src/components.css, imported through ui/src/styles.css, and described in tokens.json, tokens.md, components.md and charts.md.
    • npm run check, npm run tokens and npm run build, with a CI check and a gitleaks secret scan.