@wrdagency/blockout 1.0.29 → 1.0.30
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/assets/index2.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/static.css +1 -1
- package/dist/assets/style16.css +1 -1
- package/dist/assets/style25.css +1 -1
- package/dist/components/controls/select-control/control.js +23 -23
- package/dist/components/controls/select-control/props.d.ts +2 -2
- package/dist/components/controls/select-control/select.js +77 -66
- package/dist/components/controls/tag-control/ariakit-experimental.js +1067 -1081
- package/dist/primitives/popover/root.d.ts +2 -3
- package/dist/{select-popover-Dheunyb0.js → select-popover-CGgkyRb4.js} +227 -210
- package/dist/types/options.d.ts +14 -0
- package/dist/types/options.js +44 -12
- package/package.json +1 -1
package/dist/assets/index2.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-avatar{--component-avatar__size: 1.5rem;--component-avatar__gap: .75rem;--component-avatar__font-size: 1rem;display:flex;align-items:center;gap:var(--component-avatar__gap)}.component-avatar__image,.component-avatar__fallback{display:flex;align-items:center;justify-content:center;width:var(--component-avatar__size);height:var(--component-avatar__size);border-radius:var(--component-avatar__size);background-color:var(--blockout__colours__colourway--light);color:var(--blockout__colours__colourway--dark);font-size:calc(var(--component-avatar__size) / 2)}.component-avatar__name{font-size:var(--component-avatar__font-size);font-weight:400;color:var(--blockout__colours__surface--950)}.component-avatar--size-x-small{--component-avatar__size: 1.25rem;--component-avatar__gap: .5rem;--component-avatar__font-size: .75rem}.component-avatar--size-small{--component-avatar__size: 1.5rem;--component-avatar__gap: .675rem;--component-avatar__font-size: .875rem}.component-avatar--size-large{--component-avatar__size: 2rem;--component-avatar__gap: .875rem;--component-avatar__font-size: 1}.component-avatar--size-x-large{--component-avatar__size: 2.5rem;--component-avatar__gap: 1rem;--component-avatar__font-size: 1.125rem}
|
|
1
|
+
.component-avatar{--component-avatar__size: 1.5rem;--component-avatar__gap: .75rem;--component-avatar__font-size: 1rem;display:flex;align-items:center;gap:var(--component-avatar__gap)}.component-avatar__image,.component-avatar__fallback{display:flex;align-items:center;justify-content:center;width:var(--component-avatar__size);height:var(--component-avatar__size);border-radius:var(--component-avatar__size);background-color:var(--blockout__colours__colourway--light);color:var(--blockout__colours__colourway--dark);font-size:calc(var(--component-avatar__size) / 2);flex-shrink:0}.component-avatar__name{font-size:var(--component-avatar__font-size);font-weight:400;color:var(--blockout__colours__surface--950)}.component-avatar--size-x-small{--component-avatar__size: 1.25rem;--component-avatar__gap: .5rem;--component-avatar__font-size: .75rem}.component-avatar--size-small{--component-avatar__size: 1.5rem;--component-avatar__gap: .675rem;--component-avatar__font-size: .875rem}.component-avatar--size-large{--component-avatar__size: 2rem;--component-avatar__gap: .875rem;--component-avatar__font-size: 1}.component-avatar--size-x-large{--component-avatar__size: 2.5rem;--component-avatar__gap: 1rem;--component-avatar__font-size: 1.125rem}
|
package/dist/assets/index9.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root:has(.component-shell),html:has(.component-shell){overflow:hidden}@property --component-shell__sidebar-width{initial-value: 0px; syntax: "<length>"; inherits: true;}.component-shell{--component-shell__navigation-height: 3rem;--component-shell__sidebar-width: 2.875rem;--component-shell__sidebar-width--open: 200px;display:grid;grid-template-columns:var(--component-shell__sidebar-width);grid-auto-columns:1fr;grid-auto-flow:column;grid-template-rows:var(--component-shell__navigation-height);gap:0 1rem;background-color:var(--blockout__colours__surface--100);width:100%;height:100vh;height:100dvh;overflow:hidden;transition:--component-shell__sidebar-width .5s ease}.component-shell.component-shell--sidebar-open{--component-shell__sidebar-width: var( --component-shell__sidebar-width--open )}.component-shell__navigation{position:fixed;top:0;left:0;right:0;width:100%;height:var(--component-shell__navigation-height);display:flex;align-items:center;flex-wrap:wrap;gap:.875rem}.component-shell__navigation-separator{height:1rem;margin:0 .5rem;border-left:1px solid var(--blockout__colours__surface--300)}.component-shell__sidebar{min-width:0;min-height:0;grid-row:2;width:var(--component-shell__sidebar-width);border-top-right-radius:var(--blockout__radius--lg);background-color:var(--blockout__colours__surface--0);overflow:clip;padding-top:.5rem;transition:background .5s ease,padding-top .5s ease}.component-shell__sidebar__inner{display:flex;flex-direction:column;height:100%;width:var(--component-shell__sidebar-width--open)}.component-shell__sidebar-item{--icon-label__icon-size: 1.375rem;width:var(--component-shell__sidebar-width--open);padding:.675rem .75rem;overflow:clip;transition:color .5s ease;white-space:nowrap}.component-shell__sidebar-item.component-shell__sidebar-item--divide{margin:.125rem .675rem;padding:.675rem 0;width:calc(var(--component-shell__sidebar-width) - 1.375rem);border-top:1px solid var(--blockout__colours__surface--200)}.component-shell__sidebar-item.component-shell__sidebar-item--end{margin-top:auto}.component-shell__sidebar-separator{border-top:1px solid var(--blockout__colours__surface--200);margin:1.375rem .675rem .125rem;padding-top:.675rem;color:var(--blockout__colours__surface--500);font-weight:600;font-size:.675rem;text-transform:uppercase;width:calc(var(--component-shell__sidebar-width) - 1.375rem);transition:padding .5s ease,margin .5s ease,border-color .5s ease}.component-shell__sidebar-separator:first-child{margin-top:0;border-top:none}.component-shell__sidebar-separator .component-shell__sidebar-separator__label{interpolate-size:allow-keywords;display:block;height:auto;overflow:clip;transition:height .5s ease,opacity .5s ease}.component-shell:not(.component-shell--sidebar-open) .component-shell__sidebar{background:transparent;padding-top:0}.component-shell:not(.component-shell--sidebar-open) .component-shell__sidebar-item{color:transparent}.component-shell:not(.component-shell--sidebar-open) .component-shell__sidebar-separator{border-color:var(--blockout__colours__surface--300);padding-block:0;margin-block:.25rem}.component-shell:not(.component-shell--sidebar-open) .component-shell__sidebar-separator:first-child{margin-block:0}.component-shell:not(.component-shell--sidebar-open) .component-shell__sidebar-separator .component-shell__sidebar-separator__label{height:0;opacity:0}.component-shell__pane{grid-row:2;background-color:var(--blockout__colours__surface--0);border-top-left-radius:var(--blockout__radius--lg);min-height:0}.component-shell__pane:not(:last-child){border-top-right-radius:var(--blockout__radius--lg)}.component-shell__pane__scroll-area>.primitive-scroll-area__viewport>div{height:100%}.component-shell__pane__padding{min-height:100%;padding:1.5rem}@media (width >= 40rem){.component-shell__pane__padding{padding:2rem}}@media (width >= 48rem){.component-shell__pane__padding{padding:2.5rem}}@media (width >= 64rem){.component-shell__pane__padding{padding:3rem}}.component-shell__pane__padding.component-shell__pane__padding--edgeless-top{padding-top:0!important}.component-shell__pane__padding.component-shell__pane__padding--edgeless-right{padding-right:0!important}.component-shell__pane__padding.component-shell__pane__padding--edgeless-bottom{padding-bottom:0!important}.component-shell__pane__padding.component-shell__pane__padding--edgeless-left{padding-left:0!important}.component-shell__pane__padding.component-shell__pane__padding--edgeless-x{padding-left:0!important;padding-right:0!important}.component-shell__pane__padding.component-shell__pane__padding--edgeless-y{padding-top:0!important;padding-bottom:0!important}.component-shell__pane__padding.component-shell__pane__padding--edgeless-all{padding:0!important}
|
|
1
|
+
:root:has(.component-shell),html:has(.component-shell){overflow:hidden}@property --component-shell__sidebar-width{initial-value: 0px; syntax: "<length>"; inherits: true;}.component-shell{--component-shell__navigation-height: 3rem;--component-shell__sidebar-width: 2.875rem;--component-shell__sidebar-width--open: 200px;display:grid;grid-template-columns:var(--component-shell__sidebar-width);grid-auto-columns:1fr;grid-auto-flow:column;grid-template-rows:var(--component-shell__navigation-height);gap:0 1rem;background-color:var(--blockout__colours__surface--100);width:100%;height:100vh;height:100dvh;overflow:hidden;transition:--component-shell__sidebar-width .5s ease}.component-shell.component-shell--sidebar-open{--component-shell__sidebar-width: var( --component-shell__sidebar-width--open )}.component-shell__navigation{position:fixed;top:0;left:0;right:0;width:100%;height:var(--component-shell__navigation-height);display:flex;align-items:center;flex-wrap:wrap;gap:.875rem}.component-shell__navigation-separator{height:1rem;margin:0 .5rem;border-left:1px solid var(--blockout__colours__surface--300)}.component-shell__sidebar{min-width:0;min-height:0;grid-row:2;width:var(--component-shell__sidebar-width);border-top-right-radius:var(--blockout__radius--lg);background-color:var(--blockout__colours__surface--0);overflow:clip;padding-top:.5rem;transition:background .5s ease,padding-top .5s ease}.component-shell__sidebar__inner{display:flex;flex-direction:column;height:100%;width:var(--component-shell__sidebar-width--open)}.component-shell__sidebar-item{--icon-label__icon-size: 1.375rem;width:var(--component-shell__sidebar-width--open);padding:.675rem .75rem;overflow:clip;transition:color .5s ease;white-space:nowrap}.component-shell__sidebar-item.component-shell__sidebar-item--divide{margin:.125rem .675rem;padding:.675rem 0;width:calc(var(--component-shell__sidebar-width) - 1.375rem);border-top:1px solid var(--blockout__colours__surface--200)}.component-shell__sidebar-item.component-shell__sidebar-item--end{margin-top:auto}.component-shell__sidebar-separator{border-top:1px solid var(--blockout__colours__surface--200);margin:1.375rem .675rem .125rem;padding-top:.675rem;color:var(--blockout__colours__surface--500);font-weight:600;font-size:.675rem;text-transform:uppercase;width:calc(var(--component-shell__sidebar-width) - 1.375rem);transition:padding .5s ease,margin .5s ease,border-color .5s ease}.component-shell__sidebar-separator:first-child{margin-top:0;border-top:none}.component-shell__sidebar-separator .component-shell__sidebar-separator__label{interpolate-size:allow-keywords;display:block;height:auto;overflow:clip;transition:height .5s ease,opacity .5s ease}.component-shell:not(.component-shell--sidebar-open) .component-shell__sidebar{background:transparent;padding-top:0}.component-shell:not(.component-shell--sidebar-open) .component-shell__sidebar-item{color:transparent}.component-shell:not(.component-shell--sidebar-open) .component-shell__sidebar-separator{border-color:var(--blockout__colours__surface--300);padding-block:0;margin-block:.25rem}.component-shell:not(.component-shell--sidebar-open) .component-shell__sidebar-separator:first-child{margin-block:0}.component-shell:not(.component-shell--sidebar-open) .component-shell__sidebar-separator .component-shell__sidebar-separator__label{height:0;opacity:0}.component-shell__pane{grid-row:2;background-color:var(--blockout__colours__surface--0);border-top-left-radius:var(--blockout__radius--lg);min-height:0;min-width:0}.component-shell__pane:not(:last-child){border-top-right-radius:var(--blockout__radius--lg)}.component-shell__pane__scroll-area>.primitive-scroll-area__viewport>div{height:100%}.component-shell__pane__padding{min-height:100%;padding:1.5rem}@media (width >= 40rem){.component-shell__pane__padding{padding:2rem}}@media (width >= 48rem){.component-shell__pane__padding{padding:2.5rem}}@media (width >= 64rem){.component-shell__pane__padding{padding:3rem}}.component-shell__pane__padding.component-shell__pane__padding--edgeless-top{padding-top:0!important}.component-shell__pane__padding.component-shell__pane__padding--edgeless-right{padding-right:0!important}.component-shell__pane__padding.component-shell__pane__padding--edgeless-bottom{padding-bottom:0!important}.component-shell__pane__padding.component-shell__pane__padding--edgeless-left{padding-left:0!important}.component-shell__pane__padding.component-shell__pane__padding--edgeless-x{padding-left:0!important;padding-right:0!important}.component-shell__pane__padding.component-shell__pane__padding--edgeless-y{padding-top:0!important;padding-bottom:0!important}.component-shell__pane__padding.component-shell__pane__padding--edgeless-all{padding:0!important}
|
package/dist/assets/static.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-command-palette{flex-direction:column;position:fixed;top:1rem;right:1rem;bottom:1rem;left:1rem;z-index:50;margin:auto;margin-top:5vh;display:flex;height:fit-content;max-height:calc(100dvh - 5vh - 2rem);max-width:64ch;overflow:auto;border-radius:var(--blockout__radius--lg);background:
|
|
1
|
+
.component-command-palette{flex-direction:column;position:fixed;top:1rem;right:1rem;bottom:1rem;left:1rem;z-index:50;margin:auto;margin-top:5vh;display:flex;height:fit-content;max-height:calc(100dvh - 5vh - 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-command-palette[data-enter]{opacity:1;transform:translateY(0)}.component-command-palette__backdrop{background-color:#0000001a;opacity:0;transition:opacity ease .15s}.component-command-palette__backdrop[data-enter]{opacity:1}.component-command-palette__header{display:flex;align-items:center;padding-right:.875rem;width:100%;border-bottom:1px solid var(--blockout__colours__surface--200)}.component-command-palette__header__icon{width:1.375rem;height:1.375rem;fill:var(--blockout__colours__surface--500);margin:.875rem}.component-command-palette__input{padding:.5rem 0;flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none}.component-command-palette__input:focus{outline:none}.component-command-palette__input::-webkit-search-decoration,.component-command-palette__input::-webkit-search-cancel-button,.component-command-palette__input::-webkit-search-results-button,.component-command-palette__input::-webkit-search-results-decoration{-webkit-appearance:none}.component-command-palette__results{display:flex;flex-direction:column;gap:.125rem;padding:.375rem}.component-command-palette__empty{font-size:.875rem;color:var(--blockout__colours__surface--500);padding:1.125rem}.command-palette-preset__list{display:flex;align-items:start;gap:.675rem;padding:.375rem .675rem;cursor:pointer;border-radius:var(--blockout__radius--md);transition:background .15s ease,color .15s ease}.command-palette-preset__list .command-palette-preset__list__icon{flex-shrink:0;width:1.25em;height:1.25em;margin-top:.125rem;fill:var(--blockout__colours__surface--500);transition:fill .15s ease}.command-palette-preset__list[data-active-item=true]{background:var(--blockout__colours__primary--100);color:var(--blockout__colours__primary--950)}.command-palette-preset__list[data-active-item=true] .command-palette-preset__list__icon{fill:var(--blockout__colours__primary--600)}.command-palette-preset__list.command-palette-preset__list__group__item{margin-left:2rem;font-size:.875rem;color:var(--blockout__colours__surface--500)}.command-palette-preset__list.command-palette-preset__list__group__item .command-palette-preset__list__icon{display:none}.command-palette-preset__horizontal__group{display:grid;grid-template-columns:2fr 3fr;gap:1rem;border-top:1px solid var(--blockout__colours__surface--200);padding-block:.375rem}.command-palette-preset__horizontal__group:first-child{padding-top:0;border-top:none}.command-palette-preset__horizontal__group .command-palette-preset__horizontal__group__label{display:flex;align-items:start;gap:.675rem;font-weight:500;padding:.375rem .675rem;border-radius:var(--blockout__radius--md);height:fit-content;min-width:0}.command-palette-preset__horizontal__group .command-palette-preset__horizontal__group__label .command-palette-preset__horizontal__group__label__icon{flex-shrink:0}.command-palette-preset__horizontal__group .command-palette-preset__horizontal__group__label .command-palette-preset__horizontal__group__label__text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.command-palette-preset__horizontal__group .command-palette-preset__horizontal__group__label[data-active-item=true]{background:var(--blockout__colours__primary--100);color:var(--blockout__colours__primary--950)}.command-palette-preset__horizontal__group .command-palette-preset__horizontal__group__items{display:grid;gap:.125rem}.command-palette-preset__horizontal{padding:.375rem .675rem;border-radius:var(--blockout__radius--md);font-weight:500;transition:background .15s ease,color .15s ease}.command-palette-preset__horizontal[data-active-item=true]{background:var(--blockout__colours__primary--100);color:var(--blockout__colours__primary--950)}
|
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;gap:.325rem;padding:.325rem}.component-select__list:focus{outline:none}.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}.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__label{display:flex;align-items:center;gap:.5rem;font-weight:500}.component-select-control__btn__value__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-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;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}.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__label{display:flex;align-items:center;gap:.5rem;font-weight:500}.component-select-control__btn__value__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-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/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);overflow:clip;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:
|
|
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);overflow:clip;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,19 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Button as
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as o, jsxs as r, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import { Button as v } from "../../button/index.js";
|
|
3
|
+
import { findOption as N } from "../../../types/options.js";
|
|
4
4
|
import * as m from "react";
|
|
5
|
-
import { p as
|
|
6
|
-
import { t as
|
|
7
|
-
import { BaseControl as
|
|
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";
|
|
8
8
|
import { Affix as p } from "../base-control/affix.js";
|
|
9
|
-
import { useBaseControlProps as
|
|
10
|
-
import { Select as
|
|
9
|
+
import { useBaseControlProps as C } from "../base-control/props.js";
|
|
10
|
+
import { Select as I } from "./select.js";
|
|
11
11
|
import '../../../assets/style16.css';/* empty css */
|
|
12
|
-
import { S as
|
|
13
|
-
const f = m.forwardRef((
|
|
12
|
+
import { S as g } from "../../../select-value-B3DYk9eV.js";
|
|
13
|
+
const f = m.forwardRef((e, t) => /* @__PURE__ */ m.createElement(O, { ref: t, ...e, weights: P }));
|
|
14
14
|
f.displayName = "CaretDownIcon";
|
|
15
|
-
function
|
|
16
|
-
const { baseProps: t, controlProps: n } =
|
|
15
|
+
function G(e) {
|
|
16
|
+
const { baseProps: t, controlProps: n } = C(e, {
|
|
17
17
|
className: "component-select-control"
|
|
18
18
|
}), {
|
|
19
19
|
placeholder: l,
|
|
@@ -22,30 +22,30 @@ function H(o) {
|
|
|
22
22
|
withIcon: b = !1,
|
|
23
23
|
before: _,
|
|
24
24
|
after: u
|
|
25
|
-
} = n, { prefix: s, suffix: c, ...x } = t,
|
|
26
|
-
return /* @__PURE__ */
|
|
25
|
+
} = n, { prefix: s, suffix: c, ...x } = t, i = N(d, h), a = !!i ? i : { label: l || "" };
|
|
26
|
+
return /* @__PURE__ */ o(w, { ...x, children: /* @__PURE__ */ r(I, { ...n, prefix: s, suffix: c, children: [
|
|
27
27
|
_,
|
|
28
28
|
/* @__PURE__ */ r("div", { className: "component-select-control__btn", children: [
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
b &&
|
|
32
|
-
|
|
29
|
+
/* @__PURE__ */ o(p, { children: s }),
|
|
30
|
+
/* @__PURE__ */ o(g, { fallback: l, children: () => /* @__PURE__ */ o(S, { children: /* @__PURE__ */ r("span", { className: "component-select-control__btn__value__label", children: [
|
|
31
|
+
b && a.icon,
|
|
32
|
+
a.label
|
|
33
33
|
] }) }) }),
|
|
34
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ o(p, { suffix: !0, children: c })
|
|
35
35
|
] }),
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
36
|
+
/* @__PURE__ */ o(
|
|
37
|
+
v.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__ */ o(f, {})
|
|
44
44
|
}
|
|
45
45
|
),
|
|
46
46
|
u
|
|
47
47
|
] }) });
|
|
48
48
|
}
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
G as SelectControl
|
|
51
51
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Optionable } from '../../../types/options';
|
|
1
|
+
import { Optionable, OptionableGroup } from '../../../types/options';
|
|
2
2
|
import { HTMLInputAutoCompleteAttribute, ReactNode } from 'react';
|
|
3
3
|
export type SelectProps<T extends string = string> = {
|
|
4
4
|
className?: string;
|
|
5
5
|
id?: string;
|
|
6
6
|
value?: T;
|
|
7
7
|
onChangeValue?: (value: T) => void;
|
|
8
|
-
options?: Optionable<T>[];
|
|
8
|
+
options?: (Optionable<T> | OptionableGroup<T>)[];
|
|
9
9
|
searchable?: boolean;
|
|
10
10
|
combobox?: boolean;
|
|
11
11
|
placeholder?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
1
|
+
import { jsx as s, 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 h, useMemo as y, startTransition as g } from "react";
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
@@ -14,68 +14,69 @@ import "../../../primitives/symbol/index.js";
|
|
|
14
14
|
/* empty css */
|
|
15
15
|
/* empty css */
|
|
16
16
|
/* empty css */
|
|
17
|
-
import {
|
|
18
|
-
import { s as
|
|
19
|
-
import { m as
|
|
17
|
+
import { normalizeOptions as z, findOption as A } from "../../../types/options.js";
|
|
18
|
+
import { s as H } from "../../../MagnifyingGlass.es-CLstwG_v.js";
|
|
19
|
+
import { m as M } from "../../../match-sorter.esm-MNVE8H_6.js";
|
|
20
20
|
/* empty css */
|
|
21
|
-
import { C as
|
|
22
|
-
import { S as
|
|
23
|
-
import { C as
|
|
24
|
-
import { C as
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
21
|
+
import { C as T, a as f, b as $ } from "../../../MAXQOH4L-BYWBWXpb.js";
|
|
22
|
+
import { S as q, a as B, b as D, c as E, d as F, e as J, f as K } from "../../../select-popover-CGgkyRb4.js";
|
|
23
|
+
import { C as Q } from "../../../combobox-popover-BZ_1wNrj.js";
|
|
24
|
+
import { C as R, a as U } from "../../../combobox-group-hNvv1WJm.js";
|
|
25
|
+
import { C as u } from "../../../JMHAJKUZ-D5KCN1Aj.js";
|
|
26
|
+
const be = ({
|
|
27
|
+
className: v,
|
|
28
|
+
value: i,
|
|
29
|
+
onChangeValue: a = j,
|
|
30
|
+
options: S = [],
|
|
31
|
+
searchable: l = !1,
|
|
32
|
+
combobox: e = !1,
|
|
33
|
+
placeholder: N = "Choose an option...",
|
|
34
|
+
prefix: W,
|
|
35
|
+
suffix: X,
|
|
36
|
+
children: C,
|
|
37
|
+
withIcon: Y,
|
|
38
|
+
...O
|
|
38
39
|
}) => {
|
|
39
|
-
|
|
40
|
-
const [n,
|
|
41
|
-
baseSort: (
|
|
40
|
+
e && (l = !0);
|
|
41
|
+
const [n, p] = h(!1), [c, P] = h(""), m = z(S), _ = y(() => M(m, c, {
|
|
42
|
+
baseSort: (o, t) => o.index < t.index ? -1 : 1,
|
|
42
43
|
keys: ["label", "description"]
|
|
43
|
-
}), [c]),
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
|
|
44
|
+
}), [c]), L = l || e ? $ : E, w = e ? u : K, G = e ? f : B, b = e ? Q : D, I = e ? R : F, V = e ? U : J, d = !!!A(m, i);
|
|
45
|
+
return /* @__PURE__ */ s(
|
|
46
|
+
T,
|
|
46
47
|
{
|
|
47
|
-
resetValueOnHide: !
|
|
48
|
+
resetValueOnHide: !e,
|
|
48
49
|
open: n,
|
|
49
|
-
setOpen:
|
|
50
|
-
value:
|
|
51
|
-
setValue: (
|
|
52
|
-
|
|
53
|
-
P(
|
|
50
|
+
setOpen: p,
|
|
51
|
+
value: e ? i : c,
|
|
52
|
+
setValue: (o) => {
|
|
53
|
+
e && a(o), g(() => {
|
|
54
|
+
P(o);
|
|
54
55
|
});
|
|
55
56
|
},
|
|
56
57
|
children: /* @__PURE__ */ r(
|
|
57
|
-
|
|
58
|
+
q,
|
|
58
59
|
{
|
|
59
|
-
value: d ? "" :
|
|
60
|
-
setValue:
|
|
60
|
+
value: d ? "" : i,
|
|
61
|
+
setValue: a,
|
|
61
62
|
open: n,
|
|
62
|
-
setOpen:
|
|
63
|
+
setOpen: p,
|
|
63
64
|
children: [
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
|
|
65
|
+
/* @__PURE__ */ s(
|
|
66
|
+
G,
|
|
66
67
|
{
|
|
67
|
-
className:
|
|
68
|
-
|
|
68
|
+
className: x(
|
|
69
|
+
v,
|
|
69
70
|
"component-select__input",
|
|
70
71
|
d && "component-select__input--placeholder"
|
|
71
72
|
),
|
|
72
|
-
children:
|
|
73
|
-
placeholder:
|
|
74
|
-
...
|
|
73
|
+
children: e ? void 0 : C,
|
|
74
|
+
placeholder: N,
|
|
75
|
+
...O
|
|
75
76
|
}
|
|
76
77
|
),
|
|
77
|
-
n &&
|
|
78
|
-
|
|
78
|
+
n && _.length > 0 && /* @__PURE__ */ s(
|
|
79
|
+
b,
|
|
79
80
|
{
|
|
80
81
|
className: "component-select__popover",
|
|
81
82
|
"data-colour-scheme": "invert",
|
|
@@ -87,10 +88,10 @@ const Se = ({
|
|
|
87
88
|
overflowPadding: 4,
|
|
88
89
|
shift: -1,
|
|
89
90
|
children: /* @__PURE__ */ r(k, { className: "component-select__popover__scroll", axis: "y", children: [
|
|
90
|
-
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
|
|
91
|
+
l && !e && /* @__PURE__ */ r("div", { className: "component-select__popover__search-wrapper", children: [
|
|
92
|
+
/* @__PURE__ */ s(H, { className: "component-select__popover__search-icon" }),
|
|
93
|
+
/* @__PURE__ */ s(
|
|
94
|
+
f,
|
|
94
95
|
{
|
|
95
96
|
autoSelect: !0,
|
|
96
97
|
placeholder: "Search...",
|
|
@@ -98,22 +99,32 @@ const Se = ({
|
|
|
98
99
|
}
|
|
99
100
|
)
|
|
100
101
|
] }),
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
|
|
102
|
+
/* @__PURE__ */ s(L, { className: "component-select__list", children: _.map((o) => /* @__PURE__ */ r(
|
|
103
|
+
I,
|
|
103
104
|
{
|
|
104
|
-
|
|
105
|
-
value: e.value,
|
|
106
|
-
className: "component-select__option",
|
|
107
|
-
render: /* @__PURE__ */ t(f, {}),
|
|
105
|
+
className: "component-select__list__group",
|
|
108
106
|
children: [
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
o.label && /* @__PURE__ */ s(V, { className: "component-select__list__group__label", children: o.label }),
|
|
108
|
+
o.items.map((t) => /* @__PURE__ */ r(
|
|
109
|
+
w,
|
|
110
|
+
{
|
|
111
|
+
disabled: t.disabled,
|
|
112
|
+
value: t.value,
|
|
113
|
+
className: "component-select__option",
|
|
114
|
+
render: /* @__PURE__ */ s(u, {}),
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ r("div", { className: "component-select__option__label", children: [
|
|
117
|
+
t.icon,
|
|
118
|
+
t.label
|
|
119
|
+
] }),
|
|
120
|
+
t.description && /* @__PURE__ */ s("div", { className: "component-select__option__description", children: t.description })
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
t.value
|
|
124
|
+
))
|
|
114
125
|
]
|
|
115
126
|
},
|
|
116
|
-
|
|
127
|
+
o.label
|
|
117
128
|
)) })
|
|
118
129
|
] })
|
|
119
130
|
}
|
|
@@ -125,5 +136,5 @@ const Se = ({
|
|
|
125
136
|
);
|
|
126
137
|
};
|
|
127
138
|
export {
|
|
128
|
-
|
|
139
|
+
be as Select
|
|
129
140
|
};
|