@wrdagency/blockout 1.0.33 → 1.0.35

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.
@@ -1,5 +1,6 @@
1
1
  import * as e from "react";
2
- const l = /* @__PURE__ */ new Map([
2
+ import { w as l } from "./SSRBase.es-BUXS72ra.js";
3
+ const n = /* @__PURE__ */ new Map([
3
4
  [
4
5
  "bold",
5
6
  /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z" }))
@@ -24,7 +25,9 @@ const l = /* @__PURE__ */ new Map([
24
25
  "thin",
25
26
  /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z" }))
26
27
  ]
27
- ]);
28
+ ]), r = e.forwardRef((t, a) => /* @__PURE__ */ e.createElement(l, { ref: a, ...t, weights: n }));
29
+ r.displayName = "CaretDownIcon";
28
30
  export {
29
- l as t
31
+ r as e,
32
+ n as t
30
33
  };
@@ -1 +1 @@
1
- .component-dialog{position:fixed;top:1rem;right:1rem;bottom:1rem;left:1rem;z-index:50;margin:auto;height:fit-content;max-height:calc(100dvh - 2rem);max-width:64ch;overflow:auto;border-radius:var(--blockout__radius--lg);background:var(--blockout__colours__surface--0);box-shadow:0 10px 15px -3px #0000000d,0 4px 6px -4px #0000000d;opacity:0;transform:translateY(1rem);transition:opacity .15s ease,transform .15s ease}.component-dialog[data-enter]{opacity:1;transform:translateY(0)}.component-dialog.component-dialog--top{margin-top:5vh}.component-dialog.component-dialog--bottom{margin-bottom:5vh}.component-dialog.component-dialog--left{margin-top:0;right:auto;left:0;height:100%;max-height:100%;width:100%;max-width:42ch;border-top-left-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0}@media (width <= 42ch){.component-dialog.component-dialog--left{border-top-left-radius:var(--blockout__radius--lg)}}.component-dialog.component-dialog--right{margin-top:0;left:auto;right:0;height:100%;max-height:100%;width:100%;max-width:42ch;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0}@media (width <= 42ch){.component-dialog.component-dialog--right{border-top-right-radius:var(--blockout__radius--lg)}}.component-dialog__backdrop{background-color:#0000001a;opacity:0;transition:opacity ease .15s}.component-dialog__backdrop[data-enter]{opacity:1}[data-colour-schema=dark] .component-dialog__backdrop{background-color:#00000054}.component-dialog__header{display:flex;align-items:start;justify-content:space-between;gap:1rem;width:100%;padding:.5rem .5rem .5rem 1.5rem}.component-dialog--divided .component-dialog__header{border-bottom:1px solid var(--blockout__colours__surface--200)}.component-dialog__title{margin-top:.675rem}.component-dialog__body{padding:1rem 1.5rem}.component-dialog--edgeless-x .component-dialog__body{padding-inline:0}.component-dialog--edgeless-y .component-dialog__body{padding-block:0}.component-dialog--edgeless-top .component-dialog__body{padding-top:0}.component-dialog--edgeless-bottom .component-dialog__body{padding-bottom:0}.component-dialog--edgeless-left .component-dialog__body{padding-left:0}.component-dialog--edgeless-right .component-dialog__body{padding-right:0}.component-dialog--edgeless-all .component-dialog__body{padding:0}
1
+ .component-dialog{position:fixed;top:1rem;right:1rem;bottom:1rem;left:1rem;z-index:50;margin:auto;height:fit-content;max-height:calc(100dvh - 2rem);max-width:64ch;overflow:auto;border-radius:var(--blockout__radius--lg);background:var(--blockout__colours__surface--0);box-shadow:0 10px 15px -3px #0000000d,0 4px 6px -4px #0000000d;opacity:0;transform:translateY(1rem);transition:opacity .15s ease,transform .15s ease}.component-dialog[data-enter]{opacity:1;transform:translateY(0)}.component-dialog.component-dialog--top{margin-top:5vh;max-height:calc(100dvh - 2rem - 5vh)}.component-dialog.component-dialog--bottom{margin-bottom:5vh;max-height:calc(100dvh - 2rem - 5vh)}.component-dialog.component-dialog--left{margin-top:0;right:auto;left:0;height:100%;max-height:100%;width:100%;max-width:42ch;border-top-left-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0}@media (width <= 42ch){.component-dialog.component-dialog--left{border-top-left-radius:var(--blockout__radius--lg)}}.component-dialog.component-dialog--right{margin-top:0;left:auto;right:0;height:100%;max-height:100%;width:100%;max-width:42ch;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0}@media (width <= 42ch){.component-dialog.component-dialog--right{border-top-right-radius:var(--blockout__radius--lg)}}.component-dialog__backdrop{background-color:#0000001a;opacity:0;transition:opacity ease .15s}.component-dialog__backdrop[data-enter]{opacity:1}[data-colour-schema=dark] .component-dialog__backdrop{background-color:#00000054}.component-dialog__header{display:flex;align-items:start;justify-content:space-between;gap:1rem;width:100%;padding:.5rem .5rem .5rem 1.5rem}.component-dialog--divided .component-dialog__header{border-bottom:1px solid var(--blockout__colours__surface--200)}.component-dialog__title{margin-top:.675rem}.component-dialog__body{padding:1rem 1.5rem}.component-dialog--edgeless-x .component-dialog__body{padding-inline:0}.component-dialog--edgeless-y .component-dialog__body{padding-block:0}.component-dialog--edgeless-top .component-dialog__body{padding-top:0}.component-dialog--edgeless-bottom .component-dialog__body{padding-bottom:0}.component-dialog--edgeless-left .component-dialog__body{padding-left:0}.component-dialog--edgeless-right .component-dialog__body{padding-right:0}.component-dialog--edgeless-all .component-dialog__body{padding:0}
@@ -1 +1 @@
1
- .component-date-control .component-base-control__control{display:flex;align-items:baseline;position:relative;min-height:var(--base-control__min-height);cursor:default}.component-date-control__separator{color:var(--blockout__colours__surface--300)}.component-date-control .component-date-control__input{flex-grow:0;width:calc(var(--date-control__input__length, 2) * 2.5ch);max-width:7ch;min-height:calc(var(--base-control__min-height) - .5rem);padding:calc(var(--base-control__padding) - .5rem) .5rem;margin:.25rem;border-radius:calc(var(--blockout__radius--md) - .25rem)!important}.component-date-control .component-date-control__input:hover,.component-date-control .component-date-control__input:focus{background-color:var(--blockout__colours__surface--200)}.component-date-control__view{position:absolute;display:flex;align-items:center;padding:var(--base-control__padding);background-color:var(--blockout__colours__surface--100);border-radius:var(--blockout__radius--md);top:0;right:0;bottom:0;left:0;right:3.5rem;pointer-events:none}.component-date-control:has(.component-date-control__input:focus) .component-date-control__view{opacity:0}.component-date-control__picker__btn{margin-left:auto;align-self:center}.component-date-picker__header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--blockout__colours__surface--300);padding-bottom:.5rem;margin-bottom:.5rem}.component-date-picker__dates{display:grid;gap:.125rem}.component-date-picker__week{display:grid;grid-template-columns:repeat(7,1fr);gap:.125rem}.component-date-picker__date{padding:.375rem;aspect-ratio:1/1;border-radius:var(--blockout__radius--xs);color:var(--blockout__colours__surface--950);font-weight:500;cursor:pointer}.component-date-picker__date:hover{background-color:var(--blockout__colours__surface--0)}.component-date-picker__date:focus-visible{outline:1px solid var(--blockout__colours__outline);outline-offset:4px}.component-date-picker__date.component-date-picker__date--weekend{color:var(--blockout__colours__surface--600)}.component-date-picker__date.component-date-picker__date--out-of-month{color:var(--blockout__colours__surface--300)}.component-date-picker__date.component-date-picker__date--today{color:var(--blockout__colours__primary--500);outline:1px solid var(--blockout__colours__outline)}.component-date-picker__date[aria-pressed=true]{background-color:var(--blockout__colours__primary--500);color:var(--blockout__colours__surface--0)}
1
+ .component-date-control .component-base-control__control{display:flex;align-items:baseline;position:relative;min-height:var(--base-control__min-height);cursor:default}.component-date-control__separator{color:var(--blockout__colours__surface--300)}.component-date-control .component-date-control__input{flex-grow:0;width:calc(var(--date-control__input__length, 2) * 2.5ch);max-width:7ch;min-height:calc(var(--base-control__min-height) - .5rem);padding:calc(var(--base-control__padding) - .5rem) .5rem;margin:.25rem;border-radius:calc(var(--blockout__radius--md) - .25rem)!important}.component-date-control .component-date-control__input:hover,.component-date-control .component-date-control__input:focus{background-color:var(--blockout__colours__surface--200)}.component-date-control__input,.component-date-control__separator{opacity:0;transition:opacity 75ms ease}.component-date-control__view{position:absolute;display:flex;align-items:center;padding:var(--base-control__padding);border-radius:var(--blockout__radius--md);top:0;right:0;bottom:0;left:0;right:3.5rem;pointer-events:none;transition:opacity 75ms ease}.component-date-control:has(.component-date-control__input:focus) .component-date-control__input,.component-date-control:has(.component-date-control__input:focus) .component-date-control__separator{opacity:1}.component-date-control:has(.component-date-control__input:focus) .component-date-control__view{opacity:0}.component-date-control__picker__btn{margin-left:auto;align-self:center}.component-date-picker__header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--blockout__colours__surface--300);padding-bottom:.5rem;margin-bottom:.5rem}.component-date-picker__dates{display:grid;gap:.125rem}.component-date-picker__week{display:grid;grid-template-columns:repeat(7,1fr);gap:.125rem}.component-date-picker__date{padding:.375rem;aspect-ratio:1/1;border-radius:var(--blockout__radius--xs);color:var(--blockout__colours__surface--950);font-weight:500;cursor:pointer}.component-date-picker__date:hover{background-color:var(--blockout__colours__surface--0)}.component-date-picker__date:focus-visible{outline:1px solid var(--blockout__colours__outline);outline-offset:4px}.component-date-picker__date.component-date-picker__date--weekend{color:var(--blockout__colours__surface--600)}.component-date-picker__date.component-date-picker__date--out-of-month{color:var(--blockout__colours__surface--300)}.component-date-picker__date.component-date-picker__date--today{color:var(--blockout__colours__primary--500);outline:1px solid var(--blockout__colours__outline)}.component-date-picker__date[aria-pressed=true]{background-color:var(--blockout__colours__primary--500);color:var(--blockout__colours__surface--0)}
@@ -1 +1 @@
1
- .component-select__input{cursor:pointer;width:100%}.component-select__input:focus{outline:none}.component-select__popover__wrapper{z-index:9999!important}.component-select__popover{background-color:var(--blockout__colours__surface--200);border:1px solid var(--blockout__colours__surface--300);border-radius:var(--blockout__radius--lg)}.component-select__popover:focus{outline:none}.component-select__popover__scroll .primitive-scroll-area__viewport{width:min(calc(var(--popover-anchor-width) + 2px),fit-content);height:100%;max-height:var(--popover-available-height);min-width:12rem;padding:0}.component-select__list{display:flex;flex-direction:column;gap:.325rem;padding:.325rem}.component-select__list:focus{outline:none}.component-select__list__group:not(:first-child){border-top:1px solid var(--blockout__colours__surface--400);padding-top:.5rem}.component-select__list__group__label{padding:.125rem .675rem;font-size:.875rem;color:var(--blockout__colours__surface--600);font-weight:600}.component-select__popover__search-wrapper{display:flex;align-items:center;gap:0;padding-left:1rem}.component-select__popover__search-icon{width:1rem;height:1rem;transform:translateY(.25rem);fill:var(--blockout__colours__surface--500)}.component-select__popover__search{width:100%;padding:.5rem .675rem 0rem;min-height:var(--base-control__min-height)}.component-select__popover__search:focus{outline:none}.component-select__option{display:flex;justify-content:center;align-items:start;flex-direction:column;gap:.25rem;padding:.375rem .5rem .375rem .675rem;min-height:2.25rem;border-radius:var(--blockout__radius--sm);cursor:pointer;transition:background-color .25s ease}.component-select__option:focus{outline:none}.component-select__option:first-child{border-top:none}.component-select__option[aria-disabled=true] .component-select__option__label{color:var(--blockout__colours__surface--400)}.component-select__option[aria-disabled=true] .component-select__option__description{color:var(--blockout__colours__surface--300)}.component-select__option__label{display:flex;align-items:center;gap:.5rem;font-weight:500;color:var(--blockout__colours__surface--900);transition:color .25s ease;white-space:nowrap}.component-select__option__label>svg{width:1.25rem;height:1.25rem;flex-shrink:0;color:var(--blockout__colours__surface--500);fill:var(--blockout__colours__surface--500)}.component-select__option__description{font-weight:400;color:var(--blockout__colours__surface--600);font-size:.875rem;transition:color .25s ease,opacity .25s ease}.component-select__option[data-active-item=true]{background-color:var(--blockout__colours__surface--50)}.component-select__option[data-active-item=true] .component-select__option__label{color:var(--blockout__colours__surface--900)}.component-select__option[data-active-item=true] .component-select__option__description{color:var(--blockout__colours__surface--700)}.component-select-control .component-base-control__control{flex-grow:1!important;min-width:0}.component-select-control .component-select__input{display:flex}.component-select-control__btn{display:flex;flex-direction:row;flex-grow:1;padding:var(--base-control__padding);min-height:var(--base-control__min-height);width:100%;min-width:0;max-width:100%;color:var(--blockout__colours__surface--800);border-top-left-radius:var(--blockout__radius--md);border-bottom-left-radius:var(--blockout__radius--md);font-size:1rem;text-align:left;background-color:transparent;transition:background-color .25s ease}.component-select-control__btn .component-base-control__affix{padding:0;min-height:0}.component-select-control__btn .component-base-control__affix--prefix{padding-right:var(--base-control__padding)}.component-select-control__btn .component-base-control__affix--suffix{padding-left:var(--base-control__padding)}.component-select__input--placeholder--placeholder .component-select-control__btn{color:var(--blockout__colours__surface--400)}.component-select-control__btn__value{display:flex;align-items:center;gap:.5rem;font-weight:500}.component-select-control__btn__value>svg{width:1.25rem;height:1.25rem;flex-shrink:0;color:var(--blockout__colours__surface--500);fill:var(--blockout__colours__surface--500)}.component-select-control__btn__value__label{white-space:nowrap;text-overflow:ellipsis;overflow:clip;min-width:0}.component-select-control__btn__caret{align-self:center}.component-select__input:disabled{opacity:.25}.component-select-control .component-base-control__box:focus-within{background-color:var(--blockout__colours__surface--50);border-color:var(--blockout__colours__surface--300);outline:1px solid var(--blockout__colours__outline);outline-offset:4px}.component-base-control--normal.component-select-control .component-base-control__box:has(.component-select__input:hover){background-color:var(--blockout__colours__surface--200);border-color:var(--blockout__colours__surface--100)}.component-base-control--normal.component-select-control .component-base-control__box:has(.component-select__input:hover) .component-select-control__btn__caret{background-color:transparent!important}.component-base-control--outline .component-base-control__box:not(.component-base-control--normal *):has(.component-select__input:hover){border-color:var(--blockout__colours__primary--500)}.component-base-control--outline .component-base-control__box:not(.component-base-control--normal *):has(.component-select-control__btn__caret:hover){border-color:transparent}.component-base-control--ghost .component-base-control__box:not(.component-base-control--normal *):has(.component-select__input:hover){border-color:var(--blockout__colours__surface--300)}.component-base-control--ghost .component-base-control__box:not(.component-base-control--normal *):has(.component-select-control__btn__caret:hover){border-color:transparent}
1
+ .component-select__input{cursor:pointer;width:100%}.component-select__input:focus{outline:none}.component-select__popover__wrapper{z-index:9999!important}.component-select__popover{background-color:var(--blockout__colours__surface--200);border:1px solid var(--blockout__colours__surface--300);border-radius:var(--blockout__radius--lg)}.component-select__popover:focus{outline:none}.component-select__popover__scroll .primitive-scroll-area__viewport{width:min(calc(var(--popover-anchor-width) + 2px),fit-content);height:100%;max-height:var(--popover-available-height);min-width:12rem;padding:0}.component-select__list{display:flex;flex-direction:column;padding:.325rem}.component-select__list:focus{outline:none}.component-select__list__group:not(:first-child){border-top:1px solid var(--blockout__colours__surface--400);padding-top:.5rem}.component-select__list__group__label{display:flex;align-items:center;justify-content:space-between;gap:2rem;border-top:1px solid var(--blockout__colours__surface--300);padding:.675rem;color:var(--blockout__colours__surface--600);font-weight:600;text-align:left;cursor:pointer;transition:color .15s ease}.component-select__list__group__label:first-child{border-top:none}.component-select__list__group__label:hover{color:var(--blockout__colours__surface--950)}.component-select__list__group__label .component-select__list__group__label__icon{width:1rem;height:1rem;opacity:.375}.component-select__list__group__items{display:flex;flex-direction:column;gap:.325rem}.component-select__popover__search-wrapper{display:flex;align-items:center;gap:0;padding-left:1rem}.component-select__popover__search-icon{width:1rem;height:1rem;transform:translateY(.25rem);fill:var(--blockout__colours__surface--500)}.component-select__popover__search{width:100%;padding:.5rem .675rem 0rem;min-height:var(--base-control__min-height)}.component-select__popover__search:focus{outline:none}.component-select__option{display:flex;justify-content:center;align-items:start;flex-direction:column;gap:.25rem;padding:.375rem .5rem .375rem .675rem;min-height:2.25rem;border-radius:var(--blockout__radius--sm);cursor:pointer;transition:background-color .25s ease}.component-select__option:focus{outline:none}.component-select__option:first-child{border-top:none}.component-select__option[aria-disabled=true] .component-select__option__label{color:var(--blockout__colours__surface--400)}.component-select__option[aria-disabled=true] .component-select__option__description{color:var(--blockout__colours__surface--300)}.component-select__option__label{display:flex;align-items:center;gap:.5rem;font-weight:500;color:var(--blockout__colours__surface--900);transition:color .25s ease;white-space:nowrap}.component-select__option__label>svg{width:1.25rem;height:1.25rem;flex-shrink:0;color:var(--blockout__colours__surface--500);fill:var(--blockout__colours__surface--500)}.component-select__option__description{font-weight:400;color:var(--blockout__colours__surface--600);font-size:.875rem;transition:color .25s ease,opacity .25s ease}.component-select__option[data-active-item=true]{background-color:var(--blockout__colours__surface--50)}.component-select__option[data-active-item=true] .component-select__option__label{color:var(--blockout__colours__surface--900)}.component-select__option[data-active-item=true] .component-select__option__description{color:var(--blockout__colours__surface--700)}.component-select-control .component-base-control__control{flex-grow:1!important;min-width:0}.component-select-control .component-select__input{display:flex}.component-select-control__btn{display:flex;flex-direction:row;flex-grow:1;padding:var(--base-control__padding);min-height:var(--base-control__min-height);width:100%;min-width:0;max-width:100%;color:var(--blockout__colours__surface--800);border-top-left-radius:var(--blockout__radius--md);border-bottom-left-radius:var(--blockout__radius--md);font-size:1rem;text-align:left;background-color:transparent;transition:background-color .25s ease}.component-select-control__btn .component-base-control__affix{padding:0;min-height:0}.component-select-control__btn .component-base-control__affix--prefix{padding-right:var(--base-control__padding)}.component-select-control__btn .component-base-control__affix--suffix{padding-left:var(--base-control__padding)}.component-select__input--placeholder--placeholder .component-select-control__btn{color:var(--blockout__colours__surface--400)}.component-select-control__btn__value{display:flex;align-items:center;gap:.5rem;font-weight:500}.component-select-control__btn__value>svg{width:1.25rem;height:1.25rem;flex-shrink:0;color:var(--blockout__colours__surface--500);fill:var(--blockout__colours__surface--500)}.component-select-control__btn__value__label{white-space:nowrap;text-overflow:ellipsis;overflow:clip;min-width:0}.component-select-control__btn__caret{align-self:center}.component-select__input:disabled{opacity:.25}.component-select-control .component-base-control__box:focus-within{background-color:var(--blockout__colours__surface--50);border-color:var(--blockout__colours__surface--300);outline:1px solid var(--blockout__colours__outline);outline-offset:4px}.component-base-control--normal.component-select-control .component-base-control__box:has(.component-select__input:hover){background-color:var(--blockout__colours__surface--200);border-color:var(--blockout__colours__surface--100)}.component-base-control--normal.component-select-control .component-base-control__box:has(.component-select__input:hover) .component-select-control__btn__caret{background-color:transparent!important}.component-base-control--outline .component-base-control__box:not(.component-base-control--normal *):has(.component-select__input:hover){border-color:var(--blockout__colours__primary--500)}.component-base-control--outline .component-base-control__box:not(.component-base-control--normal *):has(.component-select-control__btn__caret:hover){border-color:transparent}.component-base-control--ghost .component-base-control__box:not(.component-base-control--normal *):has(.component-select__input:hover){border-color:var(--blockout__colours__surface--300)}.component-base-control--ghost .component-base-control__box:not(.component-base-control--normal *):has(.component-select-control__btn__caret:hover){border-color:transparent}
@@ -1 +1 @@
1
- .component-base-popover-control{min-width:0px}.component-base-popover-control .component-base-control__control{min-width:0}.component-base-popover-control__input{cursor:pointer;display:flex;width:100%}.component-base-popover-control__input:focus{outline:none}.component-base-popover-control__input:disabled .component-base-popover-control__value{opacity:.5}.component-base-popover-control__value{flex-grow:1;padding:var(--base-control__padding);min-height:var(--base-control__min-height);width:100%;min-width:0;color:var(--blockout__colours__surface--800);border-top-left-radius:var(--blockout__radius--md);border-bottom-left-radius:var(--blockout__radius--md);font-size:1rem;text-align:left;background-color:transparent;transition:background-color .25s ease;text-transform:capitalize}.component-base-popover-control__popover__wrapper{z-index:9999!important}.component-base-popover-control__popover{background-color:var(--blockout__colours__surface--200);border:1px solid var(--blockout__colours__surface--300);border-radius:var(--blockout__radius--lg);box-shadow:0 .175rem .375rem #0000001a;width:fit-content;max-height:var(--popover-available-height);padding:.5rem;min-height:var(--base-control__min-height)}.component-base-control--normal.component-base-popover-control .component-base-control__box:has(.component-base-popover-control__input:hover){background-color:var(--blockout__colours__surface--200);border-color:var(--blockout__colours__surface--100)}.component-base-control--normal.component-base-popover-control .component-base-control__box .component-base-popover-control__caret:hover{background-color:var(--blockout__colours__surface--200)}.component-base-control--normal.component-base-popover-control .component-base-control__box:has(.component-base-popover-control__caret:hover){background-color:var(--blockout__colours__surface--100)}.component-base-control--normal.component-base-popover-control .component-base-control__box:focus-within{background-color:var(--blockout__colours__surface--50);border-color:var(--blockout__colours__surface--300);outline:1px solid var(--blockout__colours__outline);outline-offset:4px}.component-base-control--outline.component-base-popover-control .component-base-control__box:has(.component-base-popover-control__input:hover){border-color:var(--blockout__colours__primary--500)}.component-base-control--outline.component-base-popover-control .component-base-control__box:has(.component-base-popover-control__caret:hover){border-color:var(--blockout__colours__surface--300)}.component-base-control--outline.component-base-popover-control .component-base-control__box:focus-within{border-color:var(--blockout__colours__primary--500);outline:1px solid var(--blockout__colours__outline);outline-offset:4px}.component-base-control--ghost.component-base-popover-control .component-base-control__box:has(.component-base-popover-control__input:hover){border-color:var(--blockout__colours__surface--300)}.component-base-control--ghost.component-base-popover-control .component-base-control__box:has(.component-base-popover-control__caret:hover){border-color:transparent}.component-base-control--ghost.component-base-popover-control .component-base-control__box:focus-within{border-color:var(--blockout__colours__primary--500);outline:1px solid var(--blockout__colours__outline);outline-offset:4px}
1
+ .component-base-popover-control{min-width:0px}.component-base-popover-control .component-base-control__control{min-width:0}.component-base-popover-control__input{cursor:pointer;display:flex;width:100%}.component-base-popover-control__input:focus{outline:none}.component-base-popover-control__input:disabled .component-base-popover-control__value{opacity:.5}.component-base-popover-control__value{flex-grow:1;padding:var(--base-control__padding);min-height:var(--base-control__min-height);width:100%;min-width:0;color:var(--blockout__colours__surface--800);border-top-left-radius:var(--blockout__radius--md);border-bottom-left-radius:var(--blockout__radius--md);font-size:1rem;text-align:left;background-color:transparent;transition:background-color .25s ease;text-transform:capitalize}.component-base-popover-control__caret{align-self:center;margin-right:.25rem}.component-base-popover-control__popover__wrapper{z-index:9999!important}.component-base-popover-control__popover{background-color:var(--blockout__colours__surface--200);border:1px solid var(--blockout__colours__surface--300);border-radius:var(--blockout__radius--lg);box-shadow:0 .175rem .375rem #0000001a;width:fit-content;max-height:var(--popover-available-height);padding:.5rem;min-height:var(--base-control__min-height)}.component-base-control--normal.component-base-popover-control .component-base-control__box:has(.component-base-popover-control__input:hover){background-color:var(--blockout__colours__surface--200);border-color:var(--blockout__colours__surface--100)}.component-base-control--normal.component-base-popover-control .component-base-control__box .component-base-popover-control__caret:hover{background-color:var(--blockout__colours__surface--200)}.component-base-control--normal.component-base-popover-control .component-base-control__box:has(.component-base-popover-control__caret:hover){background-color:var(--blockout__colours__surface--100)}.component-base-control--normal.component-base-popover-control .component-base-control__box:focus-within{background-color:var(--blockout__colours__surface--50);border-color:var(--blockout__colours__surface--300);outline:1px solid var(--blockout__colours__outline);outline-offset:4px}.component-base-control--outline.component-base-popover-control .component-base-control__box:has(.component-base-popover-control__input:hover){border-color:var(--blockout__colours__primary--500)}.component-base-control--outline.component-base-popover-control .component-base-control__box:has(.component-base-popover-control__caret:hover){border-color:var(--blockout__colours__surface--300)}.component-base-control--outline.component-base-popover-control .component-base-control__box:focus-within{border-color:var(--blockout__colours__primary--500);outline:1px solid var(--blockout__colours__outline);outline-offset:4px}.component-base-control--ghost.component-base-popover-control .component-base-control__box:has(.component-base-popover-control__input:hover){border-color:var(--blockout__colours__surface--300)}.component-base-control--ghost.component-base-popover-control .component-base-control__box:focus-within{border-color:var(--blockout__colours__primary--500);outline:1px solid var(--blockout__colours__outline);outline-offset:4px}.component-base-control--ghost.component-base-popover-control .component-base-popover-control__caret{display:none}
@@ -1 +1 @@
1
- .component-menu__menu-wrapper{z-index:9999!important}.primitive-popover__target{cursor:pointer}.component-menu__window{background-color:var(--blockout__colours__surface--200);border:1px solid var(--blockout__colours__surface--300);border-radius:var(--blockout__radius--lg);box-shadow:0 .175rem .375rem #0000001a;min-width:calc(var(--popover-anchor-width) + 2px);max-height:var(--popover-available-height);padding:.25rem;min-height:40px;overflow-y:auto}.component-menu__item{display:flex;align-items:baseline;gap:.875rem;padding:.375rem 1.375rem .375rem .675rem;width:100%;cursor:pointer;transition:background-color .25s ease}.component-menu__item:has(.component-menu__item__icon--submenu-indicator){padding-right:.375rem}.component-menu__item[data-active-item=true]{background-color:var(--blockout__colours__surface--100);border-radius:var(--blockout__radius--md)}.component-menu__item:focus-visible{outline:none}.component-menu__item[data-active-item=true] .component-menu__item__label{color:var(--blockout__colours__surface--950)}.component-menu__item[data-active-item=true] .component-menu__item__description{color:var(--blockout__colours__surface--700)}.component-menu__item[aria-disabled=true] .component-menu__item__label{color:var(--blockout__colours__surface--500)}.component-menu__item[aria-disabled=true] .component-menu__item__description{color:var(--blockout__colours__surface--300)}.component-menu__item__icon{width:1.25rem;height:1.25rem;fill:var(--blockout__colours__surface--500)}.component-menu__window:not(:has(.component-menu__item__icon--pictoral:not(.component-menu__item__icon--empty))) .component-menu__item__icon--pictoral{display:none}.component-menu__item__icon--pictoral{transform:translateY(.25rem);margin-left:-.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--600);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:.5rem;border-top:1px solid var(--blockout__colours__surface--300);border-bottom:none}
1
+ .component-menu__menu-wrapper{z-index:9999!important}.primitive-popover__target{cursor:pointer}.component-menu__window{background-color:var(--blockout__colours__surface--200);border:1px solid var(--blockout__colours__surface--300);border-radius:var(--blockout__radius--lg);box-shadow:0 .175rem .375rem #0000001a;min-width:calc(var(--popover-anchor-width) + 2px);max-height:var(--popover-available-height);padding:.25rem;min-height:40px;overflow-y:auto}.component-menu__item{display:flex;align-items:baseline;gap:.875rem;padding:.375rem 1.375rem .375rem .675rem;width:100%;cursor:pointer;transition:background-color .25s ease}.component-menu__item:has(.component-menu__item__icon--submenu-indicator){padding-right:.375rem}.component-menu__item[data-active-item=true]{background-color:var(--blockout__colours__surface--100);border-radius:var(--blockout__radius--md)}.component-menu__item:focus-visible{outline:none}.component-menu__item[data-active-item=true] .component-menu__item__label{color:var(--blockout__colours__surface--950)}.component-menu__item[data-active-item=true] .component-menu__item__description{color:var(--blockout__colours__surface--700)}.component-menu__item[aria-disabled=true] .component-menu__item__label{color:var(--blockout__colours__surface--500)}.component-menu__item[aria-disabled=true] .component-menu__item__description{color:var(--blockout__colours__surface--300)}.component-menu__item__icon{width:1.25rem;height:1.25rem;fill:var(--blockout__colours__surface--500)}.component-menu__window:not(:has(.component-menu__item__icon--pictoral:not(.component-menu__item__icon--empty))) .component-menu__item__icon--pictoral{display:none}.component-menu__item__icon--pictoral:not(.component-avatar){transform:translateY(.25rem);margin-left:-.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--600);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:.5rem;border-top:1px solid var(--blockout__colours__surface--300);border-bottom:none}
@@ -1 +1 @@
1
- .component-recurrence-control .component-base-popover-control__popover{min-width:300px}.component-recurrence-control__row{display:flex;align-items:center;gap:1rem;flex-grow:1}.component-recurrence-control__row:not(:first-child){margin-top:1rem}.component-recurrence-control__row .component-base-control{flex-grow:1}.component-recurrence-control__fieldset{display:flex;flex-direction:column;gap:1rem}.component-recurrence-control__frequency_type{display:flex;align-items:center;gap:1ch}.component-recurrence-control__frequency_type:not(:first-child){margin-top:1rem}.component-recurrence-control__frequency_type .component-recurrence-control__row{margin-top:0}.component-recurrence-control__radio{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;cursor:pointer;border-radius:var(--blockout__radius--xs);outline-offset:0px;outline:0px solid transparent;transition:outline .25s ease,outline-offset .25s ease,background-color .25s ease}.component-recurrence-control__radio>svg{width:1rem;height:1rem}.component-recurrence-control__radio:hover{background-color:var(--blockout__colours__surface--300)}.component-recurrence-control__radio:focus{outline:1px solid var(--blockout__colours__outline);outline-offset:4px}
1
+ .component-recurrence-controller__placeholder{color:var(--blockout__colours__surface--500)}.component-recurrence-control .component-base-popover-control__popover{min-width:300px}.component-recurrence-control__row{display:flex;align-items:center;gap:1rem;flex-grow:1}.component-recurrence-control__row:not(:first-child){margin-top:1rem}.component-recurrence-control__row .component-base-control{flex-grow:1}.component-recurrence-control__fieldset{display:flex;flex-direction:column;gap:1rem}.component-recurrence-control__frequency_type{display:flex;align-items:center;gap:1ch}.component-recurrence-control__frequency_type:not(:first-child){margin-top:1rem}.component-recurrence-control__frequency_type .component-recurrence-control__row{margin-top:0}.component-recurrence-control__radio{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;cursor:pointer;border-radius:var(--blockout__radius--xs);outline-offset:0px;outline:0px solid transparent;transition:outline .25s ease,outline-offset .25s ease,background-color .25s ease}.component-recurrence-control__radio>svg{width:1rem;height:1rem}.component-recurrence-control__radio:hover{background-color:var(--blockout__colours__surface--300)}.component-recurrence-control__radio:focus{outline:1px solid var(--blockout__colours__outline);outline-offset:4px}
@@ -13,7 +13,7 @@ import "../../../primitives/symbol/index.js";
13
13
  import { Truncate as d } from "../../../primitives/truncate/index.js";
14
14
  /* empty css */
15
15
  /* empty css */
16
- import { e as v } from "../../../CaretDown.es-eyr5AnCc.js";
16
+ import { e as v } from "../../../CaretDown.es-CfgGfmY2.js";
17
17
  import { BaseControl as f } from "../base-control/index.js";
18
18
  import { useBaseControlProps as P } from "../base-control/props.js";
19
19
  /* empty css */
@@ -1,6 +1,6 @@
1
1
  import { jsxs as l, Fragment as d, jsx as n } from "react/jsx-runtime";
2
2
  import { noop as c } from "../../../utils/noop.js";
3
- import { e as f } from "../../../CaretDown.es-eyr5AnCc.js";
3
+ import { e as f } from "../../../CaretDown.es-CfgGfmY2.js";
4
4
  import { r as h } from "../../../CaretUp.es-Cy8czlHG.js";
5
5
  import { useRef as x } from "react";
6
6
  import { BaseControl as C } from "../base-control/index.js";
@@ -1,5 +1,8 @@
1
1
  import { ControlFC } from '../base-control/props';
2
- type RecurrenceControlProps = {
2
+ type RecurrenceProps = {
3
+ placeholder?: string;
4
+ };
5
+ type RecurrenceValueProps = {
3
6
  allowEmpty?: false;
4
7
  value?: string;
5
8
  onChangeValue?: (value: string) => void;
@@ -8,5 +11,5 @@ type RecurrenceControlProps = {
8
11
  value?: string | undefined;
9
12
  onChangeValue?: (value: string | undefined) => void;
10
13
  };
11
- export declare const RecurrenceControl: ControlFC<RecurrenceControlProps>;
14
+ export declare const RecurrenceControl: ControlFC<RecurrenceValueProps & RecurrenceProps>;
12
15
  export {};
@@ -1,11 +1,11 @@
1
- import { jsxs as i, jsx as l, Fragment as L } from "react/jsx-runtime";
2
- import { getOrdinalSuffix as w } from "../../../utils/date.js";
3
- import { noop as x } from "../../../utils/noop.js";
4
- import { t as q, r as M } from "../../../RadioButton.es-D3QVjfF9.js";
5
- import { useMemo as V } from "react";
6
- import { R as C, F as n } from "../../../style-D1AX7G7x.js";
7
- import { useBaseControlProps as W } from "../base-control/props.js";
8
- import { BasePopoverControl as A } from "../base-popover-control/index.js";
1
+ import { jsx as l, jsxs as t, Fragment as w } from "react/jsx-runtime";
2
+ import { getOrdinalSuffix as C } from "../../../utils/date.js";
3
+ import { noop as M } from "../../../utils/noop.js";
4
+ import { t as V, r as W } from "../../../RadioButton.es-D3QVjfF9.js";
5
+ import { useMemo as A } from "react";
6
+ import { R as N, F as n } from "../../../style-D1AX7G7x.js";
7
+ import { useBaseControlProps as D } from "../base-control/props.js";
8
+ import { BasePopoverControl as K } from "../base-popover-control/index.js";
9
9
  import { NumberControl as E } from "../number-control/index.js";
10
10
  import { SelectControl as d } from "../select-control/control.js";
11
11
  import '../../../assets/style16.css';import '../../../assets/styles.css';import '../../../assets/style6.css';import '../../../assets/style5.css';import '../../../assets/style4.css';import '../../../assets/style3.css';import '../../../assets/style2.css';import '../../../assets/style.css';import '../../../assets/style10.css';import '../../../assets/style7.css';/* empty css */
@@ -22,29 +22,30 @@ import "../../../primitives/symbol/index.js";
22
22
  /* empty css */
23
23
  import "../../../match-sorter.esm-MNVE8H_6.js";
24
24
  /* empty css */
25
- import { ToggleControl as D } from "../toggle-control/index.js";
26
- import { ToggleGroupControl as K } from "../toggle-group-control/index.js";
27
- const N = "RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO", de = (c) => {
28
- var y, b, h, v, f, g;
29
- const { baseProps: s, controlProps: u } = W(c, {
25
+ import { ToggleControl as P } from "../toggle-control/index.js";
26
+ import { ToggleGroupControl as I } from "../toggle-group-control/index.js";
27
+ const _ = "RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO", be = (c) => {
28
+ var b, h, f, v, g, L;
29
+ const { baseProps: i, controlProps: u } = D(c, {
30
30
  className: "component-recurrence-control"
31
31
  }), {
32
32
  value: a,
33
- onChangeValue: m = x,
34
- allowEmpty: t = !1,
35
- ...Y
36
- } = u, o = C.fromString(a || N), k = V(
37
- () => !a && t ? "" : o == null ? void 0 : o.toText(),
38
- [a, t]
39
- ), R = (e) => {
40
- t && m(e ? N : void 0);
41
- }, _ = (e) => {
33
+ onChangeValue: m = M,
34
+ allowEmpty: p = !1,
35
+ placeholder: Y = "",
36
+ ...k
37
+ } = u, o = N.fromString(a || _), y = /* @__PURE__ */ l("span", { className: "component-recurrence-controller__placeholder", children: Y }), R = A(
38
+ () => a && (o == null ? void 0 : o.toText()) || y,
39
+ [a, p]
40
+ ), F = (e) => {
41
+ p && m(e ? _ : void 0);
42
+ }, O = (e) => {
42
43
  e === n.DAILY ? r({ freq: n.DAILY, bymonthday: [], byweekday: [] }) : e === n.WEEKLY ? r({ freq: n.WEEKLY, bymonthday: [], byweekday: [0] }) : e === n.MONTHLY && r({ freq: n.MONTHLY, bymonthday: [1], byweekday: [] });
43
44
  }, r = (e) => {
44
- const p = {
45
+ const s = {
45
46
  ...o.options,
46
47
  ...e
47
- }, F = [
48
+ }, S = [
48
49
  "byhour",
49
50
  "byminute",
50
51
  "bysecond",
@@ -52,36 +53,36 @@ const N = "RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO", de = (c) => {
52
53
  "count",
53
54
  "until"
54
55
  ];
55
- for (const S of F)
56
- delete p[S];
57
- p.freq === n.DAILY && delete p.byweekday;
58
- const O = new C(p);
59
- m(O.toString());
56
+ for (const q of S)
57
+ delete s[q];
58
+ s.freq === n.DAILY && delete s.byweekday;
59
+ const x = new N(s);
60
+ m(x.toString());
60
61
  };
61
- return /* @__PURE__ */ i(
62
- A,
62
+ return /* @__PURE__ */ t(
63
+ K,
63
64
  {
64
- ...s,
65
- placeholder: a === void 0 && t ? "" : k,
66
- inputProps: Y,
65
+ ...i,
66
+ placeholder: R,
67
+ inputProps: k,
67
68
  children: [
68
- t && /* @__PURE__ */ l("div", { className: "component-recurrence-control__row", children: /* @__PURE__ */ l(
69
- D,
69
+ p && /* @__PURE__ */ l("div", { className: "component-recurrence-control__row", children: /* @__PURE__ */ l(
70
+ P,
70
71
  {
71
72
  onLabel: "Repeats",
72
73
  offLabel: "None",
73
74
  value: a === void 0,
74
- onChangeValue: R
75
+ onChangeValue: F
75
76
  }
76
77
  ) }),
77
- (a !== void 0 || !t) && /* @__PURE__ */ i(L, { children: [
78
- /* @__PURE__ */ i("div", { className: "component-recurrence-control__row", children: [
78
+ (a !== void 0 || !p) && /* @__PURE__ */ t(w, { children: [
79
+ /* @__PURE__ */ t("div", { className: "component-recurrence-control__row", children: [
79
80
  /* @__PURE__ */ l(
80
81
  E,
81
82
  {
82
83
  value: o.options.interval,
83
84
  onChangeValue: (e) => r({ interval: e || 1 }),
84
- suffix: w(o.options.interval),
85
+ suffix: C(o.options.interval),
85
86
  min: 1,
86
87
  "aria-label": "Recurrence frequency"
87
88
  }
@@ -91,7 +92,7 @@ const N = "RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO", de = (c) => {
91
92
  {
92
93
  "aria-label": "Recurrence period",
93
94
  value: o.options.freq,
94
- onChangeValue: _,
95
+ onChangeValue: O,
95
96
  options: [
96
97
  { label: "Day", value: n.DAILY },
97
98
  { label: "Week", value: n.WEEKLY },
@@ -101,9 +102,9 @@ const N = "RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO", de = (c) => {
101
102
  )
102
103
  ] }),
103
104
  o.options.freq === n.WEEKLY && /* @__PURE__ */ l("div", { className: "component-recurrence-control__row", children: /* @__PURE__ */ l(
104
- K,
105
+ I,
105
106
  {
106
- value: ((y = o.options.byweekday) == null ? void 0 : y.map(String)) || [],
107
+ value: ((b = o.options.byweekday) == null ? void 0 : b.map(String)) || [],
107
108
  onChangeValue: (e) => r({ byweekday: e.map(Number) }),
108
109
  label: "On every",
109
110
  options: [
@@ -118,19 +119,19 @@ const N = "RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO", de = (c) => {
118
119
  multiple: !0
119
120
  }
120
121
  ) }),
121
- o.options.freq === n.MONTHLY && /* @__PURE__ */ i(L, { children: [
122
+ o.options.freq === n.MONTHLY && /* @__PURE__ */ t(w, { children: [
122
123
  /* @__PURE__ */ l(
123
124
  T,
124
125
  {
125
- open: ((b = o.options.bymonthday) == null ? void 0 : b.length) > 0,
126
+ open: ((h = o.options.bymonthday) == null ? void 0 : h.length) > 0,
126
127
  onOpen: () => r({ bymonthday: [1], byweekday: [] }),
127
128
  children: /* @__PURE__ */ l(
128
129
  E,
129
130
  {
130
131
  prefix: "On the",
131
- suffix: w(o.options.bymonthday[0]) + " of the month",
132
+ suffix: C(o.options.bymonthday[0]) + " of the month",
132
133
  placeholder: "4",
133
- value: (h = o.options.bymonthday) == null ? void 0 : h[0],
134
+ value: (f = o.options.bymonthday) == null ? void 0 : f[0],
134
135
  onChangeValue: (e) => r({
135
136
  bymonthday: [e || 1]
136
137
  }),
@@ -140,7 +141,7 @@ const N = "RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO", de = (c) => {
140
141
  )
141
142
  }
142
143
  ),
143
- /* @__PURE__ */ i(
144
+ /* @__PURE__ */ t(
144
145
  T,
145
146
  {
146
147
  open: ((v = o.options.byweekday) == null ? void 0 : v.length) > 0,
@@ -177,7 +178,7 @@ const N = "RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO", de = (c) => {
177
178
  }
178
179
  ],
179
180
  placeholder: "First",
180
- value: String((f = o.options.bysetpos) == null ? void 0 : f[0]),
181
+ value: String((g = o.options.bysetpos) == null ? void 0 : g[0]),
181
182
  onChangeValue: (e) => r({
182
183
  bysetpos: [Number(e) || 0]
183
184
  })
@@ -196,7 +197,7 @@ const N = "RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO", de = (c) => {
196
197
  { label: "Sunday", value: "6" }
197
198
  ],
198
199
  placeholder: "Monday",
199
- value: String((g = o.options.byweekday) == null ? void 0 : g[0]),
200
+ value: String((L = o.options.byweekday) == null ? void 0 : L[0]),
200
201
  onChangeValue: (e) => r({
201
202
  byweekday: [Number(e) || 0]
202
203
  })
@@ -211,21 +212,21 @@ const N = "RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO", de = (c) => {
211
212
  }
212
213
  );
213
214
  }, T = (c) => {
214
- const { open: s, onOpen: u, children: a } = c;
215
- return /* @__PURE__ */ i("div", { className: "component-recurrence-control__frequency_type", children: [
215
+ const { open: i, onOpen: u, children: a } = c;
216
+ return /* @__PURE__ */ t("div", { className: "component-recurrence-control__frequency_type", children: [
216
217
  /* @__PURE__ */ l(
217
218
  "button",
218
219
  {
219
220
  className: "component-recurrence-control__radio",
220
- "aria-pressed": s,
221
+ "aria-pressed": i,
221
222
  onClick: u,
222
223
  type: "button",
223
- children: s ? /* @__PURE__ */ l(q, { weight: "fill" }) : /* @__PURE__ */ l(M, {})
224
+ children: i ? /* @__PURE__ */ l(V, { weight: "fill" }) : /* @__PURE__ */ l(W, {})
224
225
  }
225
226
  ),
226
- /* @__PURE__ */ l("fieldset", { className: "component-recurrence-control__row", disabled: !s, children: a })
227
+ /* @__PURE__ */ l("fieldset", { className: "component-recurrence-control__row", disabled: !i, children: a })
227
228
  ] });
228
229
  };
229
230
  export {
230
- de as RecurrenceControl
231
+ be as RecurrenceControl
231
232
  };
@@ -1,39 +1,39 @@
1
- import { jsx as e, jsxs as r, Fragment as v } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as n, Fragment as v } from "react/jsx-runtime";
2
2
  import { Button as N } from "../../button/index.js";
3
3
  import { findOption as S } from "../../../types/options.js";
4
4
  import * as m from "react";
5
5
  import { p as O } from "../../../IconBase.es-rM5tt24D.js";
6
- import { t as P } from "../../../CaretDown.es-BKFnosGJ.js";
7
- import { BaseControl as w } from "../base-control/index.js";
6
+ import { t as P } from "../../../CaretDown.es-CfgGfmY2.js";
7
+ import { BaseControl as g } from "../base-control/index.js";
8
8
  import { Affix as p } from "../base-control/affix.js";
9
- import { useBaseControlProps as C } from "../base-control/props.js";
10
- import { Select as I } from "./select.js";
9
+ import { useBaseControlProps as w } from "../base-control/props.js";
10
+ import { Select as C } from "./select.js";
11
11
  import '../../../assets/style16.css';/* empty css */
12
- import { S as g } from "../../../select-value-B3DYk9eV.js";
12
+ import { S as I } from "../../../select-value-B3DYk9eV.js";
13
13
  const f = m.forwardRef((o, t) => /* @__PURE__ */ m.createElement(O, { ref: t, ...o, weights: P }));
14
14
  f.displayName = "CaretDownIcon";
15
15
  function G(o) {
16
- const { baseProps: t, controlProps: n } = C(o, {
16
+ const { baseProps: t, controlProps: r } = w(o, {
17
17
  className: "component-select-control"
18
18
  }), {
19
19
  placeholder: l,
20
20
  options: d = [],
21
- value: _,
22
- withIcon: h = !1,
21
+ value: h,
22
+ withIcon: _ = !1,
23
23
  before: b,
24
24
  after: u
25
- } = n, { prefix: c, suffix: s, ...x } = t, a = S(d, _), i = !!a ? a : { label: l || "" };
26
- return /* @__PURE__ */ e(w, { ...x, children: /* @__PURE__ */ r(I, { ...n, prefix: c, suffix: s, children: [
25
+ } = r, { prefix: c, suffix: s, ...x } = t, a = S(d, h), i = !!a ? a : { label: l || "" };
26
+ return /* @__PURE__ */ e(g, { ...x, children: /* @__PURE__ */ n(C, { ...r, prefix: c, suffix: s, children: [
27
27
  b,
28
- /* @__PURE__ */ r("div", { className: "component-select-control__btn", children: [
28
+ /* @__PURE__ */ n("div", { className: "component-select-control__btn", children: [
29
29
  /* @__PURE__ */ e(p, { children: c }),
30
- /* @__PURE__ */ e(g, { fallback: l, children: () => /* @__PURE__ */ e(v, { children: /* @__PURE__ */ r("span", { className: "component-select-control__btn__value", children: [
31
- h && i.icon,
30
+ /* @__PURE__ */ e(I, { fallback: l, children: () => /* @__PURE__ */ e(v, { children: /* @__PURE__ */ n("span", { className: "component-select-control__btn__value", children: [
31
+ _ && i.icon,
32
32
  /* @__PURE__ */ e("span", { className: "component-select-control__btn__value__label", children: i.label })
33
33
  ] }) }) }),
34
34
  /* @__PURE__ */ e(p, { suffix: !0, children: s })
35
35
  ] }),
36
- /* @__PURE__ */ e(
36
+ o.variant !== "ghost" && /* @__PURE__ */ e(
37
37
  N.Icon,
38
38
  {
39
39
  className: "component-select-control__btn__caret",
@@ -15,4 +15,6 @@ export type SelectProps<T extends string = string> = {
15
15
  withIcon?: boolean;
16
16
  autoComplete?: HTMLInputAutoCompleteAttribute;
17
17
  disabled?: boolean;
18
+ required?: boolean;
19
+ defaultGroupOpen?: boolean;
18
20
  };
@@ -1,3 +1,3 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { SelectProps } from './props';
3
- export declare const Select: <T extends string = string>({ className, value, onChangeValue, options: unnormalizedOptions, searchable, combobox, placeholder, prefix, suffix, children, withIcon, ...restControlProps }: SelectProps<T> & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const Select: <T extends string = string>({ className, value, onChangeValue, options: unnormalizedOptions, searchable, combobox, placeholder, prefix, suffix, children, withIcon, defaultGroupOpen, ...restControlProps }: SelectProps<T> & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
- import { jsx as s, jsxs as r } from "react/jsx-runtime";
2
- import { cn as j } from "../../../utils/css.js";
1
+ import { jsx as o, jsxs as r } from "react/jsx-runtime";
2
+ import { cn as x } from "../../../utils/css.js";
3
3
  import '../../../assets/style16.css';import '../../../assets/styles.css';import '../../../assets/style6.css';import '../../../assets/style5.css';import '../../../assets/style4.css';import '../../../assets/style3.css';import '../../../assets/style2.css';import '../../../assets/style.css';import '../../../assets/style10.css';import '../../../assets/style7.css';/* empty css */
4
- import { noop as y } from "../../../utils/noop.js";
5
- import { useState as h, useMemo as g, startTransition as k } from "react";
4
+ import { noop as j } from "../../../utils/noop.js";
5
+ import { useState as f, useMemo as y, startTransition as k } from "react";
6
6
  /* empty css */
7
7
  /* empty css */
8
8
  /* empty css */
@@ -15,71 +15,76 @@ import "../../../primitives/symbol/index.js";
15
15
  /* empty css */
16
16
  /* empty css */
17
17
  import { normalizeOptions as A, findOption as H } from "../../../types/options.js";
18
- import { s as M } from "../../../MagnifyingGlass.es-CLstwG_v.js";
19
- import { m as T } from "../../../match-sorter.esm-MNVE8H_6.js";
18
+ import { e as M } from "../../../CaretDown.es-CfgGfmY2.js";
19
+ import { s as T } from "../../../MagnifyingGlass.es-CLstwG_v.js";
20
+ import { m as $ } from "../../../match-sorter.esm-MNVE8H_6.js";
20
21
  /* empty css */
21
- import { C as $, a as f, b as q } from "../../../MAXQOH4L-BYWBWXpb.js";
22
- import { S as B, a as D, b as E, c as F, d as J, e as K, f as Q } from "../../../select-popover-CGgkyRb4.js";
23
- import { C as R } from "../../../combobox-popover-BZ_1wNrj.js";
24
- import { C as U, a as W } from "../../../combobox-group-hNvv1WJm.js";
25
- import { C as u } from "../../../JMHAJKUZ-D5KCN1Aj.js";
26
- const Ie = ({
22
+ import { C as q, a as u, b as B } from "../../../MAXQOH4L-BYWBWXpb.js";
23
+ import { S as E, a as F, b as J, c as K, d as Q, e as R, f as U } from "../../../select-popover-CGgkyRb4.js";
24
+ import { C as W } from "../../../combobox-popover-BZ_1wNrj.js";
25
+ import { C as X, a as Y } from "../../../combobox-group-hNvv1WJm.js";
26
+ import { D as Z } from "../../../F5MUBM3I-75qY3y0N.js";
27
+ import { D as ee } from "../../../KFH4SEIX-DaQeP5D_.js";
28
+ import { C as h } from "../../../JMHAJKUZ-D5KCN1Aj.js";
29
+ import { D as te } from "../../../disclosure-provider-cEVysvZT.js";
30
+ const Ae = ({
27
31
  className: v,
28
32
  value: i,
29
- onChangeValue: c = y,
33
+ onChangeValue: c = j,
30
34
  options: S = [],
31
35
  searchable: l = !1,
32
36
  combobox: e = !1,
33
37
  placeholder: N = "Choose an option...",
34
- prefix: X,
35
- suffix: Y,
38
+ prefix: oe,
39
+ suffix: se,
36
40
  children: C,
37
- withIcon: Z,
38
- ...O
41
+ withIcon: re,
42
+ defaultGroupOpen: O = !0,
43
+ ...P
39
44
  }) => {
40
45
  e && (l = !0);
41
- const [a, p] = h(!1), [n, P] = h(""), m = A(S), _ = g(() => m.map((t) => ({
46
+ const [n, p] = f(!1), [a, w] = f(""), m = A(S), _ = y(() => m.map((t) => ({
42
47
  ...t,
43
- items: T(t.items, n, {
44
- baseSort: (o, x) => o.index < x.index ? -1 : 1,
48
+ items: $(t.items, a, {
49
+ baseSort: (s, g) => s.index < g.index ? -1 : 1,
45
50
  keys: ["label", "description", "aliases"]
46
51
  })
47
- })), [n]), L = l || e ? q : F, w = e ? u : Q, G = e ? f : D, b = e ? R : E, I = e ? U : J, V = e ? W : K, d = !!!H(m, i);
48
- return /* @__PURE__ */ s(
49
- $,
52
+ })), [a]), L = l || e ? B : K, b = e ? h : U, D = e ? u : F, G = e ? W : J, I = e ? X : Q, V = e ? Y : R, d = !!!H(m, i);
53
+ return /* @__PURE__ */ o(
54
+ q,
50
55
  {
51
56
  resetValueOnHide: !e,
52
- open: a,
57
+ open: n,
53
58
  setOpen: p,
54
- value: e ? i : n,
59
+ value: e ? i : a,
55
60
  setValue: (t) => {
56
61
  e && c(t), k(() => {
57
- P(t);
62
+ w(t);
58
63
  });
59
64
  },
60
65
  children: /* @__PURE__ */ r(
61
- B,
66
+ E,
62
67
  {
63
68
  value: d ? "" : i,
64
69
  setValue: c,
65
- open: a,
70
+ open: n,
66
71
  setOpen: p,
67
72
  children: [
68
- /* @__PURE__ */ s(
69
- G,
73
+ /* @__PURE__ */ o(
74
+ D,
70
75
  {
71
- className: j(
76
+ className: x(
72
77
  v,
73
78
  "component-select__input",
74
79
  d && "component-select__input--placeholder"
75
80
  ),
76
81
  children: e ? void 0 : C,
77
82
  placeholder: N,
78
- ...O
83
+ ...P
79
84
  }
80
85
  ),
81
- a && _.length > 0 && /* @__PURE__ */ s(
82
- b,
86
+ n && _.length > 0 && /* @__PURE__ */ o(
87
+ G,
83
88
  {
84
89
  className: "component-select__popover",
85
90
  "data-colour-scheme": "invert",
@@ -92,9 +97,9 @@ const Ie = ({
92
97
  shift: -1,
93
98
  children: /* @__PURE__ */ r(z, { className: "component-select__popover__scroll", axis: "y", children: [
94
99
  l && !e && /* @__PURE__ */ r("div", { className: "component-select__popover__search-wrapper", children: [
95
- /* @__PURE__ */ s(M, { className: "component-select__popover__search-icon" }),
96
- /* @__PURE__ */ s(
97
- f,
100
+ /* @__PURE__ */ o(T, { className: "component-select__popover__search-icon" }),
101
+ /* @__PURE__ */ o(
102
+ u,
98
103
  {
99
104
  autoSelect: !0,
100
105
  placeholder: "Search...",
@@ -102,29 +107,51 @@ const Ie = ({
102
107
  }
103
108
  )
104
109
  ] }),
105
- /* @__PURE__ */ s(L, { className: "component-select__list", children: _.filter((t) => t.items.length > 0).map((t) => /* @__PURE__ */ r(
110
+ /* @__PURE__ */ o(L, { className: "component-select__list", children: _.filter((t) => t.items.length > 0).map((t) => /* @__PURE__ */ r(
106
111
  I,
107
112
  {
108
113
  className: "component-select__list__group",
114
+ render: /* @__PURE__ */ o(
115
+ te,
116
+ {
117
+ defaultOpen: O
118
+ }
119
+ ),
109
120
  children: [
110
- t.label && /* @__PURE__ */ s(V, { className: "component-select__list__group__label", children: t.label }),
111
- t.items.map((o) => /* @__PURE__ */ r(
112
- w,
121
+ t.label && /* @__PURE__ */ r(
122
+ V,
123
+ {
124
+ className: "component-select__list__group__label",
125
+ render: /* @__PURE__ */ o(Z, {}),
126
+ children: [
127
+ t.label,
128
+ /* @__PURE__ */ o(
129
+ M,
130
+ {
131
+ className: "component-select__list__group__label__icon",
132
+ weight: "fill"
133
+ }
134
+ )
135
+ ]
136
+ }
137
+ ),
138
+ /* @__PURE__ */ o(ee, { className: "component-select__list__group__items", children: t.items.map((s) => /* @__PURE__ */ r(
139
+ b,
113
140
  {
114
- disabled: o.disabled,
115
- value: o.value,
141
+ disabled: s.disabled,
142
+ value: s.value,
116
143
  className: "component-select__option",
117
- render: /* @__PURE__ */ s(u, {}),
144
+ render: /* @__PURE__ */ o(h, {}),
118
145
  children: [
119
146
  /* @__PURE__ */ r("div", { className: "component-select__option__label", children: [
120
- o.icon,
121
- o.label
147
+ s.icon,
148
+ s.label
122
149
  ] }),
123
- o.description && /* @__PURE__ */ s("div", { className: "component-select__option__description", children: o.description })
150
+ s.description && /* @__PURE__ */ o("div", { className: "component-select__option__description", children: s.description })
124
151
  ]
125
152
  },
126
- o.value
127
- ))
153
+ s.value
154
+ )) })
128
155
  ]
129
156
  },
130
157
  t.label
@@ -139,5 +166,5 @@ const Ie = ({
139
166
  );
140
167
  };
141
168
  export {
142
- Ie as Select
169
+ Ae as Select
143
170
  };
@@ -2,7 +2,7 @@ import { jsx as l } from "react/jsx-runtime";
2
2
  import * as a from "react";
3
3
  import { w as m } from "../../../SSRBase.es-BUXS72ra.js";
4
4
  import { r as d } from "../../../ArrowBendDownRight.es-mejk84um.js";
5
- import { e as u } from "../../../CaretDown.es-eyr5AnCc.js";
5
+ import { e as u } from "../../../CaretDown.es-CfgGfmY2.js";
6
6
  import { r as p } from "../../../CaretUp.es-Cy8czlHG.js";
7
7
  const E = /* @__PURE__ */ new Map([
8
8
  [
@@ -17,28 +17,27 @@ function f(n) {
17
17
  };
18
18
  }
19
19
  function p(n) {
20
- const o = [], e = {
20
+ const e = [], t = {
21
21
  type: "group",
22
22
  label: "",
23
23
  items: []
24
24
  };
25
- for (const t of n)
26
- s(t) ? o.push(f(t)) : e.items.push(i(t));
27
- return e.items.length > 0 && o.push(e), o;
25
+ for (const o of n)
26
+ s(o) ? e.push(f(o)) : t.items.push(i(o));
27
+ return t.items.length > 0 && e.push(t), e;
28
28
  }
29
- function l(n, o) {
30
- const e = p(n);
31
- console.log(e, o);
32
- for (const t of e) {
33
- const r = t.items.find((u) => u.value === o);
29
+ function l(n, e) {
30
+ const t = p(n);
31
+ for (const o of t) {
32
+ const r = o.items.find((u) => u.value === e);
34
33
  if (r)
35
34
  return r;
36
35
  }
37
36
  }
38
- function c(n, o, e) {
39
- return e.findIndex(
40
- (t) => i(t).value === i(n).value
41
- ) === o;
37
+ function c(n, e, t) {
38
+ return t.findIndex(
39
+ (o) => i(o).value === i(n).value
40
+ ) === e;
42
41
  }
43
42
  export {
44
43
  l as findOption,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrdagency/blockout",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "description": "A React component library created by WRD.agency",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,8 +0,0 @@
1
- import * as r from "react";
2
- import { w as t } from "./SSRBase.es-BUXS72ra.js";
3
- import { t as m } from "./CaretDown.es-BKFnosGJ.js";
4
- const a = r.forwardRef((e, o) => /* @__PURE__ */ r.createElement(t, { ref: o, ...e, weights: m }));
5
- a.displayName = "CaretDownIcon";
6
- export {
7
- a as e
8
- };