@pantograph/styles 0.0.16 → 0.0.18
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/accordion.css +1 -1
- package/dist/accordion.js +1 -1
- package/dist/accordion.umd.cjs +1 -1
- package/dist/avatar.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/avatar.umd.cjs +1 -1
- package/dist/breadcrumb.css +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/breadcrumb.umd.cjs +1 -1
- package/dist/button.css +1 -1
- package/dist/button.js +1 -1
- package/dist/button.umd.cjs +1 -1
- package/dist/combobox.css +1 -1
- package/dist/combobox.js +1 -1
- package/dist/combobox.umd.cjs +1 -1
- package/dist/comment.css +1 -1
- package/dist/comment.js +1 -1
- package/dist/comment.umd.cjs +1 -1
- package/dist/data_table.css +1 -1
- package/dist/data_table.js +1 -1
- package/dist/data_table.umd.cjs +1 -1
- package/dist/hover_card.css +1 -1
- package/dist/hover_card.js +1 -1
- package/dist/hover_card.umd.cjs +1 -1
- package/dist/icon.css +1 -1
- package/dist/icon.js +1 -1
- package/dist/icon.umd.cjs +1 -1
- package/dist/image.css +1 -1
- package/dist/image.js +1 -1
- package/dist/image.umd.cjs +1 -1
- package/dist/indent_level.css +1 -1
- package/dist/indent_level.js +1 -1
- package/dist/indent_level.umd.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.umd.cjs +4 -4
- package/dist/list_view.css +1 -0
- package/dist/list_view.d.ts +5 -0
- package/dist/list_view.js +7 -0
- package/dist/list_view.umd.cjs +12 -0
- package/dist/menu_item.css +1 -1
- package/dist/menu_item.js +1 -1
- package/dist/menu_item.umd.cjs +1 -1
- package/dist/popover.css +1 -1
- package/dist/popover.js +1 -1
- package/dist/popover.umd.cjs +1 -1
- package/dist/progress.css +1 -1
- package/dist/progress.js +1 -1
- package/dist/progress.umd.cjs +1 -1
- package/dist/select.css +1 -1
- package/dist/select.js +1 -1
- package/dist/select.umd.cjs +1 -1
- package/dist/tabs.css +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tabs.umd.cjs +1 -1
- package/dist/tbody.css +1 -1
- package/dist/tbody.js +1 -1
- package/dist/tbody.umd.cjs +1 -1
- package/dist/tcell.css +1 -1
- package/dist/tcell.js +1 -1
- package/dist/tcell.umd.cjs +1 -1
- package/dist/textarea.css +1 -1
- package/dist/textarea.js +1 -1
- package/dist/textarea.umd.cjs +1 -1
- package/dist/thead.css +1 -1
- package/dist/thead.js +1 -1
- package/dist/thead.umd.cjs +1 -1
- package/dist/tooltip.css +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/tooltip.umd.cjs +1 -1
- package/dist/tree.css +1 -1
- package/dist/tree.js +1 -1
- package/dist/tree.umd.cjs +1 -1
- package/package.json +1 -1
- package/dist/spinner.css +0 -1
- package/dist/spinner.d.ts +0 -5
- package/dist/spinner.js +0 -7
- package/dist/spinner.umd.cjs +0 -12
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pc_list_view,.pc_list_view__item{min-width:fit-content}.pc_list_view__item .pc_list_view__item__content__wrapper{padding:var(--pt-dimension-0, 0px)!important}.pc_list_view__item .pc_list_view__item__header__content{position:sticky;inset-inline-start:var(--pt-dimension-0, 0px)}.pc_list_view__item .pc_list_view__item__expand{position:sticky;inset-inline-end:var(--pt-dimension-0, 0px)}.pc_list_view__item .pc_list_view__item__header{position:sticky;z-index:4;top:var(--ptc-list-view-offset-top, 0px)}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { addCssToHead, removeCssFromHead, prefix } from "@pantograph/tokens";
|
|
2
|
+
const cssText = ".pc_list_view,.pc_list_view__item{min-width:fit-content}.pc_list_view__item .pc_list_view__item__content__wrapper{padding:var(--pt-dimension-0, 0px)!important}.pc_list_view__item .pc_list_view__item__header__content{position:sticky;inset-inline-start:var(--pt-dimension-0, 0px)}.pc_list_view__item .pc_list_view__item__expand{position:sticky;inset-inline-end:var(--pt-dimension-0, 0px)}.pc_list_view__item .pc_list_view__item__header{position:sticky;z-index:4;top:var(--ptc-list-view-offset-top, 0px)}\n";
|
|
3
|
+
const listViewId = `${prefix}s-list_view`;
|
|
4
|
+
const addListViewCss = () => addCssToHead(listViewId, cssText);
|
|
5
|
+
const removeListViewCss = () => removeCssFromHead(listViewId);
|
|
6
|
+
const listViewCss = cssText;
|
|
7
|
+
export { listViewId, addListViewCss, removeListViewCss, listViewCss };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const { addCssToHead, removeCssFromHead, prefix } = require("@pantograph/tokens");
|
|
4
|
+
const cssText = ".pc_list_view,.pc_list_view__item{min-width:fit-content}.pc_list_view__item .pc_list_view__item__content__wrapper{padding:var(--pt-dimension-0, 0px)!important}.pc_list_view__item .pc_list_view__item__header__content{position:sticky;inset-inline-start:var(--pt-dimension-0, 0px)}.pc_list_view__item .pc_list_view__item__expand{position:sticky;inset-inline-end:var(--pt-dimension-0, 0px)}.pc_list_view__item .pc_list_view__item__header{position:sticky;z-index:4;top:var(--ptc-list-view-offset-top, 0px)}\n";
|
|
5
|
+
const listViewId = `${prefix}s-list_view`;
|
|
6
|
+
const addListViewCss = () => addCssToHead(listViewId, cssText);
|
|
7
|
+
const removeListViewCss = () => removeCssFromHead(listViewId);
|
|
8
|
+
const listViewCss = cssText;
|
|
9
|
+
exports.listViewId = listViewId;
|
|
10
|
+
exports.addListViewCss = addListViewCss;
|
|
11
|
+
exports.removeListViewCss = removeListViewCss;
|
|
12
|
+
exports.listViewCss = listViewCss;
|
package/dist/menu_item.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.pc_menu_item{box-sizing:border-box;-webkit-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;outline:0;display:flex;align-items:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-property:all;background:var(--ptc-menuitem-bg)}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):not(:hover):not([data-highlighted]):not([data-hover]):not(:active){--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):hover,.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected)[data-highlighted],.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected)[data-hover]{--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):active:not(:has(.pc_sub_menu__items .pc_menu_item:active)){--ptc-menuitem-bg: rgba(var(--pt-bg-trigger));--ptc-menuitem-fg: rgba(var(--pt-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected).pc_sub_menu__trigger:active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle));--ptc-menuitem-fg: rgba(var(--pt-primary-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):hover,.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled)[data-highlighted],.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled)[data-hover]{--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):active:not(:has(.pc_menu_item:active)){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-trigger));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled){--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):not(:hover):not(:active){--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-danger-fg))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):hover{--ptc-menuitem-bg: rgba(var(--pt-danger-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-danger-fg-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):active{--ptc-menuitem-bg: rgba(var(--pt-danger-fill-subtle-trigger));--ptc-menuitem-fg: rgba(var(--pt-danger-fg-trigger))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--disabled{cursor:not-allowed;--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-disable-fg));--ptc-menuitem-description: rgba(var(--pt-disable-fg))}.pc_menu_item.pc_menu_item--static-style{--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item>.pc_menu_item__content{display:flex;flex-direction:column;flex:1 1 0%;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_menu_item>.pc_menu_item__content>.pc_menu_item__description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ptc-menuitem-description)}.pc_menu_item>.pc_menu_item__content>.pc_menu_item__title{color:var(--ptc-menuitem-fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_menu_item.pc_menu_item--hover-trailing .pc_menu_item__trailing{display:none}.pc_menu_item.pc_menu_item--hover-trailing:hover .pc_menu_item__trailing{display:inline-flex}.pc_menu_item:not(.pc_menu_item--disabled):not(.pc_menu_item--static-style){cursor:pointer}.pc_menu_item.pc_menu_item--sm{gap:var(--pt-dimension-200, 4px);border-radius:var(--pt-roundness-sm, 4px);padding:var(--pt-dimension-200, 4px)}.pc_menu_item.pc_menu_item--sm:not(.pc_menu_item--description){height:var(--pt-dimension-1200, 24px);min-height:var(--pt-dimension-1200, 24px);max-height:var(--pt-dimension-1200, 24px)}.pc_menu_item.pc_menu_item--sm.pc_menu_item--description{height:42px;min-height:42px;max-height:42px}.pc_menu_item.pc_menu_item--sm>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item.pc_menu_item--md{gap:var(--pt-dimension-200, 4px);border-radius:var(--pt-roundness-md, 6px);padding:var(--pt-dimension-300, 6px)}.pc_menu_item.pc_menu_item--md:not(.pc_menu_item--description){height:var(--pt-dimension-1600, 32px);min-height:var(--pt-dimension-1600, 32px);max-height:var(--pt-dimension-1600, 32px)}.pc_menu_item.pc_menu_item--md.pc_menu_item--description{height:50px;min-height:50px;max-height:50px}.pc_menu_item.pc_menu_item--md>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_menu_item.pc_menu_item--md>.pc_menu_item__content>.pc_menu_item__description{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item.pc_menu_item--lg{gap:var(--pt-dimension-300, 6px);border-radius:var(--pt-roundness-lg, 8px);padding:var(--pt-dimension-400, 8px)}.pc_menu_item.pc_menu_item--lg:not(.pc_menu_item--description){height:var(--pt-dimension-2000, 40px);min-height:var(--pt-dimension-2000, 40px);max-height:var(--pt-dimension-2000, 40px)}.pc_menu_item.pc_menu_item--lg.pc_menu_item--description{height:54px;min-height:54px;max-height:54px}.pc_menu_item.pc_menu_item--lg>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_menu_item.pc_menu_item--lg>.pc_menu_item__content .pc_menu_item__description{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item>.pc_menu_item__leading{color:var(--ptc-menuitem-fg);display:inline-block;height:100%}.pc_menu_item>.pc_menu_item__leading>.pc_menu_item__leading_content{display:inline-flex;align-items:center;gap:var(--pt-dimension-200, 4px)}.pc_menu_item>.pc_menu_item__branch{--ptu-text-opacity:1;color:rgba(var(--pt-gray-9),var(--ptu-text-opacity))}.pc_menu_item>.pc_menu_item__trailing{color:var(--ptc-menuitem-fg);display:inline-flex;align-items:center;gap:var(--pt-dimension-200, 4px)}.pc_menu_item.pc_menu_item--leading-center>.pc_menu_item__leading{align-items:center}.pc_menu_item.pc_menu_item--leading-center>.pc_menu_item__leading>.pc_menu_item__leading_content{height:100%}.pc_menu_item:not(.pc_menu_item--un-focusable):not(.pc_menu_item--disabled):focus{--ptu-shadow:0 0 0 var(--pt-stroke-30) var(--ptu-shadow-color, var(--pt-shadow-color, rgba(var(--pt-focus-br))));box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow)}.pc_sub_menu{width:100%}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger.pc_menu_item--selected:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu__items{display:flex;flex-direction:column;gap:var(--pt-dimension-200, 4px)}.pc_sub_menu__items .pc_sub_menu,.pc_menu .pc_sub_menu{width:100%}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active) .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):hover .pc_menu_item,.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled)[data-highlighted] .pc_menu_item,.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled)[data-hover] .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):active .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active) .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):hover .pc_menu_item,.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled)[data-highlighted] .pc_menu_item,.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled)[data-hover] .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):active .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_tree__node.pc_tree__node--disabled .pc_menu_item{cursor:not-allowed;--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-disable-fg));--ptc-menuitem-description: rgba(var(--pt-disable-fg))}
|
|
1
|
+
.pc_menu_item{box-sizing:border-box;-webkit-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;outline:0;display:flex;align-items:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-property:all;background:var(--ptc-menuitem-bg)}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):not(:hover):not([data-highlighted]):not([data-hover]):not(:active){--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):hover,.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected)[data-highlighted],.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected)[data-hover]{--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):active:not(:has(.pc_sub_menu__items .pc_menu_item:active)){--ptc-menuitem-bg: rgba(var(--pt-bg-trigger));--ptc-menuitem-fg: rgba(var(--pt-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected).pc_sub_menu__trigger:active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle));--ptc-menuitem-fg: rgba(var(--pt-primary-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):hover,.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled)[data-highlighted],.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled)[data-hover]{--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):active:not(:has(.pc_menu_item:active)){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-trigger));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled){--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):not(:hover):not(:active){--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-danger-fg))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):hover{--ptc-menuitem-bg: rgba(var(--pt-danger-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-danger-fg-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):active{--ptc-menuitem-bg: rgba(var(--pt-danger-fill-subtle-trigger));--ptc-menuitem-fg: rgba(var(--pt-danger-fg-trigger))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--disabled{cursor:not-allowed;--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-disable-fg));--ptc-menuitem-description: rgba(var(--pt-disable-fg))}.pc_menu_item.pc_menu_item--static-style{--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item>.pc_menu_item__content{display:flex;flex-direction:column;flex:1 1 0%;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_menu_item>.pc_menu_item__content>.pc_menu_item__description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ptc-menuitem-description)}.pc_menu_item>.pc_menu_item__content>.pc_menu_item__title{color:var(--ptc-menuitem-fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_menu_item.pc_menu_item--hover-trailing .pc_menu_item__trailing{display:none}.pc_menu_item.pc_menu_item--hover-trailing:hover .pc_menu_item__trailing{display:flex}.pc_menu_item:not(.pc_menu_item--disabled):not(.pc_menu_item--static-style){cursor:pointer}.pc_menu_item.pc_menu_item--sm{gap:var(--pt-dimension-200, 4px);border-radius:var(--pt-roundness-sm, 4px);padding:var(--pt-dimension-200, 4px)}.pc_menu_item.pc_menu_item--sm:not(.pc_menu_item--description){height:var(--pt-dimension-1200, 24px);min-height:var(--pt-dimension-1200, 24px);max-height:var(--pt-dimension-1200, 24px)}.pc_menu_item.pc_menu_item--sm.pc_menu_item--description{height:42px;min-height:42px;max-height:42px}.pc_menu_item.pc_menu_item--sm>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item.pc_menu_item--md{gap:var(--pt-dimension-200, 4px);border-radius:var(--pt-roundness-md, 6px);padding:var(--pt-dimension-300, 6px)}.pc_menu_item.pc_menu_item--md:not(.pc_menu_item--description){height:var(--pt-dimension-1600, 32px);min-height:var(--pt-dimension-1600, 32px);max-height:var(--pt-dimension-1600, 32px)}.pc_menu_item.pc_menu_item--md.pc_menu_item--description{height:50px;min-height:50px;max-height:50px}.pc_menu_item.pc_menu_item--md>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_menu_item.pc_menu_item--md>.pc_menu_item__content>.pc_menu_item__description{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item.pc_menu_item--lg{gap:var(--pt-dimension-300, 6px);border-radius:var(--pt-roundness-lg, 8px);padding:var(--pt-dimension-400, 8px)}.pc_menu_item.pc_menu_item--lg:not(.pc_menu_item--description){height:var(--pt-dimension-2000, 40px);min-height:var(--pt-dimension-2000, 40px);max-height:var(--pt-dimension-2000, 40px)}.pc_menu_item.pc_menu_item--lg.pc_menu_item--description{height:54px;min-height:54px;max-height:54px}.pc_menu_item.pc_menu_item--lg>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_menu_item.pc_menu_item--lg>.pc_menu_item__content .pc_menu_item__description{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item>.pc_menu_item__leading{color:var(--ptc-menuitem-fg);height:100%;display:flex}.pc_menu_item>.pc_menu_item__leading>.pc_menu_item__leading_content{display:flex;align-items:center;gap:var(--pt-dimension-200, 4px)}.pc_menu_item>.pc_menu_item__branch{--ptu-text-opacity:1;color:rgba(var(--pt-gray-9),var(--ptu-text-opacity))}.pc_menu_item>.pc_menu_item__trailing{color:var(--ptc-menuitem-fg);display:flex;align-items:center;gap:var(--pt-dimension-200, 4px)}.pc_menu_item.pc_menu_item--leading-center>.pc_menu_item__leading{align-items:center}.pc_menu_item.pc_menu_item--leading-center>.pc_menu_item__leading>.pc_menu_item__leading_content{height:100%}.pc_menu_item:not(.pc_menu_item--un-focusable):not(.pc_menu_item--disabled):focus{--ptu-shadow:0 0 0 var(--pt-stroke-30) var(--ptu-shadow-color, var(--pt-shadow-color, rgba(var(--pt-focus-br))));box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow)}.pc_sub_menu{width:100%}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger.pc_menu_item--selected:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu__items{display:flex;flex-direction:column;gap:var(--pt-dimension-200, 4px)}.pc_sub_menu__items .pc_sub_menu,.pc_menu .pc_sub_menu{width:100%}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active) .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):hover .pc_menu_item,.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled)[data-highlighted] .pc_menu_item,.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled)[data-hover] .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):active .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active) .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):hover .pc_menu_item,.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled)[data-highlighted] .pc_menu_item,.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled)[data-hover] .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):active .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_tree__node.pc_tree__node--disabled .pc_menu_item{cursor:not-allowed;--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-disable-fg));--ptc-menuitem-description: rgba(var(--pt-disable-fg))}
|
package/dist/menu_item.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { addCssToHead, removeCssFromHead, prefix } from "@pantograph/tokens";
|
|
2
|
-
const cssText = ".pc_menu_item{box-sizing:border-box;-webkit-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;outline:0;display:flex;align-items:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-property:all;background:var(--ptc-menuitem-bg)}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):not(:hover):not([data-highlighted]):not([data-hover]):not(:active){--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):hover,.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected)[data-highlighted],.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected)[data-hover]{--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):active:not(:has(.pc_sub_menu__items .pc_menu_item:active)){--ptc-menuitem-bg: rgba(var(--pt-bg-trigger));--ptc-menuitem-fg: rgba(var(--pt-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected).pc_sub_menu__trigger:active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle));--ptc-menuitem-fg: rgba(var(--pt-primary-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):hover,.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled)[data-highlighted],.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled)[data-hover]{--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):active:not(:has(.pc_menu_item:active)){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-trigger));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled){--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):not(:hover):not(:active){--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-danger-fg))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):hover{--ptc-menuitem-bg: rgba(var(--pt-danger-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-danger-fg-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):active{--ptc-menuitem-bg: rgba(var(--pt-danger-fill-subtle-trigger));--ptc-menuitem-fg: rgba(var(--pt-danger-fg-trigger))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--disabled{cursor:not-allowed;--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-disable-fg));--ptc-menuitem-description: rgba(var(--pt-disable-fg))}.pc_menu_item.pc_menu_item--static-style{--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item>.pc_menu_item__content{display:flex;flex-direction:column;flex:1 1 0%;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_menu_item>.pc_menu_item__content>.pc_menu_item__description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ptc-menuitem-description)}.pc_menu_item>.pc_menu_item__content>.pc_menu_item__title{color:var(--ptc-menuitem-fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_menu_item.pc_menu_item--hover-trailing .pc_menu_item__trailing{display:none}.pc_menu_item.pc_menu_item--hover-trailing:hover .pc_menu_item__trailing{display:inline-flex}.pc_menu_item:not(.pc_menu_item--disabled):not(.pc_menu_item--static-style){cursor:pointer}.pc_menu_item.pc_menu_item--sm{gap:var(--pt-dimension-200, 4px);border-radius:var(--pt-roundness-sm, 4px);padding:var(--pt-dimension-200, 4px)}.pc_menu_item.pc_menu_item--sm:not(.pc_menu_item--description){height:var(--pt-dimension-1200, 24px);min-height:var(--pt-dimension-1200, 24px);max-height:var(--pt-dimension-1200, 24px)}.pc_menu_item.pc_menu_item--sm.pc_menu_item--description{height:42px;min-height:42px;max-height:42px}.pc_menu_item.pc_menu_item--sm>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item.pc_menu_item--md{gap:var(--pt-dimension-200, 4px);border-radius:var(--pt-roundness-md, 6px);padding:var(--pt-dimension-300, 6px)}.pc_menu_item.pc_menu_item--md:not(.pc_menu_item--description){height:var(--pt-dimension-1600, 32px);min-height:var(--pt-dimension-1600, 32px);max-height:var(--pt-dimension-1600, 32px)}.pc_menu_item.pc_menu_item--md.pc_menu_item--description{height:50px;min-height:50px;max-height:50px}.pc_menu_item.pc_menu_item--md>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_menu_item.pc_menu_item--md>.pc_menu_item__content>.pc_menu_item__description{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item.pc_menu_item--lg{gap:var(--pt-dimension-300, 6px);border-radius:var(--pt-roundness-lg, 8px);padding:var(--pt-dimension-400, 8px)}.pc_menu_item.pc_menu_item--lg:not(.pc_menu_item--description){height:var(--pt-dimension-2000, 40px);min-height:var(--pt-dimension-2000, 40px);max-height:var(--pt-dimension-2000, 40px)}.pc_menu_item.pc_menu_item--lg.pc_menu_item--description{height:54px;min-height:54px;max-height:54px}.pc_menu_item.pc_menu_item--lg>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_menu_item.pc_menu_item--lg>.pc_menu_item__content .pc_menu_item__description{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item>.pc_menu_item__leading{color:var(--ptc-menuitem-fg);display:inline-block;height:100%}.pc_menu_item>.pc_menu_item__leading>.pc_menu_item__leading_content{display:inline-flex;align-items:center;gap:var(--pt-dimension-200, 4px)}.pc_menu_item>.pc_menu_item__branch{--ptu-text-opacity:1;color:rgba(var(--pt-gray-9),var(--ptu-text-opacity))}.pc_menu_item>.pc_menu_item__trailing{color:var(--ptc-menuitem-fg);display:inline-flex;align-items:center;gap:var(--pt-dimension-200, 4px)}.pc_menu_item.pc_menu_item--leading-center>.pc_menu_item__leading{align-items:center}.pc_menu_item.pc_menu_item--leading-center>.pc_menu_item__leading>.pc_menu_item__leading_content{height:100%}.pc_menu_item:not(.pc_menu_item--un-focusable):not(.pc_menu_item--disabled):focus{--ptu-shadow:0 0 0 var(--pt-stroke-30) var(--ptu-shadow-color, var(--pt-shadow-color, rgba(var(--pt-focus-br))));box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow)}.pc_sub_menu{width:100%}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger.pc_menu_item--selected:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu__items{display:flex;flex-direction:column;gap:var(--pt-dimension-200, 4px)}.pc_sub_menu__items .pc_sub_menu,.pc_menu .pc_sub_menu{width:100%}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active) .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):hover .pc_menu_item,.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled)[data-highlighted] .pc_menu_item,.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled)[data-hover] .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):active .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active) .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):hover .pc_menu_item,.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled)[data-highlighted] .pc_menu_item,.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled)[data-hover] .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):active .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_tree__node.pc_tree__node--disabled .pc_menu_item{cursor:not-allowed;--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-disable-fg));--ptc-menuitem-description: rgba(var(--pt-disable-fg))}\n";
|
|
2
|
+
const cssText = ".pc_menu_item{box-sizing:border-box;-webkit-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;outline:0;display:flex;align-items:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-property:all;background:var(--ptc-menuitem-bg)}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):not(:hover):not([data-highlighted]):not([data-hover]):not(:active){--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):hover,.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected)[data-highlighted],.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected)[data-hover]{--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):active:not(:has(.pc_sub_menu__items .pc_menu_item:active)){--ptc-menuitem-bg: rgba(var(--pt-bg-trigger));--ptc-menuitem-fg: rgba(var(--pt-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected).pc_sub_menu__trigger:active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle));--ptc-menuitem-fg: rgba(var(--pt-primary-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):hover,.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled)[data-highlighted],.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled)[data-hover]{--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):active:not(:has(.pc_menu_item:active)){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-trigger));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled){--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):not(:hover):not(:active){--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-danger-fg))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):hover{--ptc-menuitem-bg: rgba(var(--pt-danger-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-danger-fg-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):active{--ptc-menuitem-bg: rgba(var(--pt-danger-fill-subtle-trigger));--ptc-menuitem-fg: rgba(var(--pt-danger-fg-trigger))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--disabled{cursor:not-allowed;--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-disable-fg));--ptc-menuitem-description: rgba(var(--pt-disable-fg))}.pc_menu_item.pc_menu_item--static-style{--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item>.pc_menu_item__content{display:flex;flex-direction:column;flex:1 1 0%;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_menu_item>.pc_menu_item__content>.pc_menu_item__description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ptc-menuitem-description)}.pc_menu_item>.pc_menu_item__content>.pc_menu_item__title{color:var(--ptc-menuitem-fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_menu_item.pc_menu_item--hover-trailing .pc_menu_item__trailing{display:none}.pc_menu_item.pc_menu_item--hover-trailing:hover .pc_menu_item__trailing{display:flex}.pc_menu_item:not(.pc_menu_item--disabled):not(.pc_menu_item--static-style){cursor:pointer}.pc_menu_item.pc_menu_item--sm{gap:var(--pt-dimension-200, 4px);border-radius:var(--pt-roundness-sm, 4px);padding:var(--pt-dimension-200, 4px)}.pc_menu_item.pc_menu_item--sm:not(.pc_menu_item--description){height:var(--pt-dimension-1200, 24px);min-height:var(--pt-dimension-1200, 24px);max-height:var(--pt-dimension-1200, 24px)}.pc_menu_item.pc_menu_item--sm.pc_menu_item--description{height:42px;min-height:42px;max-height:42px}.pc_menu_item.pc_menu_item--sm>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item.pc_menu_item--md{gap:var(--pt-dimension-200, 4px);border-radius:var(--pt-roundness-md, 6px);padding:var(--pt-dimension-300, 6px)}.pc_menu_item.pc_menu_item--md:not(.pc_menu_item--description){height:var(--pt-dimension-1600, 32px);min-height:var(--pt-dimension-1600, 32px);max-height:var(--pt-dimension-1600, 32px)}.pc_menu_item.pc_menu_item--md.pc_menu_item--description{height:50px;min-height:50px;max-height:50px}.pc_menu_item.pc_menu_item--md>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_menu_item.pc_menu_item--md>.pc_menu_item__content>.pc_menu_item__description{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item.pc_menu_item--lg{gap:var(--pt-dimension-300, 6px);border-radius:var(--pt-roundness-lg, 8px);padding:var(--pt-dimension-400, 8px)}.pc_menu_item.pc_menu_item--lg:not(.pc_menu_item--description){height:var(--pt-dimension-2000, 40px);min-height:var(--pt-dimension-2000, 40px);max-height:var(--pt-dimension-2000, 40px)}.pc_menu_item.pc_menu_item--lg.pc_menu_item--description{height:54px;min-height:54px;max-height:54px}.pc_menu_item.pc_menu_item--lg>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_menu_item.pc_menu_item--lg>.pc_menu_item__content .pc_menu_item__description{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item>.pc_menu_item__leading{color:var(--ptc-menuitem-fg);height:100%;display:flex}.pc_menu_item>.pc_menu_item__leading>.pc_menu_item__leading_content{display:flex;align-items:center;gap:var(--pt-dimension-200, 4px)}.pc_menu_item>.pc_menu_item__branch{--ptu-text-opacity:1;color:rgba(var(--pt-gray-9),var(--ptu-text-opacity))}.pc_menu_item>.pc_menu_item__trailing{color:var(--ptc-menuitem-fg);display:flex;align-items:center;gap:var(--pt-dimension-200, 4px)}.pc_menu_item.pc_menu_item--leading-center>.pc_menu_item__leading{align-items:center}.pc_menu_item.pc_menu_item--leading-center>.pc_menu_item__leading>.pc_menu_item__leading_content{height:100%}.pc_menu_item:not(.pc_menu_item--un-focusable):not(.pc_menu_item--disabled):focus{--ptu-shadow:0 0 0 var(--pt-stroke-30) var(--ptu-shadow-color, var(--pt-shadow-color, rgba(var(--pt-focus-br))));box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow)}.pc_sub_menu{width:100%}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger.pc_menu_item--selected:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu__items{display:flex;flex-direction:column;gap:var(--pt-dimension-200, 4px)}.pc_sub_menu__items .pc_sub_menu,.pc_menu .pc_sub_menu{width:100%}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active) .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):hover .pc_menu_item,.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled)[data-highlighted] .pc_menu_item,.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled)[data-hover] .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):active .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active) .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):hover .pc_menu_item,.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled)[data-highlighted] .pc_menu_item,.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled)[data-hover] .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):active .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_tree__node.pc_tree__node--disabled .pc_menu_item{cursor:not-allowed;--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-disable-fg));--ptc-menuitem-description: rgba(var(--pt-disable-fg))}\n";
|
|
3
3
|
const menuItemId = `${prefix}s-menu_item`;
|
|
4
4
|
const addMenuItemCss = () => addCssToHead(menuItemId, cssText);
|
|
5
5
|
const removeMenuItemCss = () => removeCssFromHead(menuItemId);
|
package/dist/menu_item.umd.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const { addCssToHead, removeCssFromHead, prefix } = require("@pantograph/tokens");
|
|
4
|
-
const cssText = ".pc_menu_item{box-sizing:border-box;-webkit-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;outline:0;display:flex;align-items:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-property:all;background:var(--ptc-menuitem-bg)}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):not(:hover):not([data-highlighted]):not([data-hover]):not(:active){--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):hover,.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected)[data-highlighted],.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected)[data-hover]{--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):active:not(:has(.pc_sub_menu__items .pc_menu_item:active)){--ptc-menuitem-bg: rgba(var(--pt-bg-trigger));--ptc-menuitem-fg: rgba(var(--pt-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected).pc_sub_menu__trigger:active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle));--ptc-menuitem-fg: rgba(var(--pt-primary-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):hover,.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled)[data-highlighted],.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled)[data-hover]{--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):active:not(:has(.pc_menu_item:active)){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-trigger));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled){--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):not(:hover):not(:active){--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-danger-fg))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):hover{--ptc-menuitem-bg: rgba(var(--pt-danger-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-danger-fg-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):active{--ptc-menuitem-bg: rgba(var(--pt-danger-fill-subtle-trigger));--ptc-menuitem-fg: rgba(var(--pt-danger-fg-trigger))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--disabled{cursor:not-allowed;--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-disable-fg));--ptc-menuitem-description: rgba(var(--pt-disable-fg))}.pc_menu_item.pc_menu_item--static-style{--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item>.pc_menu_item__content{display:flex;flex-direction:column;flex:1 1 0%;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_menu_item>.pc_menu_item__content>.pc_menu_item__description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ptc-menuitem-description)}.pc_menu_item>.pc_menu_item__content>.pc_menu_item__title{color:var(--ptc-menuitem-fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_menu_item.pc_menu_item--hover-trailing .pc_menu_item__trailing{display:none}.pc_menu_item.pc_menu_item--hover-trailing:hover .pc_menu_item__trailing{display:inline-flex}.pc_menu_item:not(.pc_menu_item--disabled):not(.pc_menu_item--static-style){cursor:pointer}.pc_menu_item.pc_menu_item--sm{gap:var(--pt-dimension-200, 4px);border-radius:var(--pt-roundness-sm, 4px);padding:var(--pt-dimension-200, 4px)}.pc_menu_item.pc_menu_item--sm:not(.pc_menu_item--description){height:var(--pt-dimension-1200, 24px);min-height:var(--pt-dimension-1200, 24px);max-height:var(--pt-dimension-1200, 24px)}.pc_menu_item.pc_menu_item--sm.pc_menu_item--description{height:42px;min-height:42px;max-height:42px}.pc_menu_item.pc_menu_item--sm>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item.pc_menu_item--md{gap:var(--pt-dimension-200, 4px);border-radius:var(--pt-roundness-md, 6px);padding:var(--pt-dimension-300, 6px)}.pc_menu_item.pc_menu_item--md:not(.pc_menu_item--description){height:var(--pt-dimension-1600, 32px);min-height:var(--pt-dimension-1600, 32px);max-height:var(--pt-dimension-1600, 32px)}.pc_menu_item.pc_menu_item--md.pc_menu_item--description{height:50px;min-height:50px;max-height:50px}.pc_menu_item.pc_menu_item--md>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_menu_item.pc_menu_item--md>.pc_menu_item__content>.pc_menu_item__description{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item.pc_menu_item--lg{gap:var(--pt-dimension-300, 6px);border-radius:var(--pt-roundness-lg, 8px);padding:var(--pt-dimension-400, 8px)}.pc_menu_item.pc_menu_item--lg:not(.pc_menu_item--description){height:var(--pt-dimension-2000, 40px);min-height:var(--pt-dimension-2000, 40px);max-height:var(--pt-dimension-2000, 40px)}.pc_menu_item.pc_menu_item--lg.pc_menu_item--description{height:54px;min-height:54px;max-height:54px}.pc_menu_item.pc_menu_item--lg>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_menu_item.pc_menu_item--lg>.pc_menu_item__content .pc_menu_item__description{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item>.pc_menu_item__leading{color:var(--ptc-menuitem-fg);display:inline-block;height:100%}.pc_menu_item>.pc_menu_item__leading>.pc_menu_item__leading_content{display:inline-flex;align-items:center;gap:var(--pt-dimension-200, 4px)}.pc_menu_item>.pc_menu_item__branch{--ptu-text-opacity:1;color:rgba(var(--pt-gray-9),var(--ptu-text-opacity))}.pc_menu_item>.pc_menu_item__trailing{color:var(--ptc-menuitem-fg);display:inline-flex;align-items:center;gap:var(--pt-dimension-200, 4px)}.pc_menu_item.pc_menu_item--leading-center>.pc_menu_item__leading{align-items:center}.pc_menu_item.pc_menu_item--leading-center>.pc_menu_item__leading>.pc_menu_item__leading_content{height:100%}.pc_menu_item:not(.pc_menu_item--un-focusable):not(.pc_menu_item--disabled):focus{--ptu-shadow:0 0 0 var(--pt-stroke-30) var(--ptu-shadow-color, var(--pt-shadow-color, rgba(var(--pt-focus-br))));box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow)}.pc_sub_menu{width:100%}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger.pc_menu_item--selected:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu__items{display:flex;flex-direction:column;gap:var(--pt-dimension-200, 4px)}.pc_sub_menu__items .pc_sub_menu,.pc_menu .pc_sub_menu{width:100%}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active) .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):hover .pc_menu_item,.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled)[data-highlighted] .pc_menu_item,.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled)[data-hover] .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):active .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active) .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):hover .pc_menu_item,.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled)[data-highlighted] .pc_menu_item,.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled)[data-hover] .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):active .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_tree__node.pc_tree__node--disabled .pc_menu_item{cursor:not-allowed;--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-disable-fg));--ptc-menuitem-description: rgba(var(--pt-disable-fg))}\n";
|
|
4
|
+
const cssText = ".pc_menu_item{box-sizing:border-box;-webkit-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;outline:0;display:flex;align-items:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-property:all;background:var(--ptc-menuitem-bg)}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):not(:hover):not([data-highlighted]):not([data-hover]):not(:active){--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):hover,.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected)[data-highlighted],.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected)[data-hover]{--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):active:not(:has(.pc_sub_menu__items .pc_menu_item:active)){--ptc-menuitem-bg: rgba(var(--pt-bg-trigger));--ptc-menuitem-fg: rgba(var(--pt-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_menu_item:not(.pc_menu_item--static-style):not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected).pc_sub_menu__trigger:active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle));--ptc-menuitem-fg: rgba(var(--pt-primary-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):hover,.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled)[data-highlighted],.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled)[data-hover]{--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--selected:not(.pc_menu_item--danger):not(.pc_menu_item--disabled):active:not(:has(.pc_menu_item:active)){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-trigger));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled){--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):not(:hover):not(:active){--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-danger-fg))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):hover{--ptc-menuitem-bg: rgba(var(--pt-danger-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-danger-fg-target))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--danger:not(.pc_menu_item--disabled):active{--ptc-menuitem-bg: rgba(var(--pt-danger-fill-subtle-trigger));--ptc-menuitem-fg: rgba(var(--pt-danger-fg-trigger))}.pc_menu_item:not(.pc_menu_item--static-style).pc_menu_item--disabled{cursor:not-allowed;--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-disable-fg));--ptc-menuitem-description: rgba(var(--pt-disable-fg))}.pc_menu_item.pc_menu_item--static-style{--ptc-menuitem-bg: var(--pt-alpha-gray-0);--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_menu_item>.pc_menu_item__content{display:flex;flex-direction:column;flex:1 1 0%;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_menu_item>.pc_menu_item__content>.pc_menu_item__description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ptc-menuitem-description)}.pc_menu_item>.pc_menu_item__content>.pc_menu_item__title{color:var(--ptc-menuitem-fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_menu_item.pc_menu_item--hover-trailing .pc_menu_item__trailing{display:none}.pc_menu_item.pc_menu_item--hover-trailing:hover .pc_menu_item__trailing{display:flex}.pc_menu_item:not(.pc_menu_item--disabled):not(.pc_menu_item--static-style){cursor:pointer}.pc_menu_item.pc_menu_item--sm{gap:var(--pt-dimension-200, 4px);border-radius:var(--pt-roundness-sm, 4px);padding:var(--pt-dimension-200, 4px)}.pc_menu_item.pc_menu_item--sm:not(.pc_menu_item--description){height:var(--pt-dimension-1200, 24px);min-height:var(--pt-dimension-1200, 24px);max-height:var(--pt-dimension-1200, 24px)}.pc_menu_item.pc_menu_item--sm.pc_menu_item--description{height:42px;min-height:42px;max-height:42px}.pc_menu_item.pc_menu_item--sm>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item.pc_menu_item--md{gap:var(--pt-dimension-200, 4px);border-radius:var(--pt-roundness-md, 6px);padding:var(--pt-dimension-300, 6px)}.pc_menu_item.pc_menu_item--md:not(.pc_menu_item--description){height:var(--pt-dimension-1600, 32px);min-height:var(--pt-dimension-1600, 32px);max-height:var(--pt-dimension-1600, 32px)}.pc_menu_item.pc_menu_item--md.pc_menu_item--description{height:50px;min-height:50px;max-height:50px}.pc_menu_item.pc_menu_item--md>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_menu_item.pc_menu_item--md>.pc_menu_item__content>.pc_menu_item__description{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item.pc_menu_item--lg{gap:var(--pt-dimension-300, 6px);border-radius:var(--pt-roundness-lg, 8px);padding:var(--pt-dimension-400, 8px)}.pc_menu_item.pc_menu_item--lg:not(.pc_menu_item--description){height:var(--pt-dimension-2000, 40px);min-height:var(--pt-dimension-2000, 40px);max-height:var(--pt-dimension-2000, 40px)}.pc_menu_item.pc_menu_item--lg.pc_menu_item--description{height:54px;min-height:54px;max-height:54px}.pc_menu_item.pc_menu_item--lg>.pc_menu_item__content{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_menu_item.pc_menu_item--lg>.pc_menu_item__content .pc_menu_item__description{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_menu_item>.pc_menu_item__leading{color:var(--ptc-menuitem-fg);height:100%;display:flex}.pc_menu_item>.pc_menu_item__leading>.pc_menu_item__leading_content{display:flex;align-items:center;gap:var(--pt-dimension-200, 4px)}.pc_menu_item>.pc_menu_item__branch{--ptu-text-opacity:1;color:rgba(var(--pt-gray-9),var(--ptu-text-opacity))}.pc_menu_item>.pc_menu_item__trailing{color:var(--ptc-menuitem-fg);display:flex;align-items:center;gap:var(--pt-dimension-200, 4px)}.pc_menu_item.pc_menu_item--leading-center>.pc_menu_item__leading{align-items:center}.pc_menu_item.pc_menu_item--leading-center>.pc_menu_item__leading>.pc_menu_item__leading_content{height:100%}.pc_menu_item:not(.pc_menu_item--un-focusable):not(.pc_menu_item--disabled):focus{--ptu-shadow:0 0 0 var(--pt-stroke-30) var(--ptu-shadow-color, var(--pt-shadow-color, rgba(var(--pt-focus-br))));box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow)}.pc_sub_menu{width:100%}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):not(.pc_menu_item--selected):active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-bg-target));--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu[data-state=open]>.pc_sub_menu__trigger.pc_menu_item--selected:not(.pc_menu_item--disabled):not(.pc_menu_item--danger):active:has(.pc_sub_menu__items .pc_menu_item:active){--ptc-menuitem-bg: rgba(var(--pt-primary-fill-subtle-target));--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_sub_menu__items{display:flex;flex-direction:column;gap:var(--pt-dimension-200, 4px)}.pc_sub_menu__items .pc_sub_menu,.pc_menu .pc_sub_menu{width:100%}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active) .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):hover .pc_menu_item,.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled)[data-highlighted] .pc_menu_item,.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled)[data-hover] .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_tree__node:not(.pc_tree__node--active):not(.pc_tree__node--disabled):active .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):not(:hover):not([data-highlighted]):not([data-hover]):not(:active) .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg));--ptc-menuitem-description: rgba(var(--pt-fg-subtle))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):hover .pc_menu_item,.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled)[data-highlighted] .pc_menu_item,.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled)[data-hover] .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg-target));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-target))}.pc_tree__node.pc_tree__node--active:not(.pc_tree__node--disabled):active .pc_menu_item{--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-primary-fg-trigger));--ptc-menuitem-description: rgba(var(--pt-fg-subtle-trigger))}.pc_tree__node.pc_tree__node--disabled .pc_menu_item{cursor:not-allowed;--ptc-menuitem-bg: transparent;--ptc-menuitem-fg: rgba(var(--pt-disable-fg));--ptc-menuitem-description: rgba(var(--pt-disable-fg))}\n";
|
|
5
5
|
const menuItemId = `${prefix}s-menu_item`;
|
|
6
6
|
const addMenuItemCss = () => addCssToHead(menuItemId, cssText);
|
|
7
7
|
const removeMenuItemCss = () => removeCssFromHead(menuItemId);
|
package/dist/popover.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.pc_popover__content{box-sizing:border-box;border-width:var(--pt-stroke-10, 1px);--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);max-height:var(--reka-popover-content-available-height);max-width:var(--reka-popover-content-available-width);outline:0}.pc_popover__content--sm{border-radius:var(--pt-roundness-sm, 4px)}.pc_popover__content--sm:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-200, 4px)}.pc_popover__content--md{border-radius:var(--pt-roundness-md, 6px)}.pc_popover__content--md:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-300, 6px)}.pc_popover__content--lg{border-radius:var(--pt-roundness-lg, 8px)}.pc_popover__content--lg:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-400, 8px)}.pc_popover__content.pc_popover__content--no-padding{padding:var(--pt-dimension-0, 0px)}
|
|
1
|
+
.pc_popover__trigger.pc_popover__trigger--inline-block{display:inline-block}.pc_popover__content{box-sizing:border-box;border-width:var(--pt-stroke-10, 1px);--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);max-height:var(--reka-popover-content-available-height);max-width:var(--reka-popover-content-available-width);outline:0}.pc_popover__content--sm{border-radius:var(--pt-roundness-sm, 4px)}.pc_popover__content--sm:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-200, 4px)}.pc_popover__content--md{border-radius:var(--pt-roundness-md, 6px)}.pc_popover__content--md:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-300, 6px)}.pc_popover__content--lg{border-radius:var(--pt-roundness-lg, 8px)}.pc_popover__content--lg:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-400, 8px)}.pc_popover__content.pc_popover__content--no-padding{padding:var(--pt-dimension-0, 0px)}
|
package/dist/popover.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { addCssToHead, removeCssFromHead, prefix } from "@pantograph/tokens";
|
|
2
|
-
const cssText = ".pc_popover__content{box-sizing:border-box;border-width:var(--pt-stroke-10, 1px);--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);max-height:var(--reka-popover-content-available-height);max-width:var(--reka-popover-content-available-width);outline:0}.pc_popover__content--sm{border-radius:var(--pt-roundness-sm, 4px)}.pc_popover__content--sm:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-200, 4px)}.pc_popover__content--md{border-radius:var(--pt-roundness-md, 6px)}.pc_popover__content--md:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-300, 6px)}.pc_popover__content--lg{border-radius:var(--pt-roundness-lg, 8px)}.pc_popover__content--lg:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-400, 8px)}.pc_popover__content.pc_popover__content--no-padding{padding:var(--pt-dimension-0, 0px)}\n";
|
|
2
|
+
const cssText = ".pc_popover__trigger.pc_popover__trigger--inline-block{display:inline-block}.pc_popover__content{box-sizing:border-box;border-width:var(--pt-stroke-10, 1px);--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);max-height:var(--reka-popover-content-available-height);max-width:var(--reka-popover-content-available-width);outline:0}.pc_popover__content--sm{border-radius:var(--pt-roundness-sm, 4px)}.pc_popover__content--sm:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-200, 4px)}.pc_popover__content--md{border-radius:var(--pt-roundness-md, 6px)}.pc_popover__content--md:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-300, 6px)}.pc_popover__content--lg{border-radius:var(--pt-roundness-lg, 8px)}.pc_popover__content--lg:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-400, 8px)}.pc_popover__content.pc_popover__content--no-padding{padding:var(--pt-dimension-0, 0px)}\n";
|
|
3
3
|
const popoverId = `${prefix}s-popover`;
|
|
4
4
|
const addPopoverCss = () => addCssToHead(popoverId, cssText);
|
|
5
5
|
const removePopoverCss = () => removeCssFromHead(popoverId);
|
package/dist/popover.umd.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const { addCssToHead, removeCssFromHead, prefix } = require("@pantograph/tokens");
|
|
4
|
-
const cssText = ".pc_popover__content{box-sizing:border-box;border-width:var(--pt-stroke-10, 1px);--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);max-height:var(--reka-popover-content-available-height);max-width:var(--reka-popover-content-available-width);outline:0}.pc_popover__content--sm{border-radius:var(--pt-roundness-sm, 4px)}.pc_popover__content--sm:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-200, 4px)}.pc_popover__content--md{border-radius:var(--pt-roundness-md, 6px)}.pc_popover__content--md:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-300, 6px)}.pc_popover__content--lg{border-radius:var(--pt-roundness-lg, 8px)}.pc_popover__content--lg:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-400, 8px)}.pc_popover__content.pc_popover__content--no-padding{padding:var(--pt-dimension-0, 0px)}\n";
|
|
4
|
+
const cssText = ".pc_popover__trigger.pc_popover__trigger--inline-block{display:inline-block}.pc_popover__content{box-sizing:border-box;border-width:var(--pt-stroke-10, 1px);--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);max-height:var(--reka-popover-content-available-height);max-width:var(--reka-popover-content-available-width);outline:0}.pc_popover__content--sm{border-radius:var(--pt-roundness-sm, 4px)}.pc_popover__content--sm:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-200, 4px)}.pc_popover__content--md{border-radius:var(--pt-roundness-md, 6px)}.pc_popover__content--md:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-300, 6px)}.pc_popover__content--lg{border-radius:var(--pt-roundness-lg, 8px)}.pc_popover__content--lg:not(.pc_popover__content--no-padding){padding:var(--pt-dimension-400, 8px)}.pc_popover__content.pc_popover__content--no-padding{padding:var(--pt-dimension-0, 0px)}\n";
|
|
5
5
|
const popoverId = `${prefix}s-popover`;
|
|
6
6
|
const addPopoverCss = () => addCssToHead(popoverId, cssText);
|
|
7
7
|
const removePopoverCss = () => removeCssFromHead(popoverId);
|
package/dist/progress.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@keyframes indeterminate-loop-ltr{0%{transform:translate(-100%)}to{transform:translate(300%)}}@keyframes indeterminate-loop-rtl{0%{transform:translate(100%)}to{transform:translate(-300%)}}.pc_progress{display:flex;flex-direction:column;gap:var(--pt-dimension-200, 4px)}.pc_progress.pc_progress--circle{width:fit-content;display:inline-flex;align-items:center;justify-content:center}.pc_progress.pc_progress--line{width:100%;display:flex}.pc_progress.pc_progress--progress{--ptu-text-opacity:1;color:rgba(var(--pt-primary-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--error{--ptu-text-opacity:1;color:rgba(var(--pt-danger-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--warning{--ptu-text-opacity:1;color:rgba(var(--pt-warning-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--success{--ptu-text-opacity:1;color:rgba(var(--pt-success-fill),var(--ptu-text-opacity))}.pc_progress .pc_progress__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_progress .pc_progress__helper_text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--ptu-text-opacity:1;color:rgba(var(--pt-fg-subtle),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_progress .pc_progress__legend{display:flex;gap:var(--pt-dimension-300, 6px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_progress .pc_progress__legend .pc_progress__legend__item{display:flex;align-items:center;gap:var(--pt-dimension-100, 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__indicator{width:var(--pt-dimension-300, 6px);height:var(--pt-dimension-300, 6px);min-width:var(--pt-dimension-300, 6px);max-width:var(--pt-dimension-300, 6px);min-height:var(--pt-dimension-300, 6px);max-height:var(--pt-dimension-300, 6px);border-radius:var(--pt-roundness-full, 88px)}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__title{--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity))}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__percent{--ptu-text-opacity:1;color:rgba(var(--pt-fg-subtle),var(--ptu-text-opacity))}.pc_progress .pc_progress__circle{position:relative;aspect-ratio:1/1}.pc_progress .pc_progress__circle.pc_progress__circle--2xsm{width:var(--pt-dimension-800, 16px);height:var(--pt-dimension-800, 16px);min-width:var(--pt-dimension-800, 16px);min-height:var(--pt-dimension-800, 16px);max-width:var(--pt-dimension-800, 16px);max-height:var(--pt-dimension-800, 16px);--ptc-progress-content-offset: var(--pt-dimension-050)}.pc_progress .pc_progress__circle.pc_progress__circle--xsm{width:var(--pt-dimension-1000, 20px);height:var(--pt-dimension-1000, 20px);min-height:var(--pt-dimension-1000, 20px);max-height:var(--pt-dimension-1000, 20px);min-width:var(--pt-dimension-1000, 20px);max-width:var(--pt-dimension-1000, 20px);--ptc-progress-content-offset: var(--pt-dimension-150)}.pc_progress .pc_progress__circle.pc_progress__circle--sm{width:var(--pt-dimension-1200, 24px);height:var(--pt-dimension-1200, 24px);min-height:var(--pt-dimension-1200, 24px);max-height:var(--pt-dimension-1200, 24px);min-width:var(--pt-dimension-1200, 24px);max-width:var(--pt-dimension-1200, 24px);--ptc-progress-content-offset: var(--pt-dimension-200)}.pc_progress .pc_progress__circle.pc_progress__circle--md{width:var(--pt-dimension-1600, 32px);height:var(--pt-dimension-1600, 32px);min-height:var(--pt-dimension-1600, 32px);max-height:var(--pt-dimension-1600, 32px);min-width:var(--pt-dimension-1600, 32px);max-width:var(--pt-dimension-1600, 32px);--ptc-progress-content-offset: var(--pt-dimension-300)}.pc_progress .pc_progress__circle.pc_progress__circle--lg{width:var(--pt-dimension-2000, 40px);height:var(--pt-dimension-2000, 40px);min-height:var(--pt-dimension-2000, 40px);max-height:var(--pt-dimension-2000, 40px);min-width:var(--pt-dimension-2000, 40px);max-width:var(--pt-dimension-2000, 40px);--ptc-progress-content-offset: var(--pt-dimension-400)}.pc_progress .pc_progress__circle .pc_progress__circle__path.pc_progress__circle__path--trail{--ptu-stroke-opacity:1;stroke:rgba(var(--pt-gray-fill-subtle),var(--ptu-stroke-opacity))}.pc_progress .pc_progress__circle .pc_progress__circle__path.pc_progress__circle__path--indeterminate{--ptu-text-opacity:1;color:rgba(var(--pt-primary-5),var(--ptu-text-opacity))}.pc_progress .pc_progress__circle .pc_progress__circle__content{position:absolute;box-sizing:border-box;aspect-ratio:1/1;overflow:hidden;--ptc-progress-circle-content-size: calc(100% - calc(var(--ptc-progress-content-offset) * 2));width:var(--ptc-progress-circle-content-size);min-width:var(--ptc-progress-circle-content-size);max-width:var(--ptc-progress-circle-content-size);top:var(--ptc-progress-content-offset);inset-inline-start:var(--ptc-progress-content-offset)}.pc_progress .pc_progress__line{box-sizing:border-box;width:100%;height:var(--pt-dimension-200, 4px);min-height:var(--pt-dimension-200, 4px);max-height:var(--pt-dimension-200, 4px);overflow:hidden;--ptu-bg-opacity:1;background-color:rgba(var(--pt-gray-fill-subtle),var(--ptu-bg-opacity))}.pc_progress .pc_progress__line:not(.pc_progress__line--not-rounded){border-radius:var(--pt-roundness-full, 88px)}.pc_progress .pc_progress__line:not(.pc_progress__line--indeterminate) .pc_progress__line__value{width:var(--pt-dimension-0, 0px);min-width:var(--pt-dimension-0, 0px)}.pc_progress .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{width:33.3333333333%;min-width:33.3333333333%;max-width:33.3333333333%;border-radius:var(--pt-roundness-full, 88px);--ptu-bg-opacity:1;background-color:rgba(var(--pt-primary-5),var(--ptu-bg-opacity))}.pc_progress .pc_progress__line .pc_progress__line__value{box-sizing:border-box;height:100%;display:flex;overflow:hidden}.pc_progress .pc_progress__line .pc_progress__line__value .pc_progress__line__value__step{height:100%}.pc_progress:not(.pc_progress--no-transition) .pc_progress__line:not(.pc_progress__line--indeterminate) .pc_progress__line__value{transition-timing-function:linear;transition:width;transition-duration:calc(var(--ptc-progress-animation-duration) * 1s)}.pc_progress:not(.pc_progress--no-transition) .pc_progress__circle .pc_progress__circle__path:not(.pc_progress__circle__path--trail):not(.pc_progress__circle__path--indeterminate){transition-timing-function:linear;transition:stroke-dashoffset calc(var(--ptc-progress-animation-duration) * 1s),stroke-dasharray calc(var(--ptc-progress-animation-duration) * 1s),stroke calc(var(--ptc-progress-animation-duration) * 1s),stroke-width .06s calc(var(--ptc-progress-animation-duration) * 1s),opacity calc(var(--ptc-progress-animation-duration) * 1s)}.pc_progress .pc_progress__line_content{width:100%;display:flex;align-items:center;justify-content:space-between;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__line_validation_box{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__line_validation_box .pc_progress__divider{min-height:var(--pt-dimension-400, 8px);height:var(--pt-dimension-400, 8px);max-height:var(--pt-dimension-400, 8px)}.pc_progress[dir=rtl] .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{animation:indeterminate-loop-rtl infinite calc(var(--ptc-progress-animation-duration) * 2s) linear}.pc_progress[dir=ltr] .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{animation:indeterminate-loop-ltr infinite calc(var(--ptc-progress-animation-duration) * 2s) linear}
|
|
1
|
+
@keyframes indeterminate-loop-ltr{0%{transform:translate(-100%)}to{transform:translate(300%)}}@keyframes indeterminate-loop-rtl{0%{transform:translate(100%)}to{transform:translate(-300%)}}.pc_progress{display:flex;flex-direction:column;gap:var(--pt-dimension-200, 4px)}.pc_progress.pc_progress--circle{width:fit-content;display:inline-flex;align-items:center;justify-content:center}.pc_progress.pc_progress--line{width:100%;display:flex}.pc_progress.pc_progress--progress{--ptu-text-opacity:1;color:rgba(var(--pt-primary-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--error{--ptu-text-opacity:1;color:rgba(var(--pt-danger-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--warning{--ptu-text-opacity:1;color:rgba(var(--pt-warning-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--success{--ptu-text-opacity:1;color:rgba(var(--pt-success-fill),var(--ptu-text-opacity))}.pc_progress .pc_progress__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_progress .pc_progress__helper_text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--ptu-text-opacity:1;color:rgba(var(--pt-fg-subtle),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_progress .pc_progress__legend{display:flex;gap:var(--pt-dimension-300, 6px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_progress .pc_progress__legend .pc_progress__legend__item{display:flex;align-items:center;gap:var(--pt-dimension-100, 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__indicator{width:var(--pt-dimension-300, 6px);height:var(--pt-dimension-300, 6px);min-width:var(--pt-dimension-300, 6px);max-width:var(--pt-dimension-300, 6px);min-height:var(--pt-dimension-300, 6px);max-height:var(--pt-dimension-300, 6px);border-radius:var(--pt-roundness-full, 88px)}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__title{--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity))}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__percent{--ptu-text-opacity:1;color:rgba(var(--pt-fg-subtle),var(--ptu-text-opacity))}.pc_progress .pc_progress__circle{position:relative;aspect-ratio:1/1}.pc_progress .pc_progress__circle.pc_progress__circle--2xsm{width:var(--pt-dimension-800, 16px);height:var(--pt-dimension-800, 16px);min-width:var(--pt-dimension-800, 16px);min-height:var(--pt-dimension-800, 16px);max-width:var(--pt-dimension-800, 16px);max-height:var(--pt-dimension-800, 16px);--ptc-progress-content-offset: var(--pt-dimension-050)}.pc_progress .pc_progress__circle.pc_progress__circle--3xsm{width:var(--pt-dimension-700, 14px);height:var(--pt-dimension-700, 14px);min-width:var(--pt-dimension-700, 14px);min-height:var(--pt-dimension-700, 14px);max-width:var(--pt-dimension-700, 14px);max-height:var(--pt-dimension-700, 14px);--ptc-progress-content-offset: var(--pt-dimension-050)}.pc_progress .pc_progress__circle.pc_progress__circle--xsm{width:var(--pt-dimension-1000, 20px);height:var(--pt-dimension-1000, 20px);min-height:var(--pt-dimension-1000, 20px);max-height:var(--pt-dimension-1000, 20px);min-width:var(--pt-dimension-1000, 20px);max-width:var(--pt-dimension-1000, 20px);--ptc-progress-content-offset: var(--pt-dimension-150)}.pc_progress .pc_progress__circle.pc_progress__circle--sm{width:var(--pt-dimension-1200, 24px);height:var(--pt-dimension-1200, 24px);min-height:var(--pt-dimension-1200, 24px);max-height:var(--pt-dimension-1200, 24px);min-width:var(--pt-dimension-1200, 24px);max-width:var(--pt-dimension-1200, 24px);--ptc-progress-content-offset: var(--pt-dimension-200)}.pc_progress .pc_progress__circle.pc_progress__circle--md{width:var(--pt-dimension-1600, 32px);height:var(--pt-dimension-1600, 32px);min-height:var(--pt-dimension-1600, 32px);max-height:var(--pt-dimension-1600, 32px);min-width:var(--pt-dimension-1600, 32px);max-width:var(--pt-dimension-1600, 32px);--ptc-progress-content-offset: var(--pt-dimension-300)}.pc_progress .pc_progress__circle.pc_progress__circle--lg{width:var(--pt-dimension-2000, 40px);height:var(--pt-dimension-2000, 40px);min-height:var(--pt-dimension-2000, 40px);max-height:var(--pt-dimension-2000, 40px);min-width:var(--pt-dimension-2000, 40px);max-width:var(--pt-dimension-2000, 40px);--ptc-progress-content-offset: var(--pt-dimension-400)}.pc_progress .pc_progress__circle .pc_progress__circle__path.pc_progress__circle__path--trail{--ptu-stroke-opacity:1;stroke:rgba(var(--pt-gray-fill-subtle),var(--ptu-stroke-opacity))}.pc_progress .pc_progress__circle .pc_progress__circle__path.pc_progress__circle__path--indeterminate{--ptu-text-opacity:1;color:rgba(var(--pt-primary-5),var(--ptu-text-opacity))}.pc_progress .pc_progress__circle .pc_progress__circle__content{position:absolute;box-sizing:border-box;aspect-ratio:1/1;display:flex;overflow:hidden;--ptc-progress-circle-content-size: calc(100% - calc(var(--ptc-progress-content-offset) * 2));width:var(--ptc-progress-circle-content-size);min-width:var(--ptc-progress-circle-content-size);max-width:var(--ptc-progress-circle-content-size);top:var(--ptc-progress-content-offset);inset-inline-start:var(--ptc-progress-content-offset)}.pc_progress .pc_progress__line{box-sizing:border-box;width:100%;height:var(--pt-dimension-200, 4px);min-height:var(--pt-dimension-200, 4px);max-height:var(--pt-dimension-200, 4px);overflow:hidden;--ptu-bg-opacity:1;background-color:rgba(var(--pt-gray-fill-subtle),var(--ptu-bg-opacity))}.pc_progress .pc_progress__line:not(.pc_progress__line--not-rounded){border-radius:var(--pt-roundness-full, 88px)}.pc_progress .pc_progress__line:not(.pc_progress__line--indeterminate) .pc_progress__line__value{width:var(--pt-dimension-0, 0px);min-width:var(--pt-dimension-0, 0px)}.pc_progress .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{width:33.3333333333%;min-width:33.3333333333%;max-width:33.3333333333%;border-radius:var(--pt-roundness-full, 88px);--ptu-bg-opacity:1;background-color:rgba(var(--pt-primary-5),var(--ptu-bg-opacity))}.pc_progress .pc_progress__line .pc_progress__line__value{box-sizing:border-box;height:100%;display:flex;overflow:hidden}.pc_progress .pc_progress__line .pc_progress__line__value .pc_progress__line__value__step{height:100%}.pc_progress:not(.pc_progress--no-transition) .pc_progress__line:not(.pc_progress__line--indeterminate) .pc_progress__line__value{transition-timing-function:linear;transition:width;transition-duration:calc(var(--ptc-progress-animation-duration) * 1s)}.pc_progress:not(.pc_progress--no-transition) .pc_progress__circle .pc_progress__circle__path:not(.pc_progress__circle__path--trail):not(.pc_progress__circle__path--indeterminate){transition-timing-function:linear;transition:stroke-dashoffset calc(var(--ptc-progress-animation-duration) * 1s),stroke-dasharray calc(var(--ptc-progress-animation-duration) * 1s),stroke calc(var(--ptc-progress-animation-duration) * 1s),stroke-width .06s calc(var(--ptc-progress-animation-duration) * 1s),opacity calc(var(--ptc-progress-animation-duration) * 1s)}.pc_progress .pc_progress__line_content{width:100%;display:flex;align-items:center;justify-content:space-between;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__line_validation_box{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__line_validation_box .pc_progress__divider{min-height:var(--pt-dimension-400, 8px);height:var(--pt-dimension-400, 8px);max-height:var(--pt-dimension-400, 8px)}.pc_progress[dir=rtl] .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{animation:indeterminate-loop-rtl infinite calc(var(--ptc-progress-animation-duration) * 2s) linear}.pc_progress[dir=ltr] .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{animation:indeterminate-loop-ltr infinite calc(var(--ptc-progress-animation-duration) * 2s) linear}
|
package/dist/progress.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { addCssToHead, removeCssFromHead, prefix } from "@pantograph/tokens";
|
|
2
|
-
const cssText = "@keyframes indeterminate-loop-ltr{0%{transform:translate(-100%)}to{transform:translate(300%)}}@keyframes indeterminate-loop-rtl{0%{transform:translate(100%)}to{transform:translate(-300%)}}.pc_progress{display:flex;flex-direction:column;gap:var(--pt-dimension-200, 4px)}.pc_progress.pc_progress--circle{width:fit-content;display:inline-flex;align-items:center;justify-content:center}.pc_progress.pc_progress--line{width:100%;display:flex}.pc_progress.pc_progress--progress{--ptu-text-opacity:1;color:rgba(var(--pt-primary-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--error{--ptu-text-opacity:1;color:rgba(var(--pt-danger-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--warning{--ptu-text-opacity:1;color:rgba(var(--pt-warning-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--success{--ptu-text-opacity:1;color:rgba(var(--pt-success-fill),var(--ptu-text-opacity))}.pc_progress .pc_progress__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_progress .pc_progress__helper_text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--ptu-text-opacity:1;color:rgba(var(--pt-fg-subtle),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_progress .pc_progress__legend{display:flex;gap:var(--pt-dimension-300, 6px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_progress .pc_progress__legend .pc_progress__legend__item{display:flex;align-items:center;gap:var(--pt-dimension-100, 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__indicator{width:var(--pt-dimension-300, 6px);height:var(--pt-dimension-300, 6px);min-width:var(--pt-dimension-300, 6px);max-width:var(--pt-dimension-300, 6px);min-height:var(--pt-dimension-300, 6px);max-height:var(--pt-dimension-300, 6px);border-radius:var(--pt-roundness-full, 88px)}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__title{--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity))}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__percent{--ptu-text-opacity:1;color:rgba(var(--pt-fg-subtle),var(--ptu-text-opacity))}.pc_progress .pc_progress__circle{position:relative;aspect-ratio:1/1}.pc_progress .pc_progress__circle.pc_progress__circle--2xsm{width:var(--pt-dimension-800, 16px);height:var(--pt-dimension-800, 16px);min-width:var(--pt-dimension-800, 16px);min-height:var(--pt-dimension-800, 16px);max-width:var(--pt-dimension-800, 16px);max-height:var(--pt-dimension-800, 16px);--ptc-progress-content-offset: var(--pt-dimension-050)}.pc_progress .pc_progress__circle.pc_progress__circle--xsm{width:var(--pt-dimension-1000, 20px);height:var(--pt-dimension-1000, 20px);min-height:var(--pt-dimension-1000, 20px);max-height:var(--pt-dimension-1000, 20px);min-width:var(--pt-dimension-1000, 20px);max-width:var(--pt-dimension-1000, 20px);--ptc-progress-content-offset: var(--pt-dimension-150)}.pc_progress .pc_progress__circle.pc_progress__circle--sm{width:var(--pt-dimension-1200, 24px);height:var(--pt-dimension-1200, 24px);min-height:var(--pt-dimension-1200, 24px);max-height:var(--pt-dimension-1200, 24px);min-width:var(--pt-dimension-1200, 24px);max-width:var(--pt-dimension-1200, 24px);--ptc-progress-content-offset: var(--pt-dimension-200)}.pc_progress .pc_progress__circle.pc_progress__circle--md{width:var(--pt-dimension-1600, 32px);height:var(--pt-dimension-1600, 32px);min-height:var(--pt-dimension-1600, 32px);max-height:var(--pt-dimension-1600, 32px);min-width:var(--pt-dimension-1600, 32px);max-width:var(--pt-dimension-1600, 32px);--ptc-progress-content-offset: var(--pt-dimension-300)}.pc_progress .pc_progress__circle.pc_progress__circle--lg{width:var(--pt-dimension-2000, 40px);height:var(--pt-dimension-2000, 40px);min-height:var(--pt-dimension-2000, 40px);max-height:var(--pt-dimension-2000, 40px);min-width:var(--pt-dimension-2000, 40px);max-width:var(--pt-dimension-2000, 40px);--ptc-progress-content-offset: var(--pt-dimension-400)}.pc_progress .pc_progress__circle .pc_progress__circle__path.pc_progress__circle__path--trail{--ptu-stroke-opacity:1;stroke:rgba(var(--pt-gray-fill-subtle),var(--ptu-stroke-opacity))}.pc_progress .pc_progress__circle .pc_progress__circle__path.pc_progress__circle__path--indeterminate{--ptu-text-opacity:1;color:rgba(var(--pt-primary-5),var(--ptu-text-opacity))}.pc_progress .pc_progress__circle .pc_progress__circle__content{position:absolute;box-sizing:border-box;aspect-ratio:1/1;overflow:hidden;--ptc-progress-circle-content-size: calc(100% - calc(var(--ptc-progress-content-offset) * 2));width:var(--ptc-progress-circle-content-size);min-width:var(--ptc-progress-circle-content-size);max-width:var(--ptc-progress-circle-content-size);top:var(--ptc-progress-content-offset);inset-inline-start:var(--ptc-progress-content-offset)}.pc_progress .pc_progress__line{box-sizing:border-box;width:100%;height:var(--pt-dimension-200, 4px);min-height:var(--pt-dimension-200, 4px);max-height:var(--pt-dimension-200, 4px);overflow:hidden;--ptu-bg-opacity:1;background-color:rgba(var(--pt-gray-fill-subtle),var(--ptu-bg-opacity))}.pc_progress .pc_progress__line:not(.pc_progress__line--not-rounded){border-radius:var(--pt-roundness-full, 88px)}.pc_progress .pc_progress__line:not(.pc_progress__line--indeterminate) .pc_progress__line__value{width:var(--pt-dimension-0, 0px);min-width:var(--pt-dimension-0, 0px)}.pc_progress .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{width:33.3333333333%;min-width:33.3333333333%;max-width:33.3333333333%;border-radius:var(--pt-roundness-full, 88px);--ptu-bg-opacity:1;background-color:rgba(var(--pt-primary-5),var(--ptu-bg-opacity))}.pc_progress .pc_progress__line .pc_progress__line__value{box-sizing:border-box;height:100%;display:flex;overflow:hidden}.pc_progress .pc_progress__line .pc_progress__line__value .pc_progress__line__value__step{height:100%}.pc_progress:not(.pc_progress--no-transition) .pc_progress__line:not(.pc_progress__line--indeterminate) .pc_progress__line__value{transition-timing-function:linear;transition:width;transition-duration:calc(var(--ptc-progress-animation-duration) * 1s)}.pc_progress:not(.pc_progress--no-transition) .pc_progress__circle .pc_progress__circle__path:not(.pc_progress__circle__path--trail):not(.pc_progress__circle__path--indeterminate){transition-timing-function:linear;transition:stroke-dashoffset calc(var(--ptc-progress-animation-duration) * 1s),stroke-dasharray calc(var(--ptc-progress-animation-duration) * 1s),stroke calc(var(--ptc-progress-animation-duration) * 1s),stroke-width .06s calc(var(--ptc-progress-animation-duration) * 1s),opacity calc(var(--ptc-progress-animation-duration) * 1s)}.pc_progress .pc_progress__line_content{width:100%;display:flex;align-items:center;justify-content:space-between;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__line_validation_box{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__line_validation_box .pc_progress__divider{min-height:var(--pt-dimension-400, 8px);height:var(--pt-dimension-400, 8px);max-height:var(--pt-dimension-400, 8px)}.pc_progress[dir=rtl] .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{animation:indeterminate-loop-rtl infinite calc(var(--ptc-progress-animation-duration) * 2s) linear}.pc_progress[dir=ltr] .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{animation:indeterminate-loop-ltr infinite calc(var(--ptc-progress-animation-duration) * 2s) linear}\n";
|
|
2
|
+
const cssText = "@keyframes indeterminate-loop-ltr{0%{transform:translate(-100%)}to{transform:translate(300%)}}@keyframes indeterminate-loop-rtl{0%{transform:translate(100%)}to{transform:translate(-300%)}}.pc_progress{display:flex;flex-direction:column;gap:var(--pt-dimension-200, 4px)}.pc_progress.pc_progress--circle{width:fit-content;display:inline-flex;align-items:center;justify-content:center}.pc_progress.pc_progress--line{width:100%;display:flex}.pc_progress.pc_progress--progress{--ptu-text-opacity:1;color:rgba(var(--pt-primary-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--error{--ptu-text-opacity:1;color:rgba(var(--pt-danger-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--warning{--ptu-text-opacity:1;color:rgba(var(--pt-warning-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--success{--ptu-text-opacity:1;color:rgba(var(--pt-success-fill),var(--ptu-text-opacity))}.pc_progress .pc_progress__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_progress .pc_progress__helper_text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--ptu-text-opacity:1;color:rgba(var(--pt-fg-subtle),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_progress .pc_progress__legend{display:flex;gap:var(--pt-dimension-300, 6px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_progress .pc_progress__legend .pc_progress__legend__item{display:flex;align-items:center;gap:var(--pt-dimension-100, 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__indicator{width:var(--pt-dimension-300, 6px);height:var(--pt-dimension-300, 6px);min-width:var(--pt-dimension-300, 6px);max-width:var(--pt-dimension-300, 6px);min-height:var(--pt-dimension-300, 6px);max-height:var(--pt-dimension-300, 6px);border-radius:var(--pt-roundness-full, 88px)}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__title{--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity))}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__percent{--ptu-text-opacity:1;color:rgba(var(--pt-fg-subtle),var(--ptu-text-opacity))}.pc_progress .pc_progress__circle{position:relative;aspect-ratio:1/1}.pc_progress .pc_progress__circle.pc_progress__circle--2xsm{width:var(--pt-dimension-800, 16px);height:var(--pt-dimension-800, 16px);min-width:var(--pt-dimension-800, 16px);min-height:var(--pt-dimension-800, 16px);max-width:var(--pt-dimension-800, 16px);max-height:var(--pt-dimension-800, 16px);--ptc-progress-content-offset: var(--pt-dimension-050)}.pc_progress .pc_progress__circle.pc_progress__circle--3xsm{width:var(--pt-dimension-700, 14px);height:var(--pt-dimension-700, 14px);min-width:var(--pt-dimension-700, 14px);min-height:var(--pt-dimension-700, 14px);max-width:var(--pt-dimension-700, 14px);max-height:var(--pt-dimension-700, 14px);--ptc-progress-content-offset: var(--pt-dimension-050)}.pc_progress .pc_progress__circle.pc_progress__circle--xsm{width:var(--pt-dimension-1000, 20px);height:var(--pt-dimension-1000, 20px);min-height:var(--pt-dimension-1000, 20px);max-height:var(--pt-dimension-1000, 20px);min-width:var(--pt-dimension-1000, 20px);max-width:var(--pt-dimension-1000, 20px);--ptc-progress-content-offset: var(--pt-dimension-150)}.pc_progress .pc_progress__circle.pc_progress__circle--sm{width:var(--pt-dimension-1200, 24px);height:var(--pt-dimension-1200, 24px);min-height:var(--pt-dimension-1200, 24px);max-height:var(--pt-dimension-1200, 24px);min-width:var(--pt-dimension-1200, 24px);max-width:var(--pt-dimension-1200, 24px);--ptc-progress-content-offset: var(--pt-dimension-200)}.pc_progress .pc_progress__circle.pc_progress__circle--md{width:var(--pt-dimension-1600, 32px);height:var(--pt-dimension-1600, 32px);min-height:var(--pt-dimension-1600, 32px);max-height:var(--pt-dimension-1600, 32px);min-width:var(--pt-dimension-1600, 32px);max-width:var(--pt-dimension-1600, 32px);--ptc-progress-content-offset: var(--pt-dimension-300)}.pc_progress .pc_progress__circle.pc_progress__circle--lg{width:var(--pt-dimension-2000, 40px);height:var(--pt-dimension-2000, 40px);min-height:var(--pt-dimension-2000, 40px);max-height:var(--pt-dimension-2000, 40px);min-width:var(--pt-dimension-2000, 40px);max-width:var(--pt-dimension-2000, 40px);--ptc-progress-content-offset: var(--pt-dimension-400)}.pc_progress .pc_progress__circle .pc_progress__circle__path.pc_progress__circle__path--trail{--ptu-stroke-opacity:1;stroke:rgba(var(--pt-gray-fill-subtle),var(--ptu-stroke-opacity))}.pc_progress .pc_progress__circle .pc_progress__circle__path.pc_progress__circle__path--indeterminate{--ptu-text-opacity:1;color:rgba(var(--pt-primary-5),var(--ptu-text-opacity))}.pc_progress .pc_progress__circle .pc_progress__circle__content{position:absolute;box-sizing:border-box;aspect-ratio:1/1;display:flex;overflow:hidden;--ptc-progress-circle-content-size: calc(100% - calc(var(--ptc-progress-content-offset) * 2));width:var(--ptc-progress-circle-content-size);min-width:var(--ptc-progress-circle-content-size);max-width:var(--ptc-progress-circle-content-size);top:var(--ptc-progress-content-offset);inset-inline-start:var(--ptc-progress-content-offset)}.pc_progress .pc_progress__line{box-sizing:border-box;width:100%;height:var(--pt-dimension-200, 4px);min-height:var(--pt-dimension-200, 4px);max-height:var(--pt-dimension-200, 4px);overflow:hidden;--ptu-bg-opacity:1;background-color:rgba(var(--pt-gray-fill-subtle),var(--ptu-bg-opacity))}.pc_progress .pc_progress__line:not(.pc_progress__line--not-rounded){border-radius:var(--pt-roundness-full, 88px)}.pc_progress .pc_progress__line:not(.pc_progress__line--indeterminate) .pc_progress__line__value{width:var(--pt-dimension-0, 0px);min-width:var(--pt-dimension-0, 0px)}.pc_progress .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{width:33.3333333333%;min-width:33.3333333333%;max-width:33.3333333333%;border-radius:var(--pt-roundness-full, 88px);--ptu-bg-opacity:1;background-color:rgba(var(--pt-primary-5),var(--ptu-bg-opacity))}.pc_progress .pc_progress__line .pc_progress__line__value{box-sizing:border-box;height:100%;display:flex;overflow:hidden}.pc_progress .pc_progress__line .pc_progress__line__value .pc_progress__line__value__step{height:100%}.pc_progress:not(.pc_progress--no-transition) .pc_progress__line:not(.pc_progress__line--indeterminate) .pc_progress__line__value{transition-timing-function:linear;transition:width;transition-duration:calc(var(--ptc-progress-animation-duration) * 1s)}.pc_progress:not(.pc_progress--no-transition) .pc_progress__circle .pc_progress__circle__path:not(.pc_progress__circle__path--trail):not(.pc_progress__circle__path--indeterminate){transition-timing-function:linear;transition:stroke-dashoffset calc(var(--ptc-progress-animation-duration) * 1s),stroke-dasharray calc(var(--ptc-progress-animation-duration) * 1s),stroke calc(var(--ptc-progress-animation-duration) * 1s),stroke-width .06s calc(var(--ptc-progress-animation-duration) * 1s),opacity calc(var(--ptc-progress-animation-duration) * 1s)}.pc_progress .pc_progress__line_content{width:100%;display:flex;align-items:center;justify-content:space-between;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__line_validation_box{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__line_validation_box .pc_progress__divider{min-height:var(--pt-dimension-400, 8px);height:var(--pt-dimension-400, 8px);max-height:var(--pt-dimension-400, 8px)}.pc_progress[dir=rtl] .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{animation:indeterminate-loop-rtl infinite calc(var(--ptc-progress-animation-duration) * 2s) linear}.pc_progress[dir=ltr] .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{animation:indeterminate-loop-ltr infinite calc(var(--ptc-progress-animation-duration) * 2s) linear}\n";
|
|
3
3
|
const progressId = `${prefix}s-progress`;
|
|
4
4
|
const addProgressCss = () => addCssToHead(progressId, cssText);
|
|
5
5
|
const removeProgressCss = () => removeCssFromHead(progressId);
|
package/dist/progress.umd.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const { addCssToHead, removeCssFromHead, prefix } = require("@pantograph/tokens");
|
|
4
|
-
const cssText = "@keyframes indeterminate-loop-ltr{0%{transform:translate(-100%)}to{transform:translate(300%)}}@keyframes indeterminate-loop-rtl{0%{transform:translate(100%)}to{transform:translate(-300%)}}.pc_progress{display:flex;flex-direction:column;gap:var(--pt-dimension-200, 4px)}.pc_progress.pc_progress--circle{width:fit-content;display:inline-flex;align-items:center;justify-content:center}.pc_progress.pc_progress--line{width:100%;display:flex}.pc_progress.pc_progress--progress{--ptu-text-opacity:1;color:rgba(var(--pt-primary-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--error{--ptu-text-opacity:1;color:rgba(var(--pt-danger-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--warning{--ptu-text-opacity:1;color:rgba(var(--pt-warning-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--success{--ptu-text-opacity:1;color:rgba(var(--pt-success-fill),var(--ptu-text-opacity))}.pc_progress .pc_progress__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_progress .pc_progress__helper_text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--ptu-text-opacity:1;color:rgba(var(--pt-fg-subtle),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_progress .pc_progress__legend{display:flex;gap:var(--pt-dimension-300, 6px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_progress .pc_progress__legend .pc_progress__legend__item{display:flex;align-items:center;gap:var(--pt-dimension-100, 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__indicator{width:var(--pt-dimension-300, 6px);height:var(--pt-dimension-300, 6px);min-width:var(--pt-dimension-300, 6px);max-width:var(--pt-dimension-300, 6px);min-height:var(--pt-dimension-300, 6px);max-height:var(--pt-dimension-300, 6px);border-radius:var(--pt-roundness-full, 88px)}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__title{--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity))}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__percent{--ptu-text-opacity:1;color:rgba(var(--pt-fg-subtle),var(--ptu-text-opacity))}.pc_progress .pc_progress__circle{position:relative;aspect-ratio:1/1}.pc_progress .pc_progress__circle.pc_progress__circle--2xsm{width:var(--pt-dimension-800, 16px);height:var(--pt-dimension-800, 16px);min-width:var(--pt-dimension-800, 16px);min-height:var(--pt-dimension-800, 16px);max-width:var(--pt-dimension-800, 16px);max-height:var(--pt-dimension-800, 16px);--ptc-progress-content-offset: var(--pt-dimension-050)}.pc_progress .pc_progress__circle.pc_progress__circle--xsm{width:var(--pt-dimension-1000, 20px);height:var(--pt-dimension-1000, 20px);min-height:var(--pt-dimension-1000, 20px);max-height:var(--pt-dimension-1000, 20px);min-width:var(--pt-dimension-1000, 20px);max-width:var(--pt-dimension-1000, 20px);--ptc-progress-content-offset: var(--pt-dimension-150)}.pc_progress .pc_progress__circle.pc_progress__circle--sm{width:var(--pt-dimension-1200, 24px);height:var(--pt-dimension-1200, 24px);min-height:var(--pt-dimension-1200, 24px);max-height:var(--pt-dimension-1200, 24px);min-width:var(--pt-dimension-1200, 24px);max-width:var(--pt-dimension-1200, 24px);--ptc-progress-content-offset: var(--pt-dimension-200)}.pc_progress .pc_progress__circle.pc_progress__circle--md{width:var(--pt-dimension-1600, 32px);height:var(--pt-dimension-1600, 32px);min-height:var(--pt-dimension-1600, 32px);max-height:var(--pt-dimension-1600, 32px);min-width:var(--pt-dimension-1600, 32px);max-width:var(--pt-dimension-1600, 32px);--ptc-progress-content-offset: var(--pt-dimension-300)}.pc_progress .pc_progress__circle.pc_progress__circle--lg{width:var(--pt-dimension-2000, 40px);height:var(--pt-dimension-2000, 40px);min-height:var(--pt-dimension-2000, 40px);max-height:var(--pt-dimension-2000, 40px);min-width:var(--pt-dimension-2000, 40px);max-width:var(--pt-dimension-2000, 40px);--ptc-progress-content-offset: var(--pt-dimension-400)}.pc_progress .pc_progress__circle .pc_progress__circle__path.pc_progress__circle__path--trail{--ptu-stroke-opacity:1;stroke:rgba(var(--pt-gray-fill-subtle),var(--ptu-stroke-opacity))}.pc_progress .pc_progress__circle .pc_progress__circle__path.pc_progress__circle__path--indeterminate{--ptu-text-opacity:1;color:rgba(var(--pt-primary-5),var(--ptu-text-opacity))}.pc_progress .pc_progress__circle .pc_progress__circle__content{position:absolute;box-sizing:border-box;aspect-ratio:1/1;overflow:hidden;--ptc-progress-circle-content-size: calc(100% - calc(var(--ptc-progress-content-offset) * 2));width:var(--ptc-progress-circle-content-size);min-width:var(--ptc-progress-circle-content-size);max-width:var(--ptc-progress-circle-content-size);top:var(--ptc-progress-content-offset);inset-inline-start:var(--ptc-progress-content-offset)}.pc_progress .pc_progress__line{box-sizing:border-box;width:100%;height:var(--pt-dimension-200, 4px);min-height:var(--pt-dimension-200, 4px);max-height:var(--pt-dimension-200, 4px);overflow:hidden;--ptu-bg-opacity:1;background-color:rgba(var(--pt-gray-fill-subtle),var(--ptu-bg-opacity))}.pc_progress .pc_progress__line:not(.pc_progress__line--not-rounded){border-radius:var(--pt-roundness-full, 88px)}.pc_progress .pc_progress__line:not(.pc_progress__line--indeterminate) .pc_progress__line__value{width:var(--pt-dimension-0, 0px);min-width:var(--pt-dimension-0, 0px)}.pc_progress .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{width:33.3333333333%;min-width:33.3333333333%;max-width:33.3333333333%;border-radius:var(--pt-roundness-full, 88px);--ptu-bg-opacity:1;background-color:rgba(var(--pt-primary-5),var(--ptu-bg-opacity))}.pc_progress .pc_progress__line .pc_progress__line__value{box-sizing:border-box;height:100%;display:flex;overflow:hidden}.pc_progress .pc_progress__line .pc_progress__line__value .pc_progress__line__value__step{height:100%}.pc_progress:not(.pc_progress--no-transition) .pc_progress__line:not(.pc_progress__line--indeterminate) .pc_progress__line__value{transition-timing-function:linear;transition:width;transition-duration:calc(var(--ptc-progress-animation-duration) * 1s)}.pc_progress:not(.pc_progress--no-transition) .pc_progress__circle .pc_progress__circle__path:not(.pc_progress__circle__path--trail):not(.pc_progress__circle__path--indeterminate){transition-timing-function:linear;transition:stroke-dashoffset calc(var(--ptc-progress-animation-duration) * 1s),stroke-dasharray calc(var(--ptc-progress-animation-duration) * 1s),stroke calc(var(--ptc-progress-animation-duration) * 1s),stroke-width .06s calc(var(--ptc-progress-animation-duration) * 1s),opacity calc(var(--ptc-progress-animation-duration) * 1s)}.pc_progress .pc_progress__line_content{width:100%;display:flex;align-items:center;justify-content:space-between;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__line_validation_box{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__line_validation_box .pc_progress__divider{min-height:var(--pt-dimension-400, 8px);height:var(--pt-dimension-400, 8px);max-height:var(--pt-dimension-400, 8px)}.pc_progress[dir=rtl] .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{animation:indeterminate-loop-rtl infinite calc(var(--ptc-progress-animation-duration) * 2s) linear}.pc_progress[dir=ltr] .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{animation:indeterminate-loop-ltr infinite calc(var(--ptc-progress-animation-duration) * 2s) linear}\n";
|
|
4
|
+
const cssText = "@keyframes indeterminate-loop-ltr{0%{transform:translate(-100%)}to{transform:translate(300%)}}@keyframes indeterminate-loop-rtl{0%{transform:translate(100%)}to{transform:translate(-300%)}}.pc_progress{display:flex;flex-direction:column;gap:var(--pt-dimension-200, 4px)}.pc_progress.pc_progress--circle{width:fit-content;display:inline-flex;align-items:center;justify-content:center}.pc_progress.pc_progress--line{width:100%;display:flex}.pc_progress.pc_progress--progress{--ptu-text-opacity:1;color:rgba(var(--pt-primary-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--error{--ptu-text-opacity:1;color:rgba(var(--pt-danger-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--warning{--ptu-text-opacity:1;color:rgba(var(--pt-warning-fill),var(--ptu-text-opacity))}.pc_progress.pc_progress--success{--ptu-text-opacity:1;color:rgba(var(--pt-success-fill),var(--ptu-text-opacity))}.pc_progress .pc_progress__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_progress .pc_progress__helper_text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--ptu-text-opacity:1;color:rgba(var(--pt-fg-subtle),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_progress .pc_progress__legend{display:flex;gap:var(--pt-dimension-300, 6px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_progress .pc_progress__legend .pc_progress__legend__item{display:flex;align-items:center;gap:var(--pt-dimension-100, 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__indicator{width:var(--pt-dimension-300, 6px);height:var(--pt-dimension-300, 6px);min-width:var(--pt-dimension-300, 6px);max-width:var(--pt-dimension-300, 6px);min-height:var(--pt-dimension-300, 6px);max-height:var(--pt-dimension-300, 6px);border-radius:var(--pt-roundness-full, 88px)}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__title{--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity))}.pc_progress .pc_progress__legend .pc_progress__legend__item .pc_progress__legend__item__percent{--ptu-text-opacity:1;color:rgba(var(--pt-fg-subtle),var(--ptu-text-opacity))}.pc_progress .pc_progress__circle{position:relative;aspect-ratio:1/1}.pc_progress .pc_progress__circle.pc_progress__circle--2xsm{width:var(--pt-dimension-800, 16px);height:var(--pt-dimension-800, 16px);min-width:var(--pt-dimension-800, 16px);min-height:var(--pt-dimension-800, 16px);max-width:var(--pt-dimension-800, 16px);max-height:var(--pt-dimension-800, 16px);--ptc-progress-content-offset: var(--pt-dimension-050)}.pc_progress .pc_progress__circle.pc_progress__circle--3xsm{width:var(--pt-dimension-700, 14px);height:var(--pt-dimension-700, 14px);min-width:var(--pt-dimension-700, 14px);min-height:var(--pt-dimension-700, 14px);max-width:var(--pt-dimension-700, 14px);max-height:var(--pt-dimension-700, 14px);--ptc-progress-content-offset: var(--pt-dimension-050)}.pc_progress .pc_progress__circle.pc_progress__circle--xsm{width:var(--pt-dimension-1000, 20px);height:var(--pt-dimension-1000, 20px);min-height:var(--pt-dimension-1000, 20px);max-height:var(--pt-dimension-1000, 20px);min-width:var(--pt-dimension-1000, 20px);max-width:var(--pt-dimension-1000, 20px);--ptc-progress-content-offset: var(--pt-dimension-150)}.pc_progress .pc_progress__circle.pc_progress__circle--sm{width:var(--pt-dimension-1200, 24px);height:var(--pt-dimension-1200, 24px);min-height:var(--pt-dimension-1200, 24px);max-height:var(--pt-dimension-1200, 24px);min-width:var(--pt-dimension-1200, 24px);max-width:var(--pt-dimension-1200, 24px);--ptc-progress-content-offset: var(--pt-dimension-200)}.pc_progress .pc_progress__circle.pc_progress__circle--md{width:var(--pt-dimension-1600, 32px);height:var(--pt-dimension-1600, 32px);min-height:var(--pt-dimension-1600, 32px);max-height:var(--pt-dimension-1600, 32px);min-width:var(--pt-dimension-1600, 32px);max-width:var(--pt-dimension-1600, 32px);--ptc-progress-content-offset: var(--pt-dimension-300)}.pc_progress .pc_progress__circle.pc_progress__circle--lg{width:var(--pt-dimension-2000, 40px);height:var(--pt-dimension-2000, 40px);min-height:var(--pt-dimension-2000, 40px);max-height:var(--pt-dimension-2000, 40px);min-width:var(--pt-dimension-2000, 40px);max-width:var(--pt-dimension-2000, 40px);--ptc-progress-content-offset: var(--pt-dimension-400)}.pc_progress .pc_progress__circle .pc_progress__circle__path.pc_progress__circle__path--trail{--ptu-stroke-opacity:1;stroke:rgba(var(--pt-gray-fill-subtle),var(--ptu-stroke-opacity))}.pc_progress .pc_progress__circle .pc_progress__circle__path.pc_progress__circle__path--indeterminate{--ptu-text-opacity:1;color:rgba(var(--pt-primary-5),var(--ptu-text-opacity))}.pc_progress .pc_progress__circle .pc_progress__circle__content{position:absolute;box-sizing:border-box;aspect-ratio:1/1;display:flex;overflow:hidden;--ptc-progress-circle-content-size: calc(100% - calc(var(--ptc-progress-content-offset) * 2));width:var(--ptc-progress-circle-content-size);min-width:var(--ptc-progress-circle-content-size);max-width:var(--ptc-progress-circle-content-size);top:var(--ptc-progress-content-offset);inset-inline-start:var(--ptc-progress-content-offset)}.pc_progress .pc_progress__line{box-sizing:border-box;width:100%;height:var(--pt-dimension-200, 4px);min-height:var(--pt-dimension-200, 4px);max-height:var(--pt-dimension-200, 4px);overflow:hidden;--ptu-bg-opacity:1;background-color:rgba(var(--pt-gray-fill-subtle),var(--ptu-bg-opacity))}.pc_progress .pc_progress__line:not(.pc_progress__line--not-rounded){border-radius:var(--pt-roundness-full, 88px)}.pc_progress .pc_progress__line:not(.pc_progress__line--indeterminate) .pc_progress__line__value{width:var(--pt-dimension-0, 0px);min-width:var(--pt-dimension-0, 0px)}.pc_progress .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{width:33.3333333333%;min-width:33.3333333333%;max-width:33.3333333333%;border-radius:var(--pt-roundness-full, 88px);--ptu-bg-opacity:1;background-color:rgba(var(--pt-primary-5),var(--ptu-bg-opacity))}.pc_progress .pc_progress__line .pc_progress__line__value{box-sizing:border-box;height:100%;display:flex;overflow:hidden}.pc_progress .pc_progress__line .pc_progress__line__value .pc_progress__line__value__step{height:100%}.pc_progress:not(.pc_progress--no-transition) .pc_progress__line:not(.pc_progress__line--indeterminate) .pc_progress__line__value{transition-timing-function:linear;transition:width;transition-duration:calc(var(--ptc-progress-animation-duration) * 1s)}.pc_progress:not(.pc_progress--no-transition) .pc_progress__circle .pc_progress__circle__path:not(.pc_progress__circle__path--trail):not(.pc_progress__circle__path--indeterminate){transition-timing-function:linear;transition:stroke-dashoffset calc(var(--ptc-progress-animation-duration) * 1s),stroke-dasharray calc(var(--ptc-progress-animation-duration) * 1s),stroke calc(var(--ptc-progress-animation-duration) * 1s),stroke-width .06s calc(var(--ptc-progress-animation-duration) * 1s),opacity calc(var(--ptc-progress-animation-duration) * 1s)}.pc_progress .pc_progress__line_content{width:100%;display:flex;align-items:center;justify-content:space-between;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__line_validation_box{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:var(--pt-dimension-200, 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_progress .pc_progress__line_validation_box .pc_progress__divider{min-height:var(--pt-dimension-400, 8px);height:var(--pt-dimension-400, 8px);max-height:var(--pt-dimension-400, 8px)}.pc_progress[dir=rtl] .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{animation:indeterminate-loop-rtl infinite calc(var(--ptc-progress-animation-duration) * 2s) linear}.pc_progress[dir=ltr] .pc_progress__line.pc_progress__line--indeterminate .pc_progress__line__value{animation:indeterminate-loop-ltr infinite calc(var(--ptc-progress-animation-duration) * 2s) linear}\n";
|
|
5
5
|
const progressId = `${prefix}s-progress`;
|
|
6
6
|
const addProgressCss = () => addCssToHead(progressId, cssText);
|
|
7
7
|
const removeProgressCss = () => removeCssFromHead(progressId);
|
package/dist/select.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.pc_select__trigger{box-sizing:border-box;display:inline-flex;-webkit-user-select:none;user-select:none;align-items:center;overflow:hidden;text-align:start;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;outline:0;background-color:var(--ptc-select-trigger-bg);color:var(--ptc-select-trigger-fg);border-start-start-radius:var(--ptc-input-group-ss-radius, var(--ptc-select-roundness));border-start-end-radius:var(--ptc-input-group-se-radius, var(--ptc-select-roundness));border-end-start-radius:var(--ptc-input-group-es-radius, var(--ptc-select-roundness));border-end-end-radius:var(--ptc-input-group-ee-radius, var(--ptc-select-roundness));min-width:var(--ptc-select-trigger-min-w);min-height:var(--ptc-select-trigger-height)}.pc_select__trigger.pc_select__trigger--sm{gap:var(--pt-dimension-200, 4px);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0;--ptc-select-roundness: var(--pt-roundness-sm);--ptc-select-trigger-height: var(--pt-dimension-1200);--ptc-select-trigger-leading-height: var(--pt-dimension-800);--ptc-select-trigger-padding: var(--pt-dimension-200);--ptc-select-trigger-multiple-padding: var(--pt-dimension-100)}.pc_select__trigger.pc_select__trigger--sm.pc_select__trigger--content-fit{--ptc-select-trigger-min-w: var(--pt-dimension-2200)}.pc_select__trigger.pc_select__trigger--md{gap:var(--pt-dimension-200, 4px);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0;--ptc-select-roundness: var(--pt-roundness-md);--ptc-select-trigger-height: var(--pt-dimension-1600);--ptc-select-trigger-leading-height: var(--pt-dimension-1000);--ptc-select-trigger-padding: var(--pt-dimension-300);--ptc-select-trigger-multiple-padding: var(--pt-dimension-200)}.pc_select__trigger.pc_select__trigger--md.pc_select__trigger--content-fit{--ptc-select-trigger-min-w: var(--pt-dimension-2800)}.pc_select__trigger.pc_select__trigger--lg{gap:var(--pt-dimension-300, 6px);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-medium, medium);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0;--ptc-select-roundness: var(--pt-roundness-lg);--ptc-select-trigger-height: var(--pt-dimension-2000);--ptc-select-trigger-leading-height: var(--pt-dimension-1200);--ptc-select-trigger-padding: var(--pt-dimension-400);--ptc-select-trigger-multiple-padding: var(--pt-dimension-200)}.pc_select__trigger.pc_select__trigger--lg.pc_select__trigger--content-fit{--ptc-select-trigger-min-w: var(--pt-dimension-3200)}.pc_select__trigger:not(.pc_select__trigger--content-fit){--ptc-select-trigger-min-w: 220px}.pc_select__trigger:not(.pc_select__trigger--content-fit):not(.pc_input_group__item){width:100%}.pc_select__trigger.pc_select__trigger--content-fit{width:fit-content}.pc_select__trigger:not(.pc_select__trigger--multiple){padding-top:calc(var(--ptc-select-trigger-padding) - 1px);padding-bottom:calc(var(--ptc-select-trigger-padding) - 1px);padding-inline-end:var(--ptc-select-trigger-padding);padding-inline-start:var(--ptc-select-trigger-padding)}.pc_select__trigger.pc_select__trigger--multiple{padding-inline-end:var(--ptc-select-trigger-padding);padding-inline-start:var(--ptc-select-trigger-multiple-padding);padding-top:calc(var(--ptc-select-trigger-multiple-padding) - 1px);padding-bottom:calc(var(--ptc-select-trigger-multiple-padding) - 1px)}.pc_select__trigger:not(.pc_select__trigger--wrapped){height:var(--ptc-select-trigger-height);max-height:var(--ptc-select-trigger-height)}.pc_select__trigger:not(:disabled):not([disabled=true]),.pc_select__trigger[data-readonly]{--ptc-select-trigger-bg: rgba(var(--pt-bg))}.pc_select__trigger:not(:disabled):not([disabled=true]):not([data-readonly]),.pc_select__trigger[data-readonly]:not([data-readonly]){cursor:pointer}.pc_select__trigger:not(:disabled):not([disabled=true])[data-readonly],.pc_select__trigger[data-readonly][data-readonly]{cursor:text}.pc_select__trigger:not(:disabled):not([disabled=true]):not(.pc_select__trigger--filled),.pc_select__trigger[data-readonly]:not(.pc_select__trigger--filled){--ptc-select-trigger-fg: rgba(var(--pt-fg-subtle))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--filled,.pc_select__trigger[data-readonly].pc_select__trigger--filled{--ptc-select-trigger-fg: rgba(var(--pt-fg));--ptc-select-trigger-trailing: rgba(var(--pt-fg-subtle))}.pc_select__trigger:not(:disabled):not([disabled=true]):not([data-readonly]):focus,.pc_select__trigger[data-readonly]:not([data-readonly]):focus,.pc_select__trigger:not(:disabled):not([disabled=true]):not([data-readonly])[data-state=open],.pc_select__trigger[data-readonly]:not([data-readonly])[data-state=open]{--ptu-shadow:0 0 0 var(--pt-stroke-30) var(--ptu-shadow-color, var(--pt-shadow-color, rgba(var(--pt-focus-br))));box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow)}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]):not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning):not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]):not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning):not(:hover),.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly]:not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning):not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly]:not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning):not(:hover),.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open])[data-readonly]:not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open])[data-readonly]:not(:hover),.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly][data-readonly]:not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly][data-readonly]:not(:hover),.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]):not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning)[data-readonly],.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]):not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning)[data-readonly],.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly]:not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning)[data-readonly],.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly]:not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning)[data-readonly],.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open])[data-readonly][data-readonly],.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open])[data-readonly][data-readonly],.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly][data-readonly][data-readonly],.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly][data-readonly][data-readonly]{--ptc-select-trigger-br: rgba(var(--pt-br))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]):not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning):not([data-readonly]):hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]):not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning):not([data-readonly]):hover,.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly]:not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning):not([data-readonly]):hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly]:not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning):not([data-readonly]):hover,.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open])[data-readonly]:not([data-readonly]):hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open])[data-readonly]:not([data-readonly]):hover,.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly][data-readonly]:not([data-readonly]):hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly][data-readonly]:not([data-readonly]):hover{--ptc-select-trigger-br: rgba(var(--pt-primary-6))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--error:not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--error:not(:hover),.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly].pc_select__trigger--error:not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly].pc_select__trigger--error:not(:hover){--ptc-select-trigger-br: rgba(var(--pt-danger-br))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--error:hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--error:hover,.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly].pc_select__trigger--error:hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly].pc_select__trigger--error:hover{--ptc-select-trigger-br: rgba(var(--pt-danger-br-target))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--warning:not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--warning:not(:hover),.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly].pc_select__trigger--warning:not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly].pc_select__trigger--warning:not(:hover){--ptc-select-trigger-br: rgba(var(--pt-warning-br))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--warning:hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--warning:hover,.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly].pc_select__trigger--warning:hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly].pc_select__trigger--warning:hover{--ptc-select-trigger-br: rgba(var(--pt-warning-br-target))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--success:not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--success:not(:hover),.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly].pc_select__trigger--success:not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly].pc_select__trigger--success:not(:hover){--ptc-select-trigger-br: rgba(var(--pt-success-br))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--success:hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--success:hover,.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly].pc_select__trigger--success:hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly].pc_select__trigger--success:hover{--ptc-select-trigger-br: rgba(var(--pt-success-br-target))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-readonly]):focus,.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-readonly]):focus,.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-readonly])[data-state=open],.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-readonly])[data-state=open]{--ptc-select-trigger-br: rgba(var(--pt-primary-6))}.pc_select__trigger:disabled:not([data-readonly]),.pc_select__trigger[disabled=true]:not([data-readonly]){cursor:not-allowed;--ptc-select-trigger-bg: rgba(var(--pt-disable-fill-subtle));--ptc-select-trigger-fg: rgba(var(--pt-disable-fg));--ptc-select-trigger-trailing: rgba(var(--pt-disable-fg))}.pc_select__trigger:disabled:not([data-readonly]).pc_select__trigger--bordered,.pc_select__trigger[disabled=true]:not([data-readonly]).pc_select__trigger--bordered{--ptc-select-trigger-br: rgba(var(--pt-disable-br-subtle))}.pc_select__trigger:disabled .pc_select__trigger__content,.pc_select__trigger[disabled=true] .pc_select__trigger__content{pointer-events:none}.pc_select__trigger:disabled[data-readonly],.pc_select__trigger[disabled=true][data-readonly]{cursor:text}.pc_select__trigger:not(.pc_select__trigger--filled){--ptc-select-trigger-trailing: var(--ptc-select-trigger-fg)}.pc_select__trigger:not(.pc_select__trigger--bordered){border-width:var(--pt-stroke-0, 0px)}.pc_select__trigger.pc_select__trigger--bordered{border-width:1px;border-style:solid;border-color:var(--ptc-select-trigger-br)}.pc_select__trigger .pc_select__trigger__content{flex:1 1 0%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_select__trigger .pc_select__trigger__leading{color:var(--ptc-select-trigger-fg)}.pc_select__trigger .pc_select__trigger__trailing{color:var(--ptc-select-trigger-trailing)}.pc_select__trigger .pc_select__trigger__leading,.pc_select__trigger .pc_select__trigger__trailing{height:var(--ptc-select-trigger-leading-height);display:flex;align-items:center;overflow:hidden}.pc_select__trigger .pc_select__trigger__tag__close{pointer-events:auto}.pc_select__popup{box-sizing:border-box;overflow:hidden;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);--ptc-select-trigger-min-w: 220px}.pc_select__popup.pc_select__popup--sm{border-radius:var(--pt-roundness-sm, 4px)}.pc_select__popup.pc_select__popup--sm .pc_select__scroll_area{padding:var(--pt-dimension-200, 4px)}.pc_select__popup.pc_select__popup--sm .pc_select__scroll_area .pc_select__options{gap:var(--pt-dimension-200, 4px)}.pc_select__popup.pc_select__popup--sm .pc_select__scroll_area .pc_select__label{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_select__popup.pc_select__popup--md{border-radius:var(--pt-roundness-md, 6px)}.pc_select__popup.pc_select__popup--md .pc_select__scroll_area{padding:var(--pt-dimension-300, 6px)}.pc_select__popup.pc_select__popup--md .pc_select__scroll_area .pc_select__options{gap:var(--pt-dimension-300, 6px)}.pc_select__popup.pc_select__popup--md .pc_select__scroll_area .pc_select__label{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_select__popup.pc_select__popup--lg{border-radius:var(--pt-roundness-lg, 8px)}.pc_select__popup.pc_select__popup--lg .pc_select__scroll_area{padding:var(--pt-dimension-400, 8px)}.pc_select__popup.pc_select__popup--lg .pc_select__scroll_area .pc_select__options{gap:var(--pt-dimension-300, 6px)}.pc_select__popup.pc_select__popup--lg .pc_select__scroll_area .pc_select__label{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_select__popup .pc_select__options{box-sizing:border-box;width:100%;display:flex;flex-direction:column;align-items:center}.pc_select__popup .pc_select__scroll_area{box-sizing:border-box;max-height:var(--ptc-select-popup-height);min-width:var(--ptc-select-trigger-min-w);width:var(--ptc-select-popup-width, var(--reka-select-trigger-width))!important}.pc_select__popup .pc_select__skeleton{width:100%!important}.pc_select__popup .pc_select__lazy_loading{pointer-events:none;position:relative;height:var(--pt-dimension-0, 0px);width:100%}.pc_select__popup .pc_select__lazy_loading_trigger{position:absolute;top:calc(var(--pt-dimension-1200, 24px) * -1);width:100%;height:var(--pt-dimension-1200, 24px);padding:var(--pt-dimension-0, 0px)}.pc_select__popup .pc_select__label{width:100%;padding-top:var(--pt-dimension-200, 4px);padding-bottom:var(--pt-dimension-200, 4px);padding-left:var(--pt-dimension-100, 2px);padding-right:var(--pt-dimension-100, 2px);--ptu-text-opacity:1;color:rgba(var(--pt-fg-subtle),var(--ptu-text-opacity))}.pc_select__option{box-sizing:border-box;width:100%;display:flex;-webkit-user-select:none;user-select:none;align-items:center;border-style:none;outline:0;gap:var(--ptc-select-option-gap)}.pc_select__option .pc_select__option__text{display:flex;flex:1 1 0%;align-items:center}.pc_select__option .pc_select__option__leading{display:flex;align-items:center}.pc_select__option.pc_select__option--sm{--ptc-select-option-gap: var(--pt-dimension-200);height:var(--pt-dimension-1200, 24px);border-radius:var(--pt-roundness-sm, 4px);padding:var(--pt-dimension-200, 4px);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-medium, medium);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_select__option.pc_select__option--sm .pc_select__option__leading{height:var(--pt-dimension-800, 16px)}.pc_select__option.pc_select__option--md{--ptc-select-option-gap: var(--pt-dimension-200);height:var(--pt-dimension-1600, 32px);border-radius:var(--pt-roundness-md, 6px);padding:var(--pt-dimension-300, 6px);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_select__option.pc_select__option--md .pc_select__option__leading{height:var(--pt-dimension-1000, 20px)}.pc_select__option.pc_select__option--lg{--ptc-select-option-gap: var(--pt-dimension-300);height:var(--pt-dimension-2000, 40px);border-radius:var(--pt-roundness-lg, 8px);padding:var(--pt-dimension-400, 8px);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_select__option.pc_select__option--lg .pc_select__option__leading{height:var(--pt-dimension-1200, 24px)}.pc_select__option .pc_select__option__content{box-sizing:border-box;width:100%;display:flex;-webkit-user-select:none;user-select:none;align-items:center;border-style:none;outline:0;gap:var(--ptc-select-option-gap)}.pc_select__option:not([data-disabled=true]){cursor:pointer}.pc_select__option:not([data-disabled=true])[data-state=unchecked]:not(:hover):not([data-highlighted]):not(:active){background-color:var(--pt-alpha-gray-0);--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity))}.pc_select__option:not([data-disabled=true])[data-state=unchecked]:hover,.pc_select__option:not([data-disabled=true])[data-state=unchecked][data-highlighted]{--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg-target),var(--ptu-bg-opacity));--ptu-text-opacity:1;color:rgba(var(--pt-fg-target),var(--ptu-text-opacity))}.pc_select__option:not([data-disabled=true])[data-state=unchecked]:active{--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg-trigger),var(--ptu-bg-opacity));--ptu-text-opacity:1;color:rgba(var(--pt-fg-trigger),var(--ptu-text-opacity))}.pc_select__option:not([data-disabled=true])[data-state=checked]:not(:hover):not([data-highlighted]):not(:active){--ptu-bg-opacity:1;background-color:rgba(var(--pt-primary-fill-subtle),var(--ptu-bg-opacity));--ptu-text-opacity:1;color:rgba(var(--pt-primary-fg),var(--ptu-text-opacity))}.pc_select__option:not([data-disabled=true])[data-state=checked]:hover,.pc_select__option:not([data-disabled=true])[data-state=checked][data-highlighted]{--ptu-bg-opacity:1;background-color:rgba(var(--pt-primary-fill-subtle-target),var(--ptu-bg-opacity));--ptu-text-opacity:1;color:rgba(var(--pt-primary-fg-target),var(--ptu-text-opacity))}.pc_select__option:not([data-disabled=true])[data-state=checked]:active{--ptu-bg-opacity:1;background-color:rgba(var(--pt-primary-fill-subtle-trigger),var(--ptu-bg-opacity));--ptu-text-opacity:1;color:rgba(var(--pt-primary-fg-trigger),var(--ptu-text-opacity))}.pc_select__option:not([data-disabled=true]):focus{--ptu-shadow:0 0 0 var(--pt-stroke-30) var(--ptu-shadow-color, var(--pt-shadow-color, rgba(var(--pt-focus-br))));box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow)}.pc_select__option[data-disabled=true]{cursor:not-allowed}.pc_select__option[data-disabled=true][data-state=unchecked]{--ptu-text-opacity:1;color:rgba(var(--pt-disable-fg),var(--ptu-text-opacity))}.pc_select__option[data-disabled=true][data-state=checked]{--ptu-bg-opacity:1;background-color:rgba(var(--pt-disable-fill),var(--ptu-bg-opacity));--ptu-text-opacity:1;color:rgba(var(--pt-disable-fg),var(--ptu-text-opacity))}
|
|
1
|
+
.pc_select__trigger{box-sizing:border-box;display:inline-flex;-webkit-user-select:none;user-select:none;align-items:center;overflow:hidden;text-align:start;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;outline:0;background-color:var(--ptc-select-trigger-bg);color:var(--ptc-select-trigger-fg);border-start-start-radius:var(--ptc-input-group-ss-radius, var(--ptc-select-roundness));border-start-end-radius:var(--ptc-input-group-se-radius, var(--ptc-select-roundness));border-end-start-radius:var(--ptc-input-group-es-radius, var(--ptc-select-roundness));border-end-end-radius:var(--ptc-input-group-ee-radius, var(--ptc-select-roundness));min-width:var(--ptc-select-trigger-min-w);min-height:var(--ptc-select-trigger-height)}.pc_select__trigger.pc_select__trigger--sm{gap:var(--pt-dimension-200, 4px);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0;--ptc-select-roundness: var(--pt-roundness-sm);--ptc-select-trigger-height: var(--pt-dimension-1200);--ptc-select-trigger-leading-height: var(--pt-dimension-800);--ptc-select-trigger-padding: var(--pt-dimension-200);--ptc-select-trigger-multiple-padding: var(--pt-dimension-100)}.pc_select__trigger.pc_select__trigger--sm.pc_select__trigger--content-fit{--ptc-select-trigger-min-w: var(--pt-dimension-2200)}.pc_select__trigger.pc_select__trigger--md{gap:var(--pt-dimension-200, 4px);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0;--ptc-select-roundness: var(--pt-roundness-md);--ptc-select-trigger-height: var(--pt-dimension-1600);--ptc-select-trigger-leading-height: var(--pt-dimension-1000);--ptc-select-trigger-padding: var(--pt-dimension-300);--ptc-select-trigger-multiple-padding: var(--pt-dimension-200)}.pc_select__trigger.pc_select__trigger--md.pc_select__trigger--content-fit{--ptc-select-trigger-min-w: var(--pt-dimension-2800)}.pc_select__trigger.pc_select__trigger--lg{gap:var(--pt-dimension-300, 6px);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-medium, medium);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0;--ptc-select-roundness: var(--pt-roundness-lg);--ptc-select-trigger-height: var(--pt-dimension-2000);--ptc-select-trigger-leading-height: var(--pt-dimension-1200);--ptc-select-trigger-padding: var(--pt-dimension-400);--ptc-select-trigger-multiple-padding: var(--pt-dimension-200)}.pc_select__trigger.pc_select__trigger--lg.pc_select__trigger--content-fit{--ptc-select-trigger-min-w: var(--pt-dimension-3200)}.pc_select__trigger:not(.pc_select__trigger--content-fit){--ptc-select-trigger-min-w: 220px}.pc_select__trigger:not(.pc_select__trigger--content-fit):not(.pc_input_group__item){width:100%}.pc_select__trigger.pc_select__trigger--content-fit{width:fit-content}.pc_select__trigger:not(.pc_select__trigger--multiple){padding-top:calc(var(--ptc-select-trigger-padding) - 1px);padding-bottom:calc(var(--ptc-select-trigger-padding) - 1px);padding-inline-end:var(--ptc-select-trigger-padding);padding-inline-start:var(--ptc-select-trigger-padding)}.pc_select__trigger.pc_select__trigger--multiple{padding-inline-end:var(--ptc-select-trigger-padding);padding-inline-start:var(--ptc-select-trigger-multiple-padding);padding-top:calc(var(--ptc-select-trigger-multiple-padding) - 1px);padding-bottom:calc(var(--ptc-select-trigger-multiple-padding) - 1px)}.pc_select__trigger:not(.pc_select__trigger--wrapped){height:var(--ptc-select-trigger-height);max-height:var(--ptc-select-trigger-height)}.pc_select__trigger:not(:disabled):not([disabled=true]),.pc_select__trigger[data-readonly]{--ptc-select-trigger-bg: rgba(var(--pt-bg))}.pc_select__trigger:not(:disabled):not([disabled=true]):not([data-readonly]),.pc_select__trigger[data-readonly]:not([data-readonly]){cursor:pointer}.pc_select__trigger:not(:disabled):not([disabled=true])[data-readonly],.pc_select__trigger[data-readonly][data-readonly]{cursor:text}.pc_select__trigger:not(:disabled):not([disabled=true]):not(.pc_select__trigger--filled),.pc_select__trigger[data-readonly]:not(.pc_select__trigger--filled){--ptc-select-trigger-fg: rgba(var(--pt-fg-subtle))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--filled,.pc_select__trigger[data-readonly].pc_select__trigger--filled{--ptc-select-trigger-fg: rgba(var(--pt-fg));--ptc-select-trigger-trailing: rgba(var(--pt-fg-subtle))}.pc_select__trigger:not(:disabled):not([disabled=true]):not([data-readonly]):focus,.pc_select__trigger[data-readonly]:not([data-readonly]):focus,.pc_select__trigger:not(:disabled):not([disabled=true]):not([data-readonly])[data-state=open],.pc_select__trigger[data-readonly]:not([data-readonly])[data-state=open]{--ptu-shadow:0 0 0 var(--pt-stroke-30) var(--ptu-shadow-color, var(--pt-shadow-color, rgba(var(--pt-focus-br))));box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow)}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]):not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning):not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]):not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning):not(:hover),.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly]:not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning):not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly]:not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning):not(:hover),.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open])[data-readonly]:not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open])[data-readonly]:not(:hover),.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly][data-readonly]:not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly][data-readonly]:not(:hover),.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]):not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning)[data-readonly],.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]):not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning)[data-readonly],.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly]:not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning)[data-readonly],.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly]:not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning)[data-readonly],.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open])[data-readonly][data-readonly],.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open])[data-readonly][data-readonly],.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly][data-readonly][data-readonly],.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly][data-readonly][data-readonly]{--ptc-select-trigger-br: rgba(var(--pt-br))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]):not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning):not([data-readonly]):hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]):not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning):not([data-readonly]):hover,.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly]:not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning):not([data-readonly]):hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly]:not(.pc_select__trigger--error):not(.pc_select__trigger--success):not(.pc_select__trigger--warning):not([data-readonly]):hover,.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open])[data-readonly]:not([data-readonly]):hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open])[data-readonly]:not([data-readonly]):hover,.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly][data-readonly]:not([data-readonly]):hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly][data-readonly]:not([data-readonly]):hover{--ptc-select-trigger-br: rgba(var(--pt-primary-6))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--error:not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--error:not(:hover),.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly].pc_select__trigger--error:not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly].pc_select__trigger--error:not(:hover){--ptc-select-trigger-br: rgba(var(--pt-danger-br))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--error:hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--error:hover,.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly].pc_select__trigger--error:hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly].pc_select__trigger--error:hover{--ptc-select-trigger-br: rgba(var(--pt-danger-br-target))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--warning:not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--warning:not(:hover),.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly].pc_select__trigger--warning:not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly].pc_select__trigger--warning:not(:hover){--ptc-select-trigger-br: rgba(var(--pt-warning-br))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--warning:hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--warning:hover,.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly].pc_select__trigger--warning:hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly].pc_select__trigger--warning:hover{--ptc-select-trigger-br: rgba(var(--pt-warning-br-target))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--success:not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--success:not(:hover),.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly].pc_select__trigger--success:not(:hover),.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly].pc_select__trigger--success:not(:hover){--ptc-select-trigger-br: rgba(var(--pt-success-br))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--success:hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-focus=true]):not(:focus):not([data-state=open]).pc_select__trigger--success:hover,.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered[data-readonly].pc_select__trigger--success:hover,.pc_select__trigger[data-readonly].pc_select__trigger--bordered[data-readonly].pc_select__trigger--success:hover{--ptc-select-trigger-br: rgba(var(--pt-success-br-target))}.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-readonly]):focus,.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-readonly]):focus,.pc_select__trigger:not(:disabled):not([disabled=true]).pc_select__trigger--bordered:not([data-readonly])[data-state=open],.pc_select__trigger[data-readonly].pc_select__trigger--bordered:not([data-readonly])[data-state=open]{--ptc-select-trigger-br: rgba(var(--pt-primary-6))}.pc_select__trigger:disabled:not([data-readonly]),.pc_select__trigger[disabled=true]:not([data-readonly]){cursor:not-allowed;--ptc-select-trigger-bg: rgba(var(--pt-disable-fill-subtle));--ptc-select-trigger-fg: rgba(var(--pt-disable-fg));--ptc-select-trigger-trailing: rgba(var(--pt-disable-fg))}.pc_select__trigger:disabled:not([data-readonly]).pc_select__trigger--bordered,.pc_select__trigger[disabled=true]:not([data-readonly]).pc_select__trigger--bordered{--ptc-select-trigger-br: rgba(var(--pt-disable-br-subtle))}.pc_select__trigger:disabled .pc_select__trigger__content,.pc_select__trigger[disabled=true] .pc_select__trigger__content{pointer-events:none}.pc_select__trigger:disabled[data-readonly],.pc_select__trigger[disabled=true][data-readonly]{cursor:text}.pc_select__trigger:not(.pc_select__trigger--filled){--ptc-select-trigger-trailing: var(--ptc-select-trigger-fg)}.pc_select__trigger:not(.pc_select__trigger--bordered){border-width:var(--pt-stroke-0, 0px)}.pc_select__trigger.pc_select__trigger--bordered{border-width:1px;border-style:solid;border-color:var(--ptc-select-trigger-br)}.pc_select__trigger .pc_select__trigger__content{flex:1 1 0%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc_select__trigger .pc_select__trigger__leading{color:var(--ptc-select-trigger-fg)}.pc_select__trigger .pc_select__trigger__trailing{color:var(--ptc-select-trigger-trailing)}.pc_select__trigger .pc_select__trigger__leading,.pc_select__trigger .pc_select__trigger__trailing{height:var(--ptc-select-trigger-leading-height);display:flex;align-items:center;overflow:hidden}.pc_select__trigger .pc_select__trigger__tag__close{pointer-events:auto}.pc_select__popup{box-sizing:border-box;overflow:hidden;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);--ptc-select-trigger-min-w: 220px}.pc_select__popup.pc_select__popup--sm{border-radius:var(--pt-roundness-sm, 4px)}.pc_select__popup.pc_select__popup--sm .pc_select__scroll_area{padding:var(--pt-dimension-200, 4px)}.pc_select__popup.pc_select__popup--sm .pc_select__scroll_area .pc_select__options{gap:var(--pt-dimension-200, 4px)}.pc_select__popup.pc_select__popup--sm .pc_select__scroll_area .pc_select__label{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_select__popup.pc_select__popup--md{border-radius:var(--pt-roundness-md, 6px)}.pc_select__popup.pc_select__popup--md .pc_select__scroll_area{padding:var(--pt-dimension-300, 6px)}.pc_select__popup.pc_select__popup--md .pc_select__scroll_area .pc_select__options{gap:var(--pt-dimension-300, 6px)}.pc_select__popup.pc_select__popup--md .pc_select__scroll_area .pc_select__label{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_select__popup.pc_select__popup--lg{border-radius:var(--pt-roundness-lg, 8px)}.pc_select__popup.pc_select__popup--lg .pc_select__scroll_area{padding:var(--pt-dimension-400, 8px)}.pc_select__popup.pc_select__popup--lg .pc_select__scroll_area .pc_select__options{gap:var(--pt-dimension-300, 6px)}.pc_select__popup.pc_select__popup--lg .pc_select__scroll_area .pc_select__label{font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_select__popup .pc_select__options{box-sizing:border-box;width:100%;display:flex;flex-direction:column;align-items:center}.pc_select__popup .pc_select__scroll_area{box-sizing:border-box;max-height:var(--ptc-select-popup-height);min-width:var(--ptc-select-trigger-min-w);width:var(--ptc-select-popup-width, var(--reka-select-trigger-width))!important}.pc_select__popup .pc_select__skeleton{width:100%!important}.pc_select__popup .pc_select__lazy_loading{pointer-events:none;position:relative;height:var(--pt-dimension-0, 0px);width:100%}.pc_select__popup .pc_select__lazy_loading_trigger{position:absolute;top:calc(var(--pt-dimension-1200, 24px) * -1);width:100%;height:var(--pt-dimension-1200, 24px);padding:var(--pt-dimension-0, 0px)}.pc_select__popup .pc_select__label{width:100%;padding-top:var(--pt-dimension-200, 4px);padding-bottom:var(--pt-dimension-200, 4px);padding-left:var(--pt-dimension-100, 2px);padding-right:var(--pt-dimension-100, 2px);--ptu-text-opacity:1;color:rgba(var(--pt-fg-subtle),var(--ptu-text-opacity))}.pc_select__option{box-sizing:border-box;width:100%;display:flex;-webkit-user-select:none;user-select:none;align-items:center;border-style:none;outline:0;gap:var(--ptc-select-option-gap)}.pc_select__option .pc_select__option__text{display:flex;flex:1 1 0%;align-items:center}.pc_select__option .pc_select__option__leading{display:flex;align-items:center}.pc_select__option.pc_select__option--sm{--ptc-select-option-gap: var(--pt-dimension-200);height:var(--pt-dimension-1200, 24px);border-radius:var(--pt-roundness-sm, 4px);padding:var(--pt-dimension-200, 4px);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-medium, medium);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_select__option.pc_select__option--sm .pc_select__option__leading{height:var(--pt-dimension-800, 16px)}.pc_select__option.pc_select__option--md{--ptc-select-option-gap: var(--pt-dimension-200);height:var(--pt-dimension-1600, 32px);border-radius:var(--pt-roundness-md, 6px);padding:var(--pt-dimension-300, 6px);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_select__option.pc_select__option--md .pc_select__option__leading{height:var(--pt-dimension-1000, 20px)}.pc_select__option.pc_select__option--lg{--ptc-select-option-gap: var(--pt-dimension-300);height:var(--pt-dimension-2000, 40px);border-radius:var(--pt-roundness-lg, 8px);padding:var(--pt-dimension-400, 8px);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-600, 12px);line-height:var(--pt-lineheight-7, 14px);letter-spacing:0}.pc_select__option.pc_select__option--lg .pc_select__option__leading{height:var(--pt-dimension-1200, 24px)}.pc_select__option .pc_select__option__content{box-sizing:border-box;width:100%;display:flex;-webkit-user-select:none;user-select:none;align-items:center;border-style:none;outline:0;gap:var(--ptc-select-option-gap)}.pc_select__option:not([data-disabled]){cursor:pointer}.pc_select__option:not([data-disabled])[data-state=unchecked]:not(:hover):not([data-highlighted]):not(:active){background-color:var(--pt-alpha-gray-0);--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity))}.pc_select__option:not([data-disabled])[data-state=unchecked]:hover,.pc_select__option:not([data-disabled])[data-state=unchecked][data-highlighted]{--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg-target),var(--ptu-bg-opacity));--ptu-text-opacity:1;color:rgba(var(--pt-fg-target),var(--ptu-text-opacity))}.pc_select__option:not([data-disabled])[data-state=unchecked]:active{--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg-trigger),var(--ptu-bg-opacity));--ptu-text-opacity:1;color:rgba(var(--pt-fg-trigger),var(--ptu-text-opacity))}.pc_select__option:not([data-disabled])[data-state=checked]:not(:hover):not([data-highlighted]):not(:active){--ptu-bg-opacity:1;background-color:rgba(var(--pt-primary-fill-subtle),var(--ptu-bg-opacity));--ptu-text-opacity:1;color:rgba(var(--pt-primary-fg),var(--ptu-text-opacity))}.pc_select__option:not([data-disabled])[data-state=checked]:hover,.pc_select__option:not([data-disabled])[data-state=checked][data-highlighted]{--ptu-bg-opacity:1;background-color:rgba(var(--pt-primary-fill-subtle-target),var(--ptu-bg-opacity));--ptu-text-opacity:1;color:rgba(var(--pt-primary-fg-target),var(--ptu-text-opacity))}.pc_select__option:not([data-disabled])[data-state=checked]:active{--ptu-bg-opacity:1;background-color:rgba(var(--pt-primary-fill-subtle-trigger),var(--ptu-bg-opacity));--ptu-text-opacity:1;color:rgba(var(--pt-primary-fg-trigger),var(--ptu-text-opacity))}.pc_select__option:not([data-disabled]):focus{--ptu-shadow:0 0 0 var(--pt-stroke-30) var(--ptu-shadow-color, var(--pt-shadow-color, rgba(var(--pt-focus-br))));box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow)}.pc_select__option[data-disabled]{cursor:not-allowed}.pc_select__option[data-disabled][data-state=unchecked]{--ptu-text-opacity:1;color:rgba(var(--pt-disable-fg),var(--ptu-text-opacity))}.pc_select__option[data-disabled][data-state=checked]{--ptu-bg-opacity:1;background-color:rgba(var(--pt-disable-fill),var(--ptu-bg-opacity));--ptu-text-opacity:1;color:rgba(var(--pt-disable-fg),var(--ptu-text-opacity))}
|