@wrdagency/blockout 1.0.32 → 1.0.34
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/{CaretDown.es-BKFnosGJ.js → CaretDown.es-CfgGfmY2.js} +6 -3
- package/dist/assets/button.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/style16.css +1 -1
- package/dist/assets/style20.css +1 -1
- package/dist/assets/style25.css +1 -1
- package/dist/components/button/row.d.ts +2 -0
- package/dist/components/button/row.js +26 -10
- package/dist/components/controls/base-popover-control/index.js +1 -1
- package/dist/components/controls/number-control/index.js +1 -1
- package/dist/components/controls/select-control/control.js +21 -21
- package/dist/components/controls/select-control/props.d.ts +2 -0
- package/dist/components/controls/select-control/select.d.ts +1 -1
- package/dist/components/controls/select-control/select.js +77 -50
- package/dist/components/data-view/data/options.js +1 -1
- package/dist/components/dialog/index.d.ts +3 -1
- package/dist/components/dialog/index.js +40 -36
- package/dist/components/menu/index.js +14 -13
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +6 -6
- package/dist/components/menu/items/submenu.js +1 -1
- package/dist/components/menu/items/toggle.js +12 -12
- package/dist/item-CCOXuQUx.js +62 -0
- package/dist/types/options.js +12 -13
- package/package.json +1 -1
- package/dist/CaretDown.es-eyr5AnCc.js +0 -8
- package/dist/item-CZjpTCgc.js +0 -58
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
|
|
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
|
-
|
|
31
|
+
r as e,
|
|
32
|
+
n as t
|
|
30
33
|
};
|
package/dist/assets/button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-button{--button__bg: var(--blockout__colours__primary--500);--button__bg--hover: var(--blockout__colours__primary--600);--button__text: var(--blockout__colours__surface--50);--button__text--hover: var(--blockout__colours__surface--50);--button__icon: var(--blockout__colours__surface--50);--button__icon--hover: var(--blockout__colours__surface--50);--button__padding--y: .75rem;--button__padding--x: 1.25rem;--button__gap: 1rem;--button__font-size: 1rem;display:flex;align-items:center;justify-content:center;gap:var(--button__gap);padding:var(--button__padding--y) var(--button__padding--x);font-size:var(--button__font-size);min-height:40px;width:fit-content;background-color:var(--button__bg);border:1px solid var(--button__border);border-radius:var(--blockout__radius--md);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,box-shadow .25s ease}.component-button>svg{width:calc(1.375 * var(--button__font-size));height:calc(1.375 * var(--button__font-size));color:var(--button__icon);fill:var(--button__icon);transition:fill .25s ease,color .25s ease}.component-button:hover{background-color:var(--button__bg--hover);border-color:var(--button__border--hover);color:var(--button__text--hover)}.component-button:focus-visible{background-color:var(--button__bg--hover);color:var(--button__text--hover);outline:1px solid var(--blockout__colours__outline);outline-offset:4px}.component-button:hover>svg{color:var(--button__icon--hover);fill:var(--button__icon--hover)}.component-button:active{outline-offset:3px}.component-button[aria-pressed=true]{background-color:var(--button__bg--pressed);border-color:var(--button__border--pressed);color:var(--button__text--pressed);box-shadow:inset 0 .25rem .5rem #00000040}.component-button[aria-pressed=true]>svg{color:var(--button__icon--pressed);fill:var(--button__icon--pressed)}.component-button[aria-busy=true]{background-image:repeating-linear-gradient(-45deg,var(--button__bg),var(--button__bg) 1rem,var(--button__bg--hover) 1rem,var(--button__bg--hover) 2rem);background-size:200% 200%;animation:component-button__busy 15s linear infinite}@keyframes component-button__busy{0%{background-position:100% 100%}}.component-button:disabled:not([aria-busy=true]){opacity:.5;cursor:default;--button__border--hover: var(--button__border);--button__bg--hover: var(--button__bg);--button__text--hover: var(--button__text);--button__icon: var(--button__text);--button__icon--hover: var(--button__text)}.component-button--wide{width:100%}.component-button--icon{aspect-ratio:1/1;height:fit-content;width:auto;padding:var(--button__padding--y)}.component-button--icon>svg{color:var(--button__text);fill:var(--button__text)}.component-button--icon:hover>svg{color:var(--button__text--hover);fill:var(--button__text--hover)}.component-button--icon[aria-pressed=true]>svg{color:var(--button__text--pressed);fill:var(--button__text--pressed)}.component-button--primary{--button__bg: var(--blockout__colours__primary--500);--button__bg--hover: var(--blockout__colours__primary--400);--button__bg--pressed: var(--blockout__colours__primary--400);--button__text: var(--blockout__colours__surface--950);--button__text--hover: var(--blockout__colours__surface--950);--button__text--pressed: var(--blockout__colours__surface--950);--button__icon: var(--blockout__colours__primary--200);--button__icon--hover: var(--blockout__colours__primary--200);--button__icon--pressed: var(--blockout__colours__primary--200)}.component-button--neutral{--button__bg: var(--blockout__colours__surface--950);--button__bg--hover: var(--blockout__colours__surface--800);--button__bg--pressed: var(--blockout__colours__surface--950);--button__text: var(--blockout__colours__surface--50);--button__text--hover: var(--blockout__colours__surface--50);--button__text--pressed: var(--blockout__colours__surface--50);--button__icon: var(--blockout__colours__primary--500);--button__icon--hover: var(--blockout__colours__primary--500);--button__icon--pressed: var(--blockout__colours__primary--500)}.component-button--quiet{--button__border: var(--blockout__colours__surface--300);--button__border--hover: var(--blockout__colours__surface--100);--button__border--pressed: var(--blockout__colours__surface--950);--button__bg: var(--blockout__colours__surface--0);--button__bg--hover: var(--blockout__colours__surface--100);--button__bg--pressed: var(--blockout__colours__surface--950);--button__text: var(--blockout__colours__surface--950);--button__text--hover: var(--blockout__colours__surface--950);--button__text--pressed: var(--blockout__colours__surface--50);--button__icon: var(--blockout__colours__primary--500);--button__icon--hover: var(--blockout__colours__primary--500);--button__icon--pressed: var(--blockout__colours__primary--500)}.component-button--ghost{--button__bg: transparent;--button__bg--hover: var(--blockout__colours__surface--100);--button__bg--pressed: var(--blockout__colours__surface--950);--button__text: var(--blockout__colours__surface--950);--button__text--hover: var(--blockout__colours__surface--950);--button__text--pressed: var(--blockout__colours__surface--50);--button__icon: var(--blockout__colours__surface--950);--button__icon--hover: var(--blockout__colours__primary--950);--button__icon--pressed: var(--blockout__colours__primary--50)}.component-button--small{--button__padding--y: .675rem;--button__padding--x: .875rem;--button__gap: .625rem;--button__font-size: .875rem;border-radius:var(--blockout__radius--sm);min-height:2rem}.component-button--medium{--button__padding--y: .75rem;--button__padding--x: 1.25rem;--button__gap: 1rem;--button__font-size: 1rem;border-radius:var(--blockout__radius--md)}.component-button--large{--button__padding--y: 1rem;--button__padding--x: 1.5rem;--button__gap: 1.25rem;--button__font-size: 1.25rem;border-radius:var(--blockout__radius--lg)}.component-button-
|
|
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);--button__icon: var(--blockout__colours__surface--50);--button__icon--hover: var(--blockout__colours__surface--50);--button__padding--y: .75rem;--button__padding--x: 1.25rem;--button__gap: 1rem;--button__font-size: 1rem;display:flex;align-items:center;justify-content:center;gap:var(--button__gap);padding:var(--button__padding--y) var(--button__padding--x);font-size:var(--button__font-size);min-height:40px;width:fit-content;background-color:var(--button__bg);border:1px solid var(--button__border);border-radius:var(--blockout__radius--md);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,box-shadow .25s ease}.component-button>svg{width:calc(1.375 * var(--button__font-size));height:calc(1.375 * var(--button__font-size));color:var(--button__icon);fill:var(--button__icon);transition:fill .25s ease,color .25s ease}.component-button:hover{background-color:var(--button__bg--hover);border-color:var(--button__border--hover);color:var(--button__text--hover)}.component-button:focus-visible{background-color:var(--button__bg--hover);color:var(--button__text--hover);outline:1px solid var(--blockout__colours__outline);outline-offset:4px}.component-button:hover>svg{color:var(--button__icon--hover);fill:var(--button__icon--hover)}.component-button:active{outline-offset:3px}.component-button[aria-pressed=true]{background-color:var(--button__bg--pressed);border-color:var(--button__border--pressed);color:var(--button__text--pressed);box-shadow:inset 0 .25rem .5rem #00000040}.component-button[aria-pressed=true]>svg{color:var(--button__icon--pressed);fill:var(--button__icon--pressed)}.component-button[aria-busy=true]{background-image:repeating-linear-gradient(-45deg,var(--button__bg),var(--button__bg) 1rem,var(--button__bg--hover) 1rem,var(--button__bg--hover) 2rem);background-size:200% 200%;animation:component-button__busy 15s linear infinite}@keyframes component-button__busy{0%{background-position:100% 100%}}.component-button:disabled:not([aria-busy=true]){opacity:.5;cursor:default;--button__border--hover: var(--button__border);--button__bg--hover: var(--button__bg);--button__text--hover: var(--button__text);--button__icon: var(--button__text);--button__icon--hover: var(--button__text)}.component-button--wide{width:100%}.component-button--icon{aspect-ratio:1/1;height:fit-content;width:auto;padding:var(--button__padding--y)}.component-button--icon>svg{color:var(--button__text);fill:var(--button__text)}.component-button--icon:hover>svg{color:var(--button__text--hover);fill:var(--button__text--hover)}.component-button--icon[aria-pressed=true]>svg{color:var(--button__text--pressed);fill:var(--button__text--pressed)}.component-button--primary{--button__bg: var(--blockout__colours__primary--500);--button__bg--hover: var(--blockout__colours__primary--400);--button__bg--pressed: var(--blockout__colours__primary--400);--button__text: var(--blockout__colours__surface--950);--button__text--hover: var(--blockout__colours__surface--950);--button__text--pressed: var(--blockout__colours__surface--950);--button__icon: var(--blockout__colours__primary--200);--button__icon--hover: var(--blockout__colours__primary--200);--button__icon--pressed: var(--blockout__colours__primary--200)}.component-button--neutral{--button__bg: var(--blockout__colours__surface--950);--button__bg--hover: var(--blockout__colours__surface--800);--button__bg--pressed: var(--blockout__colours__surface--950);--button__text: var(--blockout__colours__surface--50);--button__text--hover: var(--blockout__colours__surface--50);--button__text--pressed: var(--blockout__colours__surface--50);--button__icon: var(--blockout__colours__primary--500);--button__icon--hover: var(--blockout__colours__primary--500);--button__icon--pressed: var(--blockout__colours__primary--500)}.component-button--quiet{--button__border: var(--blockout__colours__surface--300);--button__border--hover: var(--blockout__colours__surface--100);--button__border--pressed: var(--blockout__colours__surface--950);--button__bg: var(--blockout__colours__surface--0);--button__bg--hover: var(--blockout__colours__surface--100);--button__bg--pressed: var(--blockout__colours__surface--950);--button__text: var(--blockout__colours__surface--950);--button__text--hover: var(--blockout__colours__surface--950);--button__text--pressed: var(--blockout__colours__surface--50);--button__icon: var(--blockout__colours__primary--500);--button__icon--hover: var(--blockout__colours__primary--500);--button__icon--pressed: var(--blockout__colours__primary--500)}.component-button--ghost{--button__bg: transparent;--button__bg--hover: var(--blockout__colours__surface--100);--button__bg--pressed: var(--blockout__colours__surface--950);--button__text: var(--blockout__colours__surface--950);--button__text--hover: var(--blockout__colours__surface--950);--button__text--pressed: var(--blockout__colours__surface--50);--button__icon: var(--blockout__colours__surface--950);--button__icon--hover: var(--blockout__colours__primary--950);--button__icon--pressed: var(--blockout__colours__primary--50)}.component-button--small{--button__padding--y: .675rem;--button__padding--x: .875rem;--button__gap: .625rem;--button__font-size: .875rem;border-radius:var(--blockout__radius--sm);min-height:2rem}.component-button--medium{--button__padding--y: .75rem;--button__padding--x: 1.25rem;--button__gap: 1rem;--button__font-size: 1rem;border-radius:var(--blockout__radius--md)}.component-button--large{--button__padding--y: 1rem;--button__padding--x: 1.5rem;--button__gap: 1.25rem;--button__font-size: 1.25rem;border-radius:var(--blockout__radius--lg)}.component-button-row{display:flex;gap:.5rem}.component-button-row--wrap{flex-wrap:wrap}.component-button-row--xs{gap:.125rem}.component-button-row--sm{gap:.375rem}.component-button-row--md{gap:.675rem}.component-button-row--lg{gap:1rem}.component-button-row--xl{gap:1.5rem}.component-button-row__row{display:contents}.component-button-row .component-button--wide{width:fit-content;flex-grow:1;flex-basis:10%}
|
package/dist/assets/index10.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-tabs__list{display:flex;align-items:end;gap:.125rem;border-bottom:1px solid var(--blockout__colours__surface--300)}.component-tabs__tab{padding
|
|
1
|
+
.component-tabs__list{display:flex;align-items:end;gap:.125rem;border-bottom:1px solid var(--blockout__colours__surface--300)}.component-tabs__tab{padding:0rem .675rem;cursor:pointer;outline:0px solid transparent;outline-offset:0px;border-radius:var(--blockout__radius--md);background-color:transparent;transition:background-color .25s ease,outline .25s ease,outline-offset .25s ease}.component-tabs__tab__label{margin-bottom:-1px;position:relative;display:flex;align-items:center;gap:.5rem;padding-inline:.125rem;padding-top:.375rem;padding-bottom:.875rem;font-size:.875rem;font-weight:500;color:var(--blockout__colours__surface--600);transition:color .15s ease}.component-tabs__tab__label:after{content:"";position:absolute;bottom:0;left:0;right:0;height:4px;width:100%;background:var(--blockout__colours__surface--950);border-top-left-radius:var(--blockout__radius--md);border-top-right-radius:var(--blockout__radius--md);opacity:0;transform:scaleY(0);transform-origin:bottom;transition:transform .2s ease,opacity .2s ease}.component-tabs__tab__label>svg{width:1rem;height:1rem;fill:var(--blockout__colours__surface--500);transition:fill .15s ease}.component-tabs__tab:hover{background-color:var(--blockout__colours__surface--100)}.component-tabs__tab:focus{outline:none}.component-tabs__tab:focus-visible{background-color:var(--blockout__colours__surface--100);outline:1px solid var(--blockout__colours__outline);outline-offset:4px}.component-tabs__tab[aria-selected=true] .component-tabs__tab__label{border-bottom-color:var(--blockout__colours__surface--950);color:var(--blockout__colours__surface--950)}.component-tabs__tab[aria-selected=true] .component-tabs__tab__label:after{opacity:1;transform:scaleY(1)}.component-tabs__tab[aria-selected=true] .component-tabs__tab__label>svg{fill:var(--blockout__colours__primary--500)}.component-tabs__panel{padding-top:1.5rem}
|
package/dist/assets/index6.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-dialog{position:fixed;top:1rem;right:1rem;bottom:1rem;left:1rem;z-index:50;margin:auto;
|
|
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}
|
package/dist/assets/style16.css
CHANGED
|
@@ -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;
|
|
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}
|
package/dist/assets/style20.css
CHANGED
|
@@ -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:.
|
|
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}
|
package/dist/assets/style25.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.data-view-layout-tile{display:flex;flex-direction:column;gap:1.25rem}.data-view-layout-tile__group{display:flex;flex-direction:column;gap:1rem}.data-view-layout-tile__empty{font-size:.875rem;font-weight:400;color:var(--blockout__colours__surface--400)}.data-view-layout-tile__group__header{display:flex;align-items:center;gap:.75rem;border-top:1px solid var(--blockout__colours__surface--300);border-bottom:1px solid var(--blockout__colours__surface--300);background-color:var(--blockout__colours__surface--100);padding:.75rem}.data-view-layout-tile__group__heading{display:flex;align-items:center;gap:.5rem;font-weight:400;color:var(--blockout__colours__surface--700);font-size:.875rem}.data-view-layout-tile__group__heading>svg{width:1.25rem;height:1.25rem;fill:var(--blockout__colours__surface--400);color:var(--blockout__colours__surface--400)}.data-view-layout-tile__group__items{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr))}.data-view-layout-item__item{position:relative;border-radius:var(--blockout__radius--md);border:1px solid var(--blockout__colours__surface--200);
|
|
1
|
+
.data-view-layout-tile{display:flex;flex-direction:column;gap:1.25rem}.data-view-layout-tile__group{display:flex;flex-direction:column;gap:1rem}.data-view-layout-tile__empty{font-size:.875rem;font-weight:400;color:var(--blockout__colours__surface--400)}.data-view-layout-tile__group__header{display:flex;align-items:center;gap:.75rem;border-top:1px solid var(--blockout__colours__surface--300);border-bottom:1px solid var(--blockout__colours__surface--300);background-color:var(--blockout__colours__surface--100);padding:.75rem}.data-view-layout-tile__group__heading{display:flex;align-items:center;gap:.5rem;font-weight:400;color:var(--blockout__colours__surface--700);font-size:.875rem}.data-view-layout-tile__group__heading>svg{width:1.25rem;height:1.25rem;fill:var(--blockout__colours__surface--400);color:var(--blockout__colours__surface--400)}.data-view-layout-tile__group__items{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr))}.data-view-layout-item__item{position:relative;border-radius:var(--blockout__radius--md);border:1px solid var(--blockout__colours__surface--200);width:100%;height:auto;aspect-ratio:1/1}.data-view-layout-item__item .data-view-layout-item__item__media{width:100%;height:100%;background:var(--blockout__colours__surface--100)}.data-view-layout-item__item .data-view-layout-item__item__media .data-view-layout-item__item__thumbnail{width:100%;height:100%;object-fit:scale-down}.data-view-layout-item__item .data-view-layout-item__item__media .data-view-layout-item__item__checkbox{position:absolute;top:.5rem;left:.5rem;background:var(--blockout__colours__surface--0)}.data-view-layout-item__item .data-view-layout-item__item__media .data-view-layout-item__item__actions{position:absolute;top:.5rem;right:.5rem;background:var(--blockout__colours__surface--0)}.data-view-layout-item__item .data-view-layout-item__item__caption{display:flex;flex-direction:column;gap:.375rem;position:absolute;bottom:0;left:0;right:0;padding:2rem 1.25rem 1rem;background:linear-gradient(to top,var(--blockout__colours__surface--950),transparent);color:var(--blockout__colours__surface--0)}.data-view-layout-item__item .data-view-layout-item__item__caption .data-view-layout-item__item__header{display:flex;align-items:start;gap:.675rem;flex-wrap:wrap-reverse}.data-view-layout-item__item .data-view-layout-item__item__caption .data-view-layout-item__item__header .primitive-tooltip{max-width:100%}.data-view-layout-item__item .data-view-layout-item__item__caption .data-view-layout-item__item__header .data-view-layout-item__item__title{color:var(--blockout__colours__surface--0);font-size:1rem;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.data-view-layout-item__item .data-view-layout-item__item__caption .data-view-layout-item__item__header .data-view-layout-item__item__tags{display:flex;gap:.5rem;flex-wrap:wrap}.data-view-layout-item__item .data-view-layout-item__item__caption .data-view-layout-item__item__properties{display:flex;align-items:basline;gap:1.5rem .75rem;flex-wrap:wrap}.data-view-layout-item__item .data-view-layout-item__item__caption .data-view-layout-item__item__properties .data-view-layout-item__item__property{color:var(--blockout__colours__surface--300);font-size:.75rem}
|
|
@@ -1,14 +1,30 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { cn as
|
|
2
|
+
import { cn as p } from "../../utils/css.js";
|
|
3
3
|
import { Children as i } from "react";
|
|
4
|
-
import { C as
|
|
5
|
-
import { C as
|
|
6
|
-
import { C as
|
|
7
|
-
import { C
|
|
8
|
-
const
|
|
9
|
-
t,
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
import { C as s } from "../../composite-provider-BPIeS4Cg.js";
|
|
5
|
+
import { C as a } from "../../5JTVDSTH-CZ7mfyUK.js";
|
|
6
|
+
import { C as c } from "../../J2LQO3EC-BXJIaM2U.js";
|
|
7
|
+
import { C } from "../../6VRAQV3D-BYmT0QTl.js";
|
|
8
|
+
const x = ({
|
|
9
|
+
className: t,
|
|
10
|
+
gap: m = "md",
|
|
11
|
+
wrap: e = !0,
|
|
12
|
+
children: n
|
|
13
|
+
}) => /* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(
|
|
14
|
+
a,
|
|
15
|
+
{
|
|
16
|
+
className: p(
|
|
17
|
+
"component-button-row",
|
|
18
|
+
`component-button-row--${m}`,
|
|
19
|
+
e && "component-button-row--wrap",
|
|
20
|
+
t
|
|
21
|
+
),
|
|
22
|
+
children: /* @__PURE__ */ o(c, { className: "component-button-row__row", children: i.map(
|
|
23
|
+
n,
|
|
24
|
+
(r) => r && /* @__PURE__ */ o(C, { render: r })
|
|
25
|
+
) })
|
|
26
|
+
}
|
|
27
|
+
) });
|
|
12
28
|
export {
|
|
13
|
-
|
|
29
|
+
x as Row
|
|
14
30
|
};
|
|
@@ -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-
|
|
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-
|
|
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,46 +1,46 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Button as
|
|
3
|
-
import { findOption as
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import { Button as N } from "../../button/index.js";
|
|
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-
|
|
6
|
+
import { t as P } from "../../../CaretDown.es-CfgGfmY2.js";
|
|
7
7
|
import { BaseControl as w } from "../base-control/index.js";
|
|
8
8
|
import { Affix as p } from "../base-control/affix.js";
|
|
9
9
|
import { useBaseControlProps as C } from "../base-control/props.js";
|
|
10
10
|
import { Select as I } from "./select.js";
|
|
11
11
|
import '../../../assets/style16.css';/* empty css */
|
|
12
12
|
import { S as g } from "../../../select-value-B3DYk9eV.js";
|
|
13
|
-
const f = m.forwardRef((
|
|
13
|
+
const f = m.forwardRef((o, t) => /* @__PURE__ */ m.createElement(O, { ref: t, ...o, weights: P }));
|
|
14
14
|
f.displayName = "CaretDownIcon";
|
|
15
|
-
function G(
|
|
16
|
-
const { baseProps: t, controlProps: n } = C(
|
|
15
|
+
function G(o) {
|
|
16
|
+
const { baseProps: t, controlProps: n } = C(o, {
|
|
17
17
|
className: "component-select-control"
|
|
18
18
|
}), {
|
|
19
19
|
placeholder: l,
|
|
20
20
|
options: d = [],
|
|
21
|
-
value:
|
|
22
|
-
withIcon:
|
|
23
|
-
before:
|
|
21
|
+
value: _,
|
|
22
|
+
withIcon: h = !1,
|
|
23
|
+
before: b,
|
|
24
24
|
after: u
|
|
25
|
-
} = n, { prefix:
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
|
|
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: [
|
|
27
|
+
b,
|
|
28
28
|
/* @__PURE__ */ r("div", { className: "component-select-control__btn", children: [
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
32
|
-
|
|
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,
|
|
32
|
+
/* @__PURE__ */ e("span", { className: "component-select-control__btn__value__label", children: i.label })
|
|
33
33
|
] }) }) }),
|
|
34
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ e(p, { suffix: !0, children: s })
|
|
35
35
|
] }),
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
36
|
+
/* @__PURE__ */ e(
|
|
37
|
+
N.Icon,
|
|
38
38
|
{
|
|
39
39
|
className: "component-select-control__btn__caret",
|
|
40
40
|
variant: "ghost",
|
|
41
41
|
size: "small",
|
|
42
42
|
tabIndex: -1,
|
|
43
|
-
children: /* @__PURE__ */
|
|
43
|
+
children: /* @__PURE__ */ e(f, {})
|
|
44
44
|
}
|
|
45
45
|
),
|
|
46
46
|
u
|
|
@@ -4,6 +4,7 @@ export type SelectProps<T extends string = string> = {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
id?: string;
|
|
6
6
|
value?: T;
|
|
7
|
+
name?: string;
|
|
7
8
|
onChangeValue?: (value: T) => void;
|
|
8
9
|
options?: (Optionable<T> | OptionableGroup<T>)[];
|
|
9
10
|
searchable?: boolean;
|
|
@@ -14,4 +15,5 @@ export type SelectProps<T extends string = string> = {
|
|
|
14
15
|
withIcon?: boolean;
|
|
15
16
|
autoComplete?: HTMLInputAutoCompleteAttribute;
|
|
16
17
|
disabled?: boolean;
|
|
18
|
+
defaultGroupOpen?: boolean;
|
|
17
19
|
};
|
|
@@ -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
|
|
2
|
-
import { cn as
|
|
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
|
|
5
|
-
import { useState as
|
|
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 {
|
|
19
|
-
import {
|
|
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
|
|
22
|
-
import { S as
|
|
23
|
-
import { C as
|
|
24
|
-
import { C as
|
|
25
|
-
import {
|
|
26
|
-
|
|
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 =
|
|
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:
|
|
35
|
-
suffix:
|
|
38
|
+
prefix: oe,
|
|
39
|
+
suffix: se,
|
|
36
40
|
children: C,
|
|
37
|
-
withIcon:
|
|
38
|
-
|
|
41
|
+
withIcon: re,
|
|
42
|
+
defaultGroupOpen: O = !0,
|
|
43
|
+
...P
|
|
39
44
|
}) => {
|
|
40
45
|
e && (l = !0);
|
|
41
|
-
const [
|
|
46
|
+
const [n, p] = f(!1), [a, w] = f(""), m = A(S), _ = y(() => m.map((t) => ({
|
|
42
47
|
...t,
|
|
43
|
-
items:
|
|
44
|
-
baseSort: (
|
|
48
|
+
items: $(t.items, a, {
|
|
49
|
+
baseSort: (s, g) => s.index < g.index ? -1 : 1,
|
|
45
50
|
keys: ["label", "description", "aliases"]
|
|
46
51
|
})
|
|
47
|
-
})), [
|
|
48
|
-
return /* @__PURE__ */
|
|
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:
|
|
57
|
+
open: n,
|
|
53
58
|
setOpen: p,
|
|
54
|
-
value: e ? i :
|
|
59
|
+
value: e ? i : a,
|
|
55
60
|
setValue: (t) => {
|
|
56
61
|
e && c(t), k(() => {
|
|
57
|
-
|
|
62
|
+
w(t);
|
|
58
63
|
});
|
|
59
64
|
},
|
|
60
65
|
children: /* @__PURE__ */ r(
|
|
61
|
-
|
|
66
|
+
E,
|
|
62
67
|
{
|
|
63
68
|
value: d ? "" : i,
|
|
64
69
|
setValue: c,
|
|
65
|
-
open:
|
|
70
|
+
open: n,
|
|
66
71
|
setOpen: p,
|
|
67
72
|
children: [
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
|
|
73
|
+
/* @__PURE__ */ o(
|
|
74
|
+
D,
|
|
70
75
|
{
|
|
71
|
-
className:
|
|
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
|
-
...
|
|
83
|
+
...P
|
|
79
84
|
}
|
|
80
85
|
),
|
|
81
|
-
|
|
82
|
-
|
|
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__ */
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
|
|
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__ */
|
|
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__ */
|
|
111
|
-
|
|
112
|
-
|
|
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:
|
|
115
|
-
value:
|
|
141
|
+
disabled: s.disabled,
|
|
142
|
+
value: s.value,
|
|
116
143
|
className: "component-select__option",
|
|
117
|
-
render: /* @__PURE__ */
|
|
144
|
+
render: /* @__PURE__ */ o(h, {}),
|
|
118
145
|
children: [
|
|
119
146
|
/* @__PURE__ */ r("div", { className: "component-select__option__label", children: [
|
|
120
|
-
|
|
121
|
-
|
|
147
|
+
s.icon,
|
|
148
|
+
s.label
|
|
122
149
|
] }),
|
|
123
|
-
|
|
150
|
+
s.description && /* @__PURE__ */ o("div", { className: "component-select__option__description", children: s.description })
|
|
124
151
|
]
|
|
125
152
|
},
|
|
126
|
-
|
|
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
|
-
|
|
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-
|
|
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
|
[
|
|
@@ -5,8 +5,10 @@ interface DialogProps extends PropsWithChildren {
|
|
|
5
5
|
open?: boolean;
|
|
6
6
|
onOpenChange?: (open: boolean) => void;
|
|
7
7
|
title?: string;
|
|
8
|
-
align?: "top" | "center" | "bottom";
|
|
8
|
+
align?: "top" | "center" | "bottom" | "left" | "right";
|
|
9
|
+
edgeless?: boolean | "x" | "y" | "top" | "bottom" | "left" | "right" | "all";
|
|
9
10
|
backdrop?: boolean;
|
|
11
|
+
divided?: boolean;
|
|
10
12
|
hideOnEscape?: Ariakit.DialogProps["hideOnEscape"];
|
|
11
13
|
hideOnInteractOutside?: Ariakit.DialogProps["hideOnInteractOutside"];
|
|
12
14
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
1
|
+
import { jsxs as m, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { cn as g } from "../../utils/css.js";
|
|
3
3
|
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';import '../../assets/index6.css';/* empty css */
|
|
4
|
-
import { noop as
|
|
4
|
+
import { noop as f } from "../../utils/noop.js";
|
|
5
5
|
import "react";
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
@@ -12,61 +12,65 @@ import "../../primitives/scroll-area/index.js";
|
|
|
12
12
|
import "../../primitives/symbol/index.js";
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { H1 as
|
|
15
|
+
import { H1 as _ } from "../../primitives/typography/heading.js";
|
|
16
16
|
/* empty css */
|
|
17
17
|
/* empty css */
|
|
18
|
-
import { e as
|
|
19
|
-
import { Button as
|
|
20
|
-
import { D as
|
|
21
|
-
import { D, a as
|
|
22
|
-
const
|
|
23
|
-
className:
|
|
24
|
-
open:
|
|
25
|
-
onOpenChange: t =
|
|
26
|
-
title:
|
|
27
|
-
align:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
import { e as h } from "../../X.es-TbGOnXOO.js";
|
|
19
|
+
import { Button as D } from "../button/index.js";
|
|
20
|
+
import { D as N } from "../../G7GW6PWC-Dk4hVbAk.js";
|
|
21
|
+
import { D as u, a as v } from "../../TIW3GMFC-BF0w2_9R.js";
|
|
22
|
+
const P = ({
|
|
23
|
+
className: e,
|
|
24
|
+
open: a = !1,
|
|
25
|
+
onOpenChange: t = f,
|
|
26
|
+
title: i,
|
|
27
|
+
align: n = "center",
|
|
28
|
+
edgeless: r = !1,
|
|
29
|
+
backdrop: l = !0,
|
|
30
|
+
divided: p = !0,
|
|
31
|
+
hideOnEscape: s,
|
|
32
|
+
hideOnInteractOutside: c,
|
|
33
|
+
children: d
|
|
34
|
+
}) => /* @__PURE__ */ m(
|
|
35
|
+
N,
|
|
34
36
|
{
|
|
35
|
-
open:
|
|
37
|
+
open: a,
|
|
36
38
|
onClose: () => {
|
|
37
39
|
t(!1);
|
|
38
40
|
},
|
|
39
|
-
className:
|
|
41
|
+
className: g(
|
|
40
42
|
"component-dialog",
|
|
41
|
-
`component-dialog--${
|
|
42
|
-
|
|
43
|
+
`component-dialog--${n}`,
|
|
44
|
+
p && "component-dialog--divided",
|
|
45
|
+
r && `component-dialog--edgeless-${r === !0 ? "all" : r}`,
|
|
46
|
+
e
|
|
43
47
|
),
|
|
44
|
-
backdrop:
|
|
45
|
-
hideOnEscape:
|
|
46
|
-
hideOnInteractOutside:
|
|
48
|
+
backdrop: l && /* @__PURE__ */ o("div", { className: "component-dialog__backdrop" }),
|
|
49
|
+
hideOnEscape: s,
|
|
50
|
+
hideOnInteractOutside: c,
|
|
47
51
|
children: [
|
|
48
|
-
|
|
52
|
+
i && /* @__PURE__ */ m("header", { className: "component-dialog__header", children: [
|
|
49
53
|
/* @__PURE__ */ o(
|
|
50
|
-
|
|
54
|
+
u,
|
|
51
55
|
{
|
|
52
56
|
className: "component-dialog__title",
|
|
53
|
-
render: /* @__PURE__ */ o(
|
|
54
|
-
children:
|
|
57
|
+
render: /* @__PURE__ */ o(_, { size: 5 }),
|
|
58
|
+
children: i
|
|
55
59
|
}
|
|
56
60
|
),
|
|
57
61
|
/* @__PURE__ */ o(
|
|
58
|
-
|
|
62
|
+
v,
|
|
59
63
|
{
|
|
60
64
|
className: "component-dialog__close",
|
|
61
|
-
render: /* @__PURE__ */ o(
|
|
62
|
-
children: /* @__PURE__ */ o(
|
|
65
|
+
render: /* @__PURE__ */ o(D.Icon, { variant: "ghost", size: "small" }),
|
|
66
|
+
children: /* @__PURE__ */ o(h, {})
|
|
63
67
|
}
|
|
64
68
|
)
|
|
65
69
|
] }),
|
|
66
|
-
|
|
70
|
+
/* @__PURE__ */ o("div", { className: "component-dialog__body", children: d })
|
|
67
71
|
]
|
|
68
72
|
}
|
|
69
73
|
);
|
|
70
74
|
export {
|
|
71
|
-
|
|
75
|
+
P as Dialog
|
|
72
76
|
};
|
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import { cn as M } from "../../utils/css.js";
|
|
3
3
|
import { useState as w } from "react";
|
|
4
4
|
import { Button as r } from "../button/index.js";
|
|
5
5
|
import { MenuProvider as _ } from "./context.js";
|
|
6
|
-
import { M as h } from "../../item-
|
|
6
|
+
import { M as h } from "../../item-CCOXuQUx.js";
|
|
7
7
|
import '../../assets/style20.css';/* empty css */
|
|
8
8
|
import { M as v, a as x, b as P } from "../../menu-button-GQO5dB3U.js";
|
|
9
9
|
function C({
|
|
10
|
-
className:
|
|
11
|
-
iconOnly:
|
|
10
|
+
className: t,
|
|
11
|
+
iconOnly: n = !1,
|
|
12
12
|
items: m,
|
|
13
|
-
variant:
|
|
14
|
-
size:
|
|
15
|
-
children:
|
|
13
|
+
variant: a,
|
|
14
|
+
size: p,
|
|
15
|
+
children: s,
|
|
16
16
|
context: i
|
|
17
17
|
}) {
|
|
18
|
-
const [o, u] = w(!1), c =
|
|
19
|
-
return /* @__PURE__ */ e(_, { actionContext: i, children: /* @__PURE__ */
|
|
18
|
+
const [o, u] = w(!1), c = n ? r.Icon : r;
|
|
19
|
+
return /* @__PURE__ */ e(_, { actionContext: i, children: /* @__PURE__ */ d(v, { open: o, setOpen: u, children: [
|
|
20
20
|
/* @__PURE__ */ e(
|
|
21
21
|
x,
|
|
22
22
|
{
|
|
23
|
-
className: M("component-menu__button",
|
|
24
|
-
render: /* @__PURE__ */ e(c, { variant:
|
|
25
|
-
children:
|
|
23
|
+
className: M("component-menu__button", t),
|
|
24
|
+
render: /* @__PURE__ */ e(c, { variant: a, size: p }),
|
|
25
|
+
children: s
|
|
26
26
|
}
|
|
27
27
|
),
|
|
28
28
|
o && /* @__PURE__ */ e(
|
|
29
29
|
P,
|
|
30
30
|
{
|
|
31
|
+
portal: !0,
|
|
31
32
|
wrapperProps: {
|
|
32
33
|
className: "component-menu__menu-wrapper"
|
|
33
34
|
},
|
|
@@ -36,7 +37,7 @@ function C({
|
|
|
36
37
|
gutter: 8,
|
|
37
38
|
overflowPadding: 4,
|
|
38
39
|
className: "component-menu__window",
|
|
39
|
-
children: m.map((f,
|
|
40
|
+
children: m.map((f, l) => /* @__PURE__ */ e(h, { item: f }, l))
|
|
40
41
|
}
|
|
41
42
|
)
|
|
42
43
|
] }) });
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useMenu as
|
|
2
|
+
import { useMenu as m } from "../context.js";
|
|
3
3
|
import { EmptyIcon as i } from "../icon.js";
|
|
4
|
-
import { M as
|
|
4
|
+
import { M as s } from "../../../2NBKRL7C-DBbnghCe.js";
|
|
5
5
|
const d = ({ item: n }) => {
|
|
6
|
-
const { actionContext: c } =
|
|
6
|
+
const { actionContext: c } = m(), t = n.icon || i;
|
|
7
7
|
return /* @__PURE__ */ o(
|
|
8
|
-
|
|
8
|
+
s,
|
|
9
9
|
{
|
|
10
10
|
className: "component-menu__item component-menu__item--action",
|
|
11
11
|
onClick: () => {
|
|
@@ -13,10 +13,10 @@ const d = ({ item: n }) => {
|
|
|
13
13
|
},
|
|
14
14
|
disabled: n.disabled,
|
|
15
15
|
children: [
|
|
16
|
-
/* @__PURE__ */ e(
|
|
16
|
+
/* @__PURE__ */ e(t, { className: "component-menu__item__icon component-menu__item__icon--pictoral" }),
|
|
17
17
|
/* @__PURE__ */ o("div", { className: "component-menu__item__text", children: [
|
|
18
18
|
/* @__PURE__ */ e("div", { className: "component-menu__item__label", children: n.label }),
|
|
19
|
-
/* @__PURE__ */ e("p", { className: "component-menu__item__description", children: n.description })
|
|
19
|
+
n.description && /* @__PURE__ */ e("p", { className: "component-menu__item__description", children: n.description })
|
|
20
20
|
] })
|
|
21
21
|
]
|
|
22
22
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../../CaretRight.es-vnr78BGI.js";
|
|
3
3
|
import "../icon.js";
|
|
4
|
-
import { S as u } from "../../../item-
|
|
4
|
+
import { S as u } from "../../../item-CCOXuQUx.js";
|
|
5
5
|
import "../../../menu-button-GQO5dB3U.js";
|
|
6
6
|
import "../../../2NBKRL7C-DBbnghCe.js";
|
|
7
7
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
1
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { cn as i } from "../../../utils/css.js";
|
|
3
3
|
import { r as a, a as p } from "../../../Square.es-KJLdY11q.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { useMenu as d } from "../context.js";
|
|
6
6
|
import { EmptyIcon as u } from "../icon.js";
|
|
7
7
|
import { M as h } from "../../../2NBKRL7C-DBbnghCe.js";
|
|
8
|
-
const I = ({ item:
|
|
9
|
-
const { actionContext: o } = d(), l =
|
|
8
|
+
const I = ({ item: n }) => {
|
|
9
|
+
const { actionContext: o } = d(), l = n.icon || u, r = () => {
|
|
10
10
|
var m, t, s;
|
|
11
|
-
const _ = !
|
|
12
|
-
return (m =
|
|
11
|
+
const _ = !n.checked;
|
|
12
|
+
return (m = n.onToggle) == null || m.call(n, _, o), _ ? (t = n.onCheck) == null ? void 0 : t.call(n, o) : (s = n.onUncheck) == null ? void 0 : s.call(n, o);
|
|
13
13
|
};
|
|
14
14
|
return /* @__PURE__ */ c(
|
|
15
15
|
h,
|
|
@@ -17,24 +17,24 @@ const I = ({ item: e }) => {
|
|
|
17
17
|
hideOnClick: !1,
|
|
18
18
|
className: i(
|
|
19
19
|
"component-menu__item component-menu__item--toggle",
|
|
20
|
-
|
|
20
|
+
n.checked && "component-menu__item--toggle--checked"
|
|
21
21
|
),
|
|
22
|
-
disabled:
|
|
22
|
+
disabled: n.disabled,
|
|
23
23
|
onClick: r,
|
|
24
24
|
children: [
|
|
25
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ e(l, { className: "component-menu__item__icon component-menu__item__icon--pictoral" }),
|
|
26
26
|
/* @__PURE__ */ c("div", { className: "component-menu__item__text", children: [
|
|
27
27
|
/* @__PURE__ */ c("div", { className: "component-menu__item__text__header", children: [
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
28
|
+
/* @__PURE__ */ e("div", { className: "component-menu__item__label", children: n.label }),
|
|
29
|
+
n.checked ? /* @__PURE__ */ e(
|
|
30
30
|
a,
|
|
31
31
|
{
|
|
32
32
|
weight: "fill",
|
|
33
33
|
className: "component-menu__item__icon component-menu__item__icon--checkbox"
|
|
34
34
|
}
|
|
35
|
-
) : /* @__PURE__ */
|
|
35
|
+
) : /* @__PURE__ */ e(p, { className: "component-menu__item__icon component-menu__item__icon--checkbox" })
|
|
36
36
|
] }),
|
|
37
|
-
/* @__PURE__ */
|
|
37
|
+
n.description && /* @__PURE__ */ e("p", { className: "component-menu__item__description", children: n.description })
|
|
38
38
|
] })
|
|
39
39
|
]
|
|
40
40
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsxs as o, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { ActionMenuItem as s } from "./components/menu/items/action.js";
|
|
3
|
+
import { SeparatorMenuItem as u } from "./components/menu/items/spacer.js";
|
|
4
|
+
import { e as a } from "./CaretRight.es-vnr78BGI.js";
|
|
5
|
+
import { EmptyIcon as i } from "./components/menu/icon.js";
|
|
6
|
+
import { ToggleMenuItem as _ } from "./components/menu/items/toggle.js";
|
|
7
|
+
import { u as p, M as l, a as d, b as M } from "./menu-button-GQO5dB3U.js";
|
|
8
|
+
import { M as h } from "./2NBKRL7C-DBbnghCe.js";
|
|
9
|
+
const b = ({ item: e }) => {
|
|
10
|
+
const m = e.icon || i, t = p();
|
|
11
|
+
return /* @__PURE__ */ o(l, { store: t, children: [
|
|
12
|
+
/* @__PURE__ */ o(
|
|
13
|
+
d,
|
|
14
|
+
{
|
|
15
|
+
className: "component-menu__item component-menu__item--submenu",
|
|
16
|
+
render: /* @__PURE__ */ n(h, {}),
|
|
17
|
+
disabled: e.disabled,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ n(m, { className: "component-menu__item__icon component-menu__item__icon--pictoral" }),
|
|
20
|
+
/* @__PURE__ */ o("div", { className: "component-menu__item__text", children: [
|
|
21
|
+
/* @__PURE__ */ o("div", { className: "component-menu__item__text__header", children: [
|
|
22
|
+
/* @__PURE__ */ n("div", { className: "component-menu__item__label", children: e.label }),
|
|
23
|
+
/* @__PURE__ */ n(a, { className: "component-menu__item__icon component-menu__item__icon--submenu-indicator" })
|
|
24
|
+
] }),
|
|
25
|
+
e.description && /* @__PURE__ */ n("p", { className: "component-menu__item__description", children: e.description })
|
|
26
|
+
] })
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ n(
|
|
31
|
+
M,
|
|
32
|
+
{
|
|
33
|
+
portal: !0,
|
|
34
|
+
wrapperProps: {
|
|
35
|
+
className: "component-menu__menu-wrapper component-menu__menu-wrapper--submenu"
|
|
36
|
+
},
|
|
37
|
+
"data-colour-scheme": "invert",
|
|
38
|
+
fitViewport: !0,
|
|
39
|
+
gutter: 12,
|
|
40
|
+
shift: 0,
|
|
41
|
+
overflowPadding: 4,
|
|
42
|
+
className: "component-menu__window component-menu__window--submenu",
|
|
43
|
+
children: e.children.map((r, c) => /* @__PURE__ */ n(f, { item: r }, c))
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
] });
|
|
47
|
+
}, f = ({ item: e }) => {
|
|
48
|
+
switch (e.type) {
|
|
49
|
+
case "action":
|
|
50
|
+
return /* @__PURE__ */ n(s, { item: e });
|
|
51
|
+
case "toggle":
|
|
52
|
+
return /* @__PURE__ */ n(_, { item: e });
|
|
53
|
+
case "submenu":
|
|
54
|
+
return /* @__PURE__ */ n(b, { item: e });
|
|
55
|
+
case "separator":
|
|
56
|
+
return /* @__PURE__ */ n(u, {});
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
f as M,
|
|
61
|
+
b as S
|
|
62
|
+
};
|
package/dist/types/options.js
CHANGED
|
@@ -17,28 +17,27 @@ function f(n) {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
function p(n) {
|
|
20
|
-
const
|
|
20
|
+
const e = [], t = {
|
|
21
21
|
type: "group",
|
|
22
22
|
label: "",
|
|
23
23
|
items: []
|
|
24
24
|
};
|
|
25
|
-
for (const
|
|
26
|
-
s(
|
|
27
|
-
return
|
|
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,
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
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,
|
|
39
|
-
return
|
|
40
|
-
(
|
|
41
|
-
) ===
|
|
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,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
|
-
};
|
package/dist/item-CZjpTCgc.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { ActionMenuItem as s } from "./components/menu/items/action.js";
|
|
3
|
-
import { SeparatorMenuItem as u } from "./components/menu/items/spacer.js";
|
|
4
|
-
import { e as a } from "./CaretRight.es-vnr78BGI.js";
|
|
5
|
-
import { EmptyIcon as _ } from "./components/menu/icon.js";
|
|
6
|
-
import { ToggleMenuItem as i } from "./components/menu/items/toggle.js";
|
|
7
|
-
import { u as p, M as l, a as d, b as M } from "./menu-button-GQO5dB3U.js";
|
|
8
|
-
import { M as b } from "./2NBKRL7C-DBbnghCe.js";
|
|
9
|
-
const h = ({ item: n }) => {
|
|
10
|
-
const o = n.icon || _, t = p();
|
|
11
|
-
return /* @__PURE__ */ m(l, { store: t, children: [
|
|
12
|
-
/* @__PURE__ */ m(
|
|
13
|
-
d,
|
|
14
|
-
{
|
|
15
|
-
className: "component-menu__item component-menu__item--submenu",
|
|
16
|
-
render: /* @__PURE__ */ e(b, {}),
|
|
17
|
-
disabled: n.disabled,
|
|
18
|
-
children: [
|
|
19
|
-
/* @__PURE__ */ e(o, { className: "component-menu__item__icon component-menu__item__icon--pictoral" }),
|
|
20
|
-
/* @__PURE__ */ m("div", { className: "component-menu__item__text", children: [
|
|
21
|
-
/* @__PURE__ */ m("div", { className: "component-menu__item__text__header", children: [
|
|
22
|
-
/* @__PURE__ */ e("div", { className: "component-menu__item__label", children: n.label }),
|
|
23
|
-
/* @__PURE__ */ e(a, { className: "component-menu__item__icon component-menu__item__icon--submenu-indicator" })
|
|
24
|
-
] }),
|
|
25
|
-
/* @__PURE__ */ e("p", { className: "component-menu__item__description", children: n.description })
|
|
26
|
-
] })
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
),
|
|
30
|
-
/* @__PURE__ */ e(
|
|
31
|
-
M,
|
|
32
|
-
{
|
|
33
|
-
gutter: 12,
|
|
34
|
-
shift: 0,
|
|
35
|
-
wrapperProps: {
|
|
36
|
-
className: "component-menu__menu-wrapper component-menu__menu-wrapper--submenu"
|
|
37
|
-
},
|
|
38
|
-
className: "component-menu__window component-menu__window--submenu",
|
|
39
|
-
children: n.children.map((r, c) => /* @__PURE__ */ e(f, { item: r }, c))
|
|
40
|
-
}
|
|
41
|
-
)
|
|
42
|
-
] });
|
|
43
|
-
}, f = ({ item: n }) => {
|
|
44
|
-
switch (n.type) {
|
|
45
|
-
case "action":
|
|
46
|
-
return /* @__PURE__ */ e(s, { item: n });
|
|
47
|
-
case "toggle":
|
|
48
|
-
return /* @__PURE__ */ e(i, { item: n });
|
|
49
|
-
case "submenu":
|
|
50
|
-
return /* @__PURE__ */ e(h, { item: n });
|
|
51
|
-
case "separator":
|
|
52
|
-
return /* @__PURE__ */ e(u, {});
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
export {
|
|
56
|
-
f as M,
|
|
57
|
-
h as S
|
|
58
|
-
};
|