haze-ui 1.30.0 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -1
- package/dist/components/ActivityRail/ActivityRail.js +76 -0
- package/dist/components/ActivityRail/index.js +3 -0
- package/dist/components/BottomSheet/BottomSheet.js +12 -26
- package/dist/components/ConversationList/ConversationList.js +16 -7
- package/dist/components/List/List.js +14 -10
- package/dist/components/LocaleProvider/ar-sa.js +7 -0
- package/dist/components/LocaleProvider/de-de.js +7 -0
- package/dist/components/LocaleProvider/es-es.js +7 -0
- package/dist/components/LocaleProvider/fr-fr.js +7 -0
- package/dist/components/LocaleProvider/it-it.js +7 -0
- package/dist/components/LocaleProvider/ja-jp.js +7 -0
- package/dist/components/LocaleProvider/ko-kr.js +7 -0
- package/dist/components/LocaleProvider/locale.js +7 -0
- package/dist/components/LocaleProvider/pt-br.js +7 -0
- package/dist/components/LocaleProvider/ru-ru.js +7 -0
- package/dist/components/LocaleProvider/zh-cn.js +7 -0
- package/dist/components/LogViewer/LogViewer.js +45 -38
- package/dist/components/OTPInput/OTPInputCore.js +1 -0
- package/dist/components/Resizable/Resizable.js +266 -36
- package/dist/components/Sparkline/Sparkline.js +45 -0
- package/dist/components/Sparkline/index.js +3 -0
- package/dist/components/Sparkline/sparkline-styles.js +18 -0
- package/dist/components/StatusBar/StatusBar.js +47 -0
- package/dist/components/StatusBar/index.js +3 -0
- package/dist/components/TabBar/TabBar.js +60 -0
- package/dist/components/TabBar/index.js +3 -0
- package/dist/components/Tabs/SortableTabList.js +116 -0
- package/dist/components/Tabs/Tab.js +83 -16
- package/dist/components/Tabs/TabList.js +94 -38
- package/dist/components/Tabs/edge-scroll.js +6 -0
- package/dist/components/Tabs/index.js +4 -3
- package/dist/components/Tabs/tab-metas.js +24 -0
- package/dist/components/TagInput/SortableTagInputCore.js +11 -11
- package/dist/components/Toast/ToastContainer.js +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/{toast2.js → toast-channel.js} +1 -1
- package/dist/components/Toast/useToast.js +1 -1
- package/dist/components/Tree/SortableTree.js +39 -39
- package/dist/components/VirtualList/VirtualList.js +133 -121
- package/dist/components/Workbench/Workbench.js +144 -0
- package/dist/components/Workbench/index.js +3 -0
- package/dist/css/activity-rail.css +2 -0
- package/dist/css/app-shell.css +1 -1
- package/dist/css/breadcrumb.css +1 -1
- package/dist/css/checkbox.css +1 -1
- package/dist/css/command.css +1 -1
- package/dist/css/context-menu.css +1 -1
- package/dist/css/date-range-picker.css +1 -1
- package/dist/css/drawer.css +1 -1
- package/dist/css/dropdown-menu.css +2 -2
- package/dist/css/hover-card.css +1 -1
- package/dist/css/list.css +1 -1
- package/dist/css/menu.css +2 -2
- package/dist/css/popover.css +1 -1
- package/dist/css/radio.css +1 -1
- package/dist/css/resizable.css +1 -1
- package/dist/css/segmented.css +1 -1
- package/dist/css/sidebar.css +1 -1
- package/dist/css/slider.css +1 -1
- package/dist/css/sparkline.css +2 -0
- package/dist/css/status-bar.css +2 -0
- package/dist/css/switch.css +1 -1
- package/dist/css/tab-bar.css +2 -0
- package/dist/css/tabs.css +3 -2
- package/dist/css/tag.css +1 -1
- package/dist/css/tree.css +1 -1
- package/dist/css/workbench.css +2 -0
- package/dist/css-manifest.json +16 -0
- package/dist/dates/adapter.js +9 -1
- package/dist/dates/buddhist.js +43 -0
- package/dist/dates/ethiopic.js +67 -0
- package/dist/dates/hebrew.js +95 -0
- package/dist/dates/japanese.js +41 -0
- package/dist/dates/persian.js +121 -0
- package/dist/dates/registry.js +14 -4
- package/dist/haze-ui.css +30 -24
- package/dist/index.js +253 -241
- package/dist/mcp-docs.json +555 -10
- package/dist/registry.json +115 -5
- package/dist/types/components/ActivityRail/ActivityRail.d.ts +30 -0
- package/dist/types/components/ActivityRail/index.d.ts +4 -0
- package/dist/types/components/ConversationList/ConversationList.d.ts +10 -1
- package/dist/types/components/List/List.d.ts +10 -1
- package/dist/types/components/LocaleProvider/locale.d.ts +7 -0
- package/dist/types/components/LogViewer/LogViewer.d.ts +10 -1
- package/dist/types/components/Resizable/Resizable.d.ts +24 -7
- package/dist/types/components/Resizable/index.d.ts +1 -1
- package/dist/types/components/Sparkline/Sparkline.d.ts +31 -0
- package/dist/types/components/Sparkline/index.d.ts +3 -0
- package/dist/types/components/Sparkline/sparkline-styles.d.ts +26 -0
- package/dist/types/components/StatusBar/StatusBar.d.ts +18 -0
- package/dist/types/components/StatusBar/index.d.ts +3 -0
- package/dist/types/components/TabBar/TabBar.d.ts +23 -0
- package/dist/types/components/TabBar/index.d.ts +4 -0
- package/dist/types/components/Tabs/SortableTabList.d.ts +46 -0
- package/dist/types/components/Tabs/Tab.d.ts +54 -3
- package/dist/types/components/Tabs/TabList.d.ts +26 -2
- package/dist/types/components/Tabs/edge-scroll.d.ts +17 -0
- package/dist/types/components/Tabs/index.d.ts +3 -1
- package/dist/types/components/Tabs/tab-metas.d.ts +20 -0
- package/dist/types/components/Toast/index.d.ts +2 -2
- package/dist/types/components/Toast/useToast.d.ts +1 -1
- package/dist/types/components/VirtualList/VirtualList.d.ts +20 -1
- package/dist/types/components/Workbench/Workbench.d.ts +50 -0
- package/dist/types/components/Workbench/index.d.ts +2 -0
- package/dist/types/dates/adapter.d.ts +33 -6
- package/dist/types/dates/buddhist.d.ts +14 -0
- package/dist/types/dates/ethiopic.d.ts +15 -0
- package/dist/types/dates/hebrew.d.ts +19 -0
- package/dist/types/dates/index.d.ts +5 -0
- package/dist/types/dates/japanese.d.ts +16 -0
- package/dist/types/dates/persian.d.ts +18 -0
- package/dist/types/dates/registry.d.ts +1 -1
- package/dist/types/index.d.ts +13 -3
- package/dist/types/utils/sortable.d.ts +8 -1
- package/dist/types/utils/use-end-reached.d.ts +56 -0
- package/dist/types/utils/viewport.d.ts +12 -0
- package/dist/utils/sortable-shared.js +3 -3
- package/dist/utils/sortable.js +15 -14
- package/dist/utils/use-end-reached.js +46 -0
- package/dist/utils/viewport.js +20 -0
- package/package.json +12 -4
- /package/dist/types/components/Toast/{toast.d.ts → toast-channel.d.ts} +0 -0
package/dist/css/drawer.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* haze-ui drawer — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
-
.haze-Drawer__overlay{background:var(--haze-color-bg);color:var(--haze-color-text);font-family:var(--haze-font-sans);border:none;max-width:100vw;max-height:100vh;padding:0;overflow:auto}.haze-Drawer__overlay[open][data-state=open]{-webkit-animation:haze-drawer-in-haze-Drawer__overlay var(--haze-duration-normal) var(--haze-ease);animation:haze-drawer-in-haze-Drawer__overlay var(--haze-duration-normal) var(--haze-ease)}.haze-Drawer__overlay[open][data-state=closed]{-webkit-animation:haze-drawer-out-haze-Drawer__overlay var(--haze-duration-fast) var(--haze-ease);animation:haze-drawer-out-haze-Drawer__overlay var(--haze-duration-fast) var(--haze-ease)}.haze-Drawer__overlay::backdrop{background:#0006}.haze-Drawer__overlay[open][data-state=open]::backdrop{-webkit-animation:haze-drawer-backdrop-in-haze-Drawer__overlay var(--haze-duration-normal) var(--haze-ease);animation:haze-drawer-backdrop-in-haze-Drawer__overlay var(--haze-duration-normal) var(--haze-ease)}.haze-Drawer__overlay[open][data-state=closed]::backdrop{-webkit-animation:haze-drawer-backdrop-out-haze-Drawer__overlay var(--haze-duration-fast) var(--haze-ease);animation:haze-drawer-backdrop-out-haze-Drawer__overlay var(--haze-duration-fast) var(--haze-ease)}.haze-Drawer__overlay:focus-visible{box-shadow:0 0 0 3px var(--haze-color-focus-ring);outline:none}@keyframes haze-drawer-in-haze-Drawer__overlay{0%{-webkit-transform:translate(var(--haze-drawer-from-x,0), var(--haze-drawer-from-y,0));-moz-transform:translate(var(--haze-drawer-from-x,0), var(--haze-drawer-from-y,0));-ms-transform:translate(var(--haze-drawer-from-x,0), var(--haze-drawer-from-y,0));transform:translate(var(--haze-drawer-from-x,0), var(--haze-drawer-from-y,0))}}@keyframes haze-drawer-out-haze-Drawer__overlay{to{-webkit-transform:translate(var(--haze-drawer-from-x,0), var(--haze-drawer-from-y,0));-moz-transform:translate(var(--haze-drawer-from-x,0), var(--haze-drawer-from-y,0));-ms-transform:translate(var(--haze-drawer-from-x,0), var(--haze-drawer-from-y,0));transform:translate(var(--haze-drawer-from-x,0), var(--haze-drawer-from-y,0))}}@keyframes haze-drawer-backdrop-in-haze-Drawer__overlay{0%{opacity:0}}@keyframes haze-drawer-backdrop-out-haze-Drawer__overlay{to{opacity:0}}@media (forced-colors:active){.haze-Drawer__overlay{border:1px solid canvastext}.haze-Drawer__overlay:focus-visible{outline-offset:-2px;outline:2px solid highlight}}.haze-Drawer__left{--haze-drawer-from-x:-100%;--haze-drawer-from-y:0;width:320px;min-width:280px;max-width:85vw;height:100vh;margin-left:0;margin-right:auto}.haze-Drawer__right{--haze-drawer-from-x:100%;--haze-drawer-from-y:0;width:320px;min-width:280px;max-width:85vw;height:100vh;margin-left:auto;margin-right:0}.haze-Drawer__top{--haze-drawer-from-x:0;--haze-drawer-from-y:-100%;width:100vw;height:320px;margin-top:0;margin-bottom:auto}.haze-Drawer__bottom{--haze-drawer-from-x:0;--haze-drawer-from-y:100%;width:100vw;height:320px;margin-top:auto;margin-bottom:0}
|
|
2
|
+
.haze-Drawer__overlay{box-sizing:border-box;background:var(--haze-color-bg);color:var(--haze-color-text);font-family:var(--haze-font-sans);border:none;max-width:100vw;max-height:100vh;padding:0;overflow:auto}.haze-Drawer__overlay[open][data-state=open]{-webkit-animation:haze-drawer-in-haze-Drawer__overlay var(--haze-duration-normal) var(--haze-ease);animation:haze-drawer-in-haze-Drawer__overlay var(--haze-duration-normal) var(--haze-ease)}.haze-Drawer__overlay[open][data-state=closed]{-webkit-animation:haze-drawer-out-haze-Drawer__overlay var(--haze-duration-fast) var(--haze-ease);animation:haze-drawer-out-haze-Drawer__overlay var(--haze-duration-fast) var(--haze-ease)}.haze-Drawer__overlay::backdrop{background:#0006}.haze-Drawer__overlay[open][data-state=open]::backdrop{-webkit-animation:haze-drawer-backdrop-in-haze-Drawer__overlay var(--haze-duration-normal) var(--haze-ease);animation:haze-drawer-backdrop-in-haze-Drawer__overlay var(--haze-duration-normal) var(--haze-ease)}.haze-Drawer__overlay[open][data-state=closed]::backdrop{-webkit-animation:haze-drawer-backdrop-out-haze-Drawer__overlay var(--haze-duration-fast) var(--haze-ease);animation:haze-drawer-backdrop-out-haze-Drawer__overlay var(--haze-duration-fast) var(--haze-ease)}.haze-Drawer__overlay:focus-visible{box-shadow:0 0 0 3px var(--haze-color-focus-ring);outline:none}@keyframes haze-drawer-in-haze-Drawer__overlay{0%{-webkit-transform:translate(var(--haze-drawer-from-x,0), var(--haze-drawer-from-y,0));-moz-transform:translate(var(--haze-drawer-from-x,0), var(--haze-drawer-from-y,0));-ms-transform:translate(var(--haze-drawer-from-x,0), var(--haze-drawer-from-y,0));transform:translate(var(--haze-drawer-from-x,0), var(--haze-drawer-from-y,0))}}@keyframes haze-drawer-out-haze-Drawer__overlay{to{-webkit-transform:translate(var(--haze-drawer-from-x,0), var(--haze-drawer-from-y,0));-moz-transform:translate(var(--haze-drawer-from-x,0), var(--haze-drawer-from-y,0));-ms-transform:translate(var(--haze-drawer-from-x,0), var(--haze-drawer-from-y,0));transform:translate(var(--haze-drawer-from-x,0), var(--haze-drawer-from-y,0))}}@keyframes haze-drawer-backdrop-in-haze-Drawer__overlay{0%{opacity:0}}@keyframes haze-drawer-backdrop-out-haze-Drawer__overlay{to{opacity:0}}@media (forced-colors:active){.haze-Drawer__overlay{border:1px solid canvastext}.haze-Drawer__overlay:focus-visible{outline-offset:-2px;outline:2px solid highlight}}.haze-Drawer__left{--haze-drawer-from-x:-100%;--haze-drawer-from-y:0;width:320px;min-width:280px;max-width:85vw;height:100vh;margin-left:0;margin-right:auto}.haze-Drawer__right{--haze-drawer-from-x:100%;--haze-drawer-from-y:0;width:320px;min-width:280px;max-width:85vw;height:100vh;margin-left:auto;margin-right:0}.haze-Drawer__top{--haze-drawer-from-x:0;--haze-drawer-from-y:-100%;width:100vw;height:320px;margin-top:0;margin-bottom:auto}.haze-Drawer__bottom{--haze-drawer-from-x:0;--haze-drawer-from-y:100%;width:100vw;height:320px;margin-top:auto;margin-bottom:0}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* haze-ui dropdown-menu — generated by scripts/split-css.mjs, do not edit */
|
|
2
2
|
.haze-DropdownMenu__wrapper{display:inline-block;position:relative}
|
|
3
3
|
.haze-DropdownMenuCheckboxItem__item{width:100%;padding:var(--haze-space-2) var(--haze-space-3);cursor:pointer;font-size:var(--haze-text-sm);font-family:var(--haze-font-sans);color:var(--haze-color-text);border-radius:var(--haze-radius-sm);text-align:start;-webkit-transition:background var(--haze-duration-fast);transition:background var(--haze-duration-fast);background:0 0;border:none;align-items:center;display:flex}.haze-DropdownMenuCheckboxItem__item:hover{background:var(--haze-color-bg-muted)}.haze-DropdownMenuCheckboxItem__item:active{background:var(--haze-color-bg-subtle)}.haze-DropdownMenuCheckboxItem__item:disabled{opacity:.5;cursor:not-allowed}
|
|
4
|
-
.haze-DropdownMenuContent__content{min-width:10rem;padding:var(--haze-space-1);background:var(--haze-color-bg);border:1px solid var(--haze-color-border);border-radius:var(--haze-radius-md);box-shadow:var(--haze-shadow-md)}@media (forced-colors:active){.haze-DropdownMenuContent__content{border-color:canvastext}}
|
|
4
|
+
.haze-DropdownMenuContent__content{box-sizing:border-box;min-width:10rem;padding:var(--haze-space-1);background:var(--haze-color-bg);border:1px solid var(--haze-color-border);border-radius:var(--haze-radius-md);box-shadow:var(--haze-shadow-md)}@media (forced-colors:active){.haze-DropdownMenuContent__content{border-color:canvastext}}
|
|
5
5
|
.haze-DropdownMenuGroup__group{display:block}
|
|
6
6
|
.haze-DropdownMenuItem__item{width:100%;padding:var(--haze-space-2) var(--haze-space-3);cursor:pointer;font-size:var(--haze-text-sm);font-family:var(--haze-font-sans);color:var(--haze-color-text);border-radius:var(--haze-radius-sm);text-align:start;-webkit-transition:background var(--haze-duration-fast);transition:background var(--haze-duration-fast);background:0 0;border:none;align-items:center;display:flex}.haze-DropdownMenuItem__item:hover{background:var(--haze-color-bg-muted)}.haze-DropdownMenuItem__item:active{background:var(--haze-color-bg-subtle)}.haze-DropdownMenuItem__item:disabled{opacity:.5;cursor:not-allowed}
|
|
7
7
|
.haze-DropdownMenuRadioGroup__group{display:block}
|
|
8
8
|
.haze-DropdownMenuRadioItem__item{width:100%;padding:var(--haze-space-2) var(--haze-space-3);cursor:pointer;font-size:var(--haze-text-sm);font-family:var(--haze-font-sans);color:var(--haze-color-text);border-radius:var(--haze-radius-sm);text-align:start;-webkit-transition:background var(--haze-duration-fast);transition:background var(--haze-duration-fast);background:0 0;border:none;align-items:center;display:flex}.haze-DropdownMenuRadioItem__item:hover{background:var(--haze-color-bg-muted)}.haze-DropdownMenuRadioItem__item:active{background:var(--haze-color-bg-subtle)}.haze-DropdownMenuRadioItem__item:disabled{opacity:.5;cursor:not-allowed}
|
|
9
9
|
.haze-DropdownMenuSeparator__separator{height:1px;margin:var(--haze-space-1) 0;background:var(--haze-color-border)}
|
|
10
10
|
.haze-DropdownMenuSub__wrapper{display:block;position:relative}
|
|
11
|
-
.haze-DropdownMenuSubContent__content{min-width:10rem;padding:var(--haze-space-1);background:var(--haze-color-bg);border:1px solid var(--haze-color-border);border-radius:var(--haze-radius-md);box-shadow:var(--haze-shadow-md)}@media (forced-colors:active){.haze-DropdownMenuSubContent__content{border-color:canvastext}}
|
|
11
|
+
.haze-DropdownMenuSubContent__content{box-sizing:border-box;min-width:10rem;padding:var(--haze-space-1);background:var(--haze-color-bg);border:1px solid var(--haze-color-border);border-radius:var(--haze-radius-md);box-shadow:var(--haze-shadow-md)}@media (forced-colors:active){.haze-DropdownMenuSubContent__content{border-color:canvastext}}
|
|
12
12
|
.haze-DropdownMenuSubTrigger__trigger{width:100%;padding:var(--haze-space-2) var(--haze-space-3);cursor:pointer;font-size:var(--haze-text-sm);font-family:var(--haze-font-sans);color:var(--haze-color-text);border-radius:var(--haze-radius-sm);text-align:start;-webkit-transition:background var(--haze-duration-fast);transition:background var(--haze-duration-fast);background:0 0;border:none;align-items:center;display:flex}.haze-DropdownMenuSubTrigger__trigger:after{content:"›";-webkit-margin-start:auto;color:var(--haze-color-text-muted);margin-inline-start:auto}[dir=rtl] .haze-DropdownMenuSubTrigger__trigger:after{content:"‹"}.haze-DropdownMenuSubTrigger__trigger:hover,.haze-DropdownMenuSubTrigger__trigger[aria-expanded=true]{background:var(--haze-color-bg-muted)}.haze-DropdownMenuSubTrigger__trigger:active{background:var(--haze-color-bg-subtle)}.haze-DropdownMenuSubTrigger__trigger:disabled{opacity:.5;cursor:not-allowed}
|
|
13
13
|
.haze-DropdownMenuTrigger__trigger{cursor:pointer;font:inherit;color:inherit;background:0 0;border:none;padding:0}
|
|
14
14
|
.haze-dropdown-menu-item-styles__dropdownMenuItemDanger{color:var(--haze-color-danger)}.haze-dropdown-menu-item-styles__dropdownMenuItemDanger:hover,.haze-dropdown-menu-item-styles__dropdownMenuItemDanger:active{background:var(--haze-color-danger-subtle)}.haze-dropdown-menu-item-styles__dropdownMenuItemIcon{-webkit-margin-end:var(--haze-space-2);flex-shrink:0;align-items:center;margin-inline-end:var(--haze-space-2);display:inline-flex}.haze-dropdown-menu-item-styles__dropdownMenuItemIcon svg{width:1em;height:1em}.haze-dropdown-menu-item-styles__dropdownMenuItemKbd{-webkit-margin-start:auto;-webkit-padding-start:var(--haze-space-3);color:var(--haze-color-text-muted);font-family:var(--haze-font-mono);font-size:var(--haze-text-xs);margin-inline-start:auto;padding-inline-start:var(--haze-space-3)}.haze-dropdown-menu-item-styles__dropdownMenuItemIndicator{-webkit-margin-end:var(--haze-space-2);width:1em;height:1em;flex-shrink:0;justify-content:center;align-items:center;margin-inline-end:var(--haze-space-2);display:inline-flex}.haze-dropdown-menu-item-styles__dropdownMenuGroupLabel{padding:var(--haze-space-2) var(--haze-space-3) var(--haze-space-1);font-family:var(--haze-font-sans);font-size:var(--haze-text-xs);font-weight:var(--haze-weight-medium);color:var(--haze-color-text-muted)}
|
package/dist/css/hover-card.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* haze-ui hover-card — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
-
.haze-HoverCard__container{display:inline-flex;position:relative}.haze-HoverCard__panelVisuals{min-width:240px;max-width:320px;padding:var(--haze-space-4);border:1px solid var(--haze-color-border);border-radius:var(--haze-radius-lg);background:var(--haze-color-bg);color:var(--haze-color-text);font-family:var(--haze-font-sans);font-size:var(--haze-text-sm);box-shadow:var(--haze-shadow-lg)}@media (forced-colors:active){.haze-HoverCard__panelVisuals{border-color:canvastext}}
|
|
2
|
+
.haze-HoverCard__container{display:inline-flex;position:relative}.haze-HoverCard__panelVisuals{box-sizing:border-box;min-width:240px;max-width:320px;padding:var(--haze-space-4);border:1px solid var(--haze-color-border);border-radius:var(--haze-radius-lg);background:var(--haze-color-bg);color:var(--haze-color-text);font-family:var(--haze-font-sans);font-size:var(--haze-text-sm);box-shadow:var(--haze-shadow-lg)}@media (forced-colors:active){.haze-HoverCard__panelVisuals{border-color:canvastext}}
|
package/dist/css/list.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/* haze-ui list — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
-
.haze-List__base{font-family:var(--haze-font-sans);font-size:var(--haze-text-sm);color:var(--haze-color-text);line-height:var(--haze-leading-normal);-webkit-padding-start:var(--haze-space-5);margin:0;padding-inline-start:var(--haze-space-5)}.haze-List__unordered{list-style-type:disc}.haze-List__ordered{list-style-type:decimal}.haze-List__none{-webkit-padding-start:0;padding-inline-start:0;list-style-type:none}
|
|
2
|
+
.haze-List__base{font-family:var(--haze-font-sans);font-size:var(--haze-text-sm);color:var(--haze-color-text);line-height:var(--haze-leading-normal);-webkit-padding-start:var(--haze-space-5);margin:0;padding-inline-start:var(--haze-space-5)}.haze-List__unordered{list-style-type:disc}.haze-List__ordered{list-style-type:decimal}.haze-List__none{-webkit-padding-start:0;padding-inline-start:0;list-style-type:none}.haze-List__loadMoreSlot{padding:var(--haze-space-1) 0;list-style:none}
|
|
3
3
|
.haze-ListItem__item{padding:var(--haze-space-1) 0}
|
package/dist/css/menu.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* haze-ui menu — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
-
.haze-Menu__container{display:inline-flex;position:relative}.haze-Menu__panel{min-width:160px;padding:var(--haze-space-1) 0;border:1px solid var(--haze-color-border);border-radius:var(--haze-radius-lg);background:var(--haze-color-bg);box-shadow:var(--haze-shadow-lg)}@media (forced-colors:active){.haze-Menu__panel{border-color:canvastext}}
|
|
2
|
+
.haze-Menu__container{display:inline-flex;position:relative}.haze-Menu__panel{box-sizing:border-box;min-width:160px;padding:var(--haze-space-1) 0;border:1px solid var(--haze-color-border);border-radius:var(--haze-radius-lg);background:var(--haze-color-bg);box-shadow:var(--haze-shadow-lg)}@media (forced-colors:active){.haze-Menu__panel{border-color:canvastext}}
|
|
3
3
|
.haze-MenuCheckboxItem__item{width:100%;padding:var(--haze-space-2) var(--haze-space-3);color:var(--haze-color-text);font-family:var(--haze-font-sans);font-size:var(--haze-text-sm);text-align:start;cursor:pointer;-webkit-transition:background var(--haze-duration-fast);transition:background var(--haze-duration-fast);background:0 0;border:none;align-items:center;display:flex}.haze-MenuCheckboxItem__item:hover{background:var(--haze-color-bg-subtle)}.haze-MenuCheckboxItem__item:active{background:var(--haze-color-bg-muted)}.haze-MenuCheckboxItem__item:focus-visible{background:var(--haze-color-bg-subtle);box-shadow:inset 0 0 0 2px var(--haze-color-focus-ring);outline:none}@media (forced-colors:active){.haze-MenuCheckboxItem__item:focus-visible{outline-offset:-2px;outline:2px solid highlight}}.haze-MenuCheckboxItem__item:disabled{opacity:.5;cursor:not-allowed}
|
|
4
4
|
.haze-MenuDivider__divider{height:1px;margin:var(--haze-space-1) 0;background:var(--haze-color-border)}
|
|
5
5
|
.haze-MenuGroup__group{display:block}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
.haze-MenuRadioGroup__group{display:block}
|
|
8
8
|
.haze-MenuRadioItem__item{width:100%;padding:var(--haze-space-2) var(--haze-space-3);color:var(--haze-color-text);font-family:var(--haze-font-sans);font-size:var(--haze-text-sm);text-align:start;cursor:pointer;-webkit-transition:background var(--haze-duration-fast);transition:background var(--haze-duration-fast);background:0 0;border:none;align-items:center;display:flex}.haze-MenuRadioItem__item:hover{background:var(--haze-color-bg-subtle)}.haze-MenuRadioItem__item:active{background:var(--haze-color-bg-muted)}.haze-MenuRadioItem__item:focus-visible{background:var(--haze-color-bg-subtle);box-shadow:inset 0 0 0 2px var(--haze-color-focus-ring);outline:none}@media (forced-colors:active){.haze-MenuRadioItem__item:focus-visible{outline-offset:-2px;outline:2px solid highlight}}.haze-MenuRadioItem__item:disabled{opacity:.5;cursor:not-allowed}
|
|
9
9
|
.haze-MenuSub__wrapper{display:block;position:relative}
|
|
10
|
-
.haze-MenuSubContent__panel{min-width:160px;padding:var(--haze-space-1) 0;border:1px solid var(--haze-color-border);border-radius:var(--haze-radius-lg);background:var(--haze-color-bg);box-shadow:var(--haze-shadow-lg)}@media (forced-colors:active){.haze-MenuSubContent__panel{border-color:canvastext}}
|
|
10
|
+
.haze-MenuSubContent__panel{box-sizing:border-box;min-width:160px;padding:var(--haze-space-1) 0;border:1px solid var(--haze-color-border);border-radius:var(--haze-radius-lg);background:var(--haze-color-bg);box-shadow:var(--haze-shadow-lg)}@media (forced-colors:active){.haze-MenuSubContent__panel{border-color:canvastext}}
|
|
11
11
|
.haze-MenuSubTrigger__trigger{width:100%;padding:var(--haze-space-2) var(--haze-space-3);color:var(--haze-color-text);font-family:var(--haze-font-sans);font-size:var(--haze-text-sm);text-align:start;cursor:pointer;-webkit-transition:background var(--haze-duration-fast);transition:background var(--haze-duration-fast);background:0 0;border:none;align-items:center;display:flex}.haze-MenuSubTrigger__trigger:after{content:"›";-webkit-margin-start:auto;color:var(--haze-color-text-muted);margin-inline-start:auto}[dir=rtl] .haze-MenuSubTrigger__trigger:after{content:"‹"}.haze-MenuSubTrigger__trigger:hover,.haze-MenuSubTrigger__trigger[aria-expanded=true]{background:var(--haze-color-bg-subtle)}.haze-MenuSubTrigger__trigger:active{background:var(--haze-color-bg-muted)}.haze-MenuSubTrigger__trigger:focus-visible{background:var(--haze-color-bg-subtle);box-shadow:inset 0 0 0 2px var(--haze-color-focus-ring);outline:none}@media (forced-colors:active){.haze-MenuSubTrigger__trigger:focus-visible{outline-offset:-2px;outline:2px solid highlight}}.haze-MenuSubTrigger__trigger:disabled{opacity:.5;cursor:not-allowed}
|
|
12
12
|
.haze-menu-item-styles__menuItemDanger{color:var(--haze-color-danger)}.haze-menu-item-styles__menuItemDanger:hover,.haze-menu-item-styles__menuItemDanger:active{background:var(--haze-color-danger-subtle)}.haze-menu-item-styles__menuItemIcon{-webkit-margin-end:var(--haze-space-2);flex-shrink:0;align-items:center;margin-inline-end:var(--haze-space-2);display:inline-flex}.haze-menu-item-styles__menuItemIcon svg{width:1em;height:1em}.haze-menu-item-styles__menuItemKbd{-webkit-margin-start:auto;-webkit-padding-start:var(--haze-space-3);color:var(--haze-color-text-muted);font-family:var(--haze-font-mono);font-size:var(--haze-text-xs);margin-inline-start:auto;padding-inline-start:var(--haze-space-3)}.haze-menu-item-styles__menuItemIndicator{-webkit-margin-end:var(--haze-space-2);width:1em;height:1em;flex-shrink:0;justify-content:center;align-items:center;margin-inline-end:var(--haze-space-2);display:inline-flex}.haze-menu-item-styles__menuGroupLabel{padding:var(--haze-space-2) var(--haze-space-3) var(--haze-space-1);font-family:var(--haze-font-sans);font-size:var(--haze-text-xs);font-weight:var(--haze-weight-medium);color:var(--haze-color-text-muted)}
|
|
13
13
|
.haze-floating__floatingNative{margin:0;inset:auto}.haze-floating__floatingAnchored{position-anchor:var(--haze-floating-anchor)}.haze-floating__floatingFixed{position:fixed}.haze-floating__floatingHidden{display:none}.haze-floating__floatingAnimated[data-state=open]{-webkit-animation:haze-floating-in-haze-floating__floatingAnimated var(--haze-duration-fast) var(--haze-ease);animation:haze-floating-in-haze-floating__floatingAnimated var(--haze-duration-fast) var(--haze-ease)}.haze-floating__floatingAnimated[data-state=closed]{-webkit-animation:haze-floating-out-haze-floating__floatingAnimated var(--haze-duration-fast) var(--haze-ease) forwards;animation:haze-floating-out-haze-floating__floatingAnimated var(--haze-duration-fast) var(--haze-ease) forwards}@keyframes haze-floating-in-haze-floating__floatingAnimated{0%{opacity:0}}@keyframes haze-floating-out-haze-floating__floatingAnimated{to{opacity:0}}.haze-floating__anchoredBottom,.haze-floating__anchoredBottomSpan{position-area:bottom span-right;margin-top:var(--haze-space-1);position-try-fallbacks:flip-block}.haze-floating__anchoredBottomCenter{position-area:bottom center;margin-top:var(--haze-space-1);position-try-fallbacks:flip-block}.haze-floating__anchoredBottomEnd{position-area:bottom span-left;margin-top:var(--haze-space-1);position-try-fallbacks:flip-block}.haze-floating__anchoredTop{position-area:top center;margin-bottom:var(--haze-space-1);position-try-fallbacks:flip-block}.haze-floating__anchoredLeft{position-area:left center;margin-right:var(--haze-space-1);position-try-fallbacks:flip-inline}.haze-floating__anchoredRight{position-area:right center;margin-left:var(--haze-space-1);position-try-fallbacks:flip-inline}.haze-floating__anchoredLogicalBottom{position-area:span-inline-end block-end;position-try-fallbacks:flip-block;margin-block-start:var(--haze-space-1)}.haze-floating__anchoredLogicalBottomCenter{position-area:block-end center;position-try-fallbacks:flip-block;margin-block-start:var(--haze-space-1)}.haze-floating__anchoredLogicalBottomEnd{position-area:span-inline-start block-end;position-try-fallbacks:flip-block;margin-block-start:var(--haze-space-1)}.haze-floating__anchoredLogicalTop{position-area:block-start center;position-try-fallbacks:flip-block;margin-block-end:var(--haze-space-1)}.haze-floating__anchoredLogicalLeft{position-area:inline-start center;-webkit-margin-end:var(--haze-space-1);position-try-fallbacks:flip-inline;margin-inline-end:var(--haze-space-1)}.haze-floating__anchoredLogicalRight{position-area:inline-end center;-webkit-margin-start:var(--haze-space-1);position-try-fallbacks:flip-inline;margin-inline-start:var(--haze-space-1)}.haze-floating__fallbackBottom{z-index:1000;margin-top:var(--haze-space-1);position:absolute;top:100%;left:0}.haze-floating__fallbackBottomCenter{z-index:1000;margin-top:var(--haze-space-1);position:absolute;top:100%;left:50%;transform:translate(-50%)}.haze-floating__fallbackBottomEnd{z-index:1000;margin-top:var(--haze-space-1);position:absolute;top:100%;right:0}.haze-floating__fallbackTop{z-index:1000;margin-bottom:var(--haze-space-1);position:absolute;bottom:100%;left:50%;transform:translate(-50%)}.haze-floating__fallbackLeft{z-index:1000;margin-right:var(--haze-space-1);position:absolute;top:50%;right:100%;transform:translateY(-50%)}.haze-floating__fallbackRight{z-index:1000;margin-left:var(--haze-space-1);position:absolute;top:50%;left:100%;transform:translateY(-50%)}.haze-floating__gapBelow{margin-top:var(--haze-space-1)}.haze-floating__gapAbove{margin-bottom:var(--haze-space-1)}.haze-floating__gapBefore{margin-right:var(--haze-space-1)}.haze-floating__gapAfter{margin-left:var(--haze-space-1)}
|
package/dist/css/popover.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/* haze-ui popover — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
-
.haze-Popover__container{display:inline-flex;position:relative}.haze-Popover__panelVisuals{padding:var(--haze-space-3);border:1px solid var(--haze-color-border);border-radius:var(--haze-radius-lg);background:var(--haze-color-bg);color:var(--haze-color-text);font-family:var(--haze-font-sans);font-size:var(--haze-text-sm);box-shadow:var(--haze-shadow-lg);min-width:200px}@media (forced-colors:active){.haze-Popover__panelVisuals{border-color:canvastext}}
|
|
2
|
+
.haze-Popover__container{display:inline-flex;position:relative}.haze-Popover__panelVisuals{box-sizing:border-box;padding:var(--haze-space-3);border:1px solid var(--haze-color-border);border-radius:var(--haze-radius-lg);background:var(--haze-color-bg);color:var(--haze-color-text);font-family:var(--haze-font-sans);font-size:var(--haze-text-sm);box-shadow:var(--haze-shadow-lg);min-width:200px}@media (forced-colors:active){.haze-Popover__panelVisuals{border-color:canvastext}}
|
|
3
3
|
.haze-floating__floatingNative{margin:0;inset:auto}.haze-floating__floatingAnchored{position-anchor:var(--haze-floating-anchor)}.haze-floating__floatingFixed{position:fixed}.haze-floating__floatingHidden{display:none}.haze-floating__floatingAnimated[data-state=open]{-webkit-animation:haze-floating-in-haze-floating__floatingAnimated var(--haze-duration-fast) var(--haze-ease);animation:haze-floating-in-haze-floating__floatingAnimated var(--haze-duration-fast) var(--haze-ease)}.haze-floating__floatingAnimated[data-state=closed]{-webkit-animation:haze-floating-out-haze-floating__floatingAnimated var(--haze-duration-fast) var(--haze-ease) forwards;animation:haze-floating-out-haze-floating__floatingAnimated var(--haze-duration-fast) var(--haze-ease) forwards}@keyframes haze-floating-in-haze-floating__floatingAnimated{0%{opacity:0}}@keyframes haze-floating-out-haze-floating__floatingAnimated{to{opacity:0}}.haze-floating__anchoredBottom,.haze-floating__anchoredBottomSpan{position-area:bottom span-right;margin-top:var(--haze-space-1);position-try-fallbacks:flip-block}.haze-floating__anchoredBottomCenter{position-area:bottom center;margin-top:var(--haze-space-1);position-try-fallbacks:flip-block}.haze-floating__anchoredBottomEnd{position-area:bottom span-left;margin-top:var(--haze-space-1);position-try-fallbacks:flip-block}.haze-floating__anchoredTop{position-area:top center;margin-bottom:var(--haze-space-1);position-try-fallbacks:flip-block}.haze-floating__anchoredLeft{position-area:left center;margin-right:var(--haze-space-1);position-try-fallbacks:flip-inline}.haze-floating__anchoredRight{position-area:right center;margin-left:var(--haze-space-1);position-try-fallbacks:flip-inline}.haze-floating__anchoredLogicalBottom{position-area:span-inline-end block-end;position-try-fallbacks:flip-block;margin-block-start:var(--haze-space-1)}.haze-floating__anchoredLogicalBottomCenter{position-area:block-end center;position-try-fallbacks:flip-block;margin-block-start:var(--haze-space-1)}.haze-floating__anchoredLogicalBottomEnd{position-area:span-inline-start block-end;position-try-fallbacks:flip-block;margin-block-start:var(--haze-space-1)}.haze-floating__anchoredLogicalTop{position-area:block-start center;position-try-fallbacks:flip-block;margin-block-end:var(--haze-space-1)}.haze-floating__anchoredLogicalLeft{position-area:inline-start center;-webkit-margin-end:var(--haze-space-1);position-try-fallbacks:flip-inline;margin-inline-end:var(--haze-space-1)}.haze-floating__anchoredLogicalRight{position-area:inline-end center;-webkit-margin-start:var(--haze-space-1);position-try-fallbacks:flip-inline;margin-inline-start:var(--haze-space-1)}.haze-floating__fallbackBottom{z-index:1000;margin-top:var(--haze-space-1);position:absolute;top:100%;left:0}.haze-floating__fallbackBottomCenter{z-index:1000;margin-top:var(--haze-space-1);position:absolute;top:100%;left:50%;transform:translate(-50%)}.haze-floating__fallbackBottomEnd{z-index:1000;margin-top:var(--haze-space-1);position:absolute;top:100%;right:0}.haze-floating__fallbackTop{z-index:1000;margin-bottom:var(--haze-space-1);position:absolute;bottom:100%;left:50%;transform:translate(-50%)}.haze-floating__fallbackLeft{z-index:1000;margin-right:var(--haze-space-1);position:absolute;top:50%;right:100%;transform:translateY(-50%)}.haze-floating__fallbackRight{z-index:1000;margin-left:var(--haze-space-1);position:absolute;top:50%;left:100%;transform:translateY(-50%)}.haze-floating__gapBelow{margin-top:var(--haze-space-1)}.haze-floating__gapAbove{margin-bottom:var(--haze-space-1)}.haze-floating__gapBefore{margin-right:var(--haze-space-1)}.haze-floating__gapAfter{margin-left:var(--haze-space-1)}
|
package/dist/css/radio.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/* haze-ui radio — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
-
.haze-Radio__radioInput{appearance:none;border:1px solid var(--haze-color-border);border-radius:var(--haze-radius-full);background:var(--haze-color-bg);cursor:pointer;
|
|
2
|
+
.haze-Radio__radioInput{appearance:none;width:var(--haze-space-6);height:var(--haze-space-6);border:1px solid var(--haze-color-border);border-radius:var(--haze-radius-full);background:var(--haze-color-bg);cursor:pointer;margin:var(--haze-space-1);-webkit-transition:background var(--haze-duration-fast),border-color var(--haze-duration-fast),box-shadow var(--haze-duration-fast);transition:background var(--haze-duration-fast),border-color var(--haze-duration-fast),box-shadow var(--haze-duration-fast);flex-shrink:0;position:relative}.haze-Radio__radioInput:hover{border-color:var(--haze-color-border-hover)}.haze-Radio__radioInput:focus-visible{box-shadow:0 0 0 3px var(--haze-color-focus-ring);outline:none}.haze-Radio__radioInput:checked{border-color:var(--haze-color-primary)}.haze-Radio__radioInput:checked:after{content:"";top:5px;border-radius:var(--haze-radius-full);background:var(--haze-color-primary);width:12px;height:12px;position:absolute;inset-inline-start:5px}.haze-Radio__radioInput:disabled{opacity:.5;cursor:not-allowed}@media (forced-colors:active){.haze-Radio__radioInput{border-color:canvastext}.haze-Radio__radioInput:checked:after{background:canvastext}.haze-Radio__radioInput:focus-visible{outline-offset:2px;outline:2px solid highlight}.haze-Radio__radioInput:disabled{opacity:1;border-color:graytext}.haze-Radio__radioInput:disabled:after{background:graytext}}.haze-Radio__labelStyle{align-items:center;gap:var(--haze-space-2);font-family:var(--haze-font-sans);font-size:var(--haze-text-sm);color:var(--haze-color-text);cursor:pointer;display:inline-flex}
|
|
3
3
|
.haze-RadioGroupCore__base{gap:var(--haze-space-2);border:none;flex-direction:column;margin:0;padding:0;display:flex}
|
package/dist/css/resizable.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* haze-ui resizable — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
-
.haze-Resizable__groupBase{display:flex;overflow:hidden}.haze-Resizable__groupHorizontal{flex-direction:row;height:100%}.haze-Resizable__groupVertical{flex-direction:column;width:100%}.haze-
|
|
2
|
+
.haze-Resizable__groupBase{box-sizing:border-box;flex:1 1 0;min-width:0;min-height:0;display:flex;overflow:hidden}.haze-Resizable__groupHorizontal{flex-direction:row;height:100%}.haze-Resizable__groupVertical{flex-direction:column;width:100%}.haze-Resizable__panelBase{box-sizing:border-box;min-width:0;min-height:0;overflow:auto}.haze-Resizable__panelCollapsed{visibility:hidden;overflow:hidden}.haze-Resizable__handleBase{background:var(--haze-color-border);-webkit-transition:background var(--haze-duration-fast);transition:background var(--haze-duration-fast);touch-action:none;-webkit-background-clip:content-box;background-clip:content-box;flex:none}.haze-Resizable__handleBase:hover,.haze-Resizable__handleBase:focus-visible{background:linear-gradient(to right, transparent 0, var(--haze-color-primary) 50%, transparent 100%) center/2px 100% no-repeat,var(--haze-color-bg-subtle)}.haze-Resizable__handleBase:focus-visible{box-shadow:inset 0 0 0 2px var(--haze-color-focus-ring);outline:none}.haze-Resizable__handleBase:has(+[data-slot=resizable-panel][data-collapsed]){cursor:pointer}@media (forced-colors:active){.haze-Resizable__handleBase{background:canvastext;-webkit-background-clip:content-box;background-clip:content-box}.haze-Resizable__handleBase:hover,.haze-Resizable__handleBase:focus-visible{background:highlight;-webkit-background-clip:content-box;background-clip:content-box}.haze-Resizable__handleBase:focus-visible{outline-offset:-2px;outline:2px solid highlight}}.haze-Resizable__handleHorizontal{width:2px;height:100%;padding-inline:calc((var(--haze-space-6) - 2px) / 2);cursor:col-resize}@media (pointer:coarse){.haze-Resizable__handleHorizontal{padding-inline:21px}}.haze-Resizable__handleVertical{width:100%;height:2px;padding-block:calc((var(--haze-space-6) - 2px) / 2);cursor:row-resize}.haze-Resizable__handleVertical:hover,.haze-Resizable__handleVertical:focus-visible{background:linear-gradient(to bottom, transparent 0, var(--haze-color-primary) 50%, transparent 100%) center/100% 2px no-repeat,var(--haze-color-bg-subtle)}@media (pointer:coarse){.haze-Resizable__handleVertical{padding-block:21px}}
|
package/dist/css/segmented.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* haze-ui segmented — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
-
.haze-SegmentedCore__container{background:var(--haze-color-bg-muted);border-radius:var(--haze-radius-md);font-family:var(--haze-font-sans);gap:2px;padding:2px;display:inline-flex;overflow-x:auto}.haze-SegmentedCore__sm button{padding:var(--haze-space-0) var(--haze-space-2);font-size:var(--haze-text-xs)}.haze-SegmentedCore__md button{padding:var(--haze-space-1) var(--haze-space-3);font-size:var(--haze-text-sm)}.haze-SegmentedCore__lg button{padding:var(--haze-space-2) var(--haze-space-4);font-size:var(--haze-text-base)}.haze-SegmentedCore__btn{border-radius:var(--haze-radius-sm);color:var(--haze-color-text-secondary);cursor:pointer;font-family:var(--haze-font-sans);font-weight:var(--haze-weight-medium);-webkit-transition:background var(--haze-duration-fast),color var(--haze-duration-fast);transition:background var(--haze-duration-fast),color var(--haze-duration-fast);white-space:nowrap;background:0 0;border:none}.haze-SegmentedCore__btn:hover:not(:disabled){color:var(--haze-color-text)}.haze-SegmentedCore__btn:disabled{opacity:.5;cursor:not-allowed}.haze-SegmentedCore__btn:focus-visible{box-shadow:0 0 0 2px var(--haze-color-focus-ring);outline:none}@media (forced-colors:active){.haze-SegmentedCore__btn{outline-offset:-1px;outline:1px solid canvastext}.haze-SegmentedCore__btn:focus-visible{outline-offset:-2px;outline:2px solid highlight}.haze-SegmentedCore__btn:disabled{opacity:1;color:graytext;outline-color:graytext}}.haze-SegmentedCore__activeBtn{background:var(--haze-color-bg);color:var(--haze-color-text);box-shadow:var(--haze-shadow-sm)}@media (forced-colors:active){.haze-SegmentedCore__activeBtn{color:highlighttext;background:highlight}}
|
|
2
|
+
.haze-SegmentedCore__container{background:var(--haze-color-bg-muted);border-radius:var(--haze-radius-md);font-family:var(--haze-font-sans);gap:2px;padding:2px;display:inline-flex;overflow-x:auto}.haze-SegmentedCore__sm button{padding:var(--haze-space-0) var(--haze-space-2);font-size:var(--haze-text-xs)}.haze-SegmentedCore__md button{padding:var(--haze-space-1) var(--haze-space-3);font-size:var(--haze-text-sm)}.haze-SegmentedCore__lg button{padding:var(--haze-space-2) var(--haze-space-4);font-size:var(--haze-text-base)}.haze-SegmentedCore__btn{border-radius:var(--haze-radius-sm);color:var(--haze-color-text-secondary);cursor:pointer;font-family:var(--haze-font-sans);font-weight:var(--haze-weight-medium);min-height:var(--haze-space-6);-webkit-transition:background var(--haze-duration-fast),color var(--haze-duration-fast);transition:background var(--haze-duration-fast),color var(--haze-duration-fast);white-space:nowrap;background:0 0;border:none}.haze-SegmentedCore__btn:hover:not(:disabled){color:var(--haze-color-text)}.haze-SegmentedCore__btn:disabled{opacity:.5;cursor:not-allowed}.haze-SegmentedCore__btn:focus-visible{box-shadow:0 0 0 2px var(--haze-color-focus-ring);outline:none}@media (forced-colors:active){.haze-SegmentedCore__btn{outline-offset:-1px;outline:1px solid canvastext}.haze-SegmentedCore__btn:focus-visible{outline-offset:-2px;outline:2px solid highlight}.haze-SegmentedCore__btn:disabled{opacity:1;color:graytext;outline-color:graytext}}.haze-SegmentedCore__activeBtn{background:var(--haze-color-bg);color:var(--haze-color-text);box-shadow:var(--haze-shadow-sm)}@media (forced-colors:active){.haze-SegmentedCore__activeBtn{color:highlighttext;background:highlight}}
|
package/dist/css/sidebar.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* haze-ui sidebar — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
-
.haze-Sidebar__sidebar{width:var(--haze-sidebar-width,16rem);background:var(--haze-color-bg);height:100%;color:var(--haze-color-text);border-inline-end:1px solid var(--haze-color-border);font-family:var(--haze-font-sans);-webkit-transition:width var(--haze-duration-normal) var(--haze-ease);transition:width var(--haze-duration-normal) var(--haze-ease);flex-direction:column;display:flex;overflow:hidden}.haze-Sidebar__sidebar[data-state=collapsed]{width:var(--haze-sidebar-width-collapsed,3.5rem)}.haze-Sidebar__nav{gap:var(--haze-space-4);min-height:0;padding:var(--haze-space-3);flex-direction:column;flex:1;display:flex;overflow:hidden auto}.haze-Sidebar__group{gap:var(--haze-space-1);flex-direction:column;display:flex}.haze-Sidebar__groupTitle{padding:var(--haze-space-2);font-size:var(--haze-text-xs);font-weight:var(--haze-weight-medium);color:var(--haze-color-text-muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.haze-Sidebar__item{align-items:center;gap:var(--haze-space-3);min-width:0;padding:var(--haze-space-2);border-radius:var(--haze-radius-md);color:var(--haze-color-text-muted);font-size:var(--haze-text-sm);white-space:nowrap;cursor:pointer;-webkit-transition:color var(--haze-duration-fast) var(--haze-ease),background var(--haze-duration-fast) var(--haze-ease);transition:color var(--haze-duration-fast) var(--haze-ease),background var(--haze-duration-fast) var(--haze-ease);-webkit-text-decoration:none;text-decoration:none;display:flex;position:relative}.haze-Sidebar__item:hover{color:var(--haze-color-text);background:var(--haze-color-bg-muted)}.haze-Sidebar__item:focus-visible{box-shadow:0 0 0 3px var(--haze-color-focus-ring);outline:none}[data-state=collapsed] .haze-Sidebar__item{flex:1;justify-content:center;padding-inline:0}.haze-Sidebar__itemActive{color:var(--haze-color-primary);font-weight:var(--haze-weight-medium);background:var(--haze-color-primary-subtle)}.haze-Sidebar__itemActive:hover{color:var(--haze-color-primary);background:var(--haze-color-primary-subtle)}.haze-Sidebar__itemIcon{flex-shrink:0;justify-content:center;align-items:center;width:20px;height:20px;display:inline-flex}.haze-Sidebar__itemIcon>svg{width:100%;height:100%}.haze-Sidebar__itemLabel{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}[data-state=collapsed] .haze-Sidebar__itemLabel{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.haze-Sidebar__footer{gap:var(--haze-space-1);padding:var(--haze-space-3);border-block-start:1px solid var(--haze-color-border);flex-direction:column;display:flex}.haze-Sidebar__toggle{width:var(--haze-space-8);height:var(--haze-space-8);border-radius:var(--haze-radius-md);color:var(--haze-color-text-muted);cursor:pointer;-webkit-transition:color var(--haze-duration-fast) var(--haze-ease),background var(--haze-duration-fast) var(--haze-ease);transition:color var(--haze-duration-fast) var(--haze-ease),background var(--haze-duration-fast) var(--haze-ease);background:0 0;border:none;justify-content:center;align-self:flex-end;align-items:center;display:inline-flex}.haze-Sidebar__toggle:hover{color:var(--haze-color-text);background:var(--haze-color-bg-muted)}.haze-Sidebar__toggle:focus-visible{box-shadow:0 0 0 3px var(--haze-color-focus-ring);outline:none}.haze-Sidebar__toggleIcon{width:16px;height:16px;-webkit-transition:-webkit-transform var(--haze-duration-fast) var(--haze-ease);transition:transform var(--haze-duration-fast) var(--haze-ease)}[data-state=collapsed] .haze-Sidebar__toggleIcon{transform:rotate(180deg)}
|
|
2
|
+
.haze-Sidebar__sidebar{box-sizing:border-box;width:var(--haze-sidebar-width,16rem);background:var(--haze-color-bg);height:100%;color:var(--haze-color-text);border-inline-end:1px solid var(--haze-color-border);font-family:var(--haze-font-sans);-webkit-transition:width var(--haze-duration-normal) var(--haze-ease);transition:width var(--haze-duration-normal) var(--haze-ease);flex-direction:column;display:flex;overflow:hidden}.haze-Sidebar__sidebar[data-state=collapsed]{width:var(--haze-sidebar-width-collapsed,3.5rem)}.haze-Sidebar__nav{gap:var(--haze-space-4);min-height:0;padding:var(--haze-space-3);flex-direction:column;flex:1;display:flex;overflow:hidden auto}.haze-Sidebar__group{gap:var(--haze-space-1);flex-direction:column;display:flex}.haze-Sidebar__groupTitle{padding:var(--haze-space-2);font-size:var(--haze-text-xs);font-weight:var(--haze-weight-medium);color:var(--haze-color-text-muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.haze-Sidebar__item{align-items:center;gap:var(--haze-space-3);min-width:0;padding:var(--haze-space-2);border-radius:var(--haze-radius-md);color:var(--haze-color-text-muted);font-size:var(--haze-text-sm);white-space:nowrap;cursor:pointer;-webkit-transition:color var(--haze-duration-fast) var(--haze-ease),background var(--haze-duration-fast) var(--haze-ease);transition:color var(--haze-duration-fast) var(--haze-ease),background var(--haze-duration-fast) var(--haze-ease);-webkit-text-decoration:none;text-decoration:none;display:flex;position:relative}.haze-Sidebar__item:hover{color:var(--haze-color-text);background:var(--haze-color-bg-muted)}.haze-Sidebar__item:focus-visible{box-shadow:0 0 0 3px var(--haze-color-focus-ring);outline:none}[data-state=collapsed] .haze-Sidebar__item{flex:1;justify-content:center;padding-inline:0}.haze-Sidebar__itemActive{color:var(--haze-color-primary);font-weight:var(--haze-weight-medium);background:var(--haze-color-primary-subtle)}.haze-Sidebar__itemActive:hover{color:var(--haze-color-primary);background:var(--haze-color-primary-subtle)}.haze-Sidebar__itemIcon{flex-shrink:0;justify-content:center;align-items:center;width:20px;height:20px;display:inline-flex}.haze-Sidebar__itemIcon>svg{width:100%;height:100%}.haze-Sidebar__itemLabel{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}[data-state=collapsed] .haze-Sidebar__itemLabel{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.haze-Sidebar__footer{gap:var(--haze-space-1);padding:var(--haze-space-3);border-block-start:1px solid var(--haze-color-border);flex-direction:column;display:flex}.haze-Sidebar__toggle{width:var(--haze-space-8);height:var(--haze-space-8);border-radius:var(--haze-radius-md);color:var(--haze-color-text-muted);cursor:pointer;-webkit-transition:color var(--haze-duration-fast) var(--haze-ease),background var(--haze-duration-fast) var(--haze-ease);transition:color var(--haze-duration-fast) var(--haze-ease),background var(--haze-duration-fast) var(--haze-ease);background:0 0;border:none;justify-content:center;align-self:flex-end;align-items:center;display:inline-flex}.haze-Sidebar__toggle:hover{color:var(--haze-color-text);background:var(--haze-color-bg-muted)}.haze-Sidebar__toggle:focus-visible{box-shadow:0 0 0 3px var(--haze-color-focus-ring);outline:none}.haze-Sidebar__toggleIcon{width:16px;height:16px;-webkit-transition:-webkit-transform var(--haze-duration-fast) var(--haze-ease);transition:transform var(--haze-duration-fast) var(--haze-ease)}[data-state=collapsed] .haze-Sidebar__toggleIcon{transform:rotate(180deg)}
|
package/dist/css/slider.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* haze-ui slider — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
-
.haze-SliderCore__base{appearance:none;
|
|
2
|
+
.haze-SliderCore__base{appearance:none;width:100%;height:var(--haze-space-6);background:var(--haze-color-bg-muted) center/100% 6px no-repeat;cursor:pointer;-webkit-transition:background var(--haze-duration-fast);transition:background var(--haze-duration-fast);outline:none}.haze-SliderCore__base::-webkit-slider-thumb{appearance:none;border-radius:var(--haze-radius-full);background:var(--haze-color-primary);border:2px solid var(--haze-color-bg);width:1.25rem;height:1.25rem;box-shadow:var(--haze-shadow-sm);cursor:pointer;-webkit-transition:background var(--haze-duration-fast),box-shadow var(--haze-duration-fast);transition:background var(--haze-duration-fast),box-shadow var(--haze-duration-fast)}.haze-SliderCore__base::-moz-range-thumb{border-radius:var(--haze-radius-full);background:var(--haze-color-primary);border:2px solid var(--haze-color-bg);width:1.25rem;height:1.25rem;box-shadow:var(--haze-shadow-sm);cursor:pointer}.haze-SliderCore__base:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px var(--haze-color-focus-ring)}.haze-SliderCore__base:focus-visible::-moz-range-thumb{box-shadow:0 0 0 3px var(--haze-color-focus-ring)}.haze-SliderCore__base:disabled{opacity:.5;cursor:not-allowed}@media (forced-colors:active){.haze-SliderCore__base{background:canvastext 50%/100% 6px no-repeat}.haze-SliderCore__base::-webkit-slider-thumb{background:highlight;border-color:highlighttext}.haze-SliderCore__base::-moz-range-thumb{background:highlight;border-color:highlighttext}.haze-SliderCore__base:focus-visible{outline-offset:2px;outline:2px solid highlight}}.haze-SliderCore__rangeWrapper{width:100%;display:block;position:relative}.haze-SliderCore__rangeWrapper:has(input:disabled){cursor:not-allowed;opacity:.5}.haze-SliderCore__singleWrapper{width:100%;display:flex;position:relative}.haze-SliderCore__rangeRail{height:var(--haze-space-6);background:var(--haze-color-bg-muted) center/100% 6px no-repeat;display:block}@media (forced-colors:active){.haze-SliderCore__rangeRail{background:canvastext 50%/100% 6px no-repeat}}.haze-SliderCore__rangeFill{height:var(--haze-space-6);background:var(--haze-color-primary) center/100% 6px no-repeat;position:absolute;inset-block-start:0}@media (forced-colors:active){.haze-SliderCore__rangeFill{background:highlight 50%/100% 6px no-repeat}}.haze-SliderCore__rangeInput{pointer-events:none;background:0 0;margin:0;position:absolute;inset-block-start:0;inset-inline-start:0}.haze-SliderCore__rangeInput::-webkit-slider-thumb{pointer-events:auto}.haze-SliderCore__rangeInput::-moz-range-thumb{pointer-events:auto}.haze-SliderCore__rangeInput:disabled{opacity:1}.haze-SliderCore__verticalWrapper{--haze-slider-track:calc(var(--haze-space-16) * 2);inline-size:max-content;display:inline-flex;position:relative}.haze-SliderCore__verticalInput{-webkit-writing-mode:vertical-lr;-ms-writing-mode:tb;writing-mode:vertical-lr;width:var(--haze-space-6);height:var(--haze-slider-track);-webkit-background-size:6px 100%;direction:rtl;background-size:6px 100%}@media (forced-colors:active){.haze-SliderCore__verticalInput{background:canvastext 50%/6px 100% no-repeat}}.haze-SliderCore__verticalRail{width:var(--haze-space-6);height:var(--haze-slider-track);background:var(--haze-color-bg-muted) center/6px 100% no-repeat}@media (forced-colors:active){.haze-SliderCore__verticalRail{background:canvastext 50%/6px 100% no-repeat}}.haze-SliderCore__verticalFill{width:var(--haze-space-6);background:var(--haze-color-primary) center/6px 100% no-repeat}@media (forced-colors:active){.haze-SliderCore__verticalFill{background:highlight 50%/6px 100% no-repeat}}.haze-SliderCore__marksHorizontal{padding-block-end:var(--haze-space-6)}.haze-SliderCore__marksVertical{-webkit-padding-end:var(--haze-space-12);padding-inline-end:var(--haze-space-12)}.haze-SliderCore__markBase{cursor:pointer;padding-inline:var(--haze-space-1);align-items:center;display:flex;position:absolute}.haze-SliderCore__markHorizontal{flex-direction:column;inset-block-start:calc((var(--haze-space-6) - 6px) / 2);transform:translate(-50%)}.haze-SliderCore__markHorizontal>span:first-child{margin-block-start:1px}.haze-SliderCore__markVertical{gap:var(--haze-space-2);inset-inline-start:calc((var(--haze-space-6) - 6px) / 2);transform:translateY(50%)}.haze-SliderCore__markTick{border-radius:var(--haze-radius-full);background:var(--haze-color-text-muted);flex:none;width:4px;height:4px}@media (forced-colors:active){.haze-SliderCore__markTick{background:canvastext}}.haze-SliderCore__markLabel{font-size:var(--haze-text-xs);line-height:var(--haze-leading-normal);color:var(--haze-color-text-secondary);white-space:nowrap}.haze-SliderCore__tooltipBubble{padding:var(--haze-space-1) var(--haze-space-2);border-radius:var(--haze-radius-md);background:var(--haze-color-text);color:var(--haze-color-text-inverse);font-family:var(--haze-font-sans);font-size:var(--haze-text-xs);line-height:var(--haze-leading-normal);white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;-webkit-transition:opacity var(--haze-duration-fast) var(--haze-ease),visibility var(--haze-duration-fast) var(--haze-ease);transition:opacity var(--haze-duration-fast) var(--haze-ease),visibility var(--haze-duration-fast) var(--haze-ease);position:absolute;inset-block-start:calc((var(--haze-space-6) - 6px) / 2 - var(--haze-space-1));transform:translate(-50%,-100%)}.haze-SliderCore__tooltipBubble[data-state=open]{opacity:1;visibility:visible}@media (forced-colors:active){.haze-SliderCore__tooltipBubble{color:canvastext;background:canvas;border:1px solid canvastext}}.haze-SliderCore__tooltipBubbleVertical{inset-block-start:auto;inset-inline-start:calc((var(--haze-space-6) + 6px) / 2 + var(--haze-space-2));transform:translateY(-50%)}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* haze-ui sparkline — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
+
.haze-sparkline-styles__base{vertical-align:middle;display:inline-block;overflow:visible}.haze-sparkline-styles__primary{fill:color-mix(in oklab, var(--haze-color-primary) 12%, transparent)}.haze-sparkline-styles__success{fill:color-mix(in oklab, var(--haze-color-success) 12%, transparent)}.haze-sparkline-styles__danger{fill:color-mix(in oklab, var(--haze-color-danger) 12%, transparent)}.haze-sparkline-styles__warning{fill:color-mix(in oklab, var(--haze-color-warning) 12%, transparent)}.haze-sparkline-styles__info{fill:color-mix(in oklab, var(--haze-color-info) 12%, transparent)}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* haze-ui status-bar — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
+
.haze-StatusBar__bar{box-sizing:border-box;align-items:stretch;gap:var(--haze-space-1);min-height:var(--haze-space-6);background:var(--haze-color-bg-subtle);border-block-start:1px solid var(--haze-color-border);color:var(--haze-color-text-muted);font-size:var(--haze-text-xs);line-height:var(--haze-leading-tight);display:flex}.haze-StatusBar__group{align-items:stretch;gap:var(--haze-space-1);min-width:0;display:flex}.haze-StatusBar__groupEnd{-webkit-margin-start:auto;margin-inline-start:auto}.haze-StatusBar__item{box-sizing:border-box;align-items:center;gap:var(--haze-space-1);padding-inline:var(--haze-space-2);color:inherit;font-family:inherit;font-size:inherit;white-space:nowrap;-webkit-transition:background var(--haze-duration-fast) var(--haze-ease),color var(--haze-duration-fast) var(--haze-ease);transition:background var(--haze-duration-fast) var(--haze-ease),color var(--haze-duration-fast) var(--haze-ease);background:0 0;border:none;display:inline-flex}.haze-StatusBar__item:hover{background:var(--haze-color-bg-muted);color:var(--haze-color-text)}.haze-StatusBar__item:focus-visible{box-shadow:0 0 0 3px var(--haze-color-focus-ring);outline:none}@media (width<=768px){.haze-StatusBar__item:not([data-priority]){display:none}}.haze-StatusBar__itemAction{cursor:pointer}
|
package/dist/css/switch.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* haze-ui switch — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
-
.haze-SwitchCore__track{border-radius:var(--haze-radius-full);background:var(--haze-color-bg-muted);cursor:pointer;-webkit-transition:background var(--haze-duration-normal);transition:background var(--haze-duration-normal);border:none;align-items:center;padding:2px;display:inline-flex;position:relative}.haze-SwitchCore__track:focus-visible{box-shadow:0 0 0 3px var(--haze-color-focus-ring);outline:none}.haze-SwitchCore__track:disabled{opacity:.5;cursor:not-allowed}@media (forced-colors:active){.haze-SwitchCore__track{border:1px solid canvastext}.haze-SwitchCore__track:focus-visible{outline-offset:2px;outline:2px solid highlight}.haze-SwitchCore__track:disabled{opacity:1;border-color:graytext}.haze-SwitchCore__track:disabled [data-slot=thumb]{background:graytext}}.haze-SwitchCore__trackChecked{background:var(--haze-color-primary)}@media (forced-colors:active){.haze-SwitchCore__trackChecked{background:highlight;border-color:highlight}.haze-SwitchCore__trackChecked [data-slot=thumb]{background:highlighttext}.haze-SwitchCore__trackChecked:disabled{background:graytext;border-color:graytext}.haze-SwitchCore__trackChecked:disabled [data-slot=thumb]{background:canvas}}.haze-SwitchCore__thumb{border-radius:var(--haze-radius-full);-webkit-transition:-webkit-transform var(--haze-duration-normal);transition:transform var(--haze-duration-normal);box-shadow:var(--haze-shadow-sm);background:#fff;display:block}.haze-SwitchCore__trackSm{width:2.25rem;height:
|
|
2
|
+
.haze-SwitchCore__track{border-radius:var(--haze-radius-full);background:var(--haze-color-bg-muted);cursor:pointer;-webkit-transition:background var(--haze-duration-normal);transition:background var(--haze-duration-normal);border:none;align-items:center;padding:2px;display:inline-flex;position:relative}.haze-SwitchCore__track:focus-visible{box-shadow:0 0 0 3px var(--haze-color-focus-ring);outline:none}.haze-SwitchCore__track:disabled{opacity:.5;cursor:not-allowed}@media (forced-colors:active){.haze-SwitchCore__track{border:1px solid canvastext}.haze-SwitchCore__track:focus-visible{outline-offset:2px;outline:2px solid highlight}.haze-SwitchCore__track:disabled{opacity:1;border-color:graytext}.haze-SwitchCore__track:disabled [data-slot=thumb]{background:graytext}}.haze-SwitchCore__trackChecked{background:var(--haze-color-primary)}@media (forced-colors:active){.haze-SwitchCore__trackChecked{background:highlight;border-color:highlight}.haze-SwitchCore__trackChecked [data-slot=thumb]{background:highlighttext}.haze-SwitchCore__trackChecked:disabled{background:graytext;border-color:graytext}.haze-SwitchCore__trackChecked:disabled [data-slot=thumb]{background:canvas}}.haze-SwitchCore__thumb{border-radius:var(--haze-radius-full);-webkit-transition:-webkit-transform var(--haze-duration-normal);transition:transform var(--haze-duration-normal);box-shadow:var(--haze-shadow-sm);background:#fff;display:block}.haze-SwitchCore__trackSm{width:2.25rem;height:var(--haze-space-6)}.haze-SwitchCore__trackMd{width:40px;height:var(--haze-space-6)}.haze-SwitchCore__trackLg{width:48px;height:26px}.haze-SwitchCore__thumbSm{width:1rem;height:1rem}.haze-SwitchCore__thumbMd{width:18px;height:18px}.haze-SwitchCore__thumbLg{width:22px;height:22px}.haze-SwitchCore__thumbCheckedSm{transform:translate(1rem)}.haze-SwitchCore__thumbCheckedMd{transform:translate(18px)}.haze-SwitchCore__thumbCheckedLg{transform:translate(22px)}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* haze-ui tab-bar — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
+
.haze-TabBar__bar{box-sizing:border-box;min-height:calc(var(--haze-space-12) + var(--haze-space-2));border-block-start:1px solid var(--haze-color-border);background:var(--haze-color-bg);flex-direction:row;align-items:stretch;padding-block-end:calc(var(--haze-space-1) + env(safe-area-inset-bottom));display:flex;overflow-x:auto}.haze-TabBar__item{box-sizing:border-box;justify-content:center;align-items:center;gap:var(--haze-space-1);min-width:max-content;min-height:calc(var(--haze-space-10) + var(--haze-space-1));padding:var(--haze-space-1) var(--haze-space-2);border-radius:var(--haze-radius-sm);color:var(--haze-color-text-muted);font-family:inherit;font-size:var(--haze-text-xs);cursor:pointer;-webkit-transition:color var(--haze-duration-fast) var(--haze-ease),background var(--haze-duration-fast) var(--haze-ease);transition:color var(--haze-duration-fast) var(--haze-ease),background var(--haze-duration-fast) var(--haze-ease);background:0 0;border:none;flex-direction:column;flex:1 1 0;display:inline-flex;position:relative}.haze-TabBar__item:hover{color:var(--haze-color-text);background:var(--haze-color-bg-muted)}.haze-TabBar__item:focus-visible{box-shadow:0 0 0 var(--haze-space-1) var(--haze-color-focus-ring);outline:none}.haze-TabBar__itemActive{color:var(--haze-color-primary)}.haze-TabBar__itemActive:hover{color:var(--haze-color-primary);background:var(--haze-color-primary-subtle)}.haze-TabBar__indicator{height:calc(var(--haze-space-1) / 2);background:var(--haze-color-primary);position:absolute;inset-block-start:0;inset-inline:0}.haze-TabBar__itemIcon{width:var(--haze-space-5);height:var(--haze-space-5);justify-content:center;align-items:center;display:inline-flex;position:relative}.haze-TabBar__itemIcon>svg{width:100%;height:100%}.haze-TabBar__itemLabel{line-height:var(--haze-leading-tight);white-space:nowrap}.haze-TabBar__itemBadge{pointer-events:none;position:absolute;inset-block-start:calc(var(--haze-space-1) / -2);inset-inline-end:calc(var(--haze-space-1) / -2)}
|
package/dist/css/tabs.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* haze-ui tabs — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
-
.haze-
|
|
3
|
-
.haze-
|
|
2
|
+
.haze-SortableTabList__sortableTab{min-width:calc(var(--haze-space-8) * 2);max-width:calc(var(--haze-space-16) * 4);cursor:-webkit-grab;cursor:grab;touch-action:none;flex:0 auto;display:flex;position:relative}.haze-SortableTabList__sortableTab [role=tab]{cursor:inherit}.haze-SortableTabList__sortableTabActive{min-width:calc(var(--haze-space-10) * 3)}.haze-SortableTabList__sortableTabDragging{z-index:1}
|
|
3
|
+
.haze-Tab__base{box-sizing:border-box;align-items:center;gap:var(--haze-space-2);padding:var(--haze-space-2) var(--haze-space-4);color:var(--haze-color-text-muted);font-family:var(--haze-font-sans);font-size:var(--haze-text-sm);font-weight:var(--haze-weight-medium);cursor:pointer;-webkit-transition:color var(--haze-duration-fast),border-color var(--haze-duration-fast);transition:color var(--haze-duration-fast),border-color var(--haze-duration-fast);min-width:calc(var(--haze-space-8) * 2);max-width:calc(var(--haze-space-16) * 4);white-space:nowrap;background:0 0;border:none;border-bottom:2px solid #0000;flex:0 auto;margin-bottom:-1px;display:inline-flex;position:relative;overflow:hidden}.haze-Tab__base:hover{color:var(--haze-color-text)}.haze-Tab__base:focus-visible{box-shadow:0 0 0 3px var(--haze-color-focus-ring);outline:none}@media (forced-colors:active){.haze-Tab__base:focus-visible{outline-offset:-2px;outline:2px solid highlight}}.haze-Tab__active{color:var(--haze-color-primary);border-bottom-color:var(--haze-color-primary);min-width:calc(var(--haze-space-10) * 3)}@media (forced-colors:active){.haze-Tab__active{color:highlighttext;background:highlight;border-bottom-color:highlight}}.haze-Tab__iconSlot{flex:none;align-items:center;display:inline-flex}.haze-Tab__iconSlot svg{width:1em;height:1em}.haze-Tab__statusDot{width:var(--haze-space-2);height:var(--haze-space-2);border-radius:var(--haze-radius-full);flex:none;display:inline-block}.haze-Tab__dirty{background:var(--haze-color-text-secondary)}.haze-Tab__error{background:var(--haze-color-danger)}.haze-Tab__syncing{background:var(--haze-color-primary)}.haze-Tab__srOnly{clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.haze-Tab__labelContent{align-items:center;gap:var(--haze-space-2);min-width:0;display:inline-flex;overflow:hidden}.haze-Tab__closeGlyph{box-sizing:border-box;top:50%;width:var(--haze-space-6);height:var(--haze-space-6);border-radius:var(--haze-radius-sm);color:var(--haze-color-text-muted);font-family:var(--haze-font-sans);font-size:var(--haze-text-lg);cursor:pointer;flex:none;justify-content:center;align-items:center;line-height:1;display:inline-flex;position:absolute;inset-inline-end:var(--haze-space-4);transform:translateY(-50%)}.haze-Tab__closeGlyph:hover{background:var(--haze-color-bg-muted);color:var(--haze-color-text)}.haze-Tab__closablePad{-webkit-padding-end:calc(var(--haze-space-4) + var(--haze-space-6) + var(--haze-space-2));padding-inline-end:calc(var(--haze-space-4) + var(--haze-space-6) + var(--haze-space-2))}
|
|
4
|
+
.haze-TabList__base{border-bottom:1px solid var(--haze-color-border);scrollbar-width:none;gap:0;display:flex;position:relative;overflow:auto hidden}.haze-TabList__base::-webkit-scrollbar{display:none}.haze-TabList__grow{flex:auto;min-width:0}.haze-TabList__bar{align-items:stretch;display:flex}.haze-TabList__overflowArea{padding-inline:var(--haze-space-1);border-bottom:1px solid var(--haze-color-border);flex:none;align-items:center;display:flex}.haze-TabList__overflowButton{box-sizing:border-box;min-width:var(--haze-space-6);height:var(--haze-space-6);border-radius:var(--haze-radius-sm);color:var(--haze-color-text-muted);font-family:var(--haze-font-sans);font-size:var(--haze-text-lg);cursor:pointer;padding:0 var(--haze-space-1);background:0 0;border:none;justify-content:center;align-items:center;line-height:1;display:inline-flex}.haze-TabList__overflowButton:hover{color:var(--haze-color-text);background:var(--haze-color-bg-subtle)}.haze-TabList__overflowButton:focus-visible{box-shadow:0 0 0 3px var(--haze-color-focus-ring);outline:none}@media (forced-colors:active){.haze-TabList__overflowButton:focus-visible{outline-offset:-2px;outline:2px solid highlight}}.haze-TabList__menuTabLabel{align-items:center;gap:var(--haze-space-2);display:inline-flex}
|
|
4
5
|
.haze-TabPanel__base{padding:var(--haze-space-4) 0}.haze-TabPanel__hidden{display:none}
|
|
5
6
|
.haze-Tabs__base{font-family:var(--haze-font-sans);flex-direction:column;display:flex}
|
package/dist/css/tag.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* haze-ui tag — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
-
.haze-Tag__base{align-items:center;gap:var(--haze-space-1);border-radius:var(--haze-radius-md);font-family:var(--haze-font-sans);font-weight:var(--haze-weight-medium);line-height:var(--haze-leading-tight);white-space:nowrap;display:inline-flex}.haze-Tag__default{background:var(--haze-color-bg-muted);color:var(--haze-color-text-secondary)}.haze-Tag__primary{background:var(--haze-color-primary-subtle);color:var(--haze-color-primary)}.haze-Tag__success{background:var(--haze-color-success-subtle);color:var(--haze-color-success)}.haze-Tag__warning{background:var(--haze-color-warning-subtle);color:var(--haze-color-warning)}.haze-Tag__danger{background:var(--haze-color-danger-subtle);color:var(--haze-color-danger)}.haze-Tag__sm{padding:var(--haze-space-0) var(--haze-space-2);font-size:var(--haze-text-xs)}.haze-Tag__md{padding:var(--haze-space-1) var(--haze-space-3);font-size:var(--haze-text-sm)}.haze-Tag__closeBtn{appearance:none;color:inherit;cursor:pointer;font-size:inherit;opacity:.6;-webkit-transition:opacity var(--haze-duration-fast);transition:opacity var(--haze-duration-fast);background:0 0;border:none;align-items:center;padding:0;line-height:1;display:inline-flex}.haze-Tag__closeBtn:hover{opacity:1}.haze-Tag__closeBtn:focus-visible{box-shadow:0 0 0 3px var(--haze-color-focus-ring);border-radius:var(--haze-radius-sm);outline:none}
|
|
2
|
+
.haze-Tag__base{align-items:center;gap:var(--haze-space-1);border-radius:var(--haze-radius-md);font-family:var(--haze-font-sans);font-weight:var(--haze-weight-medium);line-height:var(--haze-leading-tight);white-space:nowrap;display:inline-flex}.haze-Tag__default{background:var(--haze-color-bg-muted);color:var(--haze-color-text-secondary)}.haze-Tag__primary{background:var(--haze-color-primary-subtle);color:var(--haze-color-primary)}.haze-Tag__success{background:var(--haze-color-success-subtle);color:var(--haze-color-success)}.haze-Tag__warning{background:var(--haze-color-warning-subtle);color:var(--haze-color-warning)}.haze-Tag__danger{background:var(--haze-color-danger-subtle);color:var(--haze-color-danger)}.haze-Tag__sm{padding:var(--haze-space-0) var(--haze-space-2);font-size:var(--haze-text-xs)}.haze-Tag__md{padding:var(--haze-space-1) var(--haze-space-3);font-size:var(--haze-text-sm)}.haze-Tag__closeBtn{appearance:none;color:inherit;cursor:pointer;min-width:var(--haze-space-6);min-height:var(--haze-space-6);font-size:inherit;opacity:.6;-webkit-transition:opacity var(--haze-duration-fast);transition:opacity var(--haze-duration-fast);background:0 0;border:none;justify-content:center;align-items:center;padding:0;line-height:1;display:inline-flex}.haze-Tag__closeBtn:hover{opacity:1}.haze-Tag__closeBtn:focus-visible{box-shadow:0 0 0 3px var(--haze-color-focus-ring);border-radius:var(--haze-radius-sm);outline:none}
|
package/dist/css/tree.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/* haze-ui tree — generated by scripts/split-css.mjs, do not edit */
|
|
2
2
|
.haze-Tree__base{font-family:var(--haze-font-sans);font-size:var(--haze-text-sm);color:var(--haze-color-text);overflow:auto}.haze-Tree__virtualTree{font-family:var(--haze-font-sans);font-size:var(--haze-text-sm);color:var(--haze-color-text)}.haze-Tree__group{min-width:0}.haze-Tree__emptyBlock{padding:var(--haze-space-3);color:var(--haze-color-text-muted);font-size:var(--haze-text-sm)}
|
|
3
|
-
.haze-TreeItem__item{cursor:pointer;-webkit-user-select:none;user-select:none;min-height:2rem;-webkit-transition:background var(--haze-duration-fast);transition:background var(--haze-duration-fast);border-radius:var(--haze-radius-sm);align-items:center;padding:2px 0;display:flex}.haze-TreeItem__item:hover{background:var(--haze-color-bg-subtle)}.haze-TreeItem__item:focus-visible{box-shadow:inset 0 0 0 2px var(--haze-color-focus-ring);outline:none}.haze-TreeItem__blockItem{padding:var(--haze-space-1) var(--haze-space-2);border-radius:var(--haze-radius-sm)}.haze-TreeItem__blockItem:hover{background:var(--haze-color-bg-subtle)}.haze-TreeItem__selectedStyle{background:var(--haze-color-primary-subtle);color:var(--haze-color-primary);font-weight:var(--haze-weight-medium)}.haze-TreeItem__disabledStyle{opacity:.5;cursor:not-allowed;pointer-events:none}.haze-TreeItem__switcher{cursor:pointer;width:1.5rem;height:1.5rem;color:var(--haze-color-text-muted);-webkit-transition:-webkit-transform var(--haze-duration-normal);transition:transform var(--haze-duration-normal);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.haze-TreeItem__switcher:hover{color:var(--haze-color-text)}.haze-TreeItem__switcher svg{width:12px;height:12px}.haze-TreeItem__switcherExpanded{transform:rotate(90deg)}.haze-TreeItem__checkbox{-webkit-margin-end:var(--haze-space-2);
|
|
3
|
+
.haze-TreeItem__item{cursor:pointer;-webkit-user-select:none;user-select:none;min-height:2rem;-webkit-transition:background var(--haze-duration-fast);transition:background var(--haze-duration-fast);border-radius:var(--haze-radius-sm);align-items:center;padding:2px 0;display:flex}.haze-TreeItem__item:hover{background:var(--haze-color-bg-subtle)}.haze-TreeItem__item:focus-visible{box-shadow:inset 0 0 0 2px var(--haze-color-focus-ring);outline:none}.haze-TreeItem__blockItem{padding:var(--haze-space-1) var(--haze-space-2);border-radius:var(--haze-radius-sm)}.haze-TreeItem__blockItem:hover{background:var(--haze-color-bg-subtle)}.haze-TreeItem__selectedStyle{background:var(--haze-color-primary-subtle);color:var(--haze-color-primary);font-weight:var(--haze-weight-medium)}.haze-TreeItem__disabledStyle{opacity:.5;cursor:not-allowed;pointer-events:none}.haze-TreeItem__switcher{cursor:pointer;width:1.5rem;height:1.5rem;color:var(--haze-color-text-muted);-webkit-transition:-webkit-transform var(--haze-duration-normal);transition:transform var(--haze-duration-normal);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.haze-TreeItem__switcher:hover{color:var(--haze-color-text)}.haze-TreeItem__switcher svg{width:12px;height:12px}.haze-TreeItem__switcherExpanded{transform:rotate(90deg)}.haze-TreeItem__checkbox{width:var(--haze-space-6);height:var(--haze-space-6);-webkit-margin-end:var(--haze-space-2);border:1px solid var(--haze-color-border);border-radius:var(--haze-radius-sm);background:var(--haze-color-bg);cursor:pointer;-webkit-transition:all var(--haze-duration-fast);transition:all var(--haze-duration-fast);flex-shrink:0;justify-content:center;align-items:center;margin-inline-end:var(--haze-space-2);display:inline-flex}.haze-TreeItem__checkbox:hover{border-color:var(--haze-color-primary)}.haze-TreeItem__checkbox svg{color:#fff;width:12px;height:12px}.haze-TreeItem__checkboxChecked,.haze-TreeItem__checkboxHalfChecked{background:var(--haze-color-primary);border-color:var(--haze-color-primary)}.haze-TreeItem__nodeIcon{-webkit-margin-end:var(--haze-space-2);width:16px;height:16px;color:var(--haze-color-text-muted);flex-shrink:0;justify-content:center;align-items:center;margin-inline-end:var(--haze-space-2);display:inline-flex}.haze-TreeItem__nodeIcon svg{width:16px;height:16px}.haze-TreeItem__title{font-size:var(--haze-text-sm);color:var(--haze-color-text);text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.haze-TreeItem__loadingIcon{animation:1s linear infinite spin-haze-TreeItem__loadingIcon;display:inline-flex}@media (prefers-reduced-motion:reduce){.haze-TreeItem__loadingIcon{animation-duration:.01ms;animation-iteration-count:1}}@keyframes spin-haze-TreeItem__loadingIcon{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.haze-TreeItem__mark{background:var(--haze-color-warning-subtle);color:var(--haze-color-warning);border-radius:var(--haze-radius-sm);padding:0 var(--haze-space-1)}.haze-TreeItem__loadFailedNote{align-items:center;gap:var(--haze-space-1);-webkit-margin-start:var(--haze-space-2);font-size:var(--haze-text-xs);color:var(--haze-color-danger);cursor:pointer;flex-shrink:0;margin-inline-start:var(--haze-space-2);display:inline-flex}.haze-TreeItem__loadFailedNote:hover{color:var(--haze-color-danger-hover)}.haze-TreeItem__loadFailedNote svg{width:12px;height:12px}.haze-TreeItem__indentLine{flex-shrink:0;width:24px;display:inline-block}.haze-TreeItem__indentLineWithBorder{border-inline-start:1px solid var(--haze-color-border)}
|
|
4
4
|
.haze-sortable-tree-styles__row{position:relative}.haze-sortable-tree-styles__rowDraggable{cursor:-webkit-grab;cursor:grab;touch-action:none}.haze-sortable-tree-styles__rowDraggable [role=treeitem]{cursor:inherit}.haze-sortable-tree-styles__rowDragging{z-index:1}.haze-sortable-tree-styles__rowInSubtree{opacity:.35}.haze-sortable-tree-styles__grip{-webkit-margin-end:var(--haze-space-1);color:var(--haze-color-text-muted);cursor:-webkit-grab;cursor:grab;touch-action:none;flex-shrink:0;align-items:center;margin-inline-end:var(--haze-space-1);display:inline-flex}.haze-sortable-tree-styles__grip svg{width:10px;height:14px}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* haze-ui workbench — generated by scripts/split-css.mjs, do not edit */
|
|
2
|
+
.haze-Workbench__workbench{display:-ms-grid;-ms-grid-rows:minmax(0, 1fr) auto auto;-ms-grid-columns:minmax(0, 1fr);box-sizing:border-box;grid-template:"body"minmax(0,1fr)"status""tabs"/minmax(0,1fr);width:100%;display:grid;position:relative;overflow:hidden;container:workbench/inline-size}.haze-Workbench__body{grid-area:body}@container workbench (width<=768px){.haze-Workbench__body{flex-direction:column}.haze-Workbench__body>[data-panel-id=main]{flex:1 1 0;min-height:0}}.haze-Workbench__activityBar{-webkit-flex:0 0 var(--haze-space-12);-ms-flex:0 0 var(--haze-space-12);flex:0 0 var(--haze-space-12);box-sizing:border-box;overflow:hidden;container:rail-track/inline-size}.haze-Workbench__activityBarDocked{box-sizing:border-box;flex:none;width:100%;overflow:hidden;container:rail-track/inline-size}.haze-Workbench__activityBarDockedEnd{order:1}.haze-Workbench__sidebarColumn{box-sizing:border-box;flex-direction:column;min-height:0;display:flex}.haze-Workbench__regionFill{flex:auto;height:auto;min-height:0}.haze-Workbench__region{box-sizing:border-box;height:100%;overflow:auto}.haze-Workbench__editor{box-sizing:border-box;flex:1 1 0;min-height:0;overflow:auto}.haze-Workbench__verticalFill{height:100%}.haze-Workbench__statusBarRegion{box-sizing:border-box;z-index:110;grid-area:status}.haze-Workbench__tabBarRegion{box-sizing:border-box;grid-area:tabs;display:none}@container workbench (width<=768px){.haze-Workbench__tabBarRegion{z-index:110;display:block}}.haze-Workbench__scrim{box-sizing:border-box;display:none}@container workbench (width<=768px){.haze-Workbench__scrim{z-index:90;background:#0006;display:none;position:absolute;inset:0}.haze-Workbench__scrim[data-open]{display:block}.haze-Workbench__sidenavOverlay{z-index:100;background:var(--haze-color-bg);width:100%;box-shadow:var(--haze-shadow-lg);visibility:hidden;-webkit-transition:-webkit-transform var(--haze-duration-normal) var(--haze-ease),visibility 0s linear var(--haze-duration-normal);transition:transform var(--haze-duration-normal) var(--haze-ease),visibility 0s linear var(--haze-duration-normal);position:absolute;inset-block:0;inset-inline-start:0;transform:translate(-100%)}.haze-Workbench__sidenavOverlay[data-open]{visibility:visible;-webkit-transition:-webkit-transform var(--haze-duration-normal) var(--haze-ease),visibility 0s;transition:transform var(--haze-duration-normal) var(--haze-ease),visibility 0s;transform:none}html[dir=rtl] .haze-Workbench__sidenavOverlay:not([data-open]){transform:translate(100%)}.haze-Workbench__auxOverlay{z-index:100;width:min(var(--haze-workbench-auxiliary-width,300px), 85%);background:var(--haze-color-bg);box-shadow:var(--haze-shadow-lg);-webkit-transition:-webkit-transform var(--haze-duration-normal) var(--haze-ease);transition:transform var(--haze-duration-normal) var(--haze-ease);position:absolute;inset-block:0;inset-inline-end:0}.haze-Workbench__auxOverlay[data-collapsed]{visibility:hidden;-webkit-transition:-webkit-transform var(--haze-duration-normal) var(--haze-ease),visibility 0s linear var(--haze-duration-normal);transition:transform var(--haze-duration-normal) var(--haze-ease),visibility 0s linear var(--haze-duration-normal);transform:translate(100%)}html[dir=rtl] .haze-Workbench__auxOverlay[data-collapsed]{transform:translate(-100%)}.haze-Workbench__mobileHidden{display:none}}
|
package/dist/css-manifest.json
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
"families": {
|
|
3
3
|
"Accordion": "accordion",
|
|
4
4
|
"AccordionItem": "accordion",
|
|
5
|
+
"ActivityRail": "activity-rail",
|
|
6
|
+
"ActivityRailItem": "activity-rail",
|
|
5
7
|
"Affix": "affix",
|
|
6
8
|
"Alert": "alert",
|
|
7
9
|
"Anchor": "anchor",
|
|
@@ -157,17 +159,21 @@
|
|
|
157
159
|
"Skeleton": "skeleton",
|
|
158
160
|
"Slider": "slider",
|
|
159
161
|
"SliderCore": "slider",
|
|
162
|
+
"SortableTabList": "tabs",
|
|
160
163
|
"SortableTagGroup": "tag-group",
|
|
161
164
|
"SortableTagInput": "tag-input",
|
|
162
165
|
"SortableTagInputCore": "tag-input",
|
|
163
166
|
"SortableTree": "tree",
|
|
164
167
|
"Sources": "sources",
|
|
168
|
+
"Sparkline": "sparkline",
|
|
165
169
|
"Spinner": "spinner",
|
|
166
170
|
"SplitterGroup": "resizable",
|
|
167
171
|
"SplitterHandle": "resizable",
|
|
168
172
|
"SplitterPanel": "resizable",
|
|
169
173
|
"Stat": "stat",
|
|
170
174
|
"StatGroup": "stat",
|
|
175
|
+
"StatusBar": "status-bar",
|
|
176
|
+
"StatusItem": "status-bar",
|
|
171
177
|
"Step": "stepper",
|
|
172
178
|
"StepTimeline": "step-timeline",
|
|
173
179
|
"StepTimelineItem": "step-timeline",
|
|
@@ -177,6 +183,8 @@
|
|
|
177
183
|
"Switch": "switch",
|
|
178
184
|
"SwitchCore": "switch",
|
|
179
185
|
"Tab": "tabs",
|
|
186
|
+
"TabBar": "tab-bar",
|
|
187
|
+
"TabBarItem": "tab-bar",
|
|
180
188
|
"TabList": "tabs",
|
|
181
189
|
"TabPanel": "tabs",
|
|
182
190
|
"Table": "table",
|
|
@@ -219,6 +227,7 @@
|
|
|
219
227
|
"UploadCore": "upload",
|
|
220
228
|
"VirtualList": "virtual-list",
|
|
221
229
|
"Watermark": "watermark",
|
|
230
|
+
"Workbench": "workbench",
|
|
222
231
|
"badgeSizes": "badge",
|
|
223
232
|
"badgeVariants": "badge",
|
|
224
233
|
"buttonSizes": "button",
|
|
@@ -243,6 +252,8 @@
|
|
|
243
252
|
"setServerErrors": "form",
|
|
244
253
|
"setValue": "form",
|
|
245
254
|
"spacing": "tokens",
|
|
255
|
+
"sparklineToneFills": "sparkline",
|
|
256
|
+
"sparklineToneStrokes": "sparkline",
|
|
246
257
|
"standardSchemaFormValidator": "form",
|
|
247
258
|
"standardSchemaResolver": "form",
|
|
248
259
|
"tealTheme": "tokens",
|
|
@@ -266,6 +277,7 @@
|
|
|
266
277
|
"LocaleProvider",
|
|
267
278
|
"TOKEN_REGISTRY",
|
|
268
279
|
"arSA",
|
|
280
|
+
"buddhistAdapter",
|
|
269
281
|
"buildBrandTheme",
|
|
270
282
|
"createBrandTheme",
|
|
271
283
|
"createStrings",
|
|
@@ -273,18 +285,22 @@
|
|
|
273
285
|
"defaultStrings",
|
|
274
286
|
"enUS",
|
|
275
287
|
"esES",
|
|
288
|
+
"ethiopicAdapter",
|
|
276
289
|
"formatInTimeZone",
|
|
277
290
|
"frFR",
|
|
278
291
|
"getAdapter",
|
|
279
292
|
"getDirection",
|
|
280
293
|
"getZonedParts",
|
|
281
294
|
"gregoryAdapter",
|
|
295
|
+
"hebrewAdapter",
|
|
282
296
|
"hotkey",
|
|
283
297
|
"islamicUmalquraAdapter",
|
|
284
298
|
"itIT",
|
|
285
299
|
"jaJP",
|
|
300
|
+
"japaneseAdapter",
|
|
286
301
|
"koKR",
|
|
287
302
|
"localeDirection",
|
|
303
|
+
"persianAdapter",
|
|
288
304
|
"ptBR",
|
|
289
305
|
"ruRU",
|
|
290
306
|
"useClickOutside",
|
package/dist/dates/adapter.js
CHANGED
|
@@ -9,5 +9,13 @@ function e(e, t, n) {
|
|
|
9
9
|
for (let e of r) if (e.type === "era") return e.value;
|
|
10
10
|
return "";
|
|
11
11
|
}
|
|
12
|
+
function t(e, t, n) {
|
|
13
|
+
let r = /* @__PURE__ */ new Date(0);
|
|
14
|
+
return r.setUTCFullYear(e, t, n), r.getTime();
|
|
15
|
+
}
|
|
16
|
+
function n(e) {
|
|
17
|
+
let t = new Date(e), n = t.getUTCFullYear(), r = t.getUTCMonth(), i = t.getUTCDate(), a = new Date(n, r, i);
|
|
18
|
+
return n >= 0 && n <= 99 && a.setFullYear(n, r, i), a;
|
|
19
|
+
}
|
|
12
20
|
//#endregion
|
|
13
|
-
export { e as eraOfDate };
|
|
21
|
+
export { e as eraOfDate, n as localMidnightOf, t as utcCivilMs };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { addMonths as e, getDaysInMonth as t } from "../components/Calendar/date.js";
|
|
3
|
+
import { eraOfDate as n, localMidnightOf as r, utcCivilMs as i } from "./adapter.js";
|
|
4
|
+
//#region src/lib/dates/buddhist.ts
|
|
5
|
+
var a = 543, o = {
|
|
6
|
+
identifier: "buddhist",
|
|
7
|
+
fromGregorian(e) {
|
|
8
|
+
return {
|
|
9
|
+
year: e.getFullYear() + a,
|
|
10
|
+
month: e.getMonth(),
|
|
11
|
+
day: e.getDate()
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
toGregorian(n) {
|
|
15
|
+
let o = n.year - a, s = e(o, n.month, 0);
|
|
16
|
+
if (n.day < 1 || n.day > t(s.year, s.month)) throw RangeError(`Not a buddhist date: ${n.year}-${n.month + 1}-${n.day}`);
|
|
17
|
+
return r(i(s.year, s.month, n.day));
|
|
18
|
+
},
|
|
19
|
+
getDaysInMonth(e, n) {
|
|
20
|
+
return t(e - a, n);
|
|
21
|
+
},
|
|
22
|
+
addMonths(n, r) {
|
|
23
|
+
let i = e(n.year, n.month, r), o = t(i.year - a, i.month);
|
|
24
|
+
return {
|
|
25
|
+
year: i.year,
|
|
26
|
+
month: i.month,
|
|
27
|
+
day: Math.min(n.day, o)
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
monthNames(e = "en", t = "long") {
|
|
31
|
+
let n = new Intl.DateTimeFormat(e, {
|
|
32
|
+
calendar: "buddhist",
|
|
33
|
+
month: t,
|
|
34
|
+
timeZone: "UTC"
|
|
35
|
+
});
|
|
36
|
+
return Array.from({ length: 12 }, (e, t) => n.format(new Date(Date.UTC(2026, t, 15))));
|
|
37
|
+
},
|
|
38
|
+
era(e, t = "en") {
|
|
39
|
+
return n(new Date(i(e - a, 5, 15)), "buddhist", t);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { o as buddhistAdapter };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { eraOfDate as e, localMidnightOf as t, utcCivilMs as n } from "./adapter.js";
|
|
3
|
+
//#region src/lib/dates/ethiopic.ts
|
|
4
|
+
var r = 864e5, i = -716367, a = 13, o = 12;
|
|
5
|
+
function s(e) {
|
|
6
|
+
return e > 0 && e % 4 == 3;
|
|
7
|
+
}
|
|
8
|
+
function c(e, t) {
|
|
9
|
+
return {
|
|
10
|
+
year: e + Math.floor(t / a),
|
|
11
|
+
month: (t % a + a) % a
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function l(e, t) {
|
|
15
|
+
return t === o ? s(e) ? 6 : 5 : 30;
|
|
16
|
+
}
|
|
17
|
+
function u(e, t, n) {
|
|
18
|
+
return i + 365 * (e - 1) + Math.floor(e / 4) + 30 * t + n - 1;
|
|
19
|
+
}
|
|
20
|
+
function d(e) {
|
|
21
|
+
let t = e - i, n = (e) => 365 * (e - 1) + Math.floor(e / 4), r = Math.floor((4 * t + 1463) / 1461);
|
|
22
|
+
for (; n(r) > t;) --r;
|
|
23
|
+
for (; n(r + 1) <= t;) r += 1;
|
|
24
|
+
let a = t - n(r);
|
|
25
|
+
return {
|
|
26
|
+
year: r,
|
|
27
|
+
month: Math.floor(a / 30),
|
|
28
|
+
day: a % 30 + 1
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
var f = 2017, p = {
|
|
32
|
+
identifier: "ethiopic",
|
|
33
|
+
fromGregorian(e) {
|
|
34
|
+
let t = n(e.getFullYear(), e.getMonth(), e.getDate());
|
|
35
|
+
return d(Math.floor(t / r));
|
|
36
|
+
},
|
|
37
|
+
toGregorian(e) {
|
|
38
|
+
let n = c(e.year, e.month);
|
|
39
|
+
if (e.day < 1 || e.day > l(n.year, n.month)) throw RangeError(`Not an ethiopic date: ${e.year}-${e.month + 1}-${e.day}`);
|
|
40
|
+
return t(u(n.year, n.month, e.day) * r);
|
|
41
|
+
},
|
|
42
|
+
getDaysInMonth(e, t) {
|
|
43
|
+
let n = c(e, t);
|
|
44
|
+
return l(n.year, n.month);
|
|
45
|
+
},
|
|
46
|
+
addMonths(e, t) {
|
|
47
|
+
let n = e.year * a + e.month + t, r = Math.floor(n / a), i = (n % a + a) % a;
|
|
48
|
+
return {
|
|
49
|
+
year: r,
|
|
50
|
+
month: i,
|
|
51
|
+
day: Math.min(e.day, l(r, i))
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
monthNames(e = "en", t = "long") {
|
|
55
|
+
let n = new Intl.DateTimeFormat(e, {
|
|
56
|
+
calendar: "ethiopic",
|
|
57
|
+
month: t,
|
|
58
|
+
timeZone: "UTC"
|
|
59
|
+
});
|
|
60
|
+
return Array.from({ length: a }, (e, t) => n.format(/* @__PURE__ */ new Date(u(f, t, t === o ? 3 : 15) * r)));
|
|
61
|
+
},
|
|
62
|
+
era(t, n = "en") {
|
|
63
|
+
return e(/* @__PURE__ */ new Date(u(t, 0, 1) * r), "ethiopic", n);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
export { p as ethiopicAdapter };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { eraOfDate as e, localMidnightOf as t, utcCivilMs as n } from "./adapter.js";
|
|
3
|
+
//#region src/lib/dates/hebrew.ts
|
|
4
|
+
var r = 864e5, i = 765433, a = 57444, o = 19440, s = 9924, c = 16789, l = -2092592;
|
|
5
|
+
function u(e) {
|
|
6
|
+
return (e * 7 + 1) % 19 < 7;
|
|
7
|
+
}
|
|
8
|
+
function d(e) {
|
|
9
|
+
return Math.floor((235 * e - 234) / 19);
|
|
10
|
+
}
|
|
11
|
+
function f(e) {
|
|
12
|
+
let t = a + i * d(e), n = Math.floor(t / 25920), r = t % 25920, l = (n % 7 + 7) % 7, f = n;
|
|
13
|
+
r >= o && (f += 1);
|
|
14
|
+
let p = (f % 7 + 7) % 7;
|
|
15
|
+
return (p === 1 || p === 4 || p === 6) && (f += 1), !u(e) && l === 3 && r >= s && r < o && (f += 2), !u(e) && u(e - 1) && l === 2 && r >= c && r < o && (f += 1), f;
|
|
16
|
+
}
|
|
17
|
+
function p(e) {
|
|
18
|
+
return u(e) ? 13 : 12;
|
|
19
|
+
}
|
|
20
|
+
function m(e, t) {
|
|
21
|
+
if (t === 1 || t === 2) {
|
|
22
|
+
let n = f(e + 1) - f(e);
|
|
23
|
+
return t === 1 ? n === 355 || n === 385 ? 30 : 29 : n === 353 || n === 383 ? 29 : 30;
|
|
24
|
+
}
|
|
25
|
+
return t === 0 ? 30 : t === 3 ? 29 : t === 4 ? 30 : t === 5 ? u(e) ? 30 : 29 : u(e) ? t % 2 == 0 ? 29 : 30 : t % 2 == 0 ? 30 : 29;
|
|
26
|
+
}
|
|
27
|
+
function h(e, t) {
|
|
28
|
+
let n = e, r = t;
|
|
29
|
+
for (; r < 0;) --n, r += p(n);
|
|
30
|
+
for (; r >= p(n);) r -= p(n), n += 1;
|
|
31
|
+
return {
|
|
32
|
+
year: n,
|
|
33
|
+
month: r,
|
|
34
|
+
day: 1
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function g(e, t, n) {
|
|
38
|
+
let r = 0;
|
|
39
|
+
for (let n = 0; n < t; n += 1) r += m(e, n);
|
|
40
|
+
return f(e) + l + r + n - 1;
|
|
41
|
+
}
|
|
42
|
+
function _(e) {
|
|
43
|
+
let t = e - l, n = Math.floor((t - 2) / 365.2468) + 1;
|
|
44
|
+
for (; f(n) > t;) --n;
|
|
45
|
+
for (; f(n + 1) <= t;) n += 1;
|
|
46
|
+
let r = t - f(n), i = 0;
|
|
47
|
+
for (; r >= m(n, i);) r -= m(n, i), i += 1;
|
|
48
|
+
return {
|
|
49
|
+
year: n,
|
|
50
|
+
month: i,
|
|
51
|
+
day: r + 1
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
var v = 5785, y = {
|
|
55
|
+
identifier: "hebrew",
|
|
56
|
+
fromGregorian(e) {
|
|
57
|
+
let t = n(e.getFullYear(), e.getMonth(), e.getDate());
|
|
58
|
+
return _(Math.floor(t / r));
|
|
59
|
+
},
|
|
60
|
+
toGregorian(e) {
|
|
61
|
+
let n = h(e.year, e.month);
|
|
62
|
+
if (e.day < 1 || e.day > m(n.year, n.month)) throw RangeError(`Not a hebrew date: ${e.year}-${e.month + 1}-${e.day}`);
|
|
63
|
+
return t(g(n.year, n.month, e.day) * r);
|
|
64
|
+
},
|
|
65
|
+
getDaysInMonth(e, t) {
|
|
66
|
+
let n = h(e, t);
|
|
67
|
+
return m(n.year, n.month);
|
|
68
|
+
},
|
|
69
|
+
addMonths(e, t) {
|
|
70
|
+
let n = h(e.year, e.month), r = n.year, i = n.month, a = t;
|
|
71
|
+
for (; a > 0;) {
|
|
72
|
+
let e = p(r) - i;
|
|
73
|
+
a < e ? (i += a, a = 0) : (a -= e, r += 1, i = 0);
|
|
74
|
+
}
|
|
75
|
+
for (; a < 0;) -a <= i ? (i += a, a = 0) : (a += i + 1, --r, i = p(r) - 1);
|
|
76
|
+
return {
|
|
77
|
+
year: r,
|
|
78
|
+
month: i,
|
|
79
|
+
day: Math.min(e.day, m(r, i))
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
monthNames(e = "en", t = "long") {
|
|
83
|
+
let n = new Intl.DateTimeFormat(e, {
|
|
84
|
+
calendar: "hebrew",
|
|
85
|
+
month: t,
|
|
86
|
+
timeZone: "UTC"
|
|
87
|
+
});
|
|
88
|
+
return Array.from({ length: 12 }, (e, t) => n.format(/* @__PURE__ */ new Date(g(v, t, 15) * r)));
|
|
89
|
+
},
|
|
90
|
+
era(t, n = "en") {
|
|
91
|
+
return e(/* @__PURE__ */ new Date(g(t, 0, 1) * r), "hebrew", n);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
//#endregion
|
|
95
|
+
export { y as hebrewAdapter };
|