@vitrumui/react 0.0.0-stage → 1.1.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/LICENSE.md +3 -0
- package/README.md +87 -2
- package/THIRD_PARTY_NOTICES.md +25 -0
- package/dist/chunk-5H6FHJ6K.js +2 -0
- package/dist/chunk-BCPB75TR.js +2 -0
- package/dist/chunk-D6ZLXL4J.js +2 -0
- package/dist/chunk-E2KN4H6B.js +2 -0
- package/dist/chunk-IMUNBL7U.js +2 -0
- package/dist/chunk-KL26ZVD4.js +2 -0
- package/dist/chunk-P3SF73HG.js +2 -0
- package/dist/chunk-Q5GOHPZ3.js +2 -0
- package/dist/chunk-TIG2HRDS.js +2 -0
- package/dist/chunk-U3CZMSFP.js +2 -0
- package/dist/chunk-ULHSS732.js +2 -0
- package/dist/chunk-UMMRBERM.js +2 -0
- package/dist/chunk-YZILLPGA.js +2 -0
- package/dist/chunk-ZCV4ENGP.js +2 -0
- package/dist/controls/Checkbox.d.ts +28 -0
- package/dist/controls/Checkbox.js +3 -0
- package/dist/controls/Icon.d.ts +14 -0
- package/dist/controls/RangeSlider.d.ts +29 -0
- package/dist/controls/RangeSlider.js +3 -0
- package/dist/controls/Switch.d.ts +19 -0
- package/dist/controls/Switch.js +3 -0
- package/dist/controls/glass/draw.d.ts +29 -0
- package/dist/controls/glass/physics.d.ts +85 -0
- package/dist/controls/glass/runtime.d.ts +33 -0
- package/dist/controls/glass/tokens.d.ts +16 -0
- package/dist/controls/glass/useGlassCanvas.d.ts +10 -0
- package/dist/controls/shared.d.ts +8 -0
- package/dist/glass-action-button.d.ts +26 -0
- package/dist/glass-action-button.js +3 -0
- package/dist/glass-badge.d.ts +12 -0
- package/dist/glass-badge.js +3 -0
- package/dist/glass-button-group.d.ts +35 -0
- package/dist/glass-button-group.js +3 -0
- package/dist/glass-button.d.ts +19 -0
- package/dist/glass-button.js +3 -0
- package/dist/glass-card.d.ts +18 -0
- package/dist/glass-card.js +3 -0
- package/dist/glass-dropdown-menu.d.ts +29 -0
- package/dist/glass-dropdown-menu.js +3 -0
- package/dist/glass-layer.d.ts +97 -0
- package/dist/glass-lens.d.ts +7 -0
- package/dist/glass-menu.d.ts +43 -0
- package/dist/glass-menu.js +3 -0
- package/dist/glass-popover.d.ts +19 -0
- package/dist/glass-popover.js +3 -0
- package/dist/glass-popup.d.ts +27 -0
- package/dist/glass-select.d.ts +19 -0
- package/dist/glass-select.js +3 -0
- package/dist/glass-slide-to-confirm.d.ts +32 -0
- package/dist/glass-slide-to-confirm.js +3 -0
- package/dist/glass-surface.d.ts +71 -0
- package/dist/glass-surface.js +3 -0
- package/dist/glass-tabs.d.ts +19 -0
- package/dist/glass-tabs.js +3 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +3 -0
- package/dist/runtime-2U4MAR2W.js +2 -0
- package/dist/styles.css +3 -0
- package/dist/styles.css.d.ts +1 -0
- package/dist/theme.d.ts +115 -0
- package/dist/theme.js +3 -0
- package/package.json +121 -3
package/dist/styles.css
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
/*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
|
|
3
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-600:oklch(57.7% .245 27.325);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--radius-lg:.5rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer base{:root{--vitrum-tint:#fff;--vitrum-tint-opacity:.65;--vitrum-blur:5px;--vitrum-refraction:1;--vitrum-specular:1;--vitrum-rim-light:1;--vitrum-shadow-strength:1;--vitrum-border-opacity:.55;--vitrum-radius-scale:1;--vitrum-motion:fluid}:is(.dark,[data-theme=dark]){--vitrum-tint:#0b0d12;--vitrum-tint-opacity:.62;--vitrum-border-opacity:.25;--vitrum-shadow-strength:1.15}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.inset-x-0{inset-inline:0}.-inset-y-2{inset-block:calc(var(--spacing) * -2)}.inset-y-0{inset-block:0}.inset-y-2{inset-block:calc(var(--spacing) * 2)}.-top-1{top:calc(var(--spacing) * -1)}.-top-2{top:calc(var(--spacing) * -2)}.top-0{top:0}.top-1{top:var(--spacing)}.-right-2{right:calc(var(--spacing) * -2)}.right-0{right:0}.right-full{right:100%}.left-0{left:0}.left-1{left:var(--spacing)}.left-9{left:calc(var(--spacing) * 9)}.left-10{left:calc(var(--spacing) * 10)}.left-11{left:calc(var(--spacing) * 11)}.left-12{left:calc(var(--spacing) * 12)}.left-14{left:calc(var(--spacing) * 14)}.left-24{left:calc(var(--spacing) * 24)}.left-\[52px\]{left:52px}.left-\[92px\]{left:92px}.isolate{isolation:isolate}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-0\.5{margin-inline:calc(var(--spacing) * .5)}.mx-2\.5{margin-inline:calc(var(--spacing) * 2.5)}.mx-3\.5{margin-inline:calc(var(--spacing) * 3.5)}.my-0\.5{margin-block:calc(var(--spacing) * .5)}.my-1{margin-block:var(--spacing)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.size-1{width:var(--spacing);height:var(--spacing)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-44{width:calc(var(--spacing) * 44);height:calc(var(--spacing) * 44)}.size-\[88px\]{width:88px;height:88px}.h-1\/2{height:50%}.h-5\.5{height:calc(var(--spacing) * 5.5)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-24{height:calc(var(--spacing) * 24)}.h-\[104px\]{height:104px}.h-full{height:100%}.h-px{height:1px}.max-h-72{max-height:calc(var(--spacing) * 72)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-16{width:calc(var(--spacing) * 16)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[88px\]{width:88px}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-\[calc\(100vw-2rem\)\]{max-width:calc(100vw - 2rem)}.max-w-md{max-width:var(--container-md)}.min-w-0{min-width:0}.min-w-7{min-width:calc(var(--spacing) * 7)}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-10{min-width:calc(var(--spacing) * 10)}.min-w-44{min-width:calc(var(--spacing) * 44)}.min-w-48{min-width:calc(var(--spacing) * 48)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.cursor-grab{cursor:grab}.cursor-pointer{cursor:pointer}.touch-pan-y{--tw-pan-y:pan-y;touch-action:var(--tw-pan-x, ) var(--tw-pan-y, ) var(--tw-pinch-zoom, )}.touch-none{touch-action:none}.flex-col{flex-direction:column}.flex-row-reverse{flex-direction:row-reverse}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-\[inherit\]{gap:inherit}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\[16px\]{border-radius:16px}.rounded-\[18px\]{border-radius:18px}.rounded-\[20px\]{border-radius:20px}.rounded-\[24px\]{border-radius:24px}.rounded-\[28px\]{border-radius:28px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.border-black\/10{border-color:color-mix(in oklab, var(--color-black) 10%, transparent)}}.border-white\/55{border-color:#ffffff8c}@supports (color:color-mix(in lab, red, red)){.border-white\/55{border-color:color-mix(in oklab, var(--color-white) 55%, transparent)}}.border-white\/60{border-color:#fff9}@supports (color:color-mix(in lab, red, red)){.border-white\/60{border-color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.bg-\[\#3291FF\]{background-color:#3291ff}.bg-black\/5{background-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.bg-black\/5{background-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.bg-black\/6{background-color:#0000000f}@supports (color:color-mix(in lab, red, red)){.bg-black\/6{background-color:color-mix(in oklab, var(--color-black) 6%, transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-current,.bg-current\/15{background-color:currentColor}@supports (color:color-mix(in lab, red, red)){.bg-current\/15{background-color:color-mix(in oklab, currentcolor 15%, transparent)}}.bg-neutral-900{background-color:var(--color-neutral-900)}.bg-sky-500{background-color:var(--color-sky-500)}.bg-white{background-color:var(--color-white)}.bg-white\/\(--vt-card-tint\){background-color:#fff}@supports (color:color-mix(in lab, red, red)){.bg-white\/\(--vt-card-tint\){background-color:color-mix(in oklab, var(--color-white) var(--vt-card-tint), transparent)}}.bg-white\/60{background-color:#fff9}@supports (color:color-mix(in lab, red, red)){.bg-white\/60{background-color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.mask-\[linear-gradient\(to_right\,transparent\,\#000_18\%\,\#000_82\%\,transparent\)\]{-webkit-mask-image:linear-gradient(90deg,#0000,#000 18% 82%,#0000);mask-image:linear-gradient(90deg,#0000,#000 18% 82%,#0000)}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-4\.5{padding-inline:calc(var(--spacing) * 4.5)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-2{padding-block:calc(var(--spacing) * 2)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-1{padding-bottom:var(--spacing)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-6{padding-left:calc(var(--spacing) * 6)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[20px\]{font-size:20px}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-none{--tw-leading:1;line-height:1}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[-0\.01em\]{--tw-tracking:-.01em;letter-spacing:-.01em}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.whitespace-nowrap{white-space:nowrap}.text-\(--vt-slide-ink\){color:var(--vt-slide-ink)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-900{color:var(--color-neutral-900)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, )}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_1px_2px_rgb\(0_0_0\/0\.14\)\,0_3px_8px_rgb\(0_0_0\/0\.12\)\]{--tw-shadow:0 1px 2px var(--tw-shadow-color,#00000024), 0 3px 8px var(--tw-shadow-color,#0000001f);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.backdrop-blur-\(--vt-card-blur\){--tw-backdrop-blur:blur(var(--vt-card-blur));-webkit-backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, )}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, )}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-\[cubic-bezier\(\.2\,\.8\,\.2\,1\)\]{--tw-ease:cubic-bezier(.2,.8,.2,1);transition-timing-function:cubic-bezier(.2,.8,.2,1)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.hover\:text-neutral-900:hover{color:var(--color-neutral-900)}}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-\[\#3291FF\]:focus-visible{--tw-ring-color:#3291ff}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-\[\#3291FF\]:focus-visible{outline-color:#3291ff}.active\:cursor-grabbing:active{cursor:grabbing}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}:where([data-vt-moving]) .in-data-vt-moving\:opacity-0{opacity:0}:where([data-vt-traveling]) .in-data-vt-traveling\:text-\(--vt-slide-ink\){color:var(--vt-slide-ink)}:where([data-vt-traveling]) .in-data-vt-traveling\:text-neutral-500{color:var(--color-neutral-500)}.has-focus-visible\:outline-2:has(:focus-visible){outline-style:var(--tw-outline-style);outline-width:2px}.has-focus-visible\:outline-offset-4:has(:focus-visible){outline-offset:4px}.has-focus-visible\:outline-\[\#3291FF\]:has(:focus-visible){outline-color:#3291ff}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:cursor-default[aria-disabled=true]{cursor:default}.aria-disabled\:opacity-40[aria-disabled=true]{opacity:.4}.data-destructive\:text-red-600[data-destructive]{color:var(--color-red-600)}:is(:where(.group\/vt)[data-vt-tone=dark] .group-data-\[vt-tone\=dark\]\/vt\:data-destructive\:text-red-400)[data-destructive]{color:var(--color-red-400)}.data-disabled\:cursor-not-allowed[data-disabled]{cursor:not-allowed}.data-disabled\:opacity-40[data-disabled]{opacity:.4}.data-highlighted\:bg-black\/8[data-highlighted]{background-color:#00000014}@supports (color:color-mix(in lab, red, red)){.data-highlighted\:bg-black\/8[data-highlighted]{background-color:color-mix(in oklab, var(--color-black) 8%, transparent)}}.data-highlighted\:bg-current\/10[data-highlighted]{background-color:currentColor}@supports (color:color-mix(in lab, red, red)){.data-highlighted\:bg-current\/10[data-highlighted]{background-color:color-mix(in oklab, currentcolor 10%, transparent)}}.data-selected\:font-semibold[data-selected]{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.data-\[vt-tone\=dark\]\:text-white[data-vt-tone=dark]{color:var(--color-white)}.data-\[vt-tone\=light\]\:text-neutral-900[data-vt-tone=light]{color:var(--color-neutral-900)}@media (prefers-reduced-motion:reduce){.motion-reduce\:block{display:block}.motion-reduce\:hidden{display:none}.motion-reduce\:transition-none{transition-property:none}}.dark\:border-white\/15:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){border-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/15:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){border-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.dark\:border-white\/20:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){border-color:#fff3}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/20:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){border-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.dark\:border-white\/25:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){border-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/25:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){border-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.dark\:bg-black\/\(--vt-card-tint\):where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){background-color:#000}@supports (color:color-mix(in lab, red, red)){.dark\:bg-black\/\(--vt-card-tint\):where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){background-color:color-mix(in oklab, var(--color-black) var(--vt-card-tint), transparent)}}.dark\:bg-black\/55:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){background-color:#0000008c}@supports (color:color-mix(in lab, red, red)){.dark\:bg-black\/55:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){background-color:color-mix(in oklab, var(--color-black) 55%, transparent)}}.dark\:bg-neutral-700:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){background-color:var(--color-neutral-700)}.dark\:bg-white\/8:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){background-color:#ffffff14}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/8:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){background-color:color-mix(in oklab, var(--color-white) 8%, transparent)}}.dark\:bg-white\/10:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/10:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.dark\:text-neutral-300:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){color:var(--color-neutral-300)}.dark\:text-neutral-400:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){color:var(--color-neutral-400)}.dark\:text-red-400:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){color:var(--color-red-400)}.dark\:text-white:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){color:var(--color-white)}@media (hover:hover){.dark\:hover\:text-white:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *):hover{color:var(--color-white)}}:where([data-vt-traveling]) .dark\:in-data-vt-traveling\:text-neutral-400:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *){color:var(--color-neutral-400)}.dark\:data-highlighted\:bg-white\/12:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *)[data-highlighted]{background-color:#ffffff1f}@supports (color:color-mix(in lab, red, red)){.dark\:data-highlighted\:bg-white\/12:where(.dark,.dark *,[data-theme=dark],[data-theme=dark] *)[data-highlighted]{background-color:color-mix(in oklab, var(--color-white) 12%, transparent)}}.\[\&_svg\]\:size-3\.5 svg{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&_svg\]\:size-4 svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\]\:size-5 svg{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.\[\&_svg\]\:size-8 svg{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.\[\&_svg\]\:size-\[18px\] svg{width:18px;height:18px}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}:where(.\[\:where\(\&\)\]\:text-white){color:var(--color-white)}[data-vt-moving] .\[\[data-vt-moving\]_\&\]\:opacity-0{opacity:0}}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/dist/theme.d.ts
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { type CSSProperties, type ReactNode } from "react";
|
|
2
|
+
export type VitrumMotionPreset = "snappy" | "fluid" | "gentle";
|
|
3
|
+
export type VitrumColorScheme = "system" | "light" | "dark";
|
|
4
|
+
export type ResolvedColorScheme = "light" | "dark";
|
|
5
|
+
export type VitrumThemeName = "frost" | "obsidian" | "aurora" | "amber" | "crystal";
|
|
6
|
+
export type VitrumThemeDarkOverrides = {
|
|
7
|
+
tint?: string;
|
|
8
|
+
tintOpacity?: number;
|
|
9
|
+
borderOpacity?: number;
|
|
10
|
+
shadowStrength?: number;
|
|
11
|
+
};
|
|
12
|
+
export type VitrumTheme = {
|
|
13
|
+
name: string;
|
|
14
|
+
/** Base glass tint color (any CSS color string). */
|
|
15
|
+
tint: string;
|
|
16
|
+
/** Tint coverage over the refracted backdrop (0–1). */
|
|
17
|
+
tintOpacity: number;
|
|
18
|
+
/** Frost blur radius in px (0 = crystal sharp). */
|
|
19
|
+
blur: number;
|
|
20
|
+
/** Rim refraction intensity multiplier. */
|
|
21
|
+
refraction: number;
|
|
22
|
+
/** Specular highlight / light intensity multiplier. */
|
|
23
|
+
specular: number;
|
|
24
|
+
/** Rim light intensity multiplier. */
|
|
25
|
+
rimLight: number;
|
|
26
|
+
/** Drop shadow strength multiplier. */
|
|
27
|
+
shadowStrength: number;
|
|
28
|
+
/** Rim hairline border opacity (0–1). */
|
|
29
|
+
borderOpacity: number;
|
|
30
|
+
/** Corner radius scale factor (default `1`). */
|
|
31
|
+
radiusScale: number;
|
|
32
|
+
/** Spring motion feel for interactive surfaces. */
|
|
33
|
+
motionPreset: VitrumMotionPreset;
|
|
34
|
+
/** Optional dark-scheme optical overrides. */
|
|
35
|
+
dark?: VitrumThemeDarkOverrides;
|
|
36
|
+
};
|
|
37
|
+
export type VitrumThemeOverrides = Partial<Omit<VitrumTheme, "dark">> & {
|
|
38
|
+
dark?: VitrumThemeDarkOverrides;
|
|
39
|
+
};
|
|
40
|
+
export type VitrumConfig = {
|
|
41
|
+
/** Default glass theme preset name or custom theme from `createGlassTheme()`. */
|
|
42
|
+
theme?: VitrumThemeName | VitrumTheme;
|
|
43
|
+
/** Preferred color scheme (`"system" | "light" | "dark"`). */
|
|
44
|
+
colorScheme?: VitrumColorScheme;
|
|
45
|
+
/** Detected or configured global CSS entrypoint path. */
|
|
46
|
+
cssEntry?: string;
|
|
47
|
+
/** Optional environment variable name storing the commercial license key. */
|
|
48
|
+
licenseKeyEnv?: string;
|
|
49
|
+
};
|
|
50
|
+
/** 5 curated glass theme presets shipped with Vitrum. */
|
|
51
|
+
export declare const vitrumThemes: Record<VitrumThemeName, VitrumTheme>;
|
|
52
|
+
export declare const VITRUM_THEME_NAMES: VitrumThemeName[];
|
|
53
|
+
/** Resolves a preset name or custom `VitrumTheme` object to a complete `VitrumTheme`. */
|
|
54
|
+
export declare function resolveVitrumTheme(input: VitrumThemeName | VitrumTheme | undefined): VitrumTheme;
|
|
55
|
+
/**
|
|
56
|
+
* Creates a validated `VitrumTheme` by merging `overrides` over a base preset (defaults to `frost`).
|
|
57
|
+
*/
|
|
58
|
+
export declare function createGlassTheme(overrides?: VitrumThemeOverrides, base?: VitrumThemeName | VitrumTheme): VitrumTheme;
|
|
59
|
+
/** Typed configuration helper for `vitrum.config.ts`. */
|
|
60
|
+
export declare function defineVitrumConfig<T extends VitrumConfig>(config: T): T;
|
|
61
|
+
/** Resolves effective optical values for a given `VitrumTheme` and active color scheme. */
|
|
62
|
+
export declare function resolveThemeTokens(theme: VitrumTheme, colorScheme: ResolvedColorScheme): {
|
|
63
|
+
tint: string;
|
|
64
|
+
tintOpacity: number;
|
|
65
|
+
blur: number;
|
|
66
|
+
refraction: number;
|
|
67
|
+
specular: number;
|
|
68
|
+
rimLight: number;
|
|
69
|
+
shadowStrength: number;
|
|
70
|
+
borderOpacity: number;
|
|
71
|
+
radiusScale: number;
|
|
72
|
+
motionPreset: VitrumMotionPreset;
|
|
73
|
+
};
|
|
74
|
+
/** Converts a `VitrumTheme` and color scheme into scoped `--vitrum-*` CSS custom properties. */
|
|
75
|
+
export declare function themeToCssVars(theme: VitrumTheme, colorScheme?: ResolvedColorScheme): Record<string, string>;
|
|
76
|
+
export type VitrumThemeContextValue = {
|
|
77
|
+
/** Active resolved `VitrumTheme` object. */
|
|
78
|
+
theme: VitrumTheme;
|
|
79
|
+
/** Active resolved color scheme (`"light"` or `"dark"`). */
|
|
80
|
+
resolvedColorScheme: ResolvedColorScheme;
|
|
81
|
+
/** Configured color scheme mode (`"system"`, `"light"`, or `"dark"`). */
|
|
82
|
+
colorScheme: VitrumColorScheme;
|
|
83
|
+
/** Update the active theme by preset name or custom `VitrumTheme`. */
|
|
84
|
+
setTheme: (next: VitrumThemeName | VitrumTheme) => void;
|
|
85
|
+
/** Update the active color scheme mode. */
|
|
86
|
+
setColorScheme: (next: VitrumColorScheme) => void;
|
|
87
|
+
/** Computed `--vitrum-*` CSS custom properties for the active theme. */
|
|
88
|
+
cssVars: Record<string, string>;
|
|
89
|
+
};
|
|
90
|
+
/** Internal hook returning `null` when no `<VitrumProvider>` is mounted so standalone components stay 100% unchanged. */
|
|
91
|
+
export declare function useOptionalVitrumTheme(): VitrumThemeContextValue | null;
|
|
92
|
+
/**
|
|
93
|
+
* Reads and updates the active Vitrum glass theme and resolved color scheme.
|
|
94
|
+
* Safe to call outside `<VitrumProvider>` (returns the default `frost` theme).
|
|
95
|
+
*/
|
|
96
|
+
export declare function useVitrumTheme(): VitrumThemeContextValue;
|
|
97
|
+
export type VitrumProviderProps = {
|
|
98
|
+
children?: ReactNode;
|
|
99
|
+
/** Theme preset name (`"frost" | "obsidian" | "aurora" | "amber" | "crystal"`) or custom `createGlassTheme()` object. */
|
|
100
|
+
theme?: VitrumThemeName | VitrumTheme;
|
|
101
|
+
/** Color scheme mode (default `"system"`). */
|
|
102
|
+
colorScheme?: VitrumColorScheme;
|
|
103
|
+
/** Optional className applied to the provider wrapper element. */
|
|
104
|
+
className?: string;
|
|
105
|
+
/** Optional inline styles merged onto the provider wrapper element. */
|
|
106
|
+
style?: CSSProperties;
|
|
107
|
+
/** When `true`, also mirrors `--vitrum-*` CSS variables onto `document.documentElement`. */
|
|
108
|
+
applyToRoot?: boolean;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Provides Vitrum glass theme tokens and `--vitrum-*` CSS custom properties to all descendant
|
|
112
|
+
* Vitrum components and `<GlassSurface>` primitives.
|
|
113
|
+
*/
|
|
114
|
+
export declare function VitrumProvider({ children, theme: initialTheme, colorScheme: initialColorScheme, className, style, applyToRoot, }: VitrumProviderProps): import("react").JSX.Element;
|
|
115
|
+
export default VitrumProvider;
|
package/dist/theme.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
|
|
3
|
+
function _0x4d8c(){var _0x5d96db=['4440rFCoGR','2191760zXEhbD','110tdjdgL','850718CXYFiM','1489956XXIuuG','27GsmiKi','5610mWQDlM','813925CSSeyY','261iCJPfS','761635qXMQGu','42PfYorn','8EYnEwO','33267pSCxBM'];_0x4d8c=function(){return _0x5d96db;};return _0x4d8c();}(function(_0x515f3a,_0x34e1e4){var _0x5be601=_0x28f4,_0x4dc31b=_0x515f3a();while(!![]){try{var _0x1bbcc0=-parseInt(_0x5be601(0xa4))/0x1*(parseInt(_0x5be601(0xa2))/0x2)+-parseInt(_0x5be601(0xa0))/0x3*(-parseInt(_0x5be601(0x9a))/0x4)+parseInt(_0x5be601(0xa5))/0x5+-parseInt(_0x5be601(0xa6))/0x6*(parseInt(_0x5be601(0xa3))/0x7)+-parseInt(_0x5be601(0x9d))/0x8*(-parseInt(_0x5be601(0xa1))/0x9)+parseInt(_0x5be601(0x9e))/0xa*(-parseInt(_0x5be601(0x9f))/0xb)+-parseInt(_0x5be601(0x9c))/0xc*(-parseInt(_0x5be601(0x9b))/0xd);if(_0x1bbcc0===_0x34e1e4)break;else _0x4dc31b['push'](_0x4dc31b['shift']());}catch(_0x523695){_0x4dc31b['push'](_0x4dc31b['shift']());}}}(_0x4d8c,0x7e5f7));function _0x28f4(_0x231b83,_0x4b1f1b){_0x231b83=_0x231b83-0x9a;var _0x4d8cff=_0x4d8c();var _0x28f4ba=_0x4d8cff[_0x231b83];return _0x28f4ba;}export{b as VITRUM_THEME_NAMES,j as VitrumProvider,d as createGlassTheme,k as default,e as defineVitrumConfig,f as resolveThemeTokens,c as resolveVitrumTheme,g as themeToCssVars,h as useOptionalVitrumTheme,i as useVitrumTheme,a as vitrumThemes}from'./chunk-ZCV4ENGP.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,124 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitrumui/react",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Refractive glass UI components for React 19 powered by a shared WebGL2 engine.",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": [
|
|
8
|
+
"*.css"
|
|
9
|
+
],
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=20.0.0"
|
|
12
|
+
},
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./button": {
|
|
21
|
+
"types": "./dist/glass-button.d.ts",
|
|
22
|
+
"import": "./dist/glass-button.js"
|
|
23
|
+
},
|
|
24
|
+
"./tabs": {
|
|
25
|
+
"types": "./dist/glass-tabs.d.ts",
|
|
26
|
+
"import": "./dist/glass-tabs.js"
|
|
27
|
+
},
|
|
28
|
+
"./card": {
|
|
29
|
+
"types": "./dist/glass-card.d.ts",
|
|
30
|
+
"import": "./dist/glass-card.js"
|
|
31
|
+
},
|
|
32
|
+
"./select": {
|
|
33
|
+
"types": "./dist/glass-select.d.ts",
|
|
34
|
+
"import": "./dist/glass-select.js"
|
|
35
|
+
},
|
|
36
|
+
"./dropdown-menu": {
|
|
37
|
+
"types": "./dist/glass-dropdown-menu.d.ts",
|
|
38
|
+
"import": "./dist/glass-dropdown-menu.js"
|
|
39
|
+
},
|
|
40
|
+
"./popover": {
|
|
41
|
+
"types": "./dist/glass-popover.d.ts",
|
|
42
|
+
"import": "./dist/glass-popover.js"
|
|
43
|
+
},
|
|
44
|
+
"./menu": {
|
|
45
|
+
"types": "./dist/glass-menu.d.ts",
|
|
46
|
+
"import": "./dist/glass-menu.js"
|
|
47
|
+
},
|
|
48
|
+
"./surface": {
|
|
49
|
+
"types": "./dist/glass-surface.d.ts",
|
|
50
|
+
"import": "./dist/glass-surface.js"
|
|
51
|
+
},
|
|
52
|
+
"./theme": {
|
|
53
|
+
"types": "./dist/theme.d.ts",
|
|
54
|
+
"import": "./dist/theme.js"
|
|
55
|
+
},
|
|
56
|
+
"./button-group": {
|
|
57
|
+
"types": "./dist/glass-button-group.d.ts",
|
|
58
|
+
"import": "./dist/glass-button-group.js"
|
|
59
|
+
},
|
|
60
|
+
"./action-button": {
|
|
61
|
+
"types": "./dist/glass-action-button.d.ts",
|
|
62
|
+
"import": "./dist/glass-action-button.js"
|
|
63
|
+
},
|
|
64
|
+
"./badge": {
|
|
65
|
+
"types": "./dist/glass-badge.d.ts",
|
|
66
|
+
"import": "./dist/glass-badge.js"
|
|
67
|
+
},
|
|
68
|
+
"./slide-to-confirm": {
|
|
69
|
+
"types": "./dist/glass-slide-to-confirm.d.ts",
|
|
70
|
+
"import": "./dist/glass-slide-to-confirm.js"
|
|
71
|
+
},
|
|
72
|
+
"./controls/range-slider": {
|
|
73
|
+
"types": "./dist/controls/RangeSlider.d.ts",
|
|
74
|
+
"import": "./dist/controls/RangeSlider.js"
|
|
75
|
+
},
|
|
76
|
+
"./controls/switch": {
|
|
77
|
+
"types": "./dist/controls/Switch.d.ts",
|
|
78
|
+
"import": "./dist/controls/Switch.js"
|
|
79
|
+
},
|
|
80
|
+
"./controls/checkbox": {
|
|
81
|
+
"types": "./dist/controls/Checkbox.d.ts",
|
|
82
|
+
"import": "./dist/controls/Checkbox.js"
|
|
83
|
+
},
|
|
84
|
+
"./styles.css": {
|
|
85
|
+
"types": "./dist/styles.css.d.ts",
|
|
86
|
+
"style": "./dist/styles.css",
|
|
87
|
+
"default": "./dist/styles.css"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"files": [
|
|
91
|
+
"dist",
|
|
92
|
+
"LICENSE.md",
|
|
93
|
+
"THIRD_PARTY_NOTICES.md",
|
|
94
|
+
"README.md"
|
|
95
|
+
],
|
|
96
|
+
"dependencies": {
|
|
97
|
+
"@ui-sdk/core": "0.1.0-beta.13",
|
|
98
|
+
"@ui-sdk/react": "0.1.0-beta.13",
|
|
99
|
+
"@vitrumui/core": "1.0.0",
|
|
100
|
+
"@vitrumui/springs": "1.0.0"
|
|
101
|
+
},
|
|
102
|
+
"peerDependencies": {
|
|
103
|
+
"react": "^19.0.0",
|
|
104
|
+
"react-dom": "^19.0.0",
|
|
105
|
+
"three": "^0.185.0"
|
|
106
|
+
},
|
|
107
|
+
"peerDependenciesMeta": {
|
|
108
|
+
"three": {
|
|
109
|
+
"optional": true
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"devDependencies": {
|
|
113
|
+
"@types/react": "^19.2.18",
|
|
114
|
+
"@types/react-dom": "^19.2.4",
|
|
115
|
+
"react": "^19.2.8",
|
|
116
|
+
"react-dom": "^19.2.8",
|
|
117
|
+
"three": "^0.185.1"
|
|
118
|
+
},
|
|
119
|
+
"scripts": {
|
|
120
|
+
"build": "tsup && node ../../scripts/obfuscate.mjs dist src && tailwindcss -i styles/vitrum.css -o dist/styles.css --minify && node -e \"require('node:fs').writeFileSync('dist/styles.css.d.ts', 'export {}\\n')\" && tsc -p tsconfig.build.json && node ../../scripts/fix-dts-extensions.mjs dist",
|
|
121
|
+
"test": "vitest run",
|
|
122
|
+
"typecheck": "tsc --noEmit"
|
|
123
|
+
}
|
|
6
124
|
}
|