@wrdagency/blockout 0.0.10 → 0.0.12
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/dist/{2NBKRL7C-raj2vrMY.js → 2NBKRL7C-C6mXReCE.js} +3 -3
- package/dist/{P7GR5CS5-PkUYC6hd.js → P7GR5CS5-DNbthaqU.js} +11 -11
- package/dist/{T7VMP3TM-BeJUiw28.js → T7VMP3TM-B3jxXFmj.js} +2 -2
- package/dist/{UQQRIHDV-xtNCxi0H.js → UQQRIHDV-CFdrMoqW.js} +1 -1
- package/dist/{VIIRIBF3-B3f0V2Nc.js → VIIRIBF3-B585VK9r.js} +1 -1
- package/dist/assets/form.css +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -0
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/components/breadcrumbs/index.d.ts +7 -0
- package/dist/components/breadcrumbs/index.js +29 -0
- package/dist/components/breadcrumbs/types.d.ts +4 -0
- package/dist/components/button/index.js +1 -1
- package/dist/components/controls/base-control/index.js +1 -1
- package/dist/components/controls/choice-control/choice.js +8 -8
- package/dist/components/controls/choice-control/index.d.ts +12 -3
- package/dist/components/controls/choice-control/index.js +32 -22
- package/dist/components/controls/number-control/index.d.ts +1 -0
- package/dist/components/controls/number-control/index.js +33 -25
- package/dist/components/controls/select-control/index.d.ts +2 -0
- package/dist/components/controls/select-control/index.js +337 -334
- package/dist/components/controls/text-control/index.d.ts +1 -0
- package/dist/components/controls/text-control/index.js +15 -8
- package/dist/components/controls/textarea-control/index.d.ts +1 -0
- package/dist/components/controls/textarea-control/index.js +17 -9
- package/dist/components/controls/toggle-control/index.d.ts +3 -1
- package/dist/components/controls/toggle-control/index.js +35 -23
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/form/components/description.d.ts +2 -0
- package/dist/components/form/components/description.js +15 -0
- package/dist/components/form/components/form.d.ts +9 -0
- package/dist/components/form/components/form.js +41 -0
- package/dist/components/form/components/index.js +18 -0
- package/dist/components/form/components/pagination.d.ts +6 -0
- package/dist/components/form/components/pagination.js +46 -0
- package/dist/components/form/components/progress.d.ts +5 -0
- package/dist/components/form/components/progress.js +22 -0
- package/dist/components/form/components/row.d.ts +6 -0
- package/dist/components/form/components/row.js +22 -0
- package/dist/components/form/components/step.d.ts +6 -0
- package/dist/components/form/components/step.js +24 -0
- package/dist/components/form/components/title.d.ts +2 -0
- package/dist/components/form/components/title.js +15 -0
- package/dist/components/form/index.d.ts +9 -0
- package/dist/components/form/index.js +6 -0
- package/dist/components/form/types/fields.d.ts +21 -0
- package/dist/components/form/types/fields.js +11 -0
- package/dist/components/form/types/form.d.ts +28 -0
- package/dist/components/form/types/form.js +7 -0
- package/dist/components/form/types/steps.d.ts +5 -0
- package/dist/components/form/types/steps.js +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +29 -23
- package/dist/components/markdown/formats.d.ts +11 -0
- package/dist/components/markdown/formats.js +318 -0
- package/dist/components/markdown/index.js +1 -0
- package/dist/components/markdown/types/format.d.ts +27 -0
- package/dist/components/markdown/types/format.js +4 -0
- package/dist/components/menu/index.js +11 -11
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/spacer.js +10 -10
- package/dist/components/menu/items/submenu.js +2 -2
- package/dist/components/menu/items/toggle.js +1 -1
- package/dist/components/progress/index.js +13 -11
- package/dist/index.js +33 -27
- package/dist/{item-Bcbx6pI-.js → item-C0kyELlf.js} +36 -36
- package/package.json +3 -2
- /package/dist/components/{controls/ranked-choice-control/index.js → breadcrumbs/types.js} +0 -0
- /package/dist/components/{controls/ranked-choice-control → markdown}/index.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as _ } from "./VIIRIBF3-
|
|
2
|
-
import { c as H, C as T,
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
615
|
+
Ye as b,
|
|
616
616
|
w as c,
|
|
617
|
-
|
|
618
|
-
|
|
617
|
+
Le as d,
|
|
618
|
+
Ie as e,
|
|
619
619
|
De as f,
|
|
620
|
-
|
|
621
|
-
|
|
620
|
+
Q as g,
|
|
621
|
+
re as h,
|
|
622
622
|
Xt as i,
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
623
|
+
v as j,
|
|
624
|
+
c as k,
|
|
625
|
+
le as l,
|
|
626
626
|
Me as m,
|
|
627
|
-
|
|
628
|
-
|
|
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,
|
|
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-
|
|
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,
|
|
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";
|
|
@@ -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}
|
package/dist/assets/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-
|
|
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}
|
package/dist/assets/index10.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-
|
|
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}
|
package/dist/assets/index2.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-
|
|
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}
|
package/dist/assets/index3.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-
|
|
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}
|
package/dist/assets/index4.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-
|
|
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)}
|
package/dist/assets/index5.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-
|
|
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}
|
package/dist/assets/index6.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-
|
|
1
|
+
.component-textarea-control__input{min-height:5rem!important;max-height:85vh!important;resize:vertical}
|
package/dist/assets/index7.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-
|
|
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)}
|
package/dist/assets/index8.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-
|
|
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}
|
package/dist/assets/index9.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-
|
|
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,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
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as c, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { cn as m } from "../../../utils/css.js";
|
|
3
3
|
import { useId as s } from "react";
|
|
4
4
|
import '../../../assets/style.css';/* empty css */
|
|
5
5
|
import { VisuallyHidden as a } from "../../../primitives/visually-hidden/index.js";
|
|
6
6
|
const x = ({
|
|
7
7
|
value: t,
|
|
8
|
-
label:
|
|
8
|
+
label: l,
|
|
9
9
|
description: o,
|
|
10
|
-
disabled:
|
|
10
|
+
disabled: r,
|
|
11
11
|
multiple: e = !1,
|
|
12
12
|
className: _,
|
|
13
13
|
...h
|
|
14
14
|
}) => {
|
|
15
15
|
const i = s();
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ c(
|
|
17
17
|
"label",
|
|
18
18
|
{
|
|
19
19
|
className: m(
|
|
@@ -22,7 +22,7 @@ const x = ({
|
|
|
22
22
|
_
|
|
23
23
|
),
|
|
24
24
|
htmlFor: i,
|
|
25
|
-
children: [
|
|
25
|
+
children: /* @__PURE__ */ n("div", { className: "component-choice-control__choice__body", children: [
|
|
26
26
|
/* @__PURE__ */ c(a, { children: /* @__PURE__ */ c(
|
|
27
27
|
"input",
|
|
28
28
|
{
|
|
@@ -31,7 +31,7 @@ const x = ({
|
|
|
31
31
|
id: i,
|
|
32
32
|
type: e ? "checkbox" : "radio",
|
|
33
33
|
value: t,
|
|
34
|
-
disabled:
|
|
34
|
+
disabled: r
|
|
35
35
|
}
|
|
36
36
|
) }),
|
|
37
37
|
/* @__PURE__ */ c(
|
|
@@ -42,10 +42,10 @@ const x = ({
|
|
|
42
42
|
}
|
|
43
43
|
),
|
|
44
44
|
/* @__PURE__ */ n("div", { className: "component-choice-control__choice__text", children: [
|
|
45
|
-
/* @__PURE__ */ c("div", { className: "component-choice-control__choice__label", children:
|
|
45
|
+
/* @__PURE__ */ c("div", { className: "component-choice-control__choice__label", children: l }),
|
|
46
46
|
o && /* @__PURE__ */ c("p", { className: "component-choice-control__choice__description", children: o })
|
|
47
47
|
] })
|
|
48
|
-
]
|
|
48
|
+
] })
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
};
|
|
@@ -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
|
-
|
|
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
|
|
2
|
-
import { normalizeOption as
|
|
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
|
|
5
|
-
import { useBaseControlProps as
|
|
6
|
-
import { Choice as
|
|
7
|
-
import '../../../assets/
|
|
8
|
-
const { baseProps:
|
|
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:
|
|
12
|
-
multiple:
|
|
13
|
-
name:
|
|
14
|
-
value:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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:
|
|
22
|
-
multiple:
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
36
|
+
o.value
|
|
27
37
|
)) }) });
|
|
28
38
|
};
|
|
29
39
|
export {
|
|
30
|
-
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
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":
|
|
17
|
-
onClick: () =>
|
|
17
|
+
"aria-controls": e.id,
|
|
18
|
+
onClick: () => t(1),
|
|
18
19
|
tabIndex: -1,
|
|
19
|
-
children: /* @__PURE__ */
|
|
20
|
+
children: /* @__PURE__ */ o(f, {})
|
|
20
21
|
}
|
|
21
22
|
),
|
|
22
|
-
/* @__PURE__ */
|
|
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":
|
|
30
|
-
onClick: () =>
|
|
30
|
+
"aria-controls": e.id,
|
|
31
|
+
onClick: () => t(-1),
|
|
31
32
|
tabIndex: -1,
|
|
32
|
-
children: /* @__PURE__ */
|
|
33
|
+
children: /* @__PURE__ */ o(b, {})
|
|
33
34
|
}
|
|
34
35
|
)
|
|
35
|
-
] }),
|
|
36
|
-
|
|
37
|
-
}, { baseProps:
|
|
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__ */
|
|
40
|
-
})
|
|
41
|
-
|
|
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:
|
|
48
|
-
|
|
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
|
-
|
|
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;
|