@ifhover/leaf-ui 0.11.0 → 0.12.0
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/cjs/browser/modules/colorpicker/colorpicker.cjs +15 -14
- package/dist/cjs/browser/modules/colorpicker/colorpicker.cjs.map +1 -1
- package/dist/cjs/browser/modules/menu/menu.cjs +1 -1
- package/dist/cjs/browser/modules/menu/menu.cjs.map +1 -1
- package/dist/cjs/browser/modules/tabletanstack/column-sizing.cjs +111 -0
- package/dist/cjs/browser/modules/tabletanstack/column-sizing.cjs.map +1 -0
- package/dist/cjs/browser/modules/tabletanstack/tabletanstack.cjs +51 -13
- package/dist/cjs/browser/modules/tabletanstack/tabletanstack.cjs.map +1 -1
- package/dist/cjs/colorpicker/colorpicker.cjs +15 -14
- package/dist/cjs/colorpicker/colorpicker.cjs.map +1 -1
- package/dist/cjs/colorpicker/colorpicker.d.cts.map +1 -1
- package/dist/cjs/menu/menu.cjs +1 -1
- package/dist/cjs/menu/menu.cjs.map +1 -1
- package/dist/cjs/styles/colorpicker.css +1 -1
- package/dist/cjs/styles/components/colorpicker.css +1 -1
- package/dist/cjs/styles/components/menu.css +1 -1
- package/dist/cjs/styles/index.css +7 -117
- package/dist/cjs/styles/index.css.map +1 -1
- package/dist/cjs/styles/menu.css +1 -1
- package/dist/cjs/tabletanstack/column-sizing.cjs +111 -0
- package/dist/cjs/tabletanstack/column-sizing.cjs.map +1 -0
- package/dist/cjs/tabletanstack/column-sizing.d.cts +15 -0
- package/dist/cjs/tabletanstack/column-sizing.d.cts.map +1 -0
- package/dist/cjs/tabletanstack/tabletanstack.cjs +51 -13
- package/dist/cjs/tabletanstack/tabletanstack.cjs.map +1 -1
- package/dist/cjs/tabletanstack/tabletanstack.d.cts +2 -0
- package/dist/cjs/tabletanstack/tabletanstack.d.cts.map +1 -1
- package/dist/esm/browser/modules/colorpicker/colorpicker.js +16 -15
- package/dist/esm/browser/modules/colorpicker/colorpicker.js.map +1 -1
- package/dist/esm/browser/modules/menu/menu.js +1 -1
- package/dist/esm/browser/modules/menu/menu.js.map +1 -1
- package/dist/esm/browser/modules/tabletanstack/column-sizing.js +73 -0
- package/dist/esm/browser/modules/tabletanstack/column-sizing.js.map +1 -0
- package/dist/esm/browser/modules/tabletanstack/tabletanstack.js +51 -13
- package/dist/esm/browser/modules/tabletanstack/tabletanstack.js.map +1 -1
- package/dist/esm/colorpicker/colorpicker.d.ts.map +1 -1
- package/dist/esm/colorpicker/colorpicker.js +16 -15
- package/dist/esm/colorpicker/colorpicker.js.map +1 -1
- package/dist/esm/menu/menu.js +1 -1
- package/dist/esm/menu/menu.js.map +1 -1
- package/dist/esm/styles/colorpicker.css +1 -1
- package/dist/esm/styles/components/colorpicker.css +1 -1
- package/dist/esm/styles/components/menu.css +1 -1
- package/dist/esm/styles/index.css +7 -117
- package/dist/esm/styles/index.css.map +1 -1
- package/dist/esm/styles/menu.css +1 -1
- package/dist/esm/tabletanstack/column-sizing.d.ts +15 -0
- package/dist/esm/tabletanstack/column-sizing.d.ts.map +1 -0
- package/dist/esm/tabletanstack/column-sizing.js +73 -0
- package/dist/esm/tabletanstack/column-sizing.js.map +1 -0
- package/dist/esm/tabletanstack/tabletanstack.d.ts +2 -0
- package/dist/esm/tabletanstack/tabletanstack.d.ts.map +1 -1
- package/dist/esm/tabletanstack/tabletanstack.js +51 -13
- package/dist/esm/tabletanstack/tabletanstack.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
.leaf-menu{--leaf-surface-inner-top: max(0px, var(--leaf-surface-radius) - var(--leaf-surface-padding-top) - var(--leaf-surface-border));--leaf-surface-inner-right: max(0px, var(--leaf-surface-radius) - var(--leaf-surface-padding-right) - var(--leaf-surface-border));--leaf-surface-inner-bottom: max(0px, var(--leaf-surface-radius) - var(--leaf-surface-padding-bottom) - var(--leaf-surface-border));--leaf-surface-inner-left: max(0px, var(--leaf-surface-radius) - var(--leaf-surface-padding-left) - var(--leaf-surface-border));--leaf-surface-inner-radius: var(--leaf-surface-inner-left) var(--leaf-surface-inner-right) var(--leaf-surface-inner-right) var(--leaf-surface-inner-left) / var(--leaf-surface-inner-top) var(--leaf-surface-inner-top) var(--leaf-surface-inner-bottom) var(--leaf-surface-inner-bottom);padding:var(--leaf-surface-padding-top) var(--leaf-surface-padding-right) var(--leaf-surface-padding-bottom) var(--leaf-surface-padding-left);border-radius:var(--leaf-surface-radius)}.leaf-menu,.leaf-menu__popup{--leaf-danger-soft-background: var(--leaf-color-danger-soft);--leaf-danger-soft-active-background: var(--leaf-color-danger-soft-active);--leaf-menu-unselected-color: color-mix(in srgb, currentColor 80%, var(--leaf-color-surface));--leaf-menu-canvas: var(--leaf-color-surface);--leaf-menu-hover-color: var(--leaf-menu-unselected-color);--leaf-menu-hover-opacity: 1;--leaf-menu-neutral-background: rgba(0, 0, 0, 0.08);--leaf-menu-neutral-background: light-dark( rgb(241 241 242), rgba(0, 0, 0, 0.08) );--leaf-menu-hover-background: var(--leaf-menu-neutral-background);--leaf-menu-selected-color: currentColor;--leaf-menu-selected-background: var(--leaf-menu-neutral-background);--leaf-menu-active-background: var(--leaf-menu-neutral-background);--leaf-menu-selected-border: 0px solid transparent;--leaf-menu-selected-shadow: none;--leaf-menu-selected-clip: none;--leaf-menu-entry-duration: var(--leaf-motion-fast);--leaf-menu-exit-duration: var(--leaf-motion-fast)}.leaf-menu--raised,.leaf-menu__popup--raised{--leaf-menu-unselected-color: color-mix(in srgb, currentColor 80%, var(--leaf-color-surface));--leaf-menu-canvas: var(--leaf-color-surface);--leaf-menu-hover-color: var(--leaf-menu-unselected-color);--leaf-menu-hover-opacity: 1;--leaf-menu-neutral-background: rgba(0, 0, 0, 0.08);--leaf-menu-hover-background: var(--leaf-menu-neutral-background);--leaf-menu-selected-color: currentColor;--leaf-menu-selected-background: var(--leaf-menu-neutral-background);--leaf-menu-active-background: var(--leaf-menu-neutral-background);--leaf-menu-selected-border: 0px solid transparent;--leaf-menu-selected-shadow: none;--leaf-menu-selected-clip: none;--leaf-menu-entry-duration: var(--leaf-motion-fast);--leaf-menu-exit-duration: var(--leaf-motion-fast);--leaf-menu-hover-opacity: 0;--leaf-menu-hover-color: currentColor;--leaf-menu-active-background: rgba(0, 0, 0, 0.04);--leaf-menu-entry-duration: calc(var(--leaf-motion-duration) * 1.2);--leaf-menu-exit-duration: 0s;--leaf-menu-canvas: var(--leaf-color-surface-muted);--leaf-menu-selected-background: var(--leaf-color-surface);--leaf-menu-selected-border: 1px solid var(--leaf-color-border);--leaf-menu-selected-shadow: 0 2px 3px -1px rgb(0 0 0 / 0.08);--leaf-menu-selected-clip: inset(0 0 -4px)}.leaf-menu--primary,.leaf-menu__popup--primary{--leaf-menu-unselected-color: color-mix(in srgb, currentColor 80%, var(--leaf-color-surface));--leaf-menu-canvas: var(--leaf-color-surface);--leaf-menu-hover-color: var(--leaf-menu-unselected-color);--leaf-menu-hover-opacity: 1;--leaf-menu-neutral-background: rgba(0, 0, 0, 0.08);--leaf-menu-hover-background: var(--leaf-menu-neutral-background);--leaf-menu-selected-color: currentColor;--leaf-menu-selected-background: var(--leaf-menu-neutral-background);--leaf-menu-active-background: var(--leaf-menu-neutral-background);--leaf-menu-selected-border: 0px solid transparent;--leaf-menu-selected-shadow: none;--leaf-menu-selected-clip: none;--leaf-menu-entry-duration: var(--leaf-motion-fast);--leaf-menu-exit-duration: var(--leaf-motion-fast);--leaf-menu-hover-opacity: 0;--leaf-menu-hover-color: currentColor;--leaf-menu-active-background: rgba(0, 0, 0, 0.04);--leaf-menu-entry-duration: calc(var(--leaf-motion-duration) * 1.2);--leaf-menu-exit-duration: 0s;--leaf-menu-hover-color: var(--leaf-color-primary-ink);--leaf-menu-selected-color: var(--leaf-color-primary-ink);--leaf-menu-selected-background: var(--leaf-color-primary-alpha-10);--leaf-menu-active-background: var(--leaf-color-primary-alpha-4)}.leaf-menu{--leaf-surface-radius: var(--leaf-component-menu-radius, max(0px, var(--leaf-radius) - 2px));--leaf-surface-padding: var(--leaf-component-menu-padding, 6px);--leaf-surface-border: 0px;--leaf-surface-padding-top: var( --leaf-component-menu-padding-top, var(--leaf-surface-padding) );--leaf-surface-padding-right: var( --leaf-component-menu-padding-right, var(--leaf-surface-padding) );--leaf-surface-padding-bottom: var( --leaf-component-menu-padding-bottom, var(--leaf-surface-padding) );--leaf-surface-padding-left: var( --leaf-component-menu-padding-left, var(--leaf-surface-padding) );position:relative;isolation:isolate;width:240px;max-width:100%;box-sizing:border-box;background:var(--leaf-component-menu-background, var(--leaf-menu-canvas));color:var(--leaf-component-menu-color, var(--leaf-color-text));font:var(--leaf-component-menu-font-size, var(--leaf-font-size))/var(--leaf-line-height) var(--leaf-font-family);transition:width var(--leaf-motion-duration) var(--leaf-motion-easing)}.leaf-menu__item{position:relative;isolation:isolate;width:100%;display:flex;align-items:center;gap:12px;min-height:calc(var(--leaf-control-height) + 2px);margin-bottom:3px;padding:var(--leaf-density-option-padding) var(--leaf-spacing-sm) var(--leaf-density-option-padding) var(--leaf-spacing-md);border:0;border-radius:var(--leaf-component-menu-radius, max(0px, var(--leaf-radius) - 2px));background:rgba(0,0,0,0);text-decoration:none;text-align:start;font:inherit;cursor:pointer;box-sizing:border-box;transition:color var(--leaf-motion-color) var(--leaf-motion-easing),gap var(--leaf-motion-duration) var(--leaf-motion-easing),padding-inline var(--leaf-motion-duration) var(--leaf-motion-easing);color:var(--leaf-menu-item-color, var(--leaf-menu-unselected-color));background:rgba(0,0,0,0)}.leaf-menu__item:is(:hover,:focus-visible,:active):not(:disabled):not([aria-disabled=true]){background:rgba(0,0,0,0)}.leaf-menu__item::before{content:"";position:absolute;inset:5% 1.5%;z-index:-1;box-sizing:border-box;border-radius:inherit;border:0;box-shadow:none;clip-path:none;background:var(--leaf-menu-hover-background);opacity:0;pointer-events:none;transition:opacity var(--leaf-menu-exit-duration) linear,inset var(--leaf-menu-exit-duration) var(--leaf-motion-easing),background-color var(--leaf-menu-exit-duration) var(--leaf-motion-easing)}.leaf-menu__item:is(:hover,:focus-visible):not(:disabled):not([aria-disabled=true]):not([data-selected]):not([aria-current=page]){color:var(--leaf-menu-hover-color)}.leaf-menu__item:is(:hover,:focus-visible):not(:disabled):not([aria-disabled=true]):not([data-selected]):not([aria-current=page])::before{opacity:var(--leaf-menu-hover-opacity);inset:0;transition-duration:var(--leaf-menu-entry-duration)}.leaf-menu__item:active:not(:disabled):not([aria-disabled=true]):not([data-selected]):not([aria-current=page])::before{background:var(--leaf-menu-active-background);opacity:1;inset:0;transition-duration:var(--leaf-menu-entry-duration)}.leaf-menu__item:is([data-selected],[aria-current=page]){color:var(--leaf-menu-selected-color);font-weight:var(--leaf-font-weight)}.leaf-menu__item:is([data-selected],[aria-current=page])::before{background:var(--leaf-menu-selected-background);border:var(--leaf-menu-selected-border);box-shadow:var(--leaf-menu-selected-shadow);clip-path:var(--leaf-menu-selected-clip);opacity:1;inset:0;transition-duration:var(--leaf-menu-entry-duration)}.leaf-menu__item:is([data-danger],.leaf-dropdown__danger){color:var(--leaf-color-danger-ink)}.leaf-menu__item:is([data-danger],.leaf-dropdown__danger)::before{background:var(--leaf-danger-soft-background)}.leaf-menu__item:is([data-danger],.leaf-dropdown__danger):is(:hover,:focus-visible,:active):not(:disabled):not([aria-disabled=true]){color:var(--leaf-color-danger-ink)}.leaf-menu__item:is([data-danger],.leaf-dropdown__danger):active:not(:disabled):not([aria-disabled=true])::before{background:var(--leaf-danger-soft-active-background)}.leaf-menu__item:disabled,.leaf-menu__item[aria-disabled=true]{opacity:.45;cursor:not-allowed}.leaf-menu__item:focus-visible{outline:2px solid var(--leaf-color-focus, var(--leaf-focus-color, var(--leaf-color-text-muted)));outline-offset:2px}@media(prefers-reduced-motion: reduce){.leaf-menu__item::before{transition:none}}.leaf-menu__icon{display:inline-flex;align-items:center;justify-content:center;width:20px;flex:none}.leaf-menu__icon svg{width:16px;height:16px}.leaf-menu__label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;transition:max-width var(--leaf-motion-duration) var(--leaf-motion-easing),opacity var(--leaf-motion-duration) var(--leaf-motion-easing)}.leaf-menu__extra{display:inline-flex;align-items:center;flex:none}.leaf-menu__arrow{flex:none;width:14px;transition:transform var(--leaf-motion-slow) var(--leaf-motion-spring),width var(--leaf-motion-duration) var(--leaf-motion-easing),opacity var(--leaf-motion-duration) var(--leaf-motion-easing)}[aria-expanded=true] .leaf-menu__arrow{transform:rotate(180deg)}.leaf-menu__group-label{color:var(--leaf-color-text-muted);font-size:max(12px,var(--leaf-font-size) - 2px);font-weight:var(--leaf-font-weight);line-height:var(--leaf-line-height-sm);letter-spacing:.04em;text-transform:uppercase;padding:14px 12px 6px}.leaf-menu--collapsed .leaf-menu__group-label{display:none}.leaf-menu__divider{height:1px;margin:8px 12px;background:var(--leaf-color-divider)}.leaf-menu--collapsed .leaf-menu__label{max-width:0;opacity:0}.leaf-menu--collapsed .leaf-menu__arrow{width:0;opacity:0}.leaf-menu--collapsed .leaf-menu__item{gap:0;padding-inline:14px !important}.leaf-menu--collapsed{width:60px}.leaf-menu__submenu{position:relative;display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows var(--leaf-motion-slow) var(--leaf-motion-easing),opacity var(--leaf-motion-duration) var(--leaf-motion-easing)}.leaf-menu__submenu::before{content:"";position:absolute;inset-block:0 4px;inset-inline-start:var(--leaf-menu-submenu-line-offset);width:1px;background:var(--leaf-color-divider);border-radius:999px;z-index:2;opacity:0;pointer-events:none;transition:opacity var(--leaf-motion-duration) var(--leaf-motion-easing)}.leaf-menu__submenu[data-open=true]{grid-template-rows:1fr;opacity:1}.leaf-menu__submenu[data-open=true]::before{opacity:1}.leaf-menu__submenu-inner{min-height:0;overflow:hidden}.leaf-menu__submenu .leaf-menu__item{width:calc(100% - var(--leaf-menu-submenu-line-offset) - 9px);margin-inline-start:calc(var(--leaf-menu-submenu-line-offset) + 9px);min-height:var(--leaf-density-option-height);height:var(--leaf-density-option-height);padding-block:0}.leaf-menu__submenu-content{padding-block:2px 4px;transform:translateY(-5px);transition:transform var(--leaf-motion-slow) var(--leaf-motion-easing)}.leaf-menu__submenu[data-open=true] .leaf-menu__submenu-content{transform:translateY(0)}@media(prefers-reduced-motion: reduce){.leaf-menu,.leaf-menu__item,.leaf-menu__label,.leaf-menu__submenu,.leaf-menu__submenu-content,.leaf-menu__arrow{transition:none}.leaf-menu__item::before,.leaf-menu__popup .leaf-floating__option::before{transition:none}}.leaf-menu__group{border:0;padding:0;margin:0;min-width:0}.leaf-menu-group>.leaf-menu__group-label{padding-inline:0}.leaf-menu__divider{border:0}.leaf-menu__popup.leaf-dropdown{--leaf-surface-border: var( --leaf-component-menu-border-width, var(--leaf-component-floating-border-width, var(--leaf-border-width, 1px)) );border-color:var(--leaf-component-menu-border-color, var(--leaf-component-floating-border-color, var(--leaf-frame-border-color, var(--leaf-color-border))));color:var(--leaf-component-menu-color, var(--leaf-component-floating-color, var(--leaf-color-text)));background:var(--leaf-component-menu-background, var(--leaf-component-floating-background, var(--leaf-color-surface-raised, var(--leaf-color-surface))));box-shadow:var(--leaf-component-menu-shadow, var(--leaf-component-floating-shadow, var(--leaf-surface-shadow, var(--leaf-shadow-md))));color:var(--leaf-component-menu-color, var(--leaf-color-text));background:var(--leaf-component-menu-background, var(--leaf-menu-canvas));--leaf-surface-radius: var(--leaf-component-menu-radius, var(--leaf-radius));--leaf-surface-padding: var(--leaf-component-menu-padding, 6px);--leaf-surface-padding-top: var( --leaf-component-menu-padding-top, var(--leaf-surface-padding) );--leaf-surface-padding-right: var( --leaf-component-menu-padding-right, var(--leaf-surface-padding) );--leaf-surface-padding-bottom: var( --leaf-component-menu-padding-bottom, var(--leaf-surface-padding) );--leaf-surface-padding-left: var( --leaf-component-menu-padding-left, var(--leaf-surface-padding) );--leaf-floating-option-radius: var( --leaf-component-menu-radius, max(0px, calc(var(--leaf-radius) - 2px)) );min-width:min(208px,100vw - 24px);border-radius:var(--leaf-surface-radius);gap:2px;font-size:var(--leaf-component-menu-font-size, var(--leaf-font-size))}.leaf-menu__popup.leaf-dropdown>.leaf-floating__viewport{border-radius:var(--leaf-surface-inner-radius)}.leaf-menu__popup.leaf-dropdown>.leaf-floating__viewport>.leaf-scrollbar__content{display:flex;flex-direction:column;gap:2px}.leaf-menu__popup.leaf-dropdown .leaf-floating__option{position:relative;isolation:isolate;min-height:var(--leaf-density-option-height);gap:12px;margin:0;padding-inline:10px;padding-block:max(0px,(var(--leaf-density-option-height) - var(--leaf-line-height))/2);text-decoration:none;line-height:var(--leaf-line-height);font-size:inherit;transition:color var(--leaf-motion-color) var(--leaf-motion-easing);color:var(--leaf-menu-item-color, var(--leaf-menu-unselected-color));background:rgba(0,0,0,0)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is(:hover,:focus-visible,:active):not(:disabled):not([aria-disabled=true]){background:rgba(0,0,0,0)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option::before{content:"";position:absolute;inset:5% 1.5%;z-index:-1;box-sizing:border-box;border-radius:inherit;border:0;box-shadow:none;clip-path:none;background:var(--leaf-menu-hover-background);opacity:0;pointer-events:none;transition:opacity var(--leaf-menu-exit-duration) linear,inset var(--leaf-menu-exit-duration) var(--leaf-motion-easing),background-color var(--leaf-menu-exit-duration) var(--leaf-motion-easing)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is(:hover,:focus-visible):not(:disabled):not([aria-disabled=true]):not([data-selected]):not([aria-current=page]){color:var(--leaf-menu-hover-color)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is(:hover,:focus-visible):not(:disabled):not([aria-disabled=true]):not([data-selected]):not([aria-current=page])::before{opacity:var(--leaf-menu-hover-opacity);inset:0;transition-duration:var(--leaf-menu-entry-duration)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:active:not(:disabled):not([aria-disabled=true]):not([data-selected]):not([aria-current=page])::before{background:var(--leaf-menu-active-background);opacity:1;inset:0;transition-duration:var(--leaf-menu-entry-duration)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is([data-selected],[aria-current=page]){color:var(--leaf-menu-selected-color);font-weight:var(--leaf-font-weight)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is([data-selected],[aria-current=page])::before{background:var(--leaf-menu-selected-background);border:var(--leaf-menu-selected-border);box-shadow:var(--leaf-menu-selected-shadow);clip-path:var(--leaf-menu-selected-clip);opacity:1;inset:0;transition-duration:var(--leaf-menu-entry-duration)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is([data-danger],.leaf-dropdown__danger){color:var(--leaf-color-danger-ink)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is([data-danger],.leaf-dropdown__danger)::before{background:var(--leaf-danger-soft-background)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is([data-danger],.leaf-dropdown__danger):is(:hover,:focus-visible,:active):not(:disabled):not([aria-disabled=true]){color:var(--leaf-color-danger-ink)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is([data-danger],.leaf-dropdown__danger):active:not(:disabled):not([aria-disabled=true])::before{background:var(--leaf-danger-soft-active-background)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:disabled,.leaf-menu__popup.leaf-dropdown .leaf-floating__option[aria-disabled=true]{opacity:.45;cursor:not-allowed}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:focus-visible{outline:2px solid var(--leaf-color-focus, var(--leaf-focus-color, var(--leaf-color-text-muted)));outline-offset:2px}@media(prefers-reduced-motion: reduce){.leaf-menu__popup.leaf-dropdown .leaf-floating__option::before{transition:none}}.leaf-menu__popup.leaf-dropdown .leaf-dropdown__highlight{display:none}.leaf-menu__popup.leaf-dropdown .leaf-dropdown__arrow{flex:none;color:inherit}.leaf-menu__popup.leaf-dropdown .leaf-dropdown__group{padding:10px 10px 5px}.leaf-menu__popup.leaf-dropdown .leaf-dropdown__divider{border-color:var(--leaf-color-divider);margin-block:5px}.leaf-menu__popup-title{color:var(--leaf-color-text-muted);font-size:max(12px,var(--leaf-font-size) - 2px);font-weight:var(--leaf-font-weight);line-height:var(--leaf-line-height-sm);letter-spacing:.04em;text-transform:uppercase;margin:0 4px 4px;padding:6px 6px 10px;border-bottom:1px solid var(--leaf-color-divider)}.leaf-menu__popup-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px}.leaf-menu__popup-icon svg{width:16px;height:16px}.leaf-menu__popup-label{flex:1;min-width:0;overflow-wrap:anywhere}@media(forced-colors: active){:is(.leaf-menu,.leaf-menu__popup.leaf-dropdown) :is(.leaf-menu__item,.leaf-floating__option):is([data-selected],[aria-current=page],:hover,:focus-visible)::before{background:Highlight;forced-color-adjust:none}:is(.leaf-menu,.leaf-menu__popup.leaf-dropdown) :is(.leaf-menu__item,.leaf-floating__option):is([data-selected],[aria-current=page]){color:HighlightText}.leaf-menu__popup .leaf-floating__option[aria-current=page]{outline:1px solid Highlight;outline-offset:-1px}}
|
|
1
|
+
.leaf-menu{--leaf-surface-inner-top: max(0px, var(--leaf-surface-radius) - var(--leaf-surface-padding-top) - var(--leaf-surface-border));--leaf-surface-inner-right: max(0px, var(--leaf-surface-radius) - var(--leaf-surface-padding-right) - var(--leaf-surface-border));--leaf-surface-inner-bottom: max(0px, var(--leaf-surface-radius) - var(--leaf-surface-padding-bottom) - var(--leaf-surface-border));--leaf-surface-inner-left: max(0px, var(--leaf-surface-radius) - var(--leaf-surface-padding-left) - var(--leaf-surface-border));--leaf-surface-inner-radius: var(--leaf-surface-inner-left) var(--leaf-surface-inner-right) var(--leaf-surface-inner-right) var(--leaf-surface-inner-left) / var(--leaf-surface-inner-top) var(--leaf-surface-inner-top) var(--leaf-surface-inner-bottom) var(--leaf-surface-inner-bottom);padding:var(--leaf-surface-padding-top) var(--leaf-surface-padding-right) var(--leaf-surface-padding-bottom) var(--leaf-surface-padding-left);border-radius:var(--leaf-surface-radius)}.leaf-menu,.leaf-menu__popup{--leaf-danger-soft-background: var(--leaf-color-danger-soft);--leaf-danger-soft-active-background: var(--leaf-color-danger-soft-active);--leaf-menu-unselected-color: color-mix(in srgb, currentColor 80%, var(--leaf-color-surface));--leaf-menu-canvas: var(--leaf-color-surface);--leaf-menu-hover-color: var(--leaf-menu-unselected-color);--leaf-menu-hover-opacity: 1;--leaf-menu-neutral-background: rgba(0, 0, 0, 0.08);--leaf-menu-neutral-background: light-dark( rgb(241 241 242), rgba(0, 0, 0, 0.08) );--leaf-menu-hover-background: var(--leaf-menu-neutral-background);--leaf-menu-selected-color: currentColor;--leaf-menu-selected-background: var(--leaf-menu-neutral-background);--leaf-menu-active-background: var(--leaf-menu-neutral-background);--leaf-menu-selected-border: 0px solid transparent;--leaf-menu-selected-shadow: none;--leaf-menu-selected-clip: none;--leaf-menu-entry-duration: var(--leaf-motion-fast);--leaf-menu-exit-duration: var(--leaf-motion-fast)}.leaf-menu--raised,.leaf-menu__popup--raised{--leaf-menu-unselected-color: color-mix(in srgb, currentColor 80%, var(--leaf-color-surface));--leaf-menu-canvas: var(--leaf-color-surface);--leaf-menu-hover-color: var(--leaf-menu-unselected-color);--leaf-menu-hover-opacity: 1;--leaf-menu-neutral-background: rgba(0, 0, 0, 0.08);--leaf-menu-hover-background: var(--leaf-menu-neutral-background);--leaf-menu-selected-color: currentColor;--leaf-menu-selected-background: var(--leaf-menu-neutral-background);--leaf-menu-active-background: var(--leaf-menu-neutral-background);--leaf-menu-selected-border: 0px solid transparent;--leaf-menu-selected-shadow: none;--leaf-menu-selected-clip: none;--leaf-menu-entry-duration: var(--leaf-motion-fast);--leaf-menu-exit-duration: var(--leaf-motion-fast);--leaf-menu-hover-opacity: 0;--leaf-menu-hover-color: currentColor;--leaf-menu-active-background: rgba(0, 0, 0, 0.04);--leaf-menu-entry-duration: calc(var(--leaf-motion-duration) * 1.2);--leaf-menu-exit-duration: 0s;--leaf-menu-canvas: var(--leaf-color-surface-muted);--leaf-menu-selected-background: var(--leaf-color-surface);--leaf-menu-selected-border: 1px solid var(--leaf-color-border);--leaf-menu-selected-shadow: 0 2px 3px -1px rgb(0 0 0 / 0.08);--leaf-menu-selected-clip: inset(0 0 -4px)}.leaf-menu--primary,.leaf-menu__popup--primary{--leaf-menu-unselected-color: color-mix(in srgb, currentColor 80%, var(--leaf-color-surface));--leaf-menu-canvas: var(--leaf-color-surface);--leaf-menu-hover-color: var(--leaf-menu-unselected-color);--leaf-menu-hover-opacity: 1;--leaf-menu-neutral-background: rgba(0, 0, 0, 0.08);--leaf-menu-hover-background: var(--leaf-menu-neutral-background);--leaf-menu-selected-color: currentColor;--leaf-menu-selected-background: var(--leaf-menu-neutral-background);--leaf-menu-active-background: var(--leaf-menu-neutral-background);--leaf-menu-selected-border: 0px solid transparent;--leaf-menu-selected-shadow: none;--leaf-menu-selected-clip: none;--leaf-menu-entry-duration: var(--leaf-motion-fast);--leaf-menu-exit-duration: var(--leaf-motion-fast);--leaf-menu-hover-opacity: 0;--leaf-menu-hover-color: currentColor;--leaf-menu-active-background: rgba(0, 0, 0, 0.04);--leaf-menu-entry-duration: calc(var(--leaf-motion-duration) * 1.2);--leaf-menu-exit-duration: 0s;--leaf-menu-hover-color: var(--leaf-color-primary);--leaf-menu-selected-color: var(--leaf-color-primary);--leaf-menu-selected-background: color-mix(in srgb, var(--leaf-color-primary) 8%, transparent);--leaf-menu-active-background: var(--leaf-color-primary-alpha-4)}.leaf-menu{--leaf-surface-radius: var(--leaf-component-menu-radius, max(0px, var(--leaf-radius) - 2px));--leaf-surface-padding: var(--leaf-component-menu-padding, 6px);--leaf-surface-border: 0px;--leaf-surface-padding-top: var( --leaf-component-menu-padding-top, var(--leaf-surface-padding) );--leaf-surface-padding-right: var( --leaf-component-menu-padding-right, var(--leaf-surface-padding) );--leaf-surface-padding-bottom: var( --leaf-component-menu-padding-bottom, var(--leaf-surface-padding) );--leaf-surface-padding-left: var( --leaf-component-menu-padding-left, var(--leaf-surface-padding) );position:relative;isolation:isolate;width:240px;max-width:100%;box-sizing:border-box;background:var(--leaf-component-menu-background, var(--leaf-menu-canvas));color:var(--leaf-component-menu-color, var(--leaf-color-text));font:var(--leaf-component-menu-font-size, var(--leaf-font-size))/var(--leaf-line-height) var(--leaf-font-family);transition:width var(--leaf-motion-duration) var(--leaf-motion-easing)}.leaf-menu__item{position:relative;isolation:isolate;width:100%;display:flex;align-items:center;gap:12px;min-height:calc(var(--leaf-control-height) + 2px);margin-bottom:3px;padding:var(--leaf-density-option-padding) var(--leaf-spacing-sm) var(--leaf-density-option-padding) var(--leaf-spacing-md);border:0;border-radius:var(--leaf-component-menu-radius, max(0px, var(--leaf-radius) - 2px));background:rgba(0,0,0,0);text-decoration:none;text-align:start;font:inherit;cursor:pointer;box-sizing:border-box;transition:color var(--leaf-motion-color) var(--leaf-motion-easing),gap var(--leaf-motion-duration) var(--leaf-motion-easing),padding-inline var(--leaf-motion-duration) var(--leaf-motion-easing);color:var(--leaf-menu-item-color, var(--leaf-menu-unselected-color));background:rgba(0,0,0,0)}.leaf-menu__item:is(:hover,:focus-visible,:active):not(:disabled):not([aria-disabled=true]){background:rgba(0,0,0,0)}.leaf-menu__item::before{content:"";position:absolute;inset:5% 1.5%;z-index:-1;box-sizing:border-box;border-radius:inherit;border:0;box-shadow:none;clip-path:none;background:var(--leaf-menu-hover-background);opacity:0;pointer-events:none;transition:opacity var(--leaf-menu-exit-duration) linear,inset var(--leaf-menu-exit-duration) var(--leaf-motion-easing),background-color var(--leaf-menu-exit-duration) var(--leaf-motion-easing)}.leaf-menu__item:is(:hover,:focus-visible):not(:disabled):not([aria-disabled=true]):not([data-selected]):not([aria-current=page]){color:var(--leaf-menu-hover-color)}.leaf-menu__item:is(:hover,:focus-visible):not(:disabled):not([aria-disabled=true]):not([data-selected]):not([aria-current=page])::before{opacity:var(--leaf-menu-hover-opacity);inset:0;transition-duration:var(--leaf-menu-entry-duration)}.leaf-menu__item:active:not(:disabled):not([aria-disabled=true]):not([data-selected]):not([aria-current=page])::before{background:var(--leaf-menu-active-background);opacity:1;inset:0;transition-duration:var(--leaf-menu-entry-duration)}.leaf-menu__item:is([data-selected],[aria-current=page]){color:var(--leaf-menu-selected-color);font-weight:var(--leaf-font-weight)}.leaf-menu__item:is([data-selected],[aria-current=page])::before{background:var(--leaf-menu-selected-background);border:var(--leaf-menu-selected-border);box-shadow:var(--leaf-menu-selected-shadow);clip-path:var(--leaf-menu-selected-clip);opacity:1;inset:0;transition-duration:var(--leaf-menu-entry-duration)}.leaf-menu__item:is([data-danger],.leaf-dropdown__danger){color:var(--leaf-color-danger-ink)}.leaf-menu__item:is([data-danger],.leaf-dropdown__danger)::before{background:var(--leaf-danger-soft-background)}.leaf-menu__item:is([data-danger],.leaf-dropdown__danger):is(:hover,:focus-visible,:active):not(:disabled):not([aria-disabled=true]){color:var(--leaf-color-danger-ink)}.leaf-menu__item:is([data-danger],.leaf-dropdown__danger):active:not(:disabled):not([aria-disabled=true])::before{background:var(--leaf-danger-soft-active-background)}.leaf-menu__item:disabled,.leaf-menu__item[aria-disabled=true]{opacity:.45;cursor:not-allowed}.leaf-menu__item:focus-visible{outline:2px solid var(--leaf-color-focus, var(--leaf-focus-color, var(--leaf-color-text-muted)));outline-offset:2px}@media(prefers-reduced-motion: reduce){.leaf-menu__item::before{transition:none}}.leaf-menu__icon{display:inline-flex;align-items:center;justify-content:center;width:20px;flex:none}.leaf-menu__icon svg{width:16px;height:16px}.leaf-menu__label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;transition:max-width var(--leaf-motion-duration) var(--leaf-motion-easing),opacity var(--leaf-motion-duration) var(--leaf-motion-easing)}.leaf-menu__extra{display:inline-flex;align-items:center;flex:none}.leaf-menu__arrow{flex:none;width:14px;transition:transform var(--leaf-motion-slow) var(--leaf-motion-spring),width var(--leaf-motion-duration) var(--leaf-motion-easing),opacity var(--leaf-motion-duration) var(--leaf-motion-easing)}[aria-expanded=true] .leaf-menu__arrow{transform:rotate(180deg)}.leaf-menu__group-label{color:var(--leaf-color-text-muted);font-size:max(12px,var(--leaf-font-size) - 2px);font-weight:var(--leaf-font-weight);line-height:var(--leaf-line-height-sm);letter-spacing:.04em;text-transform:uppercase;padding:14px 12px 6px}.leaf-menu--collapsed .leaf-menu__group-label{display:none}.leaf-menu__divider{height:1px;margin:8px 12px;background:var(--leaf-color-divider)}.leaf-menu--collapsed .leaf-menu__label{max-width:0;opacity:0}.leaf-menu--collapsed .leaf-menu__arrow{width:0;opacity:0}.leaf-menu--collapsed .leaf-menu__item{gap:0;padding-inline:14px !important}.leaf-menu--collapsed{width:60px}.leaf-menu__submenu{position:relative;display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows var(--leaf-motion-slow) var(--leaf-motion-easing),opacity var(--leaf-motion-duration) var(--leaf-motion-easing)}.leaf-menu__submenu::before{content:"";position:absolute;inset-block:0 4px;inset-inline-start:var(--leaf-menu-submenu-line-offset);width:1px;background:var(--leaf-color-divider);border-radius:999px;z-index:2;opacity:0;pointer-events:none;transition:opacity var(--leaf-motion-duration) var(--leaf-motion-easing)}.leaf-menu__submenu[data-open=true]{grid-template-rows:1fr;opacity:1}.leaf-menu__submenu[data-open=true]::before{opacity:1}.leaf-menu__submenu-inner{min-height:0;overflow:hidden}.leaf-menu__submenu .leaf-menu__item{width:calc(100% - var(--leaf-menu-submenu-line-offset) - 9px);margin-inline-start:calc(var(--leaf-menu-submenu-line-offset) + 9px);min-height:var(--leaf-density-option-height);height:var(--leaf-density-option-height);padding-block:0}.leaf-menu__submenu-content{padding-block:2px 4px;transform:translateY(-5px);transition:transform var(--leaf-motion-slow) var(--leaf-motion-easing)}.leaf-menu__submenu[data-open=true] .leaf-menu__submenu-content{transform:translateY(0)}@media(prefers-reduced-motion: reduce){.leaf-menu,.leaf-menu__item,.leaf-menu__label,.leaf-menu__submenu,.leaf-menu__submenu-content,.leaf-menu__arrow{transition:none}.leaf-menu__item::before,.leaf-menu__popup .leaf-floating__option::before{transition:none}}.leaf-menu__group{border:0;padding:0;margin:0;min-width:0}.leaf-menu-group>.leaf-menu__group-label{padding-inline:0}.leaf-menu__divider{border:0}.leaf-menu__popup.leaf-dropdown{--leaf-surface-border: var( --leaf-component-menu-border-width, var(--leaf-component-floating-border-width, var(--leaf-border-width, 1px)) );border-color:var(--leaf-component-menu-border-color, var(--leaf-component-floating-border-color, var(--leaf-frame-border-color, var(--leaf-color-border))));color:var(--leaf-component-menu-color, var(--leaf-component-floating-color, var(--leaf-color-text)));background:var(--leaf-component-menu-background, var(--leaf-component-floating-background, var(--leaf-color-surface-raised, var(--leaf-color-surface))));box-shadow:var(--leaf-component-menu-shadow, var(--leaf-component-floating-shadow, var(--leaf-surface-shadow, var(--leaf-shadow-md))));color:var(--leaf-component-menu-color, var(--leaf-color-text));background:var(--leaf-component-menu-background, var(--leaf-menu-canvas));--leaf-surface-radius: var(--leaf-component-menu-radius, var(--leaf-radius));--leaf-surface-padding: var(--leaf-component-menu-padding, 6px);--leaf-surface-padding-top: var( --leaf-component-menu-padding-top, var(--leaf-surface-padding) );--leaf-surface-padding-right: var( --leaf-component-menu-padding-right, var(--leaf-surface-padding) );--leaf-surface-padding-bottom: var( --leaf-component-menu-padding-bottom, var(--leaf-surface-padding) );--leaf-surface-padding-left: var( --leaf-component-menu-padding-left, var(--leaf-surface-padding) );--leaf-floating-option-radius: var( --leaf-component-menu-radius, max(0px, calc(var(--leaf-radius) - 2px)) );min-width:min(208px,100vw - 24px);border-radius:var(--leaf-surface-radius);gap:2px;font-size:var(--leaf-component-menu-font-size, var(--leaf-font-size))}.leaf-menu__popup.leaf-dropdown>.leaf-floating__viewport{border-radius:var(--leaf-surface-inner-radius)}.leaf-menu__popup.leaf-dropdown>.leaf-floating__viewport>.leaf-scrollbar__content{display:flex;flex-direction:column;gap:2px}.leaf-menu__popup.leaf-dropdown .leaf-floating__option{position:relative;isolation:isolate;min-height:var(--leaf-density-option-height);gap:12px;margin:0;padding-inline:10px;padding-block:max(0px,(var(--leaf-density-option-height) - var(--leaf-line-height))/2);text-decoration:none;line-height:var(--leaf-line-height);font-size:inherit;transition:color var(--leaf-motion-color) var(--leaf-motion-easing);color:var(--leaf-menu-item-color, var(--leaf-menu-unselected-color));background:rgba(0,0,0,0)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is(:hover,:focus-visible,:active):not(:disabled):not([aria-disabled=true]){background:rgba(0,0,0,0)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option::before{content:"";position:absolute;inset:5% 1.5%;z-index:-1;box-sizing:border-box;border-radius:inherit;border:0;box-shadow:none;clip-path:none;background:var(--leaf-menu-hover-background);opacity:0;pointer-events:none;transition:opacity var(--leaf-menu-exit-duration) linear,inset var(--leaf-menu-exit-duration) var(--leaf-motion-easing),background-color var(--leaf-menu-exit-duration) var(--leaf-motion-easing)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is(:hover,:focus-visible):not(:disabled):not([aria-disabled=true]):not([data-selected]):not([aria-current=page]){color:var(--leaf-menu-hover-color)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is(:hover,:focus-visible):not(:disabled):not([aria-disabled=true]):not([data-selected]):not([aria-current=page])::before{opacity:var(--leaf-menu-hover-opacity);inset:0;transition-duration:var(--leaf-menu-entry-duration)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:active:not(:disabled):not([aria-disabled=true]):not([data-selected]):not([aria-current=page])::before{background:var(--leaf-menu-active-background);opacity:1;inset:0;transition-duration:var(--leaf-menu-entry-duration)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is([data-selected],[aria-current=page]){color:var(--leaf-menu-selected-color);font-weight:var(--leaf-font-weight)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is([data-selected],[aria-current=page])::before{background:var(--leaf-menu-selected-background);border:var(--leaf-menu-selected-border);box-shadow:var(--leaf-menu-selected-shadow);clip-path:var(--leaf-menu-selected-clip);opacity:1;inset:0;transition-duration:var(--leaf-menu-entry-duration)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is([data-danger],.leaf-dropdown__danger){color:var(--leaf-color-danger-ink)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is([data-danger],.leaf-dropdown__danger)::before{background:var(--leaf-danger-soft-background)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is([data-danger],.leaf-dropdown__danger):is(:hover,:focus-visible,:active):not(:disabled):not([aria-disabled=true]){color:var(--leaf-color-danger-ink)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:is([data-danger],.leaf-dropdown__danger):active:not(:disabled):not([aria-disabled=true])::before{background:var(--leaf-danger-soft-active-background)}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:disabled,.leaf-menu__popup.leaf-dropdown .leaf-floating__option[aria-disabled=true]{opacity:.45;cursor:not-allowed}.leaf-menu__popup.leaf-dropdown .leaf-floating__option:focus-visible{outline:2px solid var(--leaf-color-focus, var(--leaf-focus-color, var(--leaf-color-text-muted)));outline-offset:2px}@media(prefers-reduced-motion: reduce){.leaf-menu__popup.leaf-dropdown .leaf-floating__option::before{transition:none}}.leaf-menu__popup.leaf-dropdown .leaf-dropdown__highlight{display:none}.leaf-menu__popup.leaf-dropdown .leaf-dropdown__arrow{flex:none;color:inherit}.leaf-menu__popup.leaf-dropdown .leaf-dropdown__group{padding:10px 10px 5px}.leaf-menu__popup.leaf-dropdown .leaf-dropdown__divider{border-color:var(--leaf-color-divider);margin-block:5px}.leaf-menu__popup-title{color:var(--leaf-color-text-muted);font-size:max(12px,var(--leaf-font-size) - 2px);font-weight:var(--leaf-font-weight);line-height:var(--leaf-line-height-sm);letter-spacing:.04em;text-transform:uppercase;margin:0 4px 4px;padding:6px 6px 10px;border-bottom:1px solid var(--leaf-color-divider)}.leaf-menu__popup-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px}.leaf-menu__popup-icon svg{width:16px;height:16px}.leaf-menu__popup-label{flex:1;min-width:0;overflow-wrap:anywhere}@media(forced-colors: active){:is(.leaf-menu,.leaf-menu__popup.leaf-dropdown) :is(.leaf-menu__item,.leaf-floating__option):is([data-selected],[aria-current=page],:hover,:focus-visible)::before{background:Highlight;forced-color-adjust:none}:is(.leaf-menu,.leaf-menu__popup.leaf-dropdown) :is(.leaf-menu__item,.leaf-floating__option):is([data-selected],[aria-current=page]){color:HighlightText}.leaf-menu__popup .leaf-floating__option[aria-current=page]{outline:1px solid Highlight;outline-offset:-1px}}
|
|
@@ -10626,6 +10626,10 @@
|
|
|
10626
10626
|
overflow: hidden;
|
|
10627
10627
|
}
|
|
10628
10628
|
|
|
10629
|
+
.leaf-color-picker:not([data-show-text]) .leaf-color-picker__trigger {
|
|
10630
|
+
justify-content: center;
|
|
10631
|
+
}
|
|
10632
|
+
|
|
10629
10633
|
.leaf-color-picker__swatch {
|
|
10630
10634
|
background: repeating-conic-gradient(#ddd 0% 25%, #fff 0% 50%) 50% / 8px 8px;
|
|
10631
10635
|
border-radius: 4px;
|
|
@@ -10802,121 +10806,7 @@
|
|
|
10802
10806
|
}
|
|
10803
10807
|
|
|
10804
10808
|
.leaf-color-picker__input {
|
|
10805
|
-
--leaf-current-font-size: var(--leaf-font-size);
|
|
10806
|
-
--leaf-current-control-height: var(--leaf-control-height, 34px);
|
|
10807
|
-
}
|
|
10808
|
-
|
|
10809
|
-
.leaf-color-picker__input--sm {
|
|
10810
|
-
--leaf-current-control-height: var(--leaf-control-height-sm, 28px);
|
|
10811
|
-
--leaf-current-font-size: var(--leaf-font-size-sm, 13px);
|
|
10812
|
-
}
|
|
10813
|
-
|
|
10814
|
-
.leaf-color-picker__input--lg {
|
|
10815
|
-
--leaf-current-control-height: var(--leaf-control-height-lg, 40px);
|
|
10816
|
-
--leaf-current-font-size: var(--leaf-font-size-lg, 16px);
|
|
10817
|
-
}
|
|
10818
|
-
|
|
10819
|
-
.leaf-color-picker__input {
|
|
10820
|
-
--leaf-field-color: var(--leaf-color-primary);
|
|
10821
|
-
--leaf-field-color-border-30: color-mix(in srgb, var(--leaf-field-color) 30%, var(--leaf-color-border));
|
|
10822
|
-
--leaf-field-border-width: var(--leaf-component-color-picker-border-width, var(--leaf-border-width, 1px));
|
|
10823
|
-
--leaf-field-text: var(--leaf-component-color-picker-color, var(--leaf-color-text));
|
|
10824
|
-
--leaf-field-rest-border: var(--leaf-component-color-picker-border-color, var(--leaf-frame-border-color, var(--leaf-color-border)));
|
|
10825
|
-
--leaf-field-background: var(--leaf-component-color-picker-background, var(--leaf-color-surface));
|
|
10826
|
-
--leaf-field-shadow: var(--leaf-component-color-picker-shadow, var(--leaf-control-shadow, 0 0 0 0 transparent));
|
|
10827
|
-
box-sizing: border-box;
|
|
10828
|
-
border: var(--leaf-field-border-width) solid var(--leaf-component-color-picker-border-color, var(--leaf-frame-border-color, var(--leaf-color-border)));
|
|
10829
|
-
border-radius: var(--leaf-component-color-picker-radius, var(--leaf-radius));
|
|
10830
|
-
width: 240px;
|
|
10831
|
-
min-width: 0;
|
|
10832
|
-
max-width: 100%;
|
|
10833
|
-
color: var(--leaf-component-color-picker-color, var(--leaf-color-text));
|
|
10834
|
-
background: var(--leaf-component-color-picker-background, var(--leaf-color-surface));
|
|
10835
|
-
box-shadow: var(--leaf-field-shadow);
|
|
10836
|
-
font-family: var(--leaf-font-family);
|
|
10837
|
-
font-size: var(--leaf-component-color-picker-font-size, var(--leaf-current-font-size));
|
|
10838
|
-
line-height: var(--leaf-line-height);
|
|
10839
|
-
transition: border-color var(--leaf-motion-color) var(--leaf-motion-easing),background-color var(--leaf-motion-color) var(--leaf-motion-easing),box-shadow var(--leaf-motion-color) var(--leaf-motion-easing);
|
|
10840
|
-
}
|
|
10841
|
-
|
|
10842
|
-
.leaf-color-picker__input[data-status="error"] {
|
|
10843
|
-
--leaf-field-rest-border: var(--leaf-field-color);
|
|
10844
|
-
--leaf-field-color: var(--leaf-color-danger);
|
|
10845
|
-
--leaf-field-color-border-30: var(--leaf-color-danger-border);
|
|
10846
|
-
border-color: var(--leaf-field-color);
|
|
10847
|
-
}
|
|
10848
|
-
|
|
10849
|
-
.leaf-color-picker__input[data-status="warning"] {
|
|
10850
|
-
--leaf-field-rest-border: var(--leaf-field-color);
|
|
10851
|
-
--leaf-field-color: var(--leaf-color-warning);
|
|
10852
|
-
--leaf-field-color-border-30: var(--leaf-color-warning-border);
|
|
10853
|
-
border-color: var(--leaf-field-color);
|
|
10854
|
-
}
|
|
10855
|
-
|
|
10856
|
-
.leaf-color-picker__input[data-disabled], .leaf-color-picker__input:disabled {
|
|
10857
|
-
opacity: .55;
|
|
10858
|
-
cursor: not-allowed;
|
|
10859
|
-
}
|
|
10860
|
-
|
|
10861
|
-
.leaf-color-picker__input:hover:not([data-disabled]):not(:disabled):where(:not(:focus-within):not([data-open])) {
|
|
10862
|
-
color: var(--leaf-component-color-picker-hover-color, var(--leaf-field-text));
|
|
10863
|
-
background: var(--leaf-component-color-picker-hover-background, var(--leaf-field-background));
|
|
10864
|
-
border-color: var(--leaf-component-color-picker-hover-border-color, var(--leaf-field-rest-border));
|
|
10865
|
-
box-shadow: var(--leaf-component-color-picker-hover-shadow, var(--leaf-field-shadow));
|
|
10866
|
-
}
|
|
10867
|
-
|
|
10868
|
-
.leaf-color-picker__input:is(:focus-within, [data-open]):not([data-disabled]):not(:disabled) {
|
|
10869
|
-
color: var(--leaf-component-color-picker-focus-color, var(--leaf-field-text));
|
|
10870
|
-
background: var(--leaf-component-color-picker-focus-background, var(--leaf-field-background));
|
|
10871
|
-
border-color: var(--leaf-component-color-picker-focus-border-color, var(--leaf-field-color));
|
|
10872
|
-
box-shadow: var(--leaf-component-color-picker-focus-shadow, var(--leaf-field-shadow));
|
|
10873
|
-
outline: none;
|
|
10874
|
-
}
|
|
10875
|
-
|
|
10876
|
-
.leaf-color-picker__input:active:not([data-disabled]):not(:disabled):where(:not(:focus-within):not([data-open])) {
|
|
10877
|
-
color: var(--leaf-component-color-picker-active-color, var(--leaf-field-text));
|
|
10878
|
-
background: var(--leaf-component-color-picker-active-background, var(--leaf-field-background));
|
|
10879
|
-
border-color: var(--leaf-component-color-picker-active-border-color, var(--leaf-field-rest-border));
|
|
10880
|
-
box-shadow: var(--leaf-component-color-picker-active-shadow, var(--leaf-field-shadow));
|
|
10881
|
-
}
|
|
10882
|
-
|
|
10883
|
-
.leaf-color-picker__input[data-disabled], .leaf-color-picker__input:disabled {
|
|
10884
|
-
color: var(--leaf-component-color-picker-disabled-color, var(--leaf-field-text));
|
|
10885
|
-
background: var(--leaf-component-color-picker-disabled-background, var(--leaf-color-surface-muted));
|
|
10886
|
-
border-color: var(--leaf-component-color-picker-disabled-border-color, var(--leaf-field-rest-border));
|
|
10887
|
-
box-shadow: var(--leaf-component-color-picker-disabled-shadow, var(--leaf-field-shadow));
|
|
10888
|
-
}
|
|
10889
|
-
|
|
10890
|
-
@media (forced-colors: active) {
|
|
10891
|
-
.leaf-color-picker__input:is(:focus-within, [data-open]):not([data-disabled]):not(:disabled) {
|
|
10892
|
-
outline: 2px solid highlight;
|
|
10893
|
-
}
|
|
10894
|
-
}
|
|
10895
|
-
|
|
10896
|
-
@media (prefers-reduced-motion: reduce) {
|
|
10897
|
-
.leaf-color-picker__input {
|
|
10898
|
-
transition: none;
|
|
10899
|
-
}
|
|
10900
|
-
}
|
|
10901
|
-
|
|
10902
|
-
.leaf-color-picker__input {
|
|
10903
|
-
--leaf-field-shadow: var(--leaf-component-color-picker-shadow, var(--leaf-control-shadow, var(--leaf-shadow-xs)));
|
|
10904
|
-
box-sizing: border-box;
|
|
10905
10809
|
width: 100%;
|
|
10906
|
-
min-height: var(--leaf-control-height);
|
|
10907
|
-
border-radius: var(--leaf-radius-sm);
|
|
10908
|
-
font: inherit;
|
|
10909
|
-
transition: border-color var(--leaf-motion-duration) var(--leaf-motion-easing),box-shadow var(--leaf-motion-duration) var(--leaf-motion-easing);
|
|
10910
|
-
outline: none;
|
|
10911
|
-
padding: 5px 9px;
|
|
10912
|
-
font-size: 12px;
|
|
10913
|
-
}
|
|
10914
|
-
|
|
10915
|
-
.leaf-color-picker__input[aria-invalid="true"] {
|
|
10916
|
-
--leaf-field-rest-border: var(--leaf-field-color);
|
|
10917
|
-
--leaf-field-color: var(--leaf-color-danger);
|
|
10918
|
-
--leaf-field-color-border-30: var(--leaf-color-danger-border);
|
|
10919
|
-
border-color: var(--leaf-field-color);
|
|
10920
10810
|
}
|
|
10921
10811
|
|
|
10922
10812
|
.leaf-color-picker__error {
|
|
@@ -12387,12 +12277,12 @@
|
|
|
12387
12277
|
.leaf-menu--primary, .leaf-menu__popup--primary {
|
|
12388
12278
|
--leaf-menu-unselected-color: color-mix(in srgb, currentColor 80%, var(--leaf-color-surface));
|
|
12389
12279
|
--leaf-menu-canvas: var(--leaf-color-surface);
|
|
12390
|
-
--leaf-menu-hover-color: var(--leaf-color-primary
|
|
12280
|
+
--leaf-menu-hover-color: var(--leaf-color-primary);
|
|
12391
12281
|
--leaf-menu-hover-opacity: 0;
|
|
12392
12282
|
--leaf-menu-neutral-background: #00000014;
|
|
12393
12283
|
--leaf-menu-hover-background: var(--leaf-menu-neutral-background);
|
|
12394
|
-
--leaf-menu-selected-color: var(--leaf-color-primary
|
|
12395
|
-
--leaf-menu-selected-background: var(--leaf-color-primary
|
|
12284
|
+
--leaf-menu-selected-color: var(--leaf-color-primary);
|
|
12285
|
+
--leaf-menu-selected-background: color-mix(in srgb, var(--leaf-color-primary) 8%, transparent);
|
|
12396
12286
|
--leaf-menu-active-background: var(--leaf-color-primary-alpha-4);
|
|
12397
12287
|
--leaf-menu-selected-border: 0px solid transparent;
|
|
12398
12288
|
--leaf-menu-selected-shadow: none;
|