@wrdagency/blockout 0.0.11 → 0.0.13

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.
Files changed (77) hide show
  1. package/dist/{2NBKRL7C-raj2vrMY.js → 2NBKRL7C-C6mXReCE.js} +3 -3
  2. package/dist/{P7GR5CS5-PkUYC6hd.js → P7GR5CS5-DNbthaqU.js} +11 -11
  3. package/dist/{T7VMP3TM-BeJUiw28.js → T7VMP3TM-B3jxXFmj.js} +2 -2
  4. package/dist/{UQQRIHDV-xtNCxi0H.js → UQQRIHDV-CFdrMoqW.js} +1 -1
  5. package/dist/{VIIRIBF3-B3f0V2Nc.js → VIIRIBF3-B585VK9r.js} +1 -1
  6. package/dist/assets/form.css +1 -0
  7. package/dist/assets/index.css +1 -1
  8. package/dist/assets/index10.css +1 -1
  9. package/dist/assets/index11.css +1 -0
  10. package/dist/assets/index2.css +1 -1
  11. package/dist/assets/index3.css +1 -1
  12. package/dist/assets/index4.css +1 -1
  13. package/dist/assets/index5.css +1 -1
  14. package/dist/assets/index6.css +1 -1
  15. package/dist/assets/index7.css +1 -1
  16. package/dist/assets/index8.css +1 -1
  17. package/dist/assets/index9.css +1 -1
  18. package/dist/components/breadcrumbs/index.d.ts +7 -0
  19. package/dist/components/breadcrumbs/index.js +29 -0
  20. package/dist/components/breadcrumbs/types.d.ts +4 -0
  21. package/dist/components/button/index.js +1 -1
  22. package/dist/components/controls/base-control/index.js +1 -1
  23. package/dist/components/controls/choice-control/index.d.ts +12 -3
  24. package/dist/components/controls/choice-control/index.js +32 -22
  25. package/dist/components/controls/number-control/index.d.ts +1 -0
  26. package/dist/components/controls/number-control/index.js +33 -25
  27. package/dist/components/controls/select-control/index.d.ts +2 -0
  28. package/dist/components/controls/select-control/index.js +337 -334
  29. package/dist/components/controls/text-control/index.d.ts +1 -0
  30. package/dist/components/controls/text-control/index.js +15 -8
  31. package/dist/components/controls/textarea-control/index.d.ts +1 -0
  32. package/dist/components/controls/textarea-control/index.js +17 -9
  33. package/dist/components/controls/toggle-control/index.d.ts +3 -1
  34. package/dist/components/controls/toggle-control/index.js +35 -23
  35. package/dist/components/data-table/index.js +1 -1
  36. package/dist/components/form/components/description.d.ts +2 -0
  37. package/dist/components/form/components/description.js +15 -0
  38. package/dist/components/form/components/form.d.ts +9 -0
  39. package/dist/components/form/components/form.js +41 -0
  40. package/dist/components/form/components/index.js +18 -0
  41. package/dist/components/form/components/pagination.d.ts +6 -0
  42. package/dist/components/form/components/pagination.js +46 -0
  43. package/dist/components/form/components/progress.d.ts +5 -0
  44. package/dist/components/form/components/progress.js +22 -0
  45. package/dist/components/form/components/row.d.ts +6 -0
  46. package/dist/components/form/components/row.js +22 -0
  47. package/dist/components/form/components/step.d.ts +6 -0
  48. package/dist/components/form/components/step.js +24 -0
  49. package/dist/components/form/components/title.d.ts +2 -0
  50. package/dist/components/form/components/title.js +15 -0
  51. package/dist/components/form/index.d.ts +9 -0
  52. package/dist/components/form/index.js +6 -0
  53. package/dist/components/form/types/fields.d.ts +21 -0
  54. package/dist/components/form/types/fields.js +11 -0
  55. package/dist/components/form/types/form.d.ts +28 -0
  56. package/dist/components/form/types/form.js +7 -0
  57. package/dist/components/form/types/steps.d.ts +5 -0
  58. package/dist/components/form/types/steps.js +1 -0
  59. package/dist/components/index.d.ts +2 -0
  60. package/dist/components/index.js +29 -23
  61. package/dist/components/markdown/formats.d.ts +11 -0
  62. package/dist/components/markdown/formats.js +318 -0
  63. package/dist/components/markdown/index.js +1 -0
  64. package/dist/components/markdown/types/format.d.ts +27 -0
  65. package/dist/components/markdown/types/format.js +4 -0
  66. package/dist/components/menu/index.js +11 -11
  67. package/dist/components/menu/item.js +1 -1
  68. package/dist/components/menu/items/action.js +1 -1
  69. package/dist/components/menu/items/spacer.js +10 -10
  70. package/dist/components/menu/items/submenu.js +2 -2
  71. package/dist/components/menu/items/toggle.js +1 -1
  72. package/dist/components/progress/index.js +13 -11
  73. package/dist/index.js +33 -27
  74. package/dist/{item-Bcbx6pI-.js → item-C0kyELlf.js} +36 -36
  75. package/package.json +3 -2
  76. /package/dist/components/{controls/ranked-choice-control/index.js → breadcrumbs/types.js} +0 -0
  77. /package/dist/components/{controls/ranked-choice-control → markdown}/index.d.ts +0 -0
@@ -1,7 +1,7 @@
1
- import { u as _ } from "./VIIRIBF3-B3f0V2Nc.js";
2
- import { c as H, C as T, a as k, m as y, f as P, b as w, d as A, _ as D, i as N, u as F, e as R, g as j, h as C, j as d, k as B, l as K, n as V } from "./P7GR5CS5-PkUYC6hd.js";
1
+ import { u as _ } from "./VIIRIBF3-B585VK9r.js";
2
+ import { c as H, C as T, b as k, m as y, f as P, d as w, e as A, _ as D, i as N, u as F, g as R, h as j, j as C, k as d, l as B, n as K, o as V } from "./P7GR5CS5-DNbthaqU.js";
3
3
  import { createContext as W } from "react";
