govuk-chakra 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/chakra.cjs +1 -1
- package/dist/chakra.mjs +4 -4
- package/dist/{govuk-chakra-DvWJuAiD.mjs → govuk-chakra-DM6zTEdn.mjs} +878 -813
- package/dist/govuk-chakra-DM6zTEdn.mjs.map +1 -0
- package/dist/govuk-chakra-tIrdgNx6.js +2 -0
- package/dist/govuk-chakra-tIrdgNx6.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +4 -4
- package/dist/types/components/Accordion/Accordion.d.ts +2 -0
- package/dist/types/components/Avatar/Avatar.recipe.d.ts +1 -1
- package/dist/types/components/BarList/BarList.d.ts +8 -15
- package/dist/types/components/Calendar/Calendar.recipe.d.ts +1 -1
- package/dist/types/components/Carousel/Carousel.recipe.d.ts +1 -1
- package/dist/types/components/Chart/Chart.d.ts +2 -2
- package/dist/types/components/ColorPicker/ColorPicker.recipe.d.ts +1 -1
- package/dist/types/components/Combobox/Combobox.recipe.d.ts +1 -1
- package/dist/types/components/DatePicker/DatePicker.d.ts +39 -39
- package/dist/types/components/Dialog/Dialog.recipe.d.ts +1 -1
- package/dist/types/components/Editable/Editable.recipe.d.ts +1 -1
- package/dist/types/components/EmptyState/EmptyState.recipe.d.ts +1 -1
- package/dist/types/components/FloatingPanel/FloatingPanel.recipe.d.ts +1 -1
- package/dist/types/components/HoverCard/HoverCard.recipe.d.ts +1 -1
- package/dist/types/components/Listbox/Listbox.recipe.d.ts +1 -1
- package/dist/types/components/Menu/Menu.recipe.d.ts +1 -1
- package/dist/types/components/PinInput/PinInput.recipe.d.ts +1 -1
- package/dist/types/components/Popover/Popover.recipe.d.ts +1 -1
- package/dist/types/components/ProgressCircle/ProgressCircle.recipe.d.ts +1 -1
- package/dist/types/components/Radio/Radio.d.ts +2 -2
- package/dist/types/components/RadioCard/RadioCard.recipe.d.ts +1 -1
- package/dist/types/components/Rating/Rating.recipe.d.ts +1 -1
- package/dist/types/components/RichTextEditor/RichTextEditor.recipe.d.ts +1 -1
- package/dist/types/components/ScrollArea/ScrollArea.recipe.d.ts +1 -1
- package/dist/types/components/SegmentedControl/SegmentedControl.recipe.d.ts +13 -13
- package/dist/types/components/Select/Select.d.ts +24 -24
- package/dist/types/components/Slider/Slider.recipe.d.ts +1 -1
- package/dist/types/components/Stat/Stat.d.ts +1 -1
- package/dist/types/components/Stat/Stat.recipe.d.ts +4 -4
- package/dist/types/components/Status/Status.recipe.d.ts +1 -1
- package/dist/types/components/StepByStep/StepByStep.d.ts +24 -0
- package/dist/types/components/StepByStep/index.d.ts +2 -0
- package/dist/types/components/Steps/Steps.recipe.d.ts +1 -1
- package/dist/types/components/SummaryList/SummaryList.d.ts +6 -6
- package/dist/types/components/Table/Table.d.ts +2 -2
- package/dist/types/components/TagsInput/TagsInput.recipe.d.ts +1 -1
- package/dist/types/components/Timeline/Timeline.recipe.d.ts +1 -1
- package/dist/types/components/Toast/Toast.d.ts +1 -1
- package/dist/types/components/Toast/Toast.recipe.d.ts +1 -1
- package/dist/types/components/ToggleTip/ToggleTip.recipe.d.ts +1 -1
- package/dist/types/components/Tooltip/Tooltip.recipe.d.ts +1 -1
- package/dist/types/components/TreeView/TreeView.d.ts +2 -2
- package/dist/types/components/TreeView/TreeView.recipe.d.ts +1 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/govuk-chakra.d.ts +2 -0
- package/dist/types/theme/colors.d.ts +4 -4
- package/dist/types/theme/govUKTheme.d.ts +49 -49
- package/dist/types/utils/storybookControls.d.ts +10 -10
- package/package.json +14 -10
- package/dist/govuk-chakra-DvWJuAiD.mjs.map +0 -1
- package/dist/govuk-chakra-NZ5MieX-.js +0 -2
- package/dist/govuk-chakra-NZ5MieX-.js.map +0 -1
package/README.md
CHANGED
|
@@ -406,3 +406,17 @@ MIT License - see [LICENSE](LICENSE). Free to use, modify, and distribute. The o
|
|
|
406
406
|
Import [the standalone DESIGN.md](adapters/open-design/govuk-chakra/DESIGN.md) into Open Design to use this repository’s design guidance and all 30 pattern examples. The folder also provides `manifest.json` and `tokens.css` for Open Design libraries. See [import instructions](docs/open-design.md).
|
|
407
407
|
|
|
408
408
|
Regenerate with `yarn design:open-design`; verify with `yarn design:open-design:check` and `yarn test:open-design`.
|
|
409
|
+
|
|
410
|
+
## Checks before committing
|
|
411
|
+
|
|
412
|
+
Enable the tracked Git hook once per clone:
|
|
413
|
+
|
|
414
|
+
```sh
|
|
415
|
+
yarn hooks:install
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
Every commit then runs `yarn precommit`: visual regression (`yarn visual:test`, including a Storybook build), lint (`yarn lint`), and unit tests (`yarn test:run`, without watch mode), in that order. Each stage prints its progress and stops the commit immediately if it fails. Run `yarn precommit` manually to check before opening the commit dialog.
|
|
419
|
+
|
|
420
|
+
The check uses CI mode so it tests the freshly built Storybook and does not create missing baselines. Stop any server using port 6006 before running it. Install the browser once with `yarn playwright install chromium` if needed. The hook checks the current working tree, so stage the changes you intend to commit before running it.
|
|
421
|
+
|
|
422
|
+
For intentional visual changes, review the differences, run `yarn visual:update`, inspect and stage the updated screenshots, then commit again.
|
package/dist/chakra.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./provider-CYEYtfuU.js"),t=require("./govUKTheme-CsiNVb8x.js"),n=require("./govuk-chakra-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./provider-CYEYtfuU.js"),t=require("./govUKTheme-CsiNVb8x.js"),n=require("./govuk-chakra-tIrdgNx6.js"),r=require("./DonutChart-By-HroDD.js"),i=require("./Button-DZLug9I8.js");exports.Accordion=n.Ot,exports.Alert=n.Et,exports.Avatar=n.Tt,exports.BackLink=n.wt,exports.Breadcrumbs=n.Ct,exports.Button=i.t,exports.Calendar=n.St,exports.Card=n.bt,exports.CardGroup=n.xt,exports.Carousel=n.yt,exports.Checkbox=n._t,exports.Code=n.gt,exports.Collapsible=n.ht,exports.ColorPicker=n.mt,exports.ColorSwatch=n.pt,exports.Combobox=n.ft,exports.CookieBanner=n.dt,exports.DateInput=n.ut,exports.Details=n.lt,exports.Dialog=n.ct,exports.DonutChart=r.t,exports.Editable=n.st,exports.EmptyState=n.ot,exports.ErrorSummary=n.at,exports.Fieldset=n.vt,exports.FileUpload=n.it,exports.FloatingPanel=n.rt,exports.GOVUKCrest=n.tt,exports.GOVUKCrown=n.et,exports.GOVUKFooter=n.$,exports.GOVUKHeader=n.Q,exports.GOVUKOGL=n.Z,exports.GOVUKProvider=e.t,exports.GenericHeader=n.nt,exports.Heading=n.Dt,exports.Highlight=n.X,exports.HoverCard=n.Y,exports.IconButton=n.J,exports.Image=n.q,exports.InsetText=n.K,exports.Kbd=n.G,exports.LanguageNavigation=n.W,exports.Link=n.kt,exports.Listbox=n.U,exports.Marquee=n.H,exports.Menu=n.V,exports.NotificationBanner=n.B,exports.Pagination=n.z,exports.Panel=n.R,exports.PhaseBanner=n.t,exports.PinInput=n.L,exports.Popover=n.I,exports.Progress=n.F,exports.ProgressCircle=n.P,exports.QRCode=n.N,exports.Radio=n.M,exports.RadioCard=n.j,exports.Rating=n.A,exports.ScrollArea=n.k,exports.SegmentedControl=n.D,exports.Select=n.O,exports.Separator=n.E,exports.ServiceNavigation=n.T,exports.Skeleton=n.w,exports.SkipLink=n.C,exports.Slider=n.S,exports.Spinner=n.x,exports.Stat=n.b,exports.Status=n.y,exports.StepByStep=n._,exports.Steps=n.v,exports.SummaryList=n.g,exports.Switch=n.h,exports.Table=n.m,exports.Tabs=n.p,exports.Tag=n.n,exports.TagsInput=n.f,exports.TaskList=n.d,exports.Text=r.r,exports.Textarea=n.u,exports.Textinput=n.l,exports.Timeline=n.c,exports.Toast=n.s,exports.ToggleTip=n.o,exports.Tooltip=n.a,exports.TreeView=n.i,exports.WarningText=n.r,exports.govUKTheme=t.t,exports.govUKThemeSystem=t.n;var a=require("@chakra-ui/react");Object.keys(a).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return a[e]}})});
|
package/dist/chakra.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./provider-pKYp1gHz.mjs";
|
|
2
2
|
import { n as t, t as n } from "./govUKTheme-B4LmrRd_.mjs";
|
|
3
|
-
import { $ as r, A as i, B as a, C as o, Ct as s, D as c, Dt as l, E as u, Et as d, F as f, G as p, H as m, I as h, J as g, K as _, L as v, M as y, N as b, O as x, Ot as S, P as C, Q as w, R as T, S as E, St as D, T as O, Tt as k, U as A, V as j, W as M, X as N, Y as P, Z as F, _ as I, _t as L, a as R, at as z, b as B, bt as V, c as H, ct as U, d as W, dt as G, et as K, f as q, ft as J, g as Y, gt as X, h as Z, ht as Q, i as $, it as ee, j as te, k as ne,
|
|
4
|
-
import { r as
|
|
5
|
-
import { t as
|
|
3
|
+
import { $ as r, A as i, B as a, C as o, Ct as s, D as c, Dt as l, E as u, Et as d, F as f, G as p, H as m, I as h, J as g, K as _, L as v, M as y, N as b, O as x, Ot as S, P as C, Q as w, R as T, S as E, St as D, T as O, Tt as k, U as A, V as j, W as M, X as N, Y as P, Z as F, _ as I, _t as L, a as R, at as z, b as B, bt as V, c as H, ct as U, d as W, dt as G, et as K, f as q, ft as J, g as Y, gt as X, h as Z, ht as Q, i as $, it as ee, j as te, k as ne, kt as re, l as ie, lt as ae, m as oe, mt as se, n as ce, nt as le, o as ue, ot as de, p as fe, pt as pe, q as me, r as he, rt as ge, s as _e, st as ve, t as ye, tt as be, u as xe, ut as Se, v as Ce, vt as we, w as Te, wt as Ee, x as De, xt as Oe, y as ke, yt as Ae, z as je } from "./govuk-chakra-DM6zTEdn.mjs";
|
|
4
|
+
import { r as Me, t as Ne } from "./DonutChart-hLl-PYTm.mjs";
|
|
5
|
+
import { t as Pe } from "./Button-BmDGyjW7.mjs";
|
|
6
6
|
export * from "@chakra-ui/react";
|
|
7
|
-
export {
|
|
7
|
+
export { S as Accordion, d as Alert, k as Avatar, Ee as BackLink, s as Breadcrumbs, Pe as Button, D as Calendar, V as Card, Oe as CardGroup, Ae as Carousel, L as Checkbox, X as Code, Q as Collapsible, se as ColorPicker, pe as ColorSwatch, J as Combobox, G as CookieBanner, Se as DateInput, ae as Details, U as Dialog, Ne as DonutChart, ve as Editable, de as EmptyState, z as ErrorSummary, we as Fieldset, ee as FileUpload, ge as FloatingPanel, be as GOVUKCrest, K as GOVUKCrown, r as GOVUKFooter, w as GOVUKHeader, F as GOVUKOGL, e as GOVUKProvider, le as GenericHeader, l as Heading, N as Highlight, P as HoverCard, g as IconButton, me as Image, _ as InsetText, p as Kbd, M as LanguageNavigation, re as Link, A as Listbox, m as Marquee, j as Menu, a as NotificationBanner, je as Pagination, T as Panel, ye as PhaseBanner, v as PinInput, h as Popover, f as Progress, C as ProgressCircle, b as QRCode, y as Radio, te as RadioCard, i as Rating, ne as ScrollArea, c as SegmentedControl, x as Select, u as Separator, O as ServiceNavigation, Te as Skeleton, o as SkipLink, E as Slider, De as Spinner, B as Stat, ke as Status, I as StepByStep, Ce as Steps, Y as SummaryList, Z as Switch, oe as Table, fe as Tabs, ce as Tag, q as TagsInput, W as TaskList, Me as Text, xe as Textarea, ie as Textinput, H as Timeline, _e as Toast, ue as ToggleTip, R as Tooltip, $ as TreeView, he as WarningText, n as govUKTheme, t as govUKThemeSystem };
|