4
- import { u as q, a as L, b as z, h as x } from "./UQQRIHDV-xtNCxi0H.js";
4
+ import { u as q, a as L, b as z, h as x } from "./UQQRIHDV-CFdrMoqW.js";
5
5
  var b = H(
6
6
  [k],
7
7
  [T]
@@ -575,7 +575,7 @@ export {
575
575
  Pt as Y,
576
576
  Qt as Z,
577
577
  st as _,
578
- Ye as a,
578
+ We as a,
579
579
  ue as a0,
580
580
  Jt as a1,
581
581
  Ce as a2,
@@ -612,20 +612,20 @@ export {
612
612
  $e as ax,
613
613
  Fe as ay,
614
614
  Be as az,
615
- Le as b,
615
+ Ye as b,
616
616
  w as c,
617
- Ie as d,
618
- Q as e,
617
+ Le as d,
618
+ Ie as e,
619
619
  De as f,
620
- re as g,
621
- v as h,
620
+ Q as g,
621
+ re as h,
622
622
  Xt as i,
623
- c as j,
624
- le as k,
625
- fe as l,
623
+ v as j,
624
+ c as k,
625
+ le as l,
626
626
  Me as m,
627
- E as n,
628
- We as o,
627
+ fe as n,
628
+ E as o,
629
629
  Xe as p,
630
630
  je as q,
631
631
  ye as r,
@@ -1,5 +1,5 @@
1
- import { y as z, x as Te, D as De, z as ce, an as $n, n as G, M as Ut, r as Yt, j as _, c as Cr, P as Gt, C as Ar, o as Tr, a as Vn, b as ee, _ as se, ao as _r, i as Fe, ag as Rr, v as j, ap as Ue, Y as Xt, e as ue, a3 as Ne, u as rt, W as Jt, G as fe, h as W, s as Be, aq as Ir, f as K, d as Q, ar as Zt, as as Hn, t as Bn, K as Fr, at as vn, a4 as nt, E as Qt, I as de, Z as Lr, aj as Mr, w as Wn, au as Nr, av as kr, U as Rt, aw as Dt, A as zn, a1 as Vt, ax as $r, ay as Vr, a2 as Hr, a6 as Br, az as Ct, a5 as Wr, a7 as zr, O as jr, p as Kr, am as qr } from "./P7GR5CS5-PkUYC6hd.js";
2
- import { t as en, c as it, f as $e, l as Ur, i as hn, d as re, s as xt, n as ke, q as Yr, k as Gr, r as Xr, v as It, e as jn, w as Jr, x as Zr, u as he, m as Kn, o as qn, y as Qr, g as Un, z as Ft, A as yn, B as eo, C as to, F as no, D as ro, E as oo, G as io, H as ot, I as so, J as ao, K as co } from "./UQQRIHDV-xtNCxi0H.js";
1
+ import { y as z, x as Te, D as De, z as ce, an as $n, o as G, M as Ut, r as Yt, k as _, c as Cr, P as Gt, C as Ar, a as Tr, b as Vn, d as ee, _ as se, ao as _r, i as Fe, ag as Rr, v as j, ap as Ue, Y as Xt, g as ue, a3 as Ne, u as rt, W as Jt, G as fe, j as W, s as Be, aq as Ir, f as K, e as Q, ar as Zt, as as Hn, t as Bn, K as Fr, at as vn, a4 as nt, E as Qt, I as de, Z as Lr, aj as Mr, w as Wn, au as Nr, av as kr, U as Rt, aw as Dt, A as zn, a1 as Vt, ax as $r, ay as Vr, a2 as Hr, a6 as Br, az as Ct, a5 as Wr, a7 as zr, O as jr, p as Kr, am as qr } from "./P7GR5CS5-DNbthaqU.js";
2
+ import { t as en, c as it, f as $e, l as Ur, i as hn, d as re, s as xt, n as ke, q as Yr, k as Gr, r as Xr, v as It, e as jn, w as Jr, x as Zr, u as he, m as Kn, o as qn, y as Qr, g as Un, z as Ft, A as yn, B as eo, C as to, F as no, D as ro, E as oo, G as io, H as ot, I as so, J as ao, K as co } from "./UQQRIHDV-CFdrMoqW.js";
3
3
  import Yn, { createContext as Je, useRef as Y, useEffect as U, useState as le, useCallback as st, useMemo as Gn, useContext as tn, isValidElement as uo } from "react";
4
4
  import { jsx as H, jsxs as yt, Fragment as bt } from "react/jsx-runtime";
5
5
  function lo(e) {
@@ -1,4 +1,4 @@
1
- import { i as Ue, Q as j, R as gt, S as Et, T as yt, D as Ae, L as ht, x as It, z as He, U as wt, V as je, v as be, h as B, j as D, e as A, F as xt, W as he, n as _t, b as ee, _ as H, X as Tt, r as qe, s as te, t as ce, f as re, d as ne, Y as oe, I as ze, Z as Ct, $ as Ge, E as De, J as Ie, a0 as $e, a1 as Q, a2 as ie, a3 as W, a4 as Ot, a5 as Pt, a6 as We, a7 as At, a8 as Dt, a9 as Fe, p as Ye, aa as Ft, ab as ve, u as ae, ac as Lt, ad as Mt, G as kt, ae as Kt, af as Rt, m as Je, B as Vt } from "./P7GR5CS5-PkUYC6hd.js";
1
+ import { i as Ue, Q as j, R as gt, S as Et, T as yt, D as Ae, L as ht, x as It, z as He, U as wt, V as je, v as be, j as B, k as D, g as A, F as xt, W as he, o as _t, d as ee, _ as H, X as Tt, r as qe, s as te, t as ce, f as re, e as ne, Y as oe, I as ze, Z as Ct, $ as Ge, E as De, J as Ie, a0 as $e, a1 as Q, a2 as ie, a3 as W, a4 as Ot, a5 as Pt, a6 as We, a7 as At, a8 as Dt, a9 as Fe, p as Ye, aa as Ft, ab as ve, u as ae, ac as Lt, ad as Mt, G as kt, ae as Kt, af as Rt, m as Je, B as Vt } from "./P7GR5CS5-DNbthaqU.js";
2
2
  import * as $ from "react";
3
3
  import Xe, { useRef as Y, useEffect as G, createContext as Nt, useState as me, useContext as Qe, useMemo as Ze, useCallback as et } from "react";
4
4
  import { g as Bt } from "./_commonjsHelpers-C6fGbg64.js";
@@ -1,4 +1,4 @@
1
- import { c as r, P as t, o as v, C as a, a as d } from "./P7GR5CS5-PkUYC6hd.js";
1
+ import { c as r, P as t, a as v, C as a, b as d } from "./P7GR5CS5-DNbthaqU.js";
2
2
  import { createContext as n } from "react";
3
3
  var o = r(
4
4
  [v],
@@ -0,0 +1 @@
1
+ .component-form-title{font-size:1.75rem;font-weight:600;margin-bottom:.25rem}.component-form-description{font-size:1rem;font-weight:400;color:var(--blockout__colours__surface--600)}.component-form-step{display:grid;gap:1.5rem;padding:1.5rem 0}.component-form-row{display:grid;gap:inherit}.component-form-row--2-cols{grid-template-columns:repeat(2,1fr)}.component-form-row--3-cols{grid-template-columns:repeat(3,1fr)}.component-form-pagination{display:flex;gap:1.5rem}
@@ -1 +1 @@
1
- .component-progress{--component-progress__steps: 0;--component-progress__step-width: max(.75rem, 3.5%);--component-progress__bg: var(--blockout__colours__surface--200);--component-progress__fg: var(--blockout__colours__surface--950);-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;display:block;height:4px;width:100%;border-radius:0;overflow:clip}.component-progress::-webkit-progress-bar{border-radius:0;height:100%;background:var(--component-progress__bg)}.component-progress::-moz-progress-bar{border-radius:0;height:100%;background:var(--component-progress__bg)}.component-progress::-webkit-progress-value{border-radius:0;height:100%;background:var(--component-progress__fg)}.component-progress:indeterminate:before{content:"";position:absolute;top:0;left:0;background-color:var(--component-progress__fg);height:100%;width:20%;transform-origin:left;animation:component-progress__indeterminate 2s ease-in-out infinite alternate}@keyframes component-progress__indeterminate{0%{left:-50%}to{left:100%}}.component-progress--with-steps:after{content:"";position:absolute;top:-1px;bottom:-1px;left:0;right:0;height:calc(100% + 2px);width:100%;z-index:1;background-image:linear-gradient(90deg,transparent 0%,transparent calc(100% - var(--component-progress__step-width)),var(--blockout__colours__surface--0) calc(100% - var(--component-progress__step-width)),var(--blockout__colours__surface--0) 100%);background-repeat:repeat-x;background-size:calc((100% + ((var(--component-progress__steps) - 1) * (var(--component-progress__step-width) / 2))) / var(--component-progress__steps)) 100%;background-position:0% center}
1
+ .component-breadcrumbs{text-transform:uppercase;font-size:.75rem;font-weight:600;color:var(--blockout__colours__surface--700)}.component-breadcrumbs__list{display:flex;align-items:baseline;flex-wrap:wrap}.component-breadcrumbs__item{display:flex;align-items:baseline;gap:.125rem}.component-breadcrumbs__link{display:block;padding:.25rem .5rem;text-underline-offset:0;transition:color .15s ease,text-underline-offset .15s ease}.component-breadcrumbs__item:first-child .component-breadcrumbs__link{padding-left:0}.component-breadcrumbs__item:last-child .component-breadcrumbs__link{color:var(--blockout__colours__surface--500)}.component-breadcrumbs__link:hover,.component-breadcrumbs__link:focus-visible{color:var(--blockout__colours__surface--950);text-decoration:underline;text-underline-offset:.125rem;outline:none}.component-breacrumbs__separator{color:var(--blockout__colours__surface--300)}.component-breadcrumbs__item:last-child .component-breacrumbs__separator{display:none}
@@ -1 +1 @@
1
- .component-select-control__input{cursor:pointer;display:flex;width:100%}.component-select-control__input:focus{outline:none}.component-select-control__value{flex-grow:1;padding:.75rem;min-height:40px;width:100%;min-width:0;max-width:100%;color:var(--blockout__colours__surface--800);font-size:1rem;text-align:left;background-color:transparent;transition:background-color .25s ease}.component-select-control__input:disabled .component-select-control__value{background-color:var(--blockout__colours__surface--200);color:var(--blockout__colours__surface--400)}.component-select-control__value:hover{background-color:var(--blockout__colours__surface--50)}.component-select-control__caret{width:2rem;display:flex;justify-content:center;align-items:center;border-left:1px solid var(--blockout__colours__surface--300);background-color:var(--blockout__colours__surface--0);cursor:pointer;transition:background-color .25s ease}.component-select-control__caret:hover{background-color:var(--blockout__colours__surface--50)}.component-select-control__caret>svg{width:.75rem;height:.75rem;fill:currentColor}.component-select-control__popover__wrapper{z-index:9999!important}.component-select-control__popover{background-color:var(--blockout__colours__surface--0);border:1px solid var(--blockout__colours__surface--300);box-shadow:0 .175rem .375rem #0000001a;width:calc(var(--popover-anchor-width) + 2px);max-height:var(--popover-available-height);overflow-y:auto}.component-select-control__popover:focus{outline:none}.component-select-control__list{display:flex;flex-direction:column;gap:.325rem;padding:.325rem}.component-select-control__list:focus{outline:none}.component-select-control__popover__search-wrapper{display:flex;align-items:center;gap:0;padding-left:1rem;border-bottom:1px solid var(--blockout__colours__surface--300)}.component-select-control__popover__search-icon{width:1rem;height:1rem;fill:var(--blockout__colours__surface--600)}.component-select-control__popover__search{width:100%;padding:.375rem .675rem;min-height:40px}.component-select-control__popover__search:focus{outline:none}.component-select-control__option{display:flex;justify-content:start;align-items:start;flex-direction:column;gap:.25rem;padding:.375rem .675rem;min-height:40px;cursor:pointer;transition:background-color .25s ease}.component-select-control__option:focus{outline:none}.component-select-control__option:first-child{border-top:none}.component-select-control__option[aria-disabled=true] .component-select-control__option__label{color:var(--blockout__colours__surface--400)}.component-select-control__option[aria-disabled=true] .component-select-control__option__description{color:var(--blockout__colours__surface--300)}.component-select-control__option__label{font-weight:500;color:var(--blockout__colours__surface--950);transition:color .25s ease}.component-select-control__option__description{font-weight:400;color:var(--blockout__colours__surface--500);font-size:.875rem;transition:color .25s ease,opacity .25s ease}.component-select-control__option[data-active-item=true]{background-color:var(--blockout__colours__primary--50)}.component-select-control__option[data-active-item=true] .component-select-control__option__label{color:var(--blockout__colours__primary--950)}.component-select-control__option[data-active-item=true] .component-select-control__option__description{color:var(--blockout__colours__primary--900);opacity:.7}
1
+ .component-menu__button{outline:0px solid transparent;outline-offset:0px;cursor:pointer;transition:background-color .25s ease,outline .25s ease,outline-offset .25s ease}.component-menu__button:hover{background-color:var(--blockout__colours__surface--50)}.component-menu__button:focus-visible{background-color:transparent;outline:1px solid var(--blockout__colours__surface--950);outline-offset:4px}.component-menu__menu-wrapper{z-index:9999!important}.component-menu{display:flex;flex-direction:column;background-color:var(--blockout__colours__surface--0);border:1px solid var(--blockout__colours__surface--300);min-width:8rem;gap:.325rem;padding:.325rem;box-shadow:0 .175rem .375rem #0000001a}.component-menu__arrow>svg{fill:var(--blockout__colours__surface--0)!important;stroke:var(--blockout__colours__surface--300)!important}.component-menu__item{display:flex;align-items:baseline;gap:.875rem;padding:.375rem .675rem;width:100%;cursor:pointer;transition:background-color .25s ease}.component-menu__item[data-active-item=true]{background-color:var(--blockout__colours__primary--50)}.component-menu__item:focus-visible{outline:none}.component-menu__item[data-active-item=true] .component-menu__item__label{color:var(--blockout__colours__primary--950)}.component-menu__item[data-active-item=true] .component-menu__item__description{color:var(--blockout__colours__primary--900);opacity:.7}.component-menu__item__icon{width:1.25rem;height:1.25rem;fill:var(--blockout__colours__surface--400)}.component-menu__item__icon--pictoral{transform:translateY(.25rem)}.component-menu__item__text{flex-grow:1}.component-menu__item__text__header{display:flex;align-items:center;gap:2rem;justify-content:space-between;width:100%}.component-menu__item__text__header+.component-menu__item__description{margin-top:.25rem}.component-menu__item__label{font-weight:500;color:var(--blockout__colours__surface--950);transition:color .25s ease}.component-menu__item__description{font-weight:400;color:var(--blockout__colours__surface--500);font-size:.875rem;padding-right:.375rem;transition:color .25s ease,opacity .25s ease}.component-menu__item--toggle--checked .component-menu__item__icon--checkbox{fill:var(--blockout__colours__surface--950)}.component-menu__separator{margin:0 -.325rem;border-top:1px solid var(--blockout__colours__surface--300);border-bottom:none}
@@ -0,0 +1 @@
1
+ .component-select-control__input{cursor:pointer;display:flex;width:100%}.component-select-control__input:focus{outline:none}.component-select-control__value{flex-grow:1;padding:.75rem;min-height:40px;width:100%;min-width:0;max-width:100%;color:var(--blockout__colours__surface--800);font-size:1rem;text-align:left;background-color:transparent;transition:background-color .25s ease}.component-select-control__input:disabled .component-select-control__value{background-color:var(--blockout__colours__surface--200);color:var(--blockout__colours__surface--400)}.component-select-control__value:hover{background-color:var(--blockout__colours__surface--50)}.component-select-control__caret{width:2rem;display:flex;justify-content:center;align-items:center;border-left:1px solid var(--blockout__colours__surface--300);background-color:var(--blockout__colours__surface--0);cursor:pointer;transition:background-color .25s ease}.component-select-control__caret:hover{background-color:var(--blockout__colours__surface--50)}.component-select-control__caret>svg{width:.75rem;height:.75rem;fill:currentColor}.component-select-control__popover__wrapper{z-index:9999!important}.component-select-control__popover{background-color:var(--blockout__colours__surface--0);border:1px solid var(--blockout__colours__surface--300);box-shadow:0 .175rem .375rem #0000001a;width:calc(var(--popover-anchor-width) + 2px);max-height:var(--popover-available-height);overflow-y:auto}.component-select-control__popover:focus{outline:none}.component-select-control__list{display:flex;flex-direction:column;gap:.325rem;padding:.325rem}.component-select-control__list:focus{outline:none}.component-select-control__popover__search-wrapper{display:flex;align-items:center;gap:0;padding-left:1rem;border-bottom:1px solid var(--blockout__colours__surface--300)}.component-select-control__popover__search-icon{width:1rem;height:1rem;fill:var(--blockout__colours__surface--600)}.component-select-control__popover__search{width:100%;padding:.375rem .675rem;min-height:40px}.component-select-control__popover__search:focus{outline:none}.component-select-control__option{display:flex;justify-content:start;align-items:start;flex-direction:column;gap:.25rem;padding:.375rem .675rem;min-height:40px;cursor:pointer;transition:background-color .25s ease}.component-select-control__option:focus{outline:none}.component-select-control__option:first-child{border-top:none}.component-select-control__option[aria-disabled=true] .component-select-control__option__label{color:var(--blockout__colours__surface--400)}.component-select-control__option[aria-disabled=true] .component-select-control__option__description{color:var(--blockout__colours__surface--300)}.component-select-control__option__label{font-weight:500;color:var(--blockout__colours__surface--950);transition:color .25s ease}.component-select-control__option__description{font-weight:400;color:var(--blockout__colours__surface--500);font-size:.875rem;transition:color .25s ease,opacity .25s ease}.component-select-control__option[data-active-item=true]{background-color:var(--blockout__colours__primary--50)}.component-select-control__option[data-active-item=true] .component-select-control__option__label{color:var(--blockout__colours__primary--950)}.component-select-control__option[data-active-item=true] .component-select-control__option__description{color:var(--blockout__colours__primary--900);opacity:.7}
@@ -1 +1 @@
1
- .component-toggle-control__buttons{display:flex;overflow:hidden}.component-toggle-control__on,.component-toggle-control__off{padding:.75rem;min-height:40px;width:100%;color:var(--blockout__colours__surface--800);font-size:1rem;font-weight:500;flex-basis:50%;cursor:pointer;position:relative;transition:color .25s ease,background-color .25s ease}.component-toggle-control__off{border-right:1px solid var(--blockout__colours__surface--300)}.component-toggle-control__on,.component-toggle-control__buttons:has(input:checked) .component-toggle-control__off{background-color:var(--blockout__colours__surface--200);color:var(--blockout__colours__surface--600);box-shadow:none;z-index:1}.component-toggle-control__off,.component-toggle-control__buttons:has(input:checked) .component-toggle-control__on{background-color:var(--blockout__colours__surface--0);color:var(--blockout__colours__surface--950);box-shadow:0 0 .75rem .125rem #0003;z-index:2}.component-toggle-control__buttons:has(input:disabled) .component-toggle-control__on,.component-toggle-control__buttons:has(input:disabled:checked) .component-toggle-control__off{background-color:var(--blockout__colours__surface--300);color:var(--blockout__colours__surface--400)}.component-toggle-control__buttons:has(input:disabled) .component-toggle-control__off,.component-toggle-control__buttons:has(input:disabled:checked) .component-toggle-control__on{background-color:var(--blockout__colours__surface--200);color:var(--blockout__colours__surface--400)}
1
+ .component-button{--button__bg: var(--blockout__colours__primary--500);--button__bg--hover: var(--blockout__colours__primary--600);--button__text: var(--blockout__colours__surface--50);--button__text--hover: var(--blockout__colours__surface--50);display:flex;align-items:center;justify-content:center;gap:1rem;padding:.75rem 1.25rem;min-height:40px;font-size:1rem;width:fit-content;background-color:var(--button__bg);color:var(--button__text);cursor:pointer;outline:0px solid transparent;outline-offset:0px;transition:background-color .25s ease,outline .25s ease,outline-offset .25s ease,border-color .25s ease,color .25s ease}.component-button>svg{width:1.25rem;height:1.25rem;color:currentColor}.component-button:hover{background-color:var(--button__bg--hover);color:var(--button__text--hover)}.component-button:focus{background-color:var(--button__bg--hover);color:var(--button__text--hover);outline:1px solid var(--blockout__colours__surface--950);outline-offset:4px}.component-button:active{outline-offset:3px}.component-button--wide{width:100%}.component-button--outline{border:2px solid var(--button__bg);color:var(--button__bg);background-color:transparent}.component-button--outline:hover{border:2px solid var(--button__bg--hover);color:var(--button__bg--hover);background-color:transparent}.component-button--outline:focus{border:2px solid var(--button__bg--hover);color:var(--button__bg--hover);background-color:transparent}.component-button--primary{--button__bg: var(--blockout__colours__primary--500);--button__bg--hover: var(--blockout__colours__primary--600);--button__text: var(--blockout__colours__surface--50);--button__text--hover: var(--blockout__colours__surface--50)}.component-button--dark{--button__bg: var(--blockout__colours__surface--950);--button__bg--hover: var(--blockout__colours__surface--900);--button__text: var(--blockout__colours__surface--50);--button__text--hover: var(--blockout__colours__surface--50)}.component-button--light{--button__bg: var(--blockout__colours__surface--100);--button__bg--hover: var(--blockout__colours__surface--200);--button__text: var(--blockout__colours__surface--950);--button__text--hover: var(--blockout__colours__surface--950)}.component-button:disabled{opacity:.66;pointer-events:none}
@@ -1 +1 @@
1
- .component-textarea-control__input{min-height:5rem!important;max-height:85vh!important;resize:vertical}
1
+ .component-base-control{display:flex;flex-direction:column}.component-base-control__label{display:block;font-weight:600;color:var(--blockout__colours__surface--950);font-size:.875rem;text-transform:uppercase;padding-bottom:.375rem}.component-base-control__label__required{color:#df1414;padding-left:.25rem}.component-base-control__box{display:flex;flex-direction:row;border:1px solid var(--blockout__colours__surface--300);background-color:var(--blockout__colours__surface--0);transition:outline .25s ease,outline-offset .25s ease,border-color .25s ease,color .25s ease}.component-base-control__box:focus-within{background-color:var(--blockout__colours__surface--0);outline:1px solid var(--blockout__colours__surface--950);outline-offset:4px}.component-base-control__control{flex-grow:1}.component-base-control__control>input,.component-base-control__control>select,.component-base-control__control>textarea{display:block;padding:.75rem;min-height:40px;width:100%;min-width:0;max-width:100%;color:var(--blockout__colours__surface--800);font-size:1rem;background-color:transparent;transition:background-color .25s ease}.component-base-control__control>input:hover,.component-base-control__control>select:hover,.component-base-control__control>textarea:hover{background-color:var(--blockout__colours__surface--50)}.component-base-control__control>input:focus,.component-base-control__control>select:focus,.component-base-control__control>textarea:focus{background-color:transparent;outline:none}.component-base-control__control>input:disabled,.component-base-control__control>select:disabled,.component-base-control__control>textarea:disabled{background-color:var(--blockout__colours__surface--200);color:var(--blockout__colours__surface--400)}.component-base-control__help{margin-top:.25rem;max-width:65ch;font-size:.75rem;font-weight:400;color:var(--blockout__colours__surface--600)}fieldset.component-base-control .component-base-control__box{border:none}fieldset.component-base-control .component-base-control__box:focus-within{outline:none}fieldset.component-base-control .component-base-control__help{order:-1;margin-top:0;margin-bottom:.75rem}
@@ -1 +1 @@
1
- .component-button{--button__bg: var(--blockout__colours__primary--500);--button__bg--hover: var(--blockout__colours__primary--600);--button__text: var(--blockout__colours__surface--50);--button__text--hover: var(--blockout__colours__surface--50);display:flex;align-items:center;justify-content:center;gap:1rem;padding:.75rem 1.25rem;min-height:40px;font-size:1rem;width:fit-content;background-color:var(--button__bg);color:var(--button__text);cursor:pointer;outline:0px solid transparent;outline-offset:0px;transition:background-color .25s ease,outline .25s ease,outline-offset .25s ease,border-color .25s ease,color .25s ease}.component-button>svg{width:1.25rem;height:1.25rem;color:currentColor}.component-button:hover{background-color:var(--button__bg--hover);color:var(--button__text--hover)}.component-button:focus{background-color:var(--button__bg--hover);color:var(--button__text--hover);outline:1px solid var(--blockout__colours__surface--950);outline-offset:4px}.component-button:active{outline-offset:3px}.component-button--wide{width:100%}.component-button--outline{border:2px solid var(--button__bg);color:var(--button__bg);background-color:transparent}.component-button--outline:hover{border:2px solid var(--button__bg--hover);color:var(--button__bg--hover);background-color:transparent}.component-button--outline:focus{border:2px solid var(--button__bg--hover);color:var(--button__bg--hover);background-color:transparent}.component-button--primary{--button__bg: var(--blockout__colours__primary--500);--button__bg--hover: var(--blockout__colours__primary--600);--button__text: var(--blockout__colours__surface--50);--button__text--hover: var(--blockout__colours__surface--50)}.component-button--dark{--button__bg: var(--blockout__colours__surface--950);--button__bg--hover: var(--blockout__colours__surface--900);--button__text: var(--blockout__colours__surface--50);--button__text--hover: var(--blockout__colours__surface--50)}.component-button--light{--button__bg: var(--blockout__colours__surface--100);--button__bg--hover: var(--blockout__colours__surface--200);--button__text: var(--blockout__colours__surface--950);--button__text--hover: var(--blockout__colours__surface--950)}.component-button:disabled{opacity:.66;pointer-events:none}
1
+ .component-choice-control__choices{display:grid;gap:1.5rem}@media (min-width: 768px){.component-choice-control__choices{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.component-choice-control__choices{grid-template-columns:repeat(3,minmax(0,1fr))}}.component-choice-control__choice{padding:.325rem;border:1px solid var(--blockout__colours__surface--300);background-color:var(--blockout__colours__surface--0);cursor:pointer;transition:outline .25s ease,outline-offset .25s ease}.component-choice-control__choice__body{display:flex;flex-direction:row;align-items:baseline;gap:.75rem;padding:.675rem;height:100%}.component-choice-control__choice:has(input:checked) .component-choice-control__choice__body{background-color:var(--blockout__colours__primary--50)}.component-choice-control__choice:has(input:checked) .component-choice-control__choice__label{color:var(--blockout__colours__primary--950)}.component-choice-control__choice:has(input:checked) .component-choice-control__choice__description{color:var(--blockout__colours__primary--900);opacity:.7}.component-choice-control__choice:focus-within{outline:1px solid var(--blockout__colours__surface--950);outline-offset:4px}.component-choice-control__choice:has(input:disabled){background-color:var(--blockout__colours__surface--200)}.component-choice-control__choice:has(input:disabled) .component-choice-control__choice__label,.component-choice-control__choice:has(input:disabled) .component-choice-control__choice__description{color:var(--blockout__colours__surface--400)}.component-choice-control__choice__icon{position:relative;border:2px solid var(--blockout__colours__surface--300);width:1rem;height:1rem;flex-shrink:0;transition:border-color .25s ease;border-radius:2px;transform:translateY(.125rem)}.component-choice-control__choice:has(input:checked) .component-choice-control__choice__icon{border-color:var(--blockout__colours__primary--950)}.component-choice-control__choice__icon:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;transform:scale(0);display:block;background-color:var(--blockout__colours__primary--700);transition:transform .15s ease;border-radius:1px}.component-choice-control__choice:has(input:checked) .component-choice-control__choice__icon:after{transform:scale(.75)}.component-choice-control__choice--single .component-choice-control__choice__icon{border-radius:1rem}.component-choice-control__choice--single .component-choice-control__choice__icon:after{border-radius:1rem}.component-choice-control__choice__label{font-weight:500;color:var(--blockout__colours__surface--600);transition:color .25s ease}.component-choice-control__choice__description{font-weight:400;color:var(--blockout__colours__surface--500);font-size:.875rem;transition:color .25s ease,opacity .25s ease}.component-choice-control__choice:has(input:checked) .component-choice-control__choice__label{color:var(--blockout__colours__surface--950)}
@@ -1 +1 @@
1
- .component-base-control{display:flex;flex-direction:column}.component-base-control__label{display:block;font-weight:500;color:var(--blockout__colours__surface--950);font-size:.75rem;text-transform:uppercase;padding-bottom:.375rem}.component-base-control__label__required{color:#df1414;padding-left:.25rem}.component-base-control__box{display:flex;flex-direction:row;border:1px solid var(--blockout__colours__surface--300);background-color:var(--blockout__colours__surface--0);transition:outline .25s ease,outline-offset .25s ease,border-color .25s ease,color .25s ease}.component-base-control__box:focus-within{background-color:var(--blockout__colours__surface--0);outline:1px solid var(--blockout__colours__surface--950);outline-offset:4px}.component-base-control__control{flex-grow:1}.component-base-control__control>input,.component-base-control__control>select,.component-base-control__control>textarea{display:block;padding:.75rem;min-height:40px;width:100%;min-width:0;max-width:100%;color:var(--blockout__colours__surface--800);font-size:1rem;background-color:transparent;transition:background-color .25s ease}.component-base-control__control>input:hover,.component-base-control__control>select:hover,.component-base-control__control>textarea:hover{background-color:var(--blockout__colours__surface--50)}.component-base-control__control>input:focus,.component-base-control__control>select:focus,.component-base-control__control>textarea:focus{background-color:transparent;outline:none}.component-base-control__control>input:disabled,.component-base-control__control>select:disabled,.component-base-control__control>textarea:disabled{background-color:var(--blockout__colours__surface--200);color:var(--blockout__colours__surface--400)}.component-base-control__help{margin-top:.25rem;max-width:65ch;font-size:.75rem;font-weight:400;color:var(--blockout__colours__surface--600)}fieldset.component-base-control .component-base-control__box{border:none}fieldset.component-base-control .component-base-control__box:focus-within{outline:none}fieldset.component-base-control .component-base-control__help{order:-1;margin-top:0;margin-bottom:.75rem}
1
+ .component-number-control__input::-webkit-outer-spin-button,.component-number-control__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.component-number-control__input{-moz-appearance:textfield}.component-number-control__spinbox{width:2rem;display:flex;flex-direction:column;border-left:1px solid var(--blockout__colours__surface--300);background-color:var(--blockout__colours__surface--0)}.component-number-control__spinbox__button{display:flex;align-items:center;justify-content:center;flex-basis:50%;cursor:pointer;transition:background-color .25s ease}.component-number-control__spinbox__button:hover{background-color:var(--blockout__colours__surface--50)}.component-number-control__spinbox__button:first-child{border-bottom:1px solid var(--blockout__colours__surface--300)}.component-number-control__spinbox__button>svg{width:.75rem;height:.75rem;fill:currentColor}
@@ -1 +1 @@
1
- .component-choice-control__choices{display:grid;gap:1.5rem}@media (min-width: 768px){.component-choice-control__choices{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.component-choice-control__choices{grid-template-columns:repeat(3,minmax(0,1fr))}}.component-choice-control__choice{padding:.325rem;border:1px solid var(--blockout__colours__surface--300);background-color:var(--blockout__colours__surface--0);cursor:pointer;transition:outline .25s ease,outline-offset .25s ease}.component-choice-control__choice__body{display:flex;flex-direction:row;align-items:baseline;gap:.75rem;padding:.675rem}.component-choice-control__choice:has(input:checked) .component-choice-control__choice__body{background-color:var(--blockout__colours__primary--50)}.component-choice-control__choice:has(input:checked) .component-choice-control__choice__label{color:var(--blockout__colours__primary--950)}.component-choice-control__choice:has(input:checked) .component-choice-control__choice__description{color:var(--blockout__colours__primary--900);opacity:.7}.component-choice-control__choice:focus-within{outline:1px solid var(--blockout__colours__surface--950);outline-offset:4px}.component-choice-control__choice:has(input:disabled){background-color:var(--blockout__colours__surface--200)}.component-choice-control__choice:has(input:disabled) .component-choice-control__choice__label,.component-choice-control__choice:has(input:disabled) .component-choice-control__choice__description{color:var(--blockout__colours__surface--400)}.component-choice-control__choice__icon{position:relative;border:2px solid var(--blockout__colours__surface--300);width:1rem;height:1rem;transition:border-color .25s ease;border-radius:2px;transform:translateY(.125rem)}.component-choice-control__choice:has(input:checked) .component-choice-control__choice__icon{border-color:var(--blockout__colours__primary--950)}.component-choice-control__choice__icon:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;transform:scale(0);display:block;background-color:var(--blockout__colours__primary--700);transition:transform .15s ease;border-radius:1px}.component-choice-control__choice:has(input:checked) .component-choice-control__choice__icon:after{transform:scale(.75)}.component-choice-control__choice--single .component-choice-control__choice__icon{border-radius:1rem}.component-choice-control__choice--single .component-choice-control__choice__icon:after{border-radius:1rem}.component-choice-control__choice__label{font-weight:500;color:var(--blockout__colours__surface--600);transition:color .25s ease}.component-choice-control__choice__description{font-weight:400;color:var(--blockout__colours__surface--500);font-size:.875rem;transition:color .25s ease,opacity .25s ease}.component-choice-control__choice:has(input:checked) .component-choice-control__choice__label{color:var(--blockout__colours__surface--950)}
1
+ .component-textarea-control__input{min-height:5rem!important;max-height:85vh!important;resize:vertical}
@@ -1 +1 @@
1
- .component-number-control__input::-webkit-outer-spin-button,.component-number-control__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.component-number-control__input{-moz-appearance:textfield}.component-number-control__spinbox{width:2rem;display:flex;flex-direction:column;border-left:1px solid var(--blockout__colours__surface--300);background-color:var(--blockout__colours__surface--0)}.component-number-control__spinbox__button{display:flex;align-items:center;justify-content:center;flex-basis:50%;cursor:pointer;transition:background-color .25s ease}.component-number-control__spinbox__button:hover{background-color:var(--blockout__colours__surface--50)}.component-number-control__spinbox__button:first-child{border-bottom:1px solid var(--blockout__colours__surface--300)}.component-number-control__spinbox__button>svg{width:.75rem;height:.75rem;fill:currentColor}
1
+ .component-toggle-control__buttons{display:flex;overflow:hidden}.component-toggle-control__on,.component-toggle-control__off{padding:.75rem;min-height:40px;width:100%;color:var(--blockout__colours__surface--800);font-size:1rem;font-weight:500;flex-basis:50%;cursor:pointer;position:relative;transition:color .25s ease,background-color .25s ease}.component-toggle-control__off{border-right:1px solid var(--blockout__colours__surface--300)}.component-toggle-control__on,.component-toggle-control__buttons:has(input:checked) .component-toggle-control__off{background-color:var(--blockout__colours__surface--200);color:var(--blockout__colours__surface--600);box-shadow:none;z-index:1}.component-toggle-control__off,.component-toggle-control__buttons:has(input:checked) .component-toggle-control__on{background-color:var(--blockout__colours__surface--0);color:var(--blockout__colours__surface--950);box-shadow:0 0 .75rem .125rem #0003;z-index:2}.component-toggle-control__buttons:has(input:disabled) .component-toggle-control__on,.component-toggle-control__buttons:has(input:disabled:checked) .component-toggle-control__off{background-color:var(--blockout__colours__surface--300);color:var(--blockout__colours__surface--400)}.component-toggle-control__buttons:has(input:disabled) .component-toggle-control__off,.component-toggle-control__buttons:has(input:disabled:checked) .component-toggle-control__on{background-color:var(--blockout__colours__surface--200);color:var(--blockout__colours__surface--400)}
@@ -1 +1 @@
1
- .component-data-table__table{border-collapse:separate;border-spacing:0}.component-data-table__th__target,.component-data-table__td{padding:1.25rem;border-bottom:1px solid var(--blockout__colours__surface--300)}.component-data-table__th:first-child .component-data-table__th__target,.component-data-table__td:first-child{padding-left:.25rem}.component-data-table__th:last-child .component-data-table__th__target,.component-data-table__td:last-child{padding-right:.25rem}.component-data-table__th{text-align:left;font-weight:500}.component-data-table__th__target{display:flex;align-items:center;gap:.75rem;width:100%;height:100%;font-weight:500}.component-data-table__th__sort-indicator{width:1rem;height:1rem;fill:var(--blockout__colours__surface--400)}.component-data-table__td{white-space:nowrap}.component-data-table__td--sticky,.component-data-table__th--sticky{position:sticky;left:0;background-color:var(--blockout__colours__surface--0)}.component-data-table__td--sticky:after,.component-data-table__th--sticky:after{content:"";position:absolute;top:-1px;left:100%;bottom:0;width:1rem;pointer-events:none;background:linear-gradient(90deg,#00000016,#0000)}.component-data-table__tfoot .component-data-table__td{padding-top:.75rem;padding-bottom:.75rem;font-size:.875rem;color:var(--blockout__colours__surface--600)}
1
+ .component-progress{--component-progress__steps: 0;--component-progress__step-width: max(.75rem, 3.5%);--component-progress__bg: var(--blockout__colours__surface--200);--component-progress__fg: var(--blockout__colours__surface--950);-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;display:block;height:4px;width:100%;border-radius:0;overflow:clip}.component-progress::-webkit-progress-bar{border-radius:0;height:100%;background:var(--component-progress__bg)}.component-progress::-moz-progress-bar{border-radius:0;height:100%;background:var(--component-progress__fg)}.component-progress::-webkit-progress-value{border-radius:0;height:100%;background:var(--component-progress__fg)}.component-progress:indeterminate:before{content:"";position:absolute;top:0;left:0;background-color:var(--component-progress__fg);height:100%;width:20%;transform-origin:left;animation:component-progress__indeterminate 2s ease-in-out infinite alternate}@keyframes component-progress__indeterminate{0%{left:-50%}to{left:100%}}.component-progress--with-steps:after{content:"";position:absolute;top:-1px;bottom:-1px;left:0;right:0;height:calc(100% + 2px);width:100%;z-index:1;background-image:linear-gradient(90deg,transparent 0%,transparent calc(100% - var(--component-progress__step-width)),var(--blockout__colours__surface--0) calc(100% - var(--component-progress__step-width)),var(--blockout__colours__surface--0) 100%);background-repeat:repeat-x;background-size:calc((100% + ((var(--component-progress__steps) - 1) * (var(--component-progress__step-width) / 2))) / var(--component-progress__steps)) 100%;background-position:0% center}
@@ -1 +1 @@
1
- .component-menu__button{outline:0px solid transparent;outline-offset:0px;cursor:pointer;transition:background-color .25s ease,outline .25s ease,outline-offset .25s ease}.component-menu__button:hover{background-color:var(--blockout__colours__surface--50)}.component-menu__button:focus-visible{background-color:transparent;outline:1px solid var(--blockout__colours__surface--950);outline-offset:4px}.component-menu__menu-wrapper{z-index:9999!important}.component-menu{display:flex;flex-direction:column;background-color:var(--blockout__colours__surface--0);border:1px solid var(--blockout__colours__surface--300);min-width:8rem;gap:.325rem;padding:.325rem;box-shadow:0 .175rem .375rem #0000001a}.component-menu__arrow>svg{fill:var(--blockout__colours__surface--0)!important;stroke:var(--blockout__colours__surface--300)!important}.component-menu__item{display:flex;align-items:baseline;gap:.875rem;padding:.375rem .675rem;width:100%;cursor:pointer;transition:background-color .25s ease}.component-menu__item[data-active-item=true]{background-color:var(--blockout__colours__primary--50)}.component-menu__item:focus-visible{outline:none}.component-menu__item[data-active-item=true] .component-menu__item__label{color:var(--blockout__colours__primary--950)}.component-menu__item[data-active-item=true] .component-menu__item__description{color:var(--blockout__colours__primary--900);opacity:.7}.component-menu__item__icon{width:1.25rem;height:1.25rem;fill:var(--blockout__colours__surface--400)}.component-menu__item__icon--pictoral{transform:translateY(.25rem)}.component-menu__item__text{flex-grow:1}.component-menu__item__text__header{display:flex;align-items:center;gap:2rem;justify-content:space-between;width:100%}.component-menu__item__text__header+.component-menu__item__description{margin-top:.25rem}.component-menu__item__label{font-weight:500;color:var(--blockout__colours__surface--950);transition:color .25s ease}.component-menu__item__description{font-weight:400;color:var(--blockout__colours__surface--500);font-size:.875rem;padding-right:.375rem;transition:color .25s ease,opacity .25s ease}.component-menu__item--toggle--checked .component-menu__item__icon--checkbox{fill:var(--blockout__colours__surface--950)}.component-menu__separator{margin:0 -.325rem;border-top:1px solid var(--blockout__colours__surface--300);border-bottom:none}
1
+ .component-data-table__table{border-collapse:separate;border-spacing:0}.component-data-table__th__target,.component-data-table__td{padding:1.25rem;border-bottom:1px solid var(--blockout__colours__surface--300)}.component-data-table__th:first-child .component-data-table__th__target,.component-data-table__td:first-child{padding-left:.25rem}.component-data-table__th:last-child .component-data-table__th__target,.component-data-table__td:last-child{padding-right:.25rem}.component-data-table__th{text-align:left;font-weight:500}.component-data-table__th__target{display:flex;align-items:center;gap:.75rem;width:100%;height:100%;font-weight:500}.component-data-table__th__sort-indicator{width:1rem;height:1rem;fill:var(--blockout__colours__surface--400)}.component-data-table__td{white-space:nowrap}.component-data-table__td--sticky,.component-data-table__th--sticky{position:sticky;left:0;background-color:var(--blockout__colours__surface--0)}.component-data-table__td--sticky:after,.component-data-table__th--sticky:after{content:"";position:absolute;top:-1px;left:100%;bottom:0;width:1rem;pointer-events:none;background:linear-gradient(90deg,#00000016,#0000)}.component-data-table__tfoot .component-data-table__td{padding-top:.75rem;padding-bottom:.75rem;font-size:.875rem;color:var(--blockout__colours__surface--600)}
@@ -0,0 +1,7 @@
1
+ import { FC, HTMLAttributes } from 'react';
2
+ import { Crumb } from './types';
3
+ interface BreadcrumbsProps extends HTMLAttributes<HTMLElement> {
4
+ crumbs: Crumb[];
5
+ }
6
+ export declare const Breadcrumbs: FC<BreadcrumbsProps>;
7
+ export {};
@@ -0,0 +1,29 @@
1
+ import { jsx as r, jsxs as s } from "react/jsx-runtime";
2
+ import { cn as c } from "../../utils/css.js";
3
+ import '../../assets/index.css';const t = ({
4
+ crumbs: e,
5
+ className: n,
6
+ ...o
7
+ }) => /* @__PURE__ */ r(
8
+ "nav",
9
+ {
10
+ className: c("component-breadcrumbs", n),
11
+ "aria-label": "breadcrumb",
12
+ ...o,
13
+ children: /* @__PURE__ */ r("ol", { className: "component-breadcrumbs__list", children: e.map((a) => /* @__PURE__ */ s("li", { className: "component-breadcrumbs__item", children: [
14
+ /* @__PURE__ */ r("a", { className: "component-breadcrumbs__link", href: a.href, children: a.label }),
15
+ /* @__PURE__ */ r(
16
+ "span",
17
+ {
18
+ className: "component-breacrumbs__separator",
19
+ role: "separator",
20
+ "aria-orientation": "horizontal",
21
+ children: "/"
22
+ }
23
+ )
24
+ ] })) })
25
+ }
26
+ );
27
+ export {
28
+ t as Breadcrumbs
29
+ };
@@ -0,0 +1,4 @@
1
+ export type Crumb = {
2
+ href: string;
3
+ label: string;
4
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
2
  import { cn as c } from "../../utils/css.js";
3
- import '../../assets/index4.css';const a = ({
3
+ import '../../assets/index2.css';const a = ({
4
4
  children: t,
5
5
  className: o,
6
6
  variant: n = "primary",
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { cn as b } from "../../../utils/css.js";
3
- import '../../../assets/index5.css';const N = ({
3
+ import '../../../assets/index3.css';const N = ({
4
4
  as: n = "div",
5
5
  label: c,
6
6
  className: s,
@@ -1,9 +1,18 @@
1
1
  import { Optionable } from '../../../types/options';
2
2
  import { InputHTMLAttributes } from 'react';
3
3
  import { ControlFC } from '../base-control/props';
4
- interface ChoiceControlProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"> {
4
+ interface ChoiceControlProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "checked"> {
5
5
  options?: Optionable[];
6
- multiple?: boolean;
7
6
  }
8
- export declare const ChoiceControl: ControlFC<ChoiceControlProps>;
7
+ interface MultipleChoiceControlProps extends ChoiceControlProps {
8
+ multiple: true;
9
+ value?: string[];
10
+ onChangeValue?: (value: string[]) => void;
11
+ }
12
+ interface SingleChoiceControlProps extends ChoiceControlProps {
13
+ multiple?: false;
14
+ value?: string;
15
+ onChangeValue?: (value: string) => void;
16
+ }
17
+ export declare const ChoiceControl: ControlFC<MultipleChoiceControlProps | SingleChoiceControlProps>;
9
18
  export {};
@@ -1,31 +1,41 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { normalizeOption as p } from "../../../types/options.js";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { normalizeOption as C } from "../../../types/options.js";
3
+ import { noop as c } from "../../../utils/noop.js";
3
4
  import "react";
4
- import { BaseControl as a } from "../base-control/index.js";
5
- import { useBaseControlProps as f } from "../base-control/props.js";
6
- import { Choice as h } from "./choice.js";
7
- import '../../../assets/index6.css';const B = (t) => {
8
- const { baseProps: r, controlProps: n } = f(t, {
5
+ import { BaseControl as g } from "../base-control/index.js";
6
+ import { useBaseControlProps as v } from "../base-control/props.js";
7
+ import { Choice as P } from "./choice.js";
8
+ import '../../../assets/index4.css';const _ = (l) => {
9
+ const { baseProps: a, controlProps: s } = v(l, {
9
10
  className: "component-choice-control"
10
11
  }), {
11
- options: s,
12
- multiple: i = !1,
13
- name: c = r.id,
14
- value: d,
15
- // Remove value from restControlProps
16
- ...m
17
- } = n, l = (s || []).map(p);
18
- return /* @__PURE__ */ o(a, { as: "fieldset", ...r, children: /* @__PURE__ */ o("div", { className: "component-choice-control__choices", children: l.map((e) => /* @__PURE__ */ o(
19
- h,
12
+ options: i,
13
+ multiple: r = !1,
14
+ name: m = a.id,
15
+ value: e,
16
+ onChange: p = c,
17
+ onChangeValue: n = c,
18
+ ...u
19
+ } = s, h = (i || []).map(C), f = (o) => {
20
+ r ? o.currentTarget.checked ? n([...e, o.currentTarget.value]) : n(
21
+ e.filter(
22
+ (d) => d !== o.currentTarget.value
23
+ )
24
+ ) : n(o.currentTarget.value), p(o);
25
+ };
26
+ return /* @__PURE__ */ t(g, { as: "fieldset", ...a, children: /* @__PURE__ */ t("div", { className: "component-choice-control__choices", children: h.map((o) => /* @__PURE__ */ t(
27
+ P,
20
28
  {
21
- name: c,
22
- multiple: i,
23
- ...e,
24
- ...m
29
+ name: m,
30
+ multiple: r,
31
+ onChange: f,
32
+ checked: r ? (e || []).includes(o.value) : e === o.value,
33
+ ...o,
34
+ ...u
25
35
  },
26
- e.value
36
+ o.value
27
37
  )) }) });
28
38
  };
29
39
  export {
30
- B as ChoiceControl
40
+ _ as ChoiceControl
31
41
  };
@@ -1,6 +1,7 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
2
  import { ControlFC } from '../base-control/props';
3
3
  interface NumberControlProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"> {
4
+ onChangeValue?: (value: number) => void;
4
5
  }
5
6
  export declare const NumberControl: ControlFC<NumberControlProps>;
6
7
  export {};
@@ -1,54 +1,62 @@
1
- import { jsx as n, jsxs as i } from "react/jsx-runtime";
2
- import { e as l } from "../../../CaretDown.es-eySGHzTJ.js";
3
- import { r as u } from "../../../CaretUp.es-Cy8czlHG.js";
4
- import { useRef as p } from "react";
5
- import { BaseControl as a } from "../base-control/index.js";
6
- import { useBaseControlProps as b } from "../base-control/props.js";
7
- import '../../../assets/index7.css';const h = (t) => {
8
- const o = p(null), c = () => /* @__PURE__ */ i("div", { className: "component-number-control__spinbox", children: [
9
- /* @__PURE__ */ n(
1
+ import { jsx as o, jsxs as p } from "react/jsx-runtime";
2
+ import { noop as s } from "../../../utils/noop.js";
3
+ import { e as b } from "../../../CaretDown.es-eySGHzTJ.js";
4
+ import { r as f } from "../../../CaretUp.es-Cy8czlHG.js";
5
+ import { useRef as d } from "react";
6
+ import { BaseControl as h } from "../base-control/index.js";
7
+ import { useBaseControlProps as C } from "../base-control/props.js";
8
+ import '../../../assets/index5.css';const k = (e) => {
9
+ const r = d(null), l = () => /* @__PURE__ */ p("div", { className: "component-number-control__spinbox", children: [
10
+ /* @__PURE__ */ o(
10
11
  "button",
11
12
  {
12
13
  type: "button",
13
14
  className: "component-number-control__spinbox__button",
14
15
  "aria-label": "Increment",
15
16
  role: "spinbutton",
16
- "aria-controls": t.id,
17
- onClick: () => e(1),
17
+ "aria-controls": e.id,
18
+ onClick: () => t(1),
18
19
  tabIndex: -1,
19
- children: /* @__PURE__ */ n(u, {})
20
+ children: /* @__PURE__ */ o(f, {})
20
21
  }
21
22
  ),
22
- /* @__PURE__ */ n(
23
+ /* @__PURE__ */ o(
23
24
  "button",
24
25
  {
25
26
  type: "button",
26
27
  className: "component-number-control__spinbox__button",
27
28
  "aria-label": "Decrement",
28
29
  role: "spinbutton",
29
- "aria-controls": t.id,
30
- onClick: () => e(-1),
30
+ "aria-controls": e.id,
31
+ onClick: () => t(-1),
31
32
  tabIndex: -1,
32
- children: /* @__PURE__ */ n(l, {})
33
+ children: /* @__PURE__ */ o(b, {})
33
34
  }
34
35
  )
35
- ] }), e = (r) => {
36
- o.current && (r > 0 ? o.current.stepUp(r) : o.current.stepDown(r * -1), o.current.focus());
37
- }, { baseProps: s, controlProps: m } = b(t, {
36
+ ] }), t = (n) => {
37
+ r.current && (n > 0 ? r.current.stepUp(n) : r.current.stepDown(n * -1), c(Number(r.current.value)), r.current.focus());
38
+ }, { baseProps: m, controlProps: u } = C(e, {
38
39
  className: "component-number-control",
39
- suffix: /* @__PURE__ */ n(c, {})
40
- });
41
- return /* @__PURE__ */ n(a, { ...s, children: /* @__PURE__ */ n(
40
+ suffix: /* @__PURE__ */ o(l, {})
41
+ }), {
42
+ onChangeValue: c = s,
43
+ onChange: a = s,
44
+ ...i
45
+ } = u;
46
+ return /* @__PURE__ */ o(h, { ...m, children: /* @__PURE__ */ o(
42
47
  "input",
43
48
  {
44
49
  className: "component-number-control__input",
45
50
  type: "number",
46
51
  inputMode: "numeric",
47
- ref: o,
48
- ...m
52
+ ref: r,
53
+ onChange: (n) => {
54
+ console.log(n), c(Number(n.currentTarget.value)), a(n);
55
+ },
56
+ ...i
49
57
  }
50
58
  ) });
51
59
  };
52
60
  export {
53
- h as NumberControl
61
+ k as NumberControl
54
62
  };
@@ -2,6 +2,8 @@ import { Optionable } from '../../../types/options';
2
2
  import { ControlFC } from '../base-control/props';
3
3
  import * as Ariakit from "@ariakit/react";
4
4
  interface SelectControlProps extends Ariakit.SelectOptions {
5
+ value?: string;
6
+ onChangeValue?: (value: string) => void;
5
7
  options?: Optionable[];
6
8
  searchable?: boolean;
7
9
  placeholder?: string;