admin-ui-starter-kit 0.6.2 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_shared/auth-BZY91F5_.cjs +2 -0
- package/dist/_shared/auth-BZY91F5_.cjs.map +1 -0
- package/dist/_shared/auth-DcotjEbY.js +643 -0
- package/dist/_shared/auth-DcotjEbY.js.map +1 -0
- package/dist/_shared/buttons-Bek9F7qK.cjs +2 -0
- package/dist/_shared/buttons-Bek9F7qK.cjs.map +1 -0
- package/dist/_shared/buttons-DcynMPnE.js +137 -0
- package/dist/_shared/buttons-DcynMPnE.js.map +1 -0
- package/dist/_shared/cards-C1ythc0Q.js +354 -0
- package/dist/_shared/cards-C1ythc0Q.js.map +1 -0
- package/dist/_shared/cards-GSYfJ-oX.cjs +2 -0
- package/dist/_shared/cards-GSYfJ-oX.cjs.map +1 -0
- package/dist/_shared/comments-CmljtbAW.js +952 -0
- package/dist/_shared/comments-CmljtbAW.js.map +1 -0
- package/dist/_shared/comments-ColUq7eh.cjs +2 -0
- package/dist/_shared/comments-ColUq7eh.cjs.map +1 -0
- package/dist/_shared/containers-CB7zaAvN.cjs +2 -0
- package/dist/_shared/containers-CB7zaAvN.cjs.map +1 -0
- package/dist/_shared/containers-CLBmhGfs.js +48 -0
- package/dist/_shared/containers-CLBmhGfs.js.map +1 -0
- package/dist/_shared/data-display-BTsCY7A5.js +1873 -0
- package/dist/_shared/data-display-BTsCY7A5.js.map +1 -0
- package/dist/_shared/data-display-BdGQMXit.cjs +2 -0
- package/dist/_shared/data-display-BdGQMXit.cjs.map +1 -0
- package/dist/_shared/forms-CEE1te78.cjs +2 -0
- package/dist/_shared/forms-CEE1te78.cjs.map +1 -0
- package/dist/_shared/forms-CQoGvG7q.js +3533 -0
- package/dist/_shared/forms-CQoGvG7q.js.map +1 -0
- package/dist/_shared/header-B9IPDQRW.js +447 -0
- package/dist/_shared/header-B9IPDQRW.js.map +1 -0
- package/dist/_shared/header-C_1x4-rd.cjs +2 -0
- package/dist/_shared/header-C_1x4-rd.cjs.map +1 -0
- package/dist/_shared/hooks---vunGQ6.js +95 -0
- package/dist/_shared/hooks---vunGQ6.js.map +1 -0
- package/dist/_shared/hooks-CjVzmgvY.cjs +2 -0
- package/dist/_shared/hooks-CjVzmgvY.cjs.map +1 -0
- package/dist/_shared/layout-BXrQqUKq.js +262 -0
- package/dist/_shared/layout-BXrQqUKq.js.map +1 -0
- package/dist/_shared/layout-DWicdsPI.cjs +2 -0
- package/dist/_shared/layout-DWicdsPI.cjs.map +1 -0
- package/dist/_shared/layout.types-CXFAjJCj.cjs +2 -0
- package/dist/_shared/layout.types-CXFAjJCj.cjs.map +1 -0
- package/dist/_shared/layout.types-ip8BYRa7.js +28 -0
- package/dist/_shared/layout.types-ip8BYRa7.js.map +1 -0
- package/dist/_shared/settings-Bfr6PgSi.cjs +2 -0
- package/dist/_shared/settings-Bfr6PgSi.cjs.map +1 -0
- package/dist/_shared/settings-CrPaYr4A.js +143 -0
- package/dist/_shared/settings-CrPaYr4A.js.map +1 -0
- package/dist/_shared/sidebar-CDOLD8fN.js +548 -0
- package/dist/_shared/sidebar-CDOLD8fN.js.map +1 -0
- package/dist/_shared/sidebar-DcsxeNml.cjs +2 -0
- package/dist/_shared/sidebar-DcsxeNml.cjs.map +1 -0
- package/dist/_shared/table-B_pqCQxC.js +1377 -0
- package/dist/_shared/table-B_pqCQxC.js.map +1 -0
- package/dist/_shared/table-CGVOXtdv.cjs +2 -0
- package/dist/_shared/table-CGVOXtdv.cjs.map +1 -0
- package/dist/_shared/workspace-C1twu23r.cjs +2 -0
- package/dist/_shared/workspace-C1twu23r.cjs.map +1 -0
- package/dist/_shared/workspace-CkOZLdcN.js +357 -0
- package/dist/_shared/workspace-CkOZLdcN.js.map +1 -0
- package/dist/components/base/buttons/index.cjs +1 -1
- package/dist/components/base/buttons/index.js +1 -1
- package/dist/components/base/cards/index.cjs +1 -1
- package/dist/components/base/cards/index.js +1 -1
- package/dist/components/base/cards/partials/card-primitives.d.ts.map +1 -1
- package/dist/components/base/forms/index.cjs +1 -1
- package/dist/components/base/forms/index.js +1 -1
- package/dist/components/base/table/index.cjs +1 -1
- package/dist/components/base/table/index.js +1 -1
- package/dist/components/composed/admin/index.cjs +1 -1
- package/dist/components/composed/admin/index.js +2 -2
- package/dist/components/composed/ai/index.cjs +1 -1
- package/dist/components/composed/ai/index.js +2 -2
- package/dist/components/composed/analytics/index.cjs +1 -1
- package/dist/components/composed/analytics/index.js +1 -1
- package/dist/components/composed/cards/index.cjs +1 -1
- package/dist/components/composed/cards/index.js +2 -2
- package/dist/components/composed/commerce/index.cjs +1 -1
- package/dist/components/composed/commerce/index.js +2 -2
- package/dist/components/composed/dark-surfaces/index.cjs +1 -1
- package/dist/components/composed/dark-surfaces/index.js +1 -1
- package/dist/components/composed/data-display/index.cjs +1 -1
- package/dist/components/composed/data-display/index.js +1 -1
- package/dist/components/composed/data-display/metadata/metadata-list.d.ts.map +1 -1
- package/dist/components/composed/navigation/index.cjs +1 -1
- package/dist/components/composed/navigation/index.js +1 -1
- package/dist/components/composed/timelines/index.cjs +1 -1
- package/dist/components/composed/timelines/index.js +1 -1
- package/dist/components/features/activities/index.cjs +1 -1
- package/dist/components/features/activities/index.js +1 -1
- package/dist/components/features/card/index.cjs +1 -1
- package/dist/components/features/card/index.js +1 -1
- package/dist/components/features/comments/index.cjs +1 -1
- package/dist/components/features/comments/index.js +1 -1
- package/dist/components/features/event-log/index.cjs +1 -1
- package/dist/components/features/event-log/index.js +2 -2
- package/dist/components/features/media-library/index.cjs +1 -1
- package/dist/components/features/media-library/index.js +1 -1
- package/dist/components/features/products/index.cjs +1 -1
- package/dist/components/features/products/index.js +4 -4
- package/dist/components/features/resource/index.cjs +1 -1
- package/dist/components/features/resource/index.js +2 -2
- package/dist/components/features/schema-form/index.cjs +1 -1
- package/dist/components/features/schema-form/index.js +2 -2
- package/dist/components/layout/auth/index.cjs +1 -1
- package/dist/components/layout/auth/index.js +1 -1
- package/dist/components/layout/containers/containers.types.d.ts +2 -2
- package/dist/components/layout/containers/containers.types.d.ts.map +1 -1
- package/dist/components/layout/containers/content-container.d.ts.map +1 -1
- package/dist/components/layout/containers/index.cjs +1 -1
- package/dist/components/layout/containers/index.js +1 -2
- package/dist/components/layout/header/index.cjs +1 -1
- package/dist/components/layout/header/index.js +1 -1
- package/dist/components/layout/hooks/index.cjs +1 -1
- package/dist/components/layout/hooks/index.js +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +10 -11
- package/dist/components/layout/layout.types.d.ts.map +1 -1
- package/dist/components/layout/page/index.cjs +1 -1
- package/dist/components/layout/page/index.js +2 -2
- package/dist/components/layout/settings/index.cjs +1 -1
- package/dist/components/layout/settings/index.js +1 -1
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts.map +1 -1
- package/dist/components/layout/sidebar/index.cjs +1 -1
- package/dist/components/layout/sidebar/index.js +2 -2
- package/dist/components/layout/workspace/index.cjs +1 -1
- package/dist/components/layout/workspace/index.js +1 -1
- package/dist/showcase/assets/AreaChart-WJREayr9.js +6 -0
- package/dist/showcase/assets/CompositeItem-CY3XmFuI.js +1 -0
- package/dist/showcase/assets/CompositeRoot-BPMF0t1F.js +1 -0
- package/dist/showcase/assets/DialogTrigger-BzaF3YN8.js +1 -0
- package/dist/showcase/assets/LabelableContext-LKvvFFnV.js +1 -0
- package/dist/showcase/assets/PreviewLayout-B0n7l00P.js +1 -0
- package/dist/showcase/assets/RadioGroup-VBtGFETg.js +1 -0
- package/dist/showcase/assets/ScrollAreaCorner-BimGwdGs.js +1 -0
- package/dist/showcase/assets/Separator-BfKe0YiY.js +1 -0
- package/dist/showcase/assets/ToolbarRootContext-Cscyv1PN.js +1 -0
- package/dist/showcase/assets/accordion-BEN0VkL4.js +171 -0
- package/dist/showcase/assets/accordion-variants-QFG3H38z.js +1 -0
- package/dist/showcase/assets/action-menu-Bfw1tFqM.js +1 -0
- package/dist/showcase/assets/actions-CFpHs5IC.js +310 -0
- package/dist/showcase/assets/activities-CDxlaghU.js +500 -0
- package/dist/showcase/assets/activities-feed-card-BO1kcjRK.js +1 -0
- package/dist/showcase/assets/admin-DFpHXeuv.js +140 -0
- package/dist/showcase/assets/ai-DyO6VqQP.js +207 -0
- package/dist/showcase/assets/ai-artifact-MVA3ikv6.js +2 -0
- package/dist/showcase/assets/ai-chat-D-xcp6Jf.js +568 -0
- package/dist/showcase/assets/ai-elements-DlFqIOYp.js +387 -0
- package/dist/showcase/assets/ai-tool-call-DedG9TdK.js +1 -0
- package/dist/showcase/assets/alert-CmRK2lOe.js +1 -0
- package/dist/showcase/assets/alert-DCIVryEp.js +62 -0
- package/dist/showcase/assets/alert-DDP3Ktic.js +93 -0
- package/dist/showcase/assets/api-key-list-CWa997YX.js +1 -0
- package/dist/showcase/assets/api-key-list-mTPebHF3.js +73 -0
- package/dist/showcase/assets/app-sidebar-Cnfk9z5K.js +1 -0
- package/dist/showcase/assets/arrow-down-CCYWFimd.js +1 -0
- package/dist/showcase/assets/arrow-left-CrYjfZJ0.js +1 -0
- package/dist/showcase/assets/arrow-right-eLxbBrdm.js +1 -0
- package/dist/showcase/assets/arrow-up-kA33fcPv.js +1 -0
- package/dist/showcase/assets/arrow-up-right-BSWGQVDB.js +1 -0
- package/dist/showcase/assets/avatar-BDGhB3aA.js +57 -0
- package/dist/showcase/assets/avatar-CLBQvnYG.js +1 -0
- package/dist/showcase/assets/avatar-WUMW3Qjo.js +1 -0
- package/dist/showcase/assets/avatar-cKSNuTzf.js +67 -0
- package/dist/showcase/assets/badge--mqVg8Ry.js +31 -0
- package/dist/showcase/assets/badge-check-D7YjWqnm.js +1 -0
- package/dist/showcase/assets/bell-6YyocFK6.js +1 -0
- package/dist/showcase/assets/bot-BC4pGAB3.js +1 -0
- package/dist/showcase/assets/box-CPGIu4Nv.js +1 -0
- package/dist/showcase/assets/braces-9jywZtTA.js +1 -0
- package/dist/showcase/assets/brain-wf_S427C.js +1 -0
- package/dist/showcase/assets/brand-78lhbKSW.js +36 -0
- package/dist/showcase/assets/breadcrumb-6XHObtqO.js +1 -0
- package/dist/showcase/assets/breadcrumb-BVrrS53_.js +52 -0
- package/dist/showcase/assets/breadcrumbs-BwC3Iaae.js +1 -0
- package/dist/showcase/assets/briefcase-BViWYew9.js +1 -0
- package/dist/showcase/assets/building-2-CwR3gV1I.js +1 -0
- package/dist/showcase/assets/button-BWwsy37B.js +44 -0
- package/dist/showcase/assets/button-group-BTiMRQIO.js +1 -0
- package/dist/showcase/assets/buttons-D9pH8hPs.js +272 -0
- package/dist/showcase/assets/calendar-Bzl2i1lu.js +1 -0
- package/dist/showcase/assets/calendar-CNMlC7Fn.js +16 -0
- package/dist/showcase/assets/calendar-D5NdEmaD.js +1 -0
- package/dist/showcase/assets/calendar-days-j8QDBUc5.js +1 -0
- package/dist/showcase/assets/camera-Cwb84N8a.js +1 -0
- package/dist/showcase/assets/card-CX3vQ2Te.js +1 -0
- package/dist/showcase/assets/card-FLJkfdKP.js +188 -0
- package/dist/showcase/assets/card-primitives-C2s13Uvp.js +1 -0
- package/dist/showcase/assets/card-radio-group-BP27dErL.js +1 -0
- package/dist/showcase/assets/cards-DcdxRM9W.js +354 -0
- package/dist/showcase/assets/carousel-CTKyiHD2.js +449 -0
- package/dist/showcase/assets/cell-renderers-ouSypXTE.js +1 -0
- package/dist/showcase/assets/chart-CMsMyCah.js +358 -0
- package/dist/showcase/assets/chart-column-BrwpEFzy.js +1 -0
- package/dist/showcase/assets/checkbox-4qgEfnjv.js +1 -0
- package/dist/showcase/assets/checkbox-ratLYBAF.js +1 -0
- package/dist/showcase/assets/chevron-down-BInaIfd1.js +1 -0
- package/dist/showcase/assets/chevron-left-Bjy3FJ_M.js +1 -0
- package/dist/showcase/assets/chevron-up-Ufl6UEyV.js +1 -0
- package/dist/showcase/assets/chevrons-up-down-CrOH-P5z.js +1 -0
- package/dist/showcase/assets/circle-G0dEx2Ay.js +1 -0
- package/dist/showcase/assets/circle-alert-CiibDCe8.js +1 -0
- package/dist/showcase/assets/circle-check-Bqm54c03.js +1 -0
- package/dist/showcase/assets/circle-check-big-BfiY_qy_.js +1 -0
- package/dist/showcase/assets/circle-dot-VNm7CEgH.js +1 -0
- package/dist/showcase/assets/circle-question-mark-mM7PKy4G.js +1 -0
- package/dist/showcase/assets/circle-x-2tzzp_vB.js +1 -0
- package/dist/showcase/assets/clock-3-CfdZnMP2.js +1 -0
- package/dist/showcase/assets/clock-ByB7C11p.js +1 -0
- package/dist/showcase/assets/code-xml-D2fN-BaU.js +1 -0
- package/dist/showcase/assets/collapsible-B2lI_uVI.js +1 -0
- package/dist/showcase/assets/collapsible-Bs5YFx-M.js +27 -0
- package/dist/showcase/assets/combobox-BqNSwFaM.js +685 -0
- package/dist/showcase/assets/command-Dcbh_YP-.js +1 -0
- package/dist/showcase/assets/command-Mb30xkwq.js +1 -0
- package/dist/showcase/assets/comment-composer-DqTw0zIM.js +1 -0
- package/dist/showcase/assets/comment-item-DbQAZ3yP.js +1 -0
- package/dist/showcase/assets/comments-CGMOOi7k.js +357 -0
- package/dist/showcase/assets/commerce-bVpLHwpS.js +267 -0
- package/dist/showcase/assets/composite-CTpmYme_.js +1 -0
- package/dist/showcase/assets/contact-card-nuS10UKK.js +65 -0
- package/dist/showcase/assets/content-container-NexBp0FV.js +1 -0
- package/dist/showcase/assets/copyable-CNltkC2A.js +1 -0
- package/dist/showcase/assets/copyable-qr6--oJx.js +96 -0
- package/dist/showcase/assets/course-card-0kkl37FX.js +77 -0
- package/dist/showcase/assets/cpu-DSD9h0l5.js +1 -0
- package/dist/showcase/assets/credit-card-CN0E6FU8.js +1 -0
- package/dist/showcase/assets/css-variables-CzmmLWxt.js +1190 -0
- package/dist/showcase/assets/currency-BtofP745.js +149 -0
- package/dist/showcase/assets/dark-surfaces-BU7kfTIi.js +90 -0
- package/dist/showcase/assets/data-view-3W7_KBli.js +124 -0
- package/dist/showcase/assets/data-view-snL5QtHe.js +4 -0
- package/dist/showcase/assets/database-BarEYzaF.js +1 -0
- package/dist/showcase/assets/date-block-dTt9Rcfd.js +1 -0
- package/dist/showcase/assets/date-picker-BKzZeQGc.js +1 -0
- package/dist/showcase/assets/date-pickers-CYERVYRo.js +73 -0
- package/dist/showcase/assets/dense-info-hnKZfRnQ.js +106 -0
- package/dist/showcase/assets/design-system-consistency-D6qngflS.js +264 -0
- package/dist/showcase/assets/dialog-mO0FpHmT.js +1 -0
- package/dist/showcase/assets/dialog-xbuhPXmf.js +1 -0
- package/dist/showcase/assets/display-utilities-C4IflxoK.js +267 -0
- package/dist/showcase/assets/dist-BFChHTWK.js +45 -0
- package/dist/showcase/assets/dist-BkVfs5PY.js +1 -0
- package/dist/showcase/assets/dollar-sign-BES-Y4q8.js +1 -0
- package/dist/showcase/assets/download-CuEg-4DT.js +1 -0
- package/dist/showcase/assets/dropdown-menu-C4Fcfk9z.js +1 -0
- package/dist/showcase/assets/dropzone-CrJ_k9fJ.js +1 -0
- package/dist/showcase/assets/earth-Cmx-Axig.js +1 -0
- package/dist/showcase/assets/ellipsis-Co7iTzp_.js +1 -0
- package/dist/showcase/assets/ellipsis-vertical-DMYJFiqQ.js +1 -0
- package/dist/showcase/assets/empty-Dw4ozyll.js +1 -0
- package/dist/showcase/assets/empty-item-DQwAsl0J.js +49 -0
- package/dist/showcase/assets/empty-state-BKvbnAy1.js +1 -0
- package/dist/showcase/assets/empty-state-Dv6f2fmP.js +190 -0
- package/dist/showcase/assets/enhanced-activities-Ctmivg46.js +357 -0
- package/dist/showcase/assets/enhanced-combobox-D0AsPZ-b.js +1 -0
- package/dist/showcase/assets/esm-oZ6qcNoa.js +2 -0
- package/dist/showcase/assets/event-calendar-ChXdeehr.js +138 -0
- package/dist/showcase/assets/event-log-DeOCb2tT.js +330 -0
- package/dist/showcase/assets/example-CDvNeHNP.js +1 -0
- package/dist/showcase/assets/external-link-BaiCqIx3.js +1 -0
- package/dist/showcase/assets/eye-zG-fqYfd.js +1 -0
- package/dist/showcase/assets/feature-announcement-C2XGWNgI.js +34 -0
- package/dist/showcase/assets/file-sAbDfDuO.js +1 -0
- package/dist/showcase/assets/file-text-Boa9IOND.js +1 -0
- package/dist/showcase/assets/filter-layout-tZmZz-2B.js +1 -0
- package/dist/showcase/assets/filters-D8gEkDAE.js +139 -0
- package/dist/showcase/assets/flag-Cu20rcE4.js +1 -0
- package/dist/showcase/assets/folder-open-Cuk6KKLi.js +1 -0
- package/dist/showcase/assets/form-field-D8sL8tat.js +1 -0
- package/dist/showcase/assets/format-CaRklI--.js +1 -0
- package/dist/showcase/assets/forms-CNk2oX65.js +915 -0
- package/dist/showcase/assets/funnel-B2kBprKZ.js +1 -0
- package/dist/showcase/assets/generic-oWYKMvId.js +1 -0
- package/dist/showcase/assets/getPseudoElementBounds-GjucWEcD.js +1 -0
- package/dist/showcase/assets/gift-C_D_-5GL.js +1 -0
- package/dist/showcase/assets/giftcard-cards-B4DDGzdi.js +85 -0
- package/dist/showcase/assets/git-branch-DlTTLnjW.js +1 -0
- package/dist/showcase/assets/global-search-BjHAfaqS.js +215 -0
- package/dist/showcase/assets/global-search-hKQWHfrf.js +1 -0
- package/dist/showcase/assets/globe-D-gH7XQ2.js +1 -0
- package/dist/showcase/assets/gradient-card-jVxEisUP.js +58 -0
- package/dist/showcase/assets/hash-DySqEhph.js +1 -0
- package/dist/showcase/assets/header-B8hHkAVl.js +1 -0
- package/dist/showcase/assets/header-notifications-s180jNb1.js +1 -0
- package/dist/showcase/assets/heart-DDFCk8Tb.js +1 -0
- package/dist/showcase/assets/hooks-0A_FzYrt.js +220 -0
- package/dist/showcase/assets/house-BqE1X-Wf.js +1 -0
- package/dist/showcase/assets/icon-badge-CyiMjD7j.js +37 -0
- package/dist/showcase/assets/icon-badge-fJVhEHym.js +1 -0
- package/dist/showcase/assets/image-DCtwKHqe.js +1 -0
- package/dist/showcase/assets/inbox-DZA-pAGB.js +1 -0
- package/dist/showcase/assets/index-B37z19z3.js +10 -0
- package/dist/showcase/assets/index-CIsKgiSF.css +2 -0
- package/dist/showcase/assets/inertValue-SPYMBsOM.js +1 -0
- package/dist/showcase/assets/info-DrfDr3GT.js +1 -0
- package/dist/showcase/assets/inline-stat-BVJNx4xR.js +1 -0
- package/dist/showcase/assets/inline-stat-C3cWbSUK.js +15 -0
- package/dist/showcase/assets/input-CKTTGrnR.js +1 -0
- package/dist/showcase/assets/input-UHuWYPMF.js +1 -0
- package/dist/showcase/assets/input-group-BR_lU__a.js +1 -0
- package/dist/showcase/assets/input-group-iZaLbsTP.js +47 -0
- package/dist/showcase/assets/inputs-C7j8Xivm.js +155 -0
- package/dist/showcase/assets/installation-DYnTwaPR.js +134 -0
- package/dist/showcase/assets/invoice-header-D_0KvXQe.js +36 -0
- package/dist/showcase/assets/invoice-items-jcNb-sST.js +36 -0
- package/dist/showcase/assets/invoice-mini-DrZAbjPq.js +14 -0
- package/dist/showcase/assets/invoice-table-DlAw0U4U.js +30 -0
- package/dist/showcase/assets/isSameDay-Cl6v_syG.js +1 -0
- package/dist/showcase/assets/isToday-BBoFjSnJ.js +1 -0
- package/dist/showcase/assets/italic-j2U8krYa.js +1 -0
- package/dist/showcase/assets/item-B2WoC1SD.js +139 -0
- package/dist/showcase/assets/item-BMJ5hfT5.js +1 -0
- package/dist/showcase/assets/item-C_5-EHNK.js +1 -0
- package/dist/showcase/assets/kanban-Cv64Szxq.js +188 -0
- package/dist/showcase/assets/key-round-CORDYqE2.js +1 -0
- package/dist/showcase/assets/label-B0UjYqfw.js +1 -0
- package/dist/showcase/assets/languages-Njdo5y8i.js +1 -0
- package/dist/showcase/assets/layers-Dyew-8IP.js +1 -0
- package/dist/showcase/assets/layout-app-shell-DEZt0d84.js +608 -0
- package/dist/showcase/assets/layout-auth-BT84haSd.js +790 -0
- package/dist/showcase/assets/layout-containers-D6SP4vRB.js +101 -0
- package/dist/showcase/assets/layout-header-kLYjJnHz.js +203 -0
- package/dist/showcase/assets/layout-page-CmS4d8jw.js +314 -0
- package/dist/showcase/assets/layout-primitives-BW858Ymj.js +34 -0
- package/dist/showcase/assets/layout-sidebar-eIDEoyzV.js +224 -0
- package/dist/showcase/assets/layout-users-HyZHQIov.js +117 -0
- package/dist/showcase/assets/layout-workspace-BrDwVUvn.js +191 -0
- package/dist/showcase/assets/lib-Dhty05ZR.js +1 -0
- package/dist/showcase/assets/list-checks-CcWjdDq8.js +1 -0
- package/dist/showcase/assets/lock-CwH3bXx5.js +1 -0
- package/dist/showcase/assets/lock-keyhole-BdBxeIkW.js +1 -0
- package/dist/showcase/assets/mail-Cn94c8yp.js +1 -0
- package/dist/showcase/assets/mail-check-D-q_vPxD.js +1 -0
- package/dist/showcase/assets/map-BfUZMScw.js +124 -0
- package/dist/showcase/assets/map-pin-BZB9GUXP.js +1 -0
- package/dist/showcase/assets/media-library-DguE2q94.js +699 -0
- package/dist/showcase/assets/mention-inline-suggestions-CyGplHOl.js +1 -0
- package/dist/showcase/assets/mentions-lmr_XmfN.js +138 -0
- package/dist/showcase/assets/menus-D0qYbzKk.js +171 -0
- package/dist/showcase/assets/message-square-7VpiUwcS.js +1 -0
- package/dist/showcase/assets/metadata-list-B8O2ljIS.js +1 -0
- package/dist/showcase/assets/metadata-list-BcYg9Ru3.js +286 -0
- package/dist/showcase/assets/metric-HzQnjCpO.js +1 -0
- package/dist/showcase/assets/metric-bar-Fr1TDnSu.js +1 -0
- package/dist/showcase/assets/metric-grid-CM-P894v.js +1 -0
- package/dist/showcase/assets/metric-trend-chip-DqYH_U8e.js +1 -0
- package/dist/showcase/assets/metrics-analytics-bar-DKRLzyXq.js +44 -0
- package/dist/showcase/assets/metrics-analytics-cards-qMbAYBbk.js +50 -0
- package/dist/showcase/assets/metrics-comparison-GSWVebL_.js +76 -0
- package/dist/showcase/assets/metrics-heatmap-Fj5QZoO3.js +27 -0
- package/dist/showcase/assets/metrics-inline-badge-BuyhiYDl.js +17 -0
- package/dist/showcase/assets/metrics-kpi-row-xNn4bjZc.js +31 -0
- package/dist/showcase/assets/metrics-micro-grid-W_ZYCffp.js +42 -0
- package/dist/showcase/assets/metrics-overview-D-km110k.js +192 -0
- package/dist/showcase/assets/metrics-stat-cards-odVtufFY.js +54 -0
- package/dist/showcase/assets/minus-DZsXg5PW.js +1 -0
- package/dist/showcase/assets/money-display-C7Hp2pT3.js +1 -0
- package/dist/showcase/assets/month-year-picker-Dnr4J0mO.js +1 -0
- package/dist/showcase/assets/navigation-0nrtBP5O.js +90 -0
- package/dist/showcase/assets/navigation-BaWNq9oa.js +231 -0
- package/dist/showcase/assets/navigation-extras-B22W1Vkk.js +43 -0
- package/dist/showcase/assets/onboarding-checklist-BFj7rmdZ.js +119 -0
- package/dist/showcase/assets/overflow-tab-bar-D_rltswa.js +1 -0
- package/dist/showcase/assets/overlays-CNfiB-zF.js +408 -0
- package/dist/showcase/assets/overlays-CuxuFGC8.js +159 -0
- package/dist/showcase/assets/overview-CBmdAWO6.js +184 -0
- package/dist/showcase/assets/package-BwwfLMWb.js +1 -0
- package/dist/showcase/assets/package-check-BepTKJLy.js +1 -0
- package/dist/showcase/assets/page-_JDFUWqe.js +1 -0
- package/dist/showcase/assets/page-action-button-Cf34I-B2.js +1 -0
- package/dist/showcase/assets/page-header-pdHFvyTo.js +1 -0
- package/dist/showcase/assets/pagination-Db1WJvjK.js +42 -0
- package/dist/showcase/assets/pagination-s8_MGk9D.js +1 -0
- package/dist/showcase/assets/paperclip-B9HQ47_2.js +1 -0
- package/dist/showcase/assets/password-input-D-eZWMGX.js +1 -0
- package/dist/showcase/assets/pencil-Dm53P6Db.js +1 -0
- package/dist/showcase/assets/phone-a4Ja9xAp.js +1 -0
- package/dist/showcase/assets/plus-DbOlx2x0.js +1 -0
- package/dist/showcase/assets/popover-B8qrRgt3.js +1 -0
- package/dist/showcase/assets/popover-Bm5wETUP.js +1 -0
- package/dist/showcase/assets/popover-menu-EH4P-BuI.js +1 -0
- package/dist/showcase/assets/products-n6VBSMDh.js +423 -0
- package/dist/showcase/assets/progress-D9r6PSCF.js +1 -0
- package/dist/showcase/assets/progress-DVnMcpeq.js +18 -0
- package/dist/showcase/assets/props-table-udnF7Z46.js +1 -0
- package/dist/showcase/assets/quote-qVQF4JC7.js +1 -0
- package/dist/showcase/assets/receipt-DaC4l-Mr.js +1 -0
- package/dist/showcase/assets/receipt-text-BnwhWHdU.js +1 -0
- package/dist/showcase/assets/refinement-guide-zBbAE-vw.js +189 -0
- package/dist/showcase/assets/refresh-cw-CX6ghqEe.js +1 -0
- package/dist/showcase/assets/resolveValueLabel-Cjbd_80A.js +1 -0
- package/dist/showcase/assets/resource-D1fXD_Pt.js +139 -0
- package/dist/showcase/assets/resource-i2YV9aHL.js +1 -0
- package/dist/showcase/assets/resource-selector-card-CdQEPr9U.js +43 -0
- package/dist/showcase/assets/rich-text-editor-DJ2i03XV.js +143 -0
- package/dist/showcase/assets/rich-text-editor-Wh8r117d.js +124 -0
- package/dist/showcase/assets/rotate-ccw-2_FhUcdG.js +1 -0
- package/dist/showcase/assets/route-EGSdKgEp.js +1 -0
- package/dist/showcase/assets/save-nXKvyYEx.js +1 -0
- package/dist/showcase/assets/schema-form-D_9UkVBe.js +327 -0
- package/dist/showcase/assets/scroll-area-CB7X4JqZ.js +1 -0
- package/dist/showcase/assets/scroll-area-DCHN9iYj.js +32 -0
- package/dist/showcase/assets/section-C2ovQgbv.js +1 -0
- package/dist/showcase/assets/select-BTOraQSw.js +1 -0
- package/dist/showcase/assets/select-CE0BbUs7.js +1 -0
- package/dist/showcase/assets/send-CI0r12bX.js +1 -0
- package/dist/showcase/assets/separator-CmGfh7lI.js +1 -0
- package/dist/showcase/assets/separator-PhQTNRIB.js +28 -0
- package/dist/showcase/assets/settings-2-qkVb0lyz.js +1 -0
- package/dist/showcase/assets/settings-YXjlZ9zs.js +1 -0
- package/dist/showcase/assets/sheet-CFDUB2H1.js +1 -0
- package/dist/showcase/assets/shield-Dr_UeG6H.js +1 -0
- package/dist/showcase/assets/shield-alert-7rAVXg-K.js +1 -0
- package/dist/showcase/assets/shield-check-BbzHL-nM.js +1 -0
- package/dist/showcase/assets/shopping-bag-DeprN0fB.js +1 -0
- package/dist/showcase/assets/showcase-BU6Fvpg_.js +132 -0
- package/dist/showcase/assets/sidebar-CudnhnWN.js +1 -0
- package/dist/showcase/assets/sidebar.context-CZaDhRhh.js +1 -0
- package/dist/showcase/assets/skeleton-DD6VPVrv.js +1 -0
- package/dist/showcase/assets/skeleton-Dc5LvW7E.js +29 -0
- package/dist/showcase/assets/slider-BxvP9nxk.js +1 -0
- package/dist/showcase/assets/smart-card-B0Llbpiy.js +1 -0
- package/dist/showcase/assets/sonner-mszFoDWT.js +22 -0
- package/dist/showcase/assets/sortable.esm-J5bJPtH9.js +5 -0
- package/dist/showcase/assets/sparkles-CQSdl3Gw.js +1 -0
- package/dist/showcase/assets/spinner-BSxBn2qs.js +49 -0
- package/dist/showcase/assets/spinner-DJxoGJtq.js +30 -0
- package/dist/showcase/assets/spinner-DihTCcve.js +1 -0
- package/dist/showcase/assets/square-pen-CGMSA_p6.js +1 -0
- package/dist/showcase/assets/stacked-avatars-Ct8B4doW.js +1 -0
- package/dist/showcase/assets/star-DFlmmJdh.js +1 -0
- package/dist/showcase/assets/startOfDay-BedffeNt.js +1 -0
- package/dist/showcase/assets/styles-jR6uS97D.js +1 -0
- package/dist/showcase/assets/suggestions-DnjJ-U9n.js +126 -0
- package/dist/showcase/assets/switch-Dkojf4Yd.js +1 -0
- package/dist/showcase/assets/switch-bTb6CSLr.js +1 -0
- package/dist/showcase/assets/sync-rk8eFwoJ.js +124 -0
- package/dist/showcase/assets/table-4qIerTVI.js +686 -0
- package/dist/showcase/assets/table-BjMmmYd7.js +1 -0
- package/dist/showcase/assets/table-actions-DqofOI1V.js +1 -0
- package/dist/showcase/assets/tabs-BV6mMsfk.js +19 -0
- package/dist/showcase/assets/tabs-u2fkHRw8.js +1 -0
- package/dist/showcase/assets/tags-input-Cu_UwlwT.js +1 -0
- package/dist/showcase/assets/text-button-Fyy21evq.js +1 -0
- package/dist/showcase/assets/text-link-WRyY3ZZo.js +1 -0
- package/dist/showcase/assets/textarea-BbCxWNzV.js +1 -0
- package/dist/showcase/assets/textarea-CtD7JQsv.js +1 -0
- package/dist/showcase/assets/timelines-BBPQpCFX.js +200 -0
- package/dist/showcase/assets/toggle-group-B8mQ6wer.js +1 -0
- package/dist/showcase/assets/toggles-CCClWVXZ.js +71 -0
- package/dist/showcase/assets/toggles-group-DgCilPMo.js +32 -0
- package/dist/showcase/assets/tooltip-ClJCWWTI.js +31 -0
- package/dist/showcase/assets/trash-2-Cs7y4-K-.js +1 -0
- package/dist/showcase/assets/trending-up-spYhMxs6.js +1 -0
- package/dist/showcase/assets/truck-DENWgqxK.js +1 -0
- package/dist/showcase/assets/typography-DMmYNFQj.js +223 -0
- package/dist/showcase/assets/ui-badge-BJEtsa7X.js +28 -0
- package/dist/showcase/assets/ui-card-CrPKoi3P.js +30 -0
- package/dist/showcase/assets/ui-table-2HhDwPcu.js +42 -0
- package/dist/showcase/assets/upload-tray-CUZAErkI.js +138 -0
- package/dist/showcase/assets/use-layout-link-Co3GiFmb.js +1 -0
- package/dist/showcase/assets/useAnchoredPopupScrollLock-DgIA0IXg.js +1 -0
- package/dist/showcase/assets/useAriaLabelledBy-CDdoyQgg.js +1 -0
- package/dist/showcase/assets/useCollapsiblePanel-BT0RSjGM.js +1 -0
- package/dist/showcase/assets/useCompositeItem-DFghnuRZ.js +1 -0
- package/dist/showcase/assets/useCompositeListItem-vXyRoJ2x.js +1 -0
- package/dist/showcase/assets/useLabelableId-D__l5sQX.js +1 -0
- package/dist/showcase/assets/useOpenInteractionType-bZIaLWfE.js +1 -0
- package/dist/showcase/assets/useRender-BV0akLbc.js +1 -0
- package/dist/showcase/assets/useTriggerFocusGuards-dYriJrQP.js +1 -0
- package/dist/showcase/assets/useValueChanged-Dg0AWST0.js +1 -0
- package/dist/showcase/assets/user-B9eCi5Vl.js +1 -0
- package/dist/showcase/assets/user-plus-Uo4IAY7e.js +1 -0
- package/dist/showcase/assets/users-DLep-WjV.js +1 -0
- package/dist/showcase/assets/vendor-profile-BbcE51Pa.js +37 -0
- package/dist/showcase/assets/video-BasdlaQE.js +1 -0
- package/dist/showcase/assets/wrench-BYUVe1-z.js +1 -0
- package/dist/showcase/assets/x-Bx9ayVXr.js +1 -0
- package/dist/showcase/assets/zap-Mgu5HEtF.js +1 -0
- package/dist/showcase/index.html +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/_shared/auth-B_KVUjsB.cjs +0 -2
- package/dist/_shared/auth-B_KVUjsB.cjs.map +0 -1
- package/dist/_shared/auth-C_TgyzDl.js +0 -643
- package/dist/_shared/auth-C_TgyzDl.js.map +0 -1
- package/dist/_shared/buttons-C8jy-jMd.cjs +0 -2
- package/dist/_shared/buttons-C8jy-jMd.cjs.map +0 -1
- package/dist/_shared/buttons-MxvdokeK.js +0 -137
- package/dist/_shared/buttons-MxvdokeK.js.map +0 -1
- package/dist/_shared/cards-BKFwMTjM.cjs +0 -2
- package/dist/_shared/cards-BKFwMTjM.cjs.map +0 -1
- package/dist/_shared/cards-CtBoSZG9.js +0 -355
- package/dist/_shared/cards-CtBoSZG9.js.map +0 -1
- package/dist/_shared/comments-C8iXy9XO.cjs +0 -2
- package/dist/_shared/comments-C8iXy9XO.cjs.map +0 -1
- package/dist/_shared/comments-DGBxF9fD.js +0 -952
- package/dist/_shared/comments-DGBxF9fD.js.map +0 -1
- package/dist/_shared/containers-D7oZE4XI.cjs +0 -2
- package/dist/_shared/containers-D7oZE4XI.cjs.map +0 -1
- package/dist/_shared/containers-anBivbL9.js +0 -19
- package/dist/_shared/containers-anBivbL9.js.map +0 -1
- package/dist/_shared/content-container-CVUJCLhn.cjs +0 -2
- package/dist/_shared/content-container-CVUJCLhn.cjs.map +0 -1
- package/dist/_shared/content-container-Dv8XsAw4.js +0 -33
- package/dist/_shared/content-container-Dv8XsAw4.js.map +0 -1
- package/dist/_shared/data-display-CRFaMkxT.js +0 -1873
- package/dist/_shared/data-display-CRFaMkxT.js.map +0 -1
- package/dist/_shared/data-display-C_44_V-W.cjs +0 -2
- package/dist/_shared/data-display-C_44_V-W.cjs.map +0 -1
- package/dist/_shared/forms-qnwoUqxf.js +0 -3533
- package/dist/_shared/forms-qnwoUqxf.js.map +0 -1
- package/dist/_shared/forms-rmKcy5uO.cjs +0 -2
- package/dist/_shared/forms-rmKcy5uO.cjs.map +0 -1
- package/dist/_shared/header-CxhEtk9M.cjs +0 -2
- package/dist/_shared/header-CxhEtk9M.cjs.map +0 -1
- package/dist/_shared/header-h3f14vQx.js +0 -447
- package/dist/_shared/header-h3f14vQx.js.map +0 -1
- package/dist/_shared/hooks-CS55-w3h.js +0 -95
- package/dist/_shared/hooks-CS55-w3h.js.map +0 -1
- package/dist/_shared/hooks-sfHAyDgD.cjs +0 -2
- package/dist/_shared/hooks-sfHAyDgD.cjs.map +0 -1
- package/dist/_shared/layout.types-CYuDZ_4h.cjs +0 -2
- package/dist/_shared/layout.types-CYuDZ_4h.cjs.map +0 -1
- package/dist/_shared/layout.types-j7zZAPtg.js +0 -28
- package/dist/_shared/layout.types-j7zZAPtg.js.map +0 -1
- package/dist/_shared/page-C6EzwvTz.cjs +0 -2
- package/dist/_shared/page-C6EzwvTz.cjs.map +0 -1
- package/dist/_shared/page-DCW1eWCJ.js +0 -262
- package/dist/_shared/page-DCW1eWCJ.js.map +0 -1
- package/dist/_shared/settings-DbAyxMrX.cjs +0 -2
- package/dist/_shared/settings-DbAyxMrX.cjs.map +0 -1
- package/dist/_shared/settings-QOBrbgdN.js +0 -143
- package/dist/_shared/settings-QOBrbgdN.js.map +0 -1
- package/dist/_shared/sidebar-DfToCaiC.cjs +0 -2
- package/dist/_shared/sidebar-DfToCaiC.cjs.map +0 -1
- package/dist/_shared/sidebar-DhpRdTZH.js +0 -541
- package/dist/_shared/sidebar-DhpRdTZH.js.map +0 -1
- package/dist/_shared/table-CUA_A-oO.js +0 -1377
- package/dist/_shared/table-CUA_A-oO.js.map +0 -1
- package/dist/_shared/table-mPchjiRn.cjs +0 -2
- package/dist/_shared/table-mPchjiRn.cjs.map +0 -1
- package/dist/_shared/workspace-BgtWS9fA.cjs +0 -2
- package/dist/_shared/workspace-BgtWS9fA.cjs.map +0 -1
- package/dist/_shared/workspace-D2jJ0PlS.js +0 -357
- package/dist/_shared/workspace-D2jJ0PlS.js.map +0 -1
- package/dist/showcase/assets/AreaChart-CFYg5vW0.js +0 -6
- package/dist/showcase/assets/CompositeItem-C1v8tfgt.js +0 -1
- package/dist/showcase/assets/CompositeRoot-DVtTCBlx.js +0 -1
- package/dist/showcase/assets/DialogTrigger-CiVZgbZe.js +0 -1
- package/dist/showcase/assets/LabelableContext-CNcXHqnK.js +0 -1
- package/dist/showcase/assets/PreviewLayout-CBTybzKu.js +0 -1
- package/dist/showcase/assets/RadioGroup-DTNAD-0J.js +0 -1
- package/dist/showcase/assets/ScrollAreaCorner-Gau2B-d1.js +0 -1
- package/dist/showcase/assets/Separator-DOIh4aar.js +0 -1
- package/dist/showcase/assets/ToolbarRootContext-BbugmthZ.js +0 -1
- package/dist/showcase/assets/accordion-CB4ePZYm.js +0 -171
- package/dist/showcase/assets/accordion-variants-De2q5GIH.js +0 -1
- package/dist/showcase/assets/action-menu-wJVcvfmC.js +0 -1
- package/dist/showcase/assets/actions-BL1lpPFC.js +0 -310
- package/dist/showcase/assets/activities-C578ZINa.js +0 -500
- package/dist/showcase/assets/activities-feed-card-BeXMgsNO.js +0 -1
- package/dist/showcase/assets/admin-DKJPb23G.js +0 -140
- package/dist/showcase/assets/ai-artifact-BaYtjrP5.js +0 -2
- package/dist/showcase/assets/ai-chat-DxxlaytU.js +0 -568
- package/dist/showcase/assets/ai-elements-BWraZPyC.js +0 -387
- package/dist/showcase/assets/ai-ewP8qLOJ.js +0 -207
- package/dist/showcase/assets/ai-tool-call-Da4srLLe.js +0 -1
- package/dist/showcase/assets/alert-CQI2pomK.js +0 -1
- package/dist/showcase/assets/alert-S12iMEhF.js +0 -62
- package/dist/showcase/assets/alert-xINZmLgm.js +0 -93
- package/dist/showcase/assets/api-key-list-CL6je8dF.js +0 -1
- package/dist/showcase/assets/api-key-list-wxmuRN1m.js +0 -73
- package/dist/showcase/assets/app-sidebar-LVtcgiT_.js +0 -1
- package/dist/showcase/assets/arrow-down-JuqwH6gj.js +0 -1
- package/dist/showcase/assets/arrow-left-BFq65-Ch.js +0 -1
- package/dist/showcase/assets/arrow-right-B4iFg3l1.js +0 -1
- package/dist/showcase/assets/arrow-up-RWJP_FHU.js +0 -1
- package/dist/showcase/assets/arrow-up-right-DdWl37XF.js +0 -1
- package/dist/showcase/assets/avatar-BEvs3dD_.js +0 -1
- package/dist/showcase/assets/avatar-Bv9x1eBh.js +0 -67
- package/dist/showcase/assets/avatar-CC3R0R-x.js +0 -57
- package/dist/showcase/assets/avatar-D29-FL5U.js +0 -1
- package/dist/showcase/assets/badge-B1YIk7bi.js +0 -31
- package/dist/showcase/assets/badge-check-DGmg0_g_.js +0 -1
- package/dist/showcase/assets/bell-Cq9n0a2v.js +0 -1
- package/dist/showcase/assets/bot-DxRjlJlO.js +0 -1
- package/dist/showcase/assets/box-CIh-_2DI.js +0 -1
- package/dist/showcase/assets/braces-BI_smuFG.js +0 -1
- package/dist/showcase/assets/brain-BCAmDdGT.js +0 -1
- package/dist/showcase/assets/brand-CYmrK-FI.js +0 -36
- package/dist/showcase/assets/breadcrumb-DXOwTQNp.js +0 -52
- package/dist/showcase/assets/breadcrumb-DdDGc08y.js +0 -1
- package/dist/showcase/assets/breadcrumbs-SwqzwYW_.js +0 -1
- package/dist/showcase/assets/briefcase-CKrv_pkI.js +0 -1
- package/dist/showcase/assets/building-2-4f1nNGpT.js +0 -1
- package/dist/showcase/assets/button-B9I1TrfQ.js +0 -44
- package/dist/showcase/assets/button-group-DUfRVZy2.js +0 -1
- package/dist/showcase/assets/buttons-Crl8nJKG.js +0 -272
- package/dist/showcase/assets/calendar-4Uqeswbn.js +0 -1
- package/dist/showcase/assets/calendar-Cl5l4Ip1.js +0 -16
- package/dist/showcase/assets/calendar-DxjW_eNc.js +0 -1
- package/dist/showcase/assets/calendar-days-DmDuaOAc.js +0 -1
- package/dist/showcase/assets/camera-j8dT39qf.js +0 -1
- package/dist/showcase/assets/card-BQ_zBZlQ.js +0 -1
- package/dist/showcase/assets/card-DRalKV4i.js +0 -188
- package/dist/showcase/assets/card-primitives-Bn6nhqUA.js +0 -1
- package/dist/showcase/assets/card-radio-group-Dq7AUPTp.js +0 -1
- package/dist/showcase/assets/cards-MR2JolOy.js +0 -354
- package/dist/showcase/assets/carousel-DMceNGDq.js +0 -449
- package/dist/showcase/assets/cell-renderers-VbI9xEAd.js +0 -1
- package/dist/showcase/assets/chart-DW4naldz.js +0 -358
- package/dist/showcase/assets/chart-column-CbUwWFn7.js +0 -1
- package/dist/showcase/assets/checkbox-BJ1yDAQ3.js +0 -1
- package/dist/showcase/assets/checkbox-BqwbtGCF.js +0 -1
- package/dist/showcase/assets/chevron-down-CBa5t2E0.js +0 -1
- package/dist/showcase/assets/chevron-left-Dqne-r3m.js +0 -1
- package/dist/showcase/assets/chevron-up-DiMFydbr.js +0 -1
- package/dist/showcase/assets/chevrons-up-down-umMKLBIL.js +0 -1
- package/dist/showcase/assets/circle-alert-BObXfzSP.js +0 -1
- package/dist/showcase/assets/circle-check-BPhdxh7K.js +0 -1
- package/dist/showcase/assets/circle-check-big-BsQpd0CS.js +0 -1
- package/dist/showcase/assets/circle-dbSBYjvr.js +0 -1
- package/dist/showcase/assets/circle-dot-Bj1an-fp.js +0 -1
- package/dist/showcase/assets/circle-question-mark-BeRdyU_C.js +0 -1
- package/dist/showcase/assets/circle-x-Dh3sb4UC.js +0 -1
- package/dist/showcase/assets/clock-3-R65SwQwa.js +0 -1
- package/dist/showcase/assets/clock-BApGqXwn.js +0 -1
- package/dist/showcase/assets/code-xml-q7JPxij0.js +0 -1
- package/dist/showcase/assets/collapsible-BbiGHywy.js +0 -27
- package/dist/showcase/assets/collapsible-DDV7VHy5.js +0 -1
- package/dist/showcase/assets/combobox-Dv_OkynR.js +0 -685
- package/dist/showcase/assets/command-BSmiujfZ.js +0 -1
- package/dist/showcase/assets/command-Cw81GF7c.js +0 -1
- package/dist/showcase/assets/comment-composer-C09JANlW.js +0 -1
- package/dist/showcase/assets/comment-item-DsQshj1L.js +0 -1
- package/dist/showcase/assets/comments-CO3QCKyX.js +0 -357
- package/dist/showcase/assets/commerce-BvnnX8Ui.js +0 -267
- package/dist/showcase/assets/composite-BjZbcKJw.js +0 -1
- package/dist/showcase/assets/contact-card-Dq50G6UK.js +0 -65
- package/dist/showcase/assets/content-container-BQZdQhX2.js +0 -1
- package/dist/showcase/assets/copyable-BdfWxV6u.js +0 -1
- package/dist/showcase/assets/copyable-lUNYfscm.js +0 -96
- package/dist/showcase/assets/course-card-BTIFY84q.js +0 -77
- package/dist/showcase/assets/cpu-CzkgJ-zb.js +0 -1
- package/dist/showcase/assets/credit-card-D_wnXbTK.js +0 -1
- package/dist/showcase/assets/css-variables-BVjcOHGr.js +0 -1190
- package/dist/showcase/assets/currency-BCX6yQ2j.js +0 -149
- package/dist/showcase/assets/dark-surfaces-BO6sWHrV.js +0 -90
- package/dist/showcase/assets/data-view-C8ThO9ha.js +0 -124
- package/dist/showcase/assets/data-view-DqpNNGp5.js +0 -4
- package/dist/showcase/assets/database-Ad0l2Bjl.js +0 -1
- package/dist/showcase/assets/date-block-CMKpiRdA.js +0 -1
- package/dist/showcase/assets/date-picker-CRogiefV.js +0 -1
- package/dist/showcase/assets/date-pickers-CuRRGP-F.js +0 -73
- package/dist/showcase/assets/dense-info-BL_cGFVK.js +0 -106
- package/dist/showcase/assets/design-system-consistency-BarrI2Uj.js +0 -264
- package/dist/showcase/assets/dialog-BEKecyE3.js +0 -1
- package/dist/showcase/assets/dialog-DbEG3v2T.js +0 -1
- package/dist/showcase/assets/display-utilities-CQRcCpjT.js +0 -267
- package/dist/showcase/assets/dist-CS2Ky1_m.js +0 -1
- package/dist/showcase/assets/dist-q3PLGr1_.js +0 -45
- package/dist/showcase/assets/dollar-sign-lghPxE96.js +0 -1
- package/dist/showcase/assets/download-Cx5kUzHm.js +0 -1
- package/dist/showcase/assets/dropdown-menu-CXYQqRJA.js +0 -1
- package/dist/showcase/assets/dropzone-DK0kBLfC.js +0 -1
- package/dist/showcase/assets/earth-BgJkqIAs.js +0 -1
- package/dist/showcase/assets/ellipsis-CP0hyAeS.js +0 -1
- package/dist/showcase/assets/ellipsis-vertical-BdpRiDbb.js +0 -1
- package/dist/showcase/assets/empty-CO_e2e_g.js +0 -1
- package/dist/showcase/assets/empty-item-D39AT9RK.js +0 -49
- package/dist/showcase/assets/empty-state-CTQjlkxC.js +0 -1
- package/dist/showcase/assets/empty-state-Luba-tbF.js +0 -190
- package/dist/showcase/assets/enhanced-activities-e2k5R4sk.js +0 -357
- package/dist/showcase/assets/enhanced-combobox-CY9QcVEl.js +0 -1
- package/dist/showcase/assets/esm-DPz8A4Wl.js +0 -2
- package/dist/showcase/assets/event-calendar-DuQntfyO.js +0 -138
- package/dist/showcase/assets/event-log-B8B_0-q5.js +0 -330
- package/dist/showcase/assets/example-Rrx9vj75.js +0 -1
- package/dist/showcase/assets/external-link-BkCjE03j.js +0 -1
- package/dist/showcase/assets/eye-BKhfxIeD.js +0 -1
- package/dist/showcase/assets/feature-announcement-CRN6kk4B.js +0 -34
- package/dist/showcase/assets/file-BBUnjRPN.js +0 -1
- package/dist/showcase/assets/file-text-Clv0qFr3.js +0 -1
- package/dist/showcase/assets/filter-layout-Bskvgeps.js +0 -1
- package/dist/showcase/assets/filters-DqE5xQEz.js +0 -139
- package/dist/showcase/assets/flag-BQ0Brbw9.js +0 -1
- package/dist/showcase/assets/folder-open-CuUaUrxa.js +0 -1
- package/dist/showcase/assets/form-field-Dg_Az7lk.js +0 -1
- package/dist/showcase/assets/format-BnF8gL8z.js +0 -1
- package/dist/showcase/assets/forms-D2SGtkKv.js +0 -915
- package/dist/showcase/assets/funnel-qCC9cfXa.js +0 -1
- package/dist/showcase/assets/generic-0wwhvFWa.js +0 -1
- package/dist/showcase/assets/getPseudoElementBounds-DyTpOaBA.js +0 -1
- package/dist/showcase/assets/gift-ibO6X3CO.js +0 -1
- package/dist/showcase/assets/giftcard-cards-BJ0gmgv0.js +0 -85
- package/dist/showcase/assets/git-branch-QLvR3_wX.js +0 -1
- package/dist/showcase/assets/global-search-B2zvjiO2.js +0 -215
- package/dist/showcase/assets/global-search-BtYqFKyN.js +0 -1
- package/dist/showcase/assets/globe-Byoz7QmA.js +0 -1
- package/dist/showcase/assets/gradient-card-CymI8itB.js +0 -58
- package/dist/showcase/assets/hash-DL-sHZny.js +0 -1
- package/dist/showcase/assets/header-C9RMgEgD.js +0 -1
- package/dist/showcase/assets/header-notifications-BT643QVK.js +0 -1
- package/dist/showcase/assets/heart-gHsYuS4V.js +0 -1
- package/dist/showcase/assets/hooks-Dj4gswMj.js +0 -220
- package/dist/showcase/assets/house-Dew9jimg.js +0 -1
- package/dist/showcase/assets/icon-badge-C-mGQdGQ.js +0 -37
- package/dist/showcase/assets/icon-badge-GMIN-bca.js +0 -1
- package/dist/showcase/assets/image-Cda8layy.js +0 -1
- package/dist/showcase/assets/inbox-hJEV8TEx.js +0 -1
- package/dist/showcase/assets/index-CCxHwV7T.css +0 -2
- package/dist/showcase/assets/index-o71HAmc3.js +0 -10
- package/dist/showcase/assets/inertValue-BRyHstYf.js +0 -1
- package/dist/showcase/assets/info-B4aULRpz.js +0 -1
- package/dist/showcase/assets/inline-stat-BzXB3FNC.js +0 -15
- package/dist/showcase/assets/inline-stat-CDQocPgN.js +0 -1
- package/dist/showcase/assets/input-CLysAarX.js +0 -1
- package/dist/showcase/assets/input-CYTQ9nWN.js +0 -1
- package/dist/showcase/assets/input-group-DYMTMed1.js +0 -47
- package/dist/showcase/assets/input-group-DtkAnPaQ.js +0 -1
- package/dist/showcase/assets/inputs-C2flJn12.js +0 -155
- package/dist/showcase/assets/installation-CCvBKDNO.js +0 -134
- package/dist/showcase/assets/invoice-header-C1G_aVIm.js +0 -36
- package/dist/showcase/assets/invoice-items-Ak0CMjDh.js +0 -36
- package/dist/showcase/assets/invoice-mini-B7Dda49y.js +0 -14
- package/dist/showcase/assets/invoice-table-Bl9InDl0.js +0 -30
- package/dist/showcase/assets/isSameDay-Bd_8WAf0.js +0 -1
- package/dist/showcase/assets/isToday-DSGtoEUa.js +0 -1
- package/dist/showcase/assets/italic-CJzEjX5j.js +0 -1
- package/dist/showcase/assets/item-BL_Y_0ou.js +0 -139
- package/dist/showcase/assets/item-Oe2aHuvr.js +0 -1
- package/dist/showcase/assets/item-nf1zOtF7.js +0 -1
- package/dist/showcase/assets/kanban-CB5Hghoo.js +0 -188
- package/dist/showcase/assets/key-round-BQwcojkz.js +0 -1
- package/dist/showcase/assets/label-HtkE4eII.js +0 -1
- package/dist/showcase/assets/languages-69N5-h2e.js +0 -1
- package/dist/showcase/assets/layers-CBPYgoAb.js +0 -1
- package/dist/showcase/assets/layout-app-shell-BfNh8jd0.js +0 -608
- package/dist/showcase/assets/layout-auth-Ct29XkSH.js +0 -790
- package/dist/showcase/assets/layout-containers-DWN4xKbf.js +0 -101
- package/dist/showcase/assets/layout-header-DUX4zFrH.js +0 -203
- package/dist/showcase/assets/layout-page-CsqULW71.js +0 -314
- package/dist/showcase/assets/layout-primitives-CQJ0_wTo.js +0 -34
- package/dist/showcase/assets/layout-sidebar-la-tC4xZ.js +0 -224
- package/dist/showcase/assets/layout-users-6fAYxZ3Z.js +0 -117
- package/dist/showcase/assets/layout-workspace-BbDOjmrE.js +0 -191
- package/dist/showcase/assets/lib-C46V0Rr-.js +0 -1
- package/dist/showcase/assets/list-checks-BkQYzehf.js +0 -1
- package/dist/showcase/assets/lock-CMrS2EKU.js +0 -1
- package/dist/showcase/assets/lock-keyhole-B1BEkNvm.js +0 -1
- package/dist/showcase/assets/mail-Bo_4xDQw.js +0 -1
- package/dist/showcase/assets/mail-check-BprACMug.js +0 -1
- package/dist/showcase/assets/map-Br-xZYf0.js +0 -124
- package/dist/showcase/assets/map-pin-COrIVMWa.js +0 -1
- package/dist/showcase/assets/media-library-DyPu-kR9.js +0 -699
- package/dist/showcase/assets/mention-inline-suggestions-BTunE4RJ.js +0 -1
- package/dist/showcase/assets/mentions-BXSq2eCS.js +0 -138
- package/dist/showcase/assets/menus-USrp5qP5.js +0 -171
- package/dist/showcase/assets/message-square-Cyrr-QgJ.js +0 -1
- package/dist/showcase/assets/metadata-list-BJTye3J8.js +0 -286
- package/dist/showcase/assets/metadata-list-CoRYXjEw.js +0 -1
- package/dist/showcase/assets/metric-DdC_pWnF.js +0 -1
- package/dist/showcase/assets/metric-bar-PGG8KQS0.js +0 -1
- package/dist/showcase/assets/metric-grid-ZqDufV_5.js +0 -1
- package/dist/showcase/assets/metric-trend-chip-BhCRReMp.js +0 -1
- package/dist/showcase/assets/metrics-analytics-bar-U3gehGfQ.js +0 -44
- package/dist/showcase/assets/metrics-analytics-cards-CzbLGAWi.js +0 -50
- package/dist/showcase/assets/metrics-comparison-B1z3nUpo.js +0 -76
- package/dist/showcase/assets/metrics-heatmap-DZeqRxFz.js +0 -27
- package/dist/showcase/assets/metrics-inline-badge-CPyhCHXj.js +0 -17
- package/dist/showcase/assets/metrics-kpi-row-COVuNReW.js +0 -31
- package/dist/showcase/assets/metrics-micro-grid-BNSrw6sM.js +0 -42
- package/dist/showcase/assets/metrics-overview-3IHComMd.js +0 -192
- package/dist/showcase/assets/metrics-stat-cards-6Owbjvmc.js +0 -54
- package/dist/showcase/assets/minus-CwzskYaZ.js +0 -1
- package/dist/showcase/assets/money-display-CUkeS9k1.js +0 -1
- package/dist/showcase/assets/month-year-picker-CCCTmZHv.js +0 -1
- package/dist/showcase/assets/navigation-BUReVn4R.js +0 -231
- package/dist/showcase/assets/navigation-CSzYKdcR.js +0 -90
- package/dist/showcase/assets/navigation-extras-DmUhDPMz.js +0 -43
- package/dist/showcase/assets/onboarding-checklist-C3JhV5Gb.js +0 -119
- package/dist/showcase/assets/overflow-tab-bar-CEdrls-W.js +0 -1
- package/dist/showcase/assets/overlays-BKKEzmF4.js +0 -159
- package/dist/showcase/assets/overlays-C1UodoAu.js +0 -408
- package/dist/showcase/assets/overview-Dq0MqK32.js +0 -184
- package/dist/showcase/assets/package-BaQGBJmO.js +0 -1
- package/dist/showcase/assets/package-check-C8HJfDxS.js +0 -1
- package/dist/showcase/assets/page-DvMaeo43.js +0 -1
- package/dist/showcase/assets/page-action-button-B5ZGYpYy.js +0 -1
- package/dist/showcase/assets/page-header-Y-96EPMp.js +0 -1
- package/dist/showcase/assets/pagination-Br1AfDte.js +0 -1
- package/dist/showcase/assets/pagination-yLAHxKpc.js +0 -42
- package/dist/showcase/assets/paperclip-BBDKiZeH.js +0 -1
- package/dist/showcase/assets/password-input-iwrucadb.js +0 -1
- package/dist/showcase/assets/pencil-BUhkJ_Nn.js +0 -1
- package/dist/showcase/assets/phone-DtJDFH70.js +0 -1
- package/dist/showcase/assets/plus-4gOvUk-5.js +0 -1
- package/dist/showcase/assets/popover-C8YAdHfL.js +0 -1
- package/dist/showcase/assets/popover-D9ZDWqLl.js +0 -1
- package/dist/showcase/assets/popover-menu-C5M9Up4M.js +0 -1
- package/dist/showcase/assets/products-DrKTk8Aw.js +0 -423
- package/dist/showcase/assets/progress-C1qKfCZB.js +0 -18
- package/dist/showcase/assets/progress-CpD58Wl0.js +0 -1
- package/dist/showcase/assets/props-table-C6gPyO49.js +0 -1
- package/dist/showcase/assets/quote-BXTU9evS.js +0 -1
- package/dist/showcase/assets/receipt-Dwc4p04P.js +0 -1
- package/dist/showcase/assets/receipt-text-DBEu6Gym.js +0 -1
- package/dist/showcase/assets/refinement-guide-DeO_yM8U.js +0 -189
- package/dist/showcase/assets/refresh-cw-BpV3OG_s.js +0 -1
- package/dist/showcase/assets/resolveValueLabel-DZTrDdG0.js +0 -1
- package/dist/showcase/assets/resource-BLGoRFou.js +0 -1
- package/dist/showcase/assets/resource-D5AQesdN.js +0 -139
- package/dist/showcase/assets/resource-selector-card-BKzeUE0k.js +0 -43
- package/dist/showcase/assets/rich-text-editor-DYkPamiq.js +0 -124
- package/dist/showcase/assets/rich-text-editor-k1dtT5bX.js +0 -143
- package/dist/showcase/assets/rotate-ccw-Dajwztf1.js +0 -1
- package/dist/showcase/assets/route-5uO9C0gV.js +0 -1
- package/dist/showcase/assets/save-DONvClxa.js +0 -1
- package/dist/showcase/assets/schema-form-BMQmx4JI.js +0 -327
- package/dist/showcase/assets/scroll-area-CnAyhKQ_.js +0 -1
- package/dist/showcase/assets/scroll-area-CxwfyjX3.js +0 -32
- package/dist/showcase/assets/section-Dd6X6IKg.js +0 -1
- package/dist/showcase/assets/select-CJSyu7sS.js +0 -1
- package/dist/showcase/assets/select-Du9VvUxt.js +0 -1
- package/dist/showcase/assets/send-3ANJL7UB.js +0 -1
- package/dist/showcase/assets/separator-BiXjWmP-.js +0 -28
- package/dist/showcase/assets/separator-y9i6EG-N.js +0 -1
- package/dist/showcase/assets/settings-2-Ynd1Lcz4.js +0 -1
- package/dist/showcase/assets/settings-CqdZB-OI.js +0 -1
- package/dist/showcase/assets/sheet-CzFOcAwE.js +0 -1
- package/dist/showcase/assets/shield-Dmxwcn3w.js +0 -1
- package/dist/showcase/assets/shield-alert-RrMsBuWp.js +0 -1
- package/dist/showcase/assets/shield-check-Bnw8RAvI.js +0 -1
- package/dist/showcase/assets/shopping-bag-DGXTQNOf.js +0 -1
- package/dist/showcase/assets/showcase-DMRZCqmg.js +0 -132
- package/dist/showcase/assets/sidebar-C0tsWnrh.js +0 -1
- package/dist/showcase/assets/sidebar.context-DXGEPgaT.js +0 -1
- package/dist/showcase/assets/skeleton-BFa4FHSC.js +0 -29
- package/dist/showcase/assets/skeleton-DOJ1RAcJ.js +0 -1
- package/dist/showcase/assets/slider-BjQs0C8N.js +0 -1
- package/dist/showcase/assets/smart-card-BwSFemlj.js +0 -1
- package/dist/showcase/assets/sonner-BXMIK3eQ.js +0 -22
- package/dist/showcase/assets/sortable.esm-BeBA3gT5.js +0 -5
- package/dist/showcase/assets/sparkles-Bc0I4qTf.js +0 -1
- package/dist/showcase/assets/spinner-HyNCtTyd.js +0 -1
- package/dist/showcase/assets/spinner-LskR5l9T.js +0 -30
- package/dist/showcase/assets/spinner-mtwVRe8M.js +0 -49
- package/dist/showcase/assets/square-pen-BrZ2OxTe.js +0 -1
- package/dist/showcase/assets/stacked-avatars-DOAFRjmZ.js +0 -1
- package/dist/showcase/assets/star-lUSxI166.js +0 -1
- package/dist/showcase/assets/startOfDay-BLhx9b6k.js +0 -1
- package/dist/showcase/assets/styles-COpnijXU.js +0 -1
- package/dist/showcase/assets/suggestions-ftPYc9p6.js +0 -126
- package/dist/showcase/assets/switch-DirKCDsg.js +0 -1
- package/dist/showcase/assets/switch-DoPIN_UN.js +0 -1
- package/dist/showcase/assets/sync-C2DEiaQz.js +0 -124
- package/dist/showcase/assets/table-D6GywZEx.js +0 -1
- package/dist/showcase/assets/table-Dex8CcfW.js +0 -664
- package/dist/showcase/assets/table-actions-CJg82sW0.js +0 -1
- package/dist/showcase/assets/tabs-B9tgdMRD.js +0 -1
- package/dist/showcase/assets/tabs-C0fSpkON.js +0 -19
- package/dist/showcase/assets/tags-input-CJSpILy6.js +0 -1
- package/dist/showcase/assets/text-button-CoPZBQiq.js +0 -1
- package/dist/showcase/assets/text-link-d9JIRU2N.js +0 -1
- package/dist/showcase/assets/textarea-BN4PUX-V.js +0 -1
- package/dist/showcase/assets/textarea-CBhdtg5X.js +0 -1
- package/dist/showcase/assets/timelines-F_mzbAPA.js +0 -200
- package/dist/showcase/assets/toggle-group-8ESepeYW.js +0 -1
- package/dist/showcase/assets/toggles-B2Cg5NVG.js +0 -71
- package/dist/showcase/assets/toggles-group-BTmtSzAa.js +0 -32
- package/dist/showcase/assets/tooltip-DNsHZ3ZE.js +0 -31
- package/dist/showcase/assets/trash-2-Bf5dpRjn.js +0 -1
- package/dist/showcase/assets/trending-up-RSklVrcZ.js +0 -1
- package/dist/showcase/assets/truck-CqmeajvP.js +0 -1
- package/dist/showcase/assets/typography-DJjQO_Ld.js +0 -223
- package/dist/showcase/assets/ui-badge-BwkZfeBs.js +0 -28
- package/dist/showcase/assets/ui-card-B3mtVa60.js +0 -30
- package/dist/showcase/assets/ui-table-DM-avYTi.js +0 -42
- package/dist/showcase/assets/upload-tray-CFI_7lcB.js +0 -138
- package/dist/showcase/assets/use-layout-link-BI4MRSHG.js +0 -1
- package/dist/showcase/assets/useAnchoredPopupScrollLock-DRs8fnir.js +0 -1
- package/dist/showcase/assets/useAriaLabelledBy-DhgmwFn7.js +0 -1
- package/dist/showcase/assets/useCollapsiblePanel-vGthv_MA.js +0 -1
- package/dist/showcase/assets/useCompositeItem-g1FeYTbw.js +0 -1
- package/dist/showcase/assets/useCompositeListItem-CyULeWSL.js +0 -1
- package/dist/showcase/assets/useLabelableId-CBWpOnwZ.js +0 -1
- package/dist/showcase/assets/useOpenInteractionType-CQSuD7yw.js +0 -1
- package/dist/showcase/assets/useRender-Dm8qJkvr.js +0 -1
- package/dist/showcase/assets/useTriggerFocusGuards-B6KAsVMk.js +0 -1
- package/dist/showcase/assets/useValueChanged-DXek_Wx7.js +0 -1
- package/dist/showcase/assets/user-B35DABNz.js +0 -1
- package/dist/showcase/assets/user-plus-C69GplWt.js +0 -1
- package/dist/showcase/assets/users-DDgUGkgw.js +0 -1
- package/dist/showcase/assets/vendor-profile-Zfh99jtA.js +0 -37
- package/dist/showcase/assets/video-CDERYmRS.js +0 -1
- package/dist/showcase/assets/wrench-PjtfaRuJ.js +0 -1
- package/dist/showcase/assets/x-FNPo6qUv.js +0 -1
- package/dist/showcase/assets/zap-CzjU6LH0.js +0 -1
|
@@ -0,0 +1,1190 @@
|
|
|
1
|
+
import{n as e,r as t}from"./chunk-QTnfLwEv.js";import{t as n}from"./react-sKtkuLrH.js";import{n as r,o as i,p as a,t as o}from"./section-C2ovQgbv.js";import{r as s,t as c}from"./example-CDvNeHNP.js";import{t as l}from"./database-BarEYzaF.js";import{t as u}from"./layers-Dyew-8IP.js";import{t as d}from"./save-nXKvyYEx.js";import{t as f}from"./settings-2-qkVb0lyz.js";import{t as p}from"./sparkles-CQSdl3Gw.js";import{a as m,d as ee,i as h,l as g,n as _}from"./index-B37z19z3.js";import{t as te}from"./icon-badge-fJVhEHym.js";import{t as v}from"./smart-card-B0Llbpiy.js";import{c as ne,i as y,n as b,o as x,r as S,t as C,u as w}from"./item-C_5-EHNK.js";import{t as T}from"./input-UHuWYPMF.js";import{t as E}from"./metadata-list-B8O2ljIS.js";var D=g(`rows-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]]),O=g(`type`,[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),k=t(n(),1),A=ee(),re=`/*
|
|
2
|
+
* Foundation tokens.
|
|
3
|
+
*
|
|
4
|
+
* Fonts, type scale, global scale multipliers, and the spacing scale. These
|
|
5
|
+
* are package-owned primitives, not part of the swappable shadcn theme.
|
|
6
|
+
*/
|
|
7
|
+
@theme inline {
|
|
8
|
+
/* Fonts */
|
|
9
|
+
--font-heading: "Inter Variable", sans-serif;
|
|
10
|
+
--font-sans: "Inter Variable", sans-serif;
|
|
11
|
+
--font-mono: ui-monospace, "SF Mono", "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
|
|
12
|
+
|
|
13
|
+
/* Typography */
|
|
14
|
+
--text-xxs: calc(0.625rem * var(--text-scale));
|
|
15
|
+
--text-xxs--line-height: calc(0.875rem * var(--text-scale));
|
|
16
|
+
--text-xs: calc(0.75rem * var(--text-scale));
|
|
17
|
+
--text-xs--line-height: calc(1rem * var(--text-scale));
|
|
18
|
+
--text-sm: calc(0.875rem * var(--text-scale));
|
|
19
|
+
--text-sm--line-height: calc(1.25rem * var(--text-scale));
|
|
20
|
+
--text-base: calc(1rem * var(--text-scale));
|
|
21
|
+
--text-base--line-height: calc(1.5rem * var(--text-scale));
|
|
22
|
+
--text-lg: calc(1.125rem * var(--text-scale));
|
|
23
|
+
--text-lg--line-height: calc(1.75rem * var(--text-scale));
|
|
24
|
+
--text-xl: calc(1.25rem * var(--text-scale));
|
|
25
|
+
--text-xl--line-height: calc(1.75rem * var(--text-scale));
|
|
26
|
+
--text-2xl: calc(1.5rem * var(--text-scale));
|
|
27
|
+
--text-2xl--line-height: calc(2rem * var(--text-scale));
|
|
28
|
+
--text-3xl: calc(1.875rem * var(--text-scale));
|
|
29
|
+
--text-3xl--line-height: calc(2.25rem * var(--text-scale));
|
|
30
|
+
--text-4xl: calc(2.25rem * var(--text-scale));
|
|
31
|
+
--text-4xl--line-height: calc(2.5rem * var(--text-scale));
|
|
32
|
+
--text-5xl: calc(3rem * var(--text-scale));
|
|
33
|
+
--text-5xl--line-height: 1;
|
|
34
|
+
|
|
35
|
+
/* Spacing scale */
|
|
36
|
+
--spacing-space-2xs: var(--space-2xs);
|
|
37
|
+
--spacing-space-xs: var(--space-xs);
|
|
38
|
+
--spacing-space-sm: var(--space-sm);
|
|
39
|
+
--spacing-space-md: var(--space-md);
|
|
40
|
+
--spacing-space-lg: var(--space-lg);
|
|
41
|
+
--spacing-space-xl: var(--space-xl);
|
|
42
|
+
--spacing-space-2xl: var(--space-2xl);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:root {
|
|
46
|
+
/* Multipliers */
|
|
47
|
+
--text-scale: 1;
|
|
48
|
+
--space-scale: 1;
|
|
49
|
+
--density-scale: 1;
|
|
50
|
+
|
|
51
|
+
/* Spacing scale */
|
|
52
|
+
--space-2xs: calc(0.125rem * var(--space-scale));
|
|
53
|
+
--space-xs: calc(0.25rem * var(--space-scale));
|
|
54
|
+
--space-sm: calc(0.375rem * var(--space-scale));
|
|
55
|
+
--space-md: calc(0.5rem * var(--space-scale));
|
|
56
|
+
--space-lg: calc(0.75rem * var(--space-scale));
|
|
57
|
+
--space-xl: calc(1rem * var(--space-scale));
|
|
58
|
+
--space-2xl: calc(1.5rem * var(--space-scale));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-density="compact"] {
|
|
62
|
+
--space-scale: 0.875;
|
|
63
|
+
--density-scale: 0.875;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[data-density="comfortable"] {
|
|
67
|
+
--space-scale: 1.075;
|
|
68
|
+
--density-scale: 1.075;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@layer base {
|
|
72
|
+
* {
|
|
73
|
+
@apply border-border outline-ring/50;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
html {
|
|
77
|
+
font-family: var(--font-sans);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
body {
|
|
81
|
+
@apply bg-background text-foreground;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
code,
|
|
85
|
+
kbd,
|
|
86
|
+
samp,
|
|
87
|
+
pre {
|
|
88
|
+
font-family: var(--font-mono);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
`,ie=`/*
|
|
92
|
+
* Package primitives.
|
|
93
|
+
*
|
|
94
|
+
* Radius, action/control heights, control spacing, and media sizes are
|
|
95
|
+
* package-owned aliases. They can be scoped independently of the shadcn theme.
|
|
96
|
+
*/
|
|
97
|
+
@theme inline {
|
|
98
|
+
--radius-radius-sm: var(--rounded-radius-sm);
|
|
99
|
+
--radius-radius: var(--rounded-radius);
|
|
100
|
+
--radius-radius-lg: var(--rounded-radius-lg);
|
|
101
|
+
|
|
102
|
+
--spacing-action-xs: var(--height-action-xs);
|
|
103
|
+
--spacing-action-sm: var(--height-action-sm);
|
|
104
|
+
--spacing-action: var(--height-action);
|
|
105
|
+
--spacing-action-lg: var(--height-action-lg);
|
|
106
|
+
--spacing-control-gap-small: var(--control-gap-small);
|
|
107
|
+
--spacing-control-gap: var(--control-gap);
|
|
108
|
+
--spacing-control-px: var(--control-x);
|
|
109
|
+
--spacing-control-y-offset: var(--control-y-offset);
|
|
110
|
+
--spacing-control-icon-sm: calc(var(--control-x-sm) + var(--icon-sm) + var(--space-sm));
|
|
111
|
+
--spacing-control-icon: calc(var(--control-x) + var(--icon) + var(--space-md));
|
|
112
|
+
--spacing-control-addon-sm: calc(var(--control-x-sm) + 1.25rem);
|
|
113
|
+
--spacing-control-addon: calc(var(--control-x) + 1.5rem);
|
|
114
|
+
--spacing-control-count-sm: calc(var(--control-x-sm) + 2.25rem);
|
|
115
|
+
--spacing-control-count: calc(var(--control-x) + 2.5rem);
|
|
116
|
+
--spacing-control-actions-sm: calc(var(--control-x-sm) + 2rem);
|
|
117
|
+
--spacing-control-actions: calc(var(--control-x) + 2.25rem);
|
|
118
|
+
--spacing-control-clear: calc(1.375rem * var(--density-scale));
|
|
119
|
+
--spacing-control-clear-icon: var(--icon-sm);
|
|
120
|
+
--spacing-control-file: 1.75rem;
|
|
121
|
+
--spacing-textarea-sm: calc(4rem * var(--density-scale));
|
|
122
|
+
--spacing-textarea: calc(5rem * var(--density-scale));
|
|
123
|
+
|
|
124
|
+
--spacing-icon-sm: var(--icon-sm);
|
|
125
|
+
--spacing-icon: var(--icon);
|
|
126
|
+
--spacing-icon-lg: var(--icon-lg);
|
|
127
|
+
--spacing-avatar-sm: var(--avatar-sm);
|
|
128
|
+
--spacing-avatar: var(--avatar);
|
|
129
|
+
--spacing-avatar-lg: var(--avatar-lg);
|
|
130
|
+
--spacing-upload-avatar-small: var(--upload-avatar-small);
|
|
131
|
+
--spacing-upload-avatar: var(--upload-avatar);
|
|
132
|
+
--spacing-upload-avatar-large: var(--upload-avatar-large);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:root {
|
|
136
|
+
--rounded-radius-sm: calc(var(--radius) * 0.6);
|
|
137
|
+
--rounded-radius: var(--radius);
|
|
138
|
+
--rounded-radius-lg: calc(var(--radius) * 1.4);
|
|
139
|
+
|
|
140
|
+
--height-action-xs: calc(1.75rem * var(--density-scale));
|
|
141
|
+
--height-action-sm: calc(2rem * var(--density-scale));
|
|
142
|
+
--height-action: calc(2.25rem * var(--density-scale));
|
|
143
|
+
--height-action-lg: calc(2.5rem * var(--density-scale));
|
|
144
|
+
--height-control-sm: calc(2rem * var(--density-scale));
|
|
145
|
+
--height-control: calc(2.25rem * var(--density-scale));
|
|
146
|
+
--height-control-lg: calc(2.5rem * var(--density-scale));
|
|
147
|
+
|
|
148
|
+
/* Existing control aliases stay stable while new primitives roll out. */
|
|
149
|
+
--control-height-sm: var(--height-control-sm);
|
|
150
|
+
--control-height: var(--height-control);
|
|
151
|
+
--control-height-lg: var(--height-control-lg);
|
|
152
|
+
--control-x-sm: calc(0.625rem * var(--space-scale));
|
|
153
|
+
--control-x: calc(0.75rem * var(--space-scale));
|
|
154
|
+
--control-gap-small: var(--space-sm);
|
|
155
|
+
--control-gap: var(--space-md);
|
|
156
|
+
--control-y-offset: var(--space-xs);
|
|
157
|
+
|
|
158
|
+
/* Media */
|
|
159
|
+
--icon-sm: calc(0.75rem * var(--space-scale));
|
|
160
|
+
--icon: calc(1rem * var(--space-scale));
|
|
161
|
+
--icon-lg: calc(1.25rem * var(--space-scale));
|
|
162
|
+
--avatar-sm: calc(1.5rem * var(--space-scale));
|
|
163
|
+
--avatar: calc(2rem * var(--space-scale));
|
|
164
|
+
--avatar-lg: calc(2.5rem * var(--space-scale));
|
|
165
|
+
--upload-avatar-small: calc(4rem * var(--space-scale));
|
|
166
|
+
--upload-avatar: calc(5rem * var(--space-scale));
|
|
167
|
+
--upload-avatar-large: calc(6rem * var(--space-scale));
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@utility h-control-sm {
|
|
171
|
+
height: var(--height-control-sm);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@utility h-control {
|
|
175
|
+
height: var(--height-control);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@utility h-control-lg {
|
|
179
|
+
height: var(--height-control-lg);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@utility h-action-xs {
|
|
183
|
+
height: var(--height-action-xs);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@utility h-action-sm {
|
|
187
|
+
height: var(--height-action-sm);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@utility h-action {
|
|
191
|
+
height: var(--height-action);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@utility h-action-lg {
|
|
195
|
+
height: var(--height-action-lg);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@utility min-h-control-sm {
|
|
199
|
+
min-height: var(--height-control-sm);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@utility min-h-control {
|
|
203
|
+
min-height: var(--height-control);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@utility min-h-control-lg {
|
|
207
|
+
min-height: var(--height-control-lg);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@utility w-control-small {
|
|
211
|
+
width: var(--height-control-sm);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@utility w-control-sm {
|
|
215
|
+
width: var(--height-control-sm);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@utility w-control {
|
|
219
|
+
width: var(--height-control);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
@utility w-control-lg {
|
|
223
|
+
width: var(--height-control-lg);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@utility size-control-sm {
|
|
227
|
+
width: var(--height-control-sm);
|
|
228
|
+
height: var(--height-control-sm);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@utility size-control {
|
|
232
|
+
width: var(--height-control);
|
|
233
|
+
height: var(--height-control);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@utility size-control-lg {
|
|
237
|
+
width: var(--height-control-lg);
|
|
238
|
+
height: var(--height-control-lg);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
@utility size-action-xs {
|
|
242
|
+
width: var(--height-action-xs);
|
|
243
|
+
height: var(--height-action-xs);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@utility size-action-sm {
|
|
247
|
+
width: var(--height-action-sm);
|
|
248
|
+
height: var(--height-action-sm);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
@utility size-action {
|
|
252
|
+
width: var(--height-action);
|
|
253
|
+
height: var(--height-action);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@utility size-action-lg {
|
|
257
|
+
width: var(--height-action-lg);
|
|
258
|
+
height: var(--height-action-lg);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@utility px-control-sm {
|
|
262
|
+
padding-inline: var(--control-x-sm);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
@utility px-control {
|
|
266
|
+
padding-inline: var(--control-x);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
@utility ps-control-sm {
|
|
270
|
+
padding-inline-start: var(--control-x-sm);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
@utility ps-control {
|
|
274
|
+
padding-inline-start: var(--control-x);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
@utility pe-control-sm {
|
|
278
|
+
padding-inline-end: var(--control-x-sm);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
@utility pe-control {
|
|
282
|
+
padding-inline-end: var(--control-x);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
@utility ps-control-icon-sm {
|
|
286
|
+
padding-inline-start: calc(var(--control-x-sm) + var(--icon-sm) + var(--space-sm));
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
@utility ps-control-icon {
|
|
290
|
+
padding-inline-start: calc(var(--control-x) + var(--icon) + var(--space-md));
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
@utility pe-control-icon-sm {
|
|
294
|
+
padding-inline-end: calc(var(--control-x-sm) + var(--icon-sm) + var(--space-sm));
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
@utility pe-control-icon {
|
|
298
|
+
padding-inline-end: calc(var(--control-x) + var(--icon) + var(--space-md));
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
@utility ps-control-addon-sm {
|
|
302
|
+
padding-inline-start: calc(var(--control-x-sm) + 1.25rem);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
@utility ps-control-addon {
|
|
306
|
+
padding-inline-start: calc(var(--control-x) + 1.5rem);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
@utility pe-control-addon-sm {
|
|
310
|
+
padding-inline-end: calc(var(--control-x-sm) + 1.25rem);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
@utility pe-control-addon {
|
|
314
|
+
padding-inline-end: calc(var(--control-x) + 1.5rem);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
@utility pe-control-count-sm {
|
|
318
|
+
padding-inline-end: calc(var(--control-x-sm) + 2.25rem);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
@utility pe-control-count {
|
|
322
|
+
padding-inline-end: calc(var(--control-x) + 2.5rem);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
@utility pe-control-actions-sm {
|
|
326
|
+
padding-inline-end: calc(var(--control-x-sm) + 2rem);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
@utility pe-control-actions {
|
|
330
|
+
padding-inline-end: calc(var(--control-x) + 2.25rem);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
@utility size-control-clear {
|
|
334
|
+
width: calc(1.375rem * var(--density-scale));
|
|
335
|
+
height: calc(1.375rem * var(--density-scale));
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
@utility size-control-clear-icon {
|
|
339
|
+
width: var(--icon-sm);
|
|
340
|
+
height: var(--icon-sm);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
@utility h-control-file {
|
|
344
|
+
height: 1.75rem;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
@utility min-h-textarea-sm {
|
|
348
|
+
min-height: calc(4rem * var(--density-scale));
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
@utility min-h-textarea {
|
|
352
|
+
min-height: calc(5rem * var(--density-scale));
|
|
353
|
+
}
|
|
354
|
+
`,ae=`/*
|
|
355
|
+
* Layout tokens.
|
|
356
|
+
*
|
|
357
|
+
* Shell and application-frame dimensions belong here, not in the swappable
|
|
358
|
+
* shadcn theme.
|
|
359
|
+
*/
|
|
360
|
+
@theme inline {
|
|
361
|
+
--spacing-shell-header: var(--shell-header-height);
|
|
362
|
+
--spacing-shell-header-control: var(--shell-header-control-size);
|
|
363
|
+
--spacing-shell-sidebar: var(--shell-sidebar-width);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
:root {
|
|
367
|
+
--shell-header-height: 4.5rem;
|
|
368
|
+
--shell-header-control-size: var(--height-action);
|
|
369
|
+
--shell-sidebar-width: 16rem;
|
|
370
|
+
--shell-sidebar-width-expanded: var(--shell-sidebar-width);
|
|
371
|
+
--shell-sidebar-width-icon: calc(3.75rem * var(--density-scale));
|
|
372
|
+
--shell-sidebar-offcanvas-width: min(20rem, calc(100vw - 2rem));
|
|
373
|
+
--shell-sidebar-width-current: var(--shell-sidebar-width-expanded);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
@utility shell-sidebar-vars {
|
|
377
|
+
--shell-sidebar-width-expanded: var(--shell-sidebar-width);
|
|
378
|
+
--shell-sidebar-width-icon: calc(3.75rem * var(--density-scale));
|
|
379
|
+
--shell-sidebar-offcanvas-width: min(20rem, calc(100vw - 2rem));
|
|
380
|
+
--shell-sidebar-width-current: var(--shell-sidebar-width-expanded);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
@utility shell-sidebar-icon-current {
|
|
384
|
+
--shell-sidebar-width-current: var(--shell-sidebar-width-icon);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
@utility shell-sidebar-offcanvas-current {
|
|
388
|
+
--shell-sidebar-width-current: var(--shell-sidebar-offcanvas-width);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
@utility shell-grid-left {
|
|
392
|
+
grid-template-columns: minmax(0, var(--shell-sidebar-width-current)) minmax(0, 1fr);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
@utility shell-grid-right {
|
|
396
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, var(--shell-sidebar-width-current));
|
|
397
|
+
}
|
|
398
|
+
`,j=`/*
|
|
399
|
+
* Component-level token knobs.
|
|
400
|
+
*
|
|
401
|
+
* Use this layer for package-owned row, surface, and component adjustments
|
|
402
|
+
* that are intentionally broader than one component but not part of shadcn.
|
|
403
|
+
*/
|
|
404
|
+
@theme inline {
|
|
405
|
+
--spacing-row-x: var(--row-x);
|
|
406
|
+
--spacing-row-y-sm: var(--row-y-sm);
|
|
407
|
+
--spacing-row-y: var(--row-y);
|
|
408
|
+
--spacing-row-y-lg: var(--row-y-lg);
|
|
409
|
+
--spacing-surface-sm: var(--surface-x-sm);
|
|
410
|
+
--spacing-surface: var(--surface-x);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
:root {
|
|
414
|
+
/* Rows */
|
|
415
|
+
--row-x: calc(0.75rem * var(--space-scale));
|
|
416
|
+
--row-y-sm: calc(0.375rem * var(--density-scale));
|
|
417
|
+
--row-y: calc(0.5rem * var(--density-scale));
|
|
418
|
+
--row-y-lg: calc(0.625rem * var(--density-scale));
|
|
419
|
+
|
|
420
|
+
/* Surfaces */
|
|
421
|
+
--surface-x-sm: calc(0.75rem * var(--space-scale));
|
|
422
|
+
--surface-x: calc(1rem * var(--space-scale));
|
|
423
|
+
--surface-y-sm: calc(0.75rem * var(--space-scale));
|
|
424
|
+
--surface-y: calc(1rem * var(--space-scale));
|
|
425
|
+
|
|
426
|
+
/* Narrow component knobs */
|
|
427
|
+
--popover-content-pad: 0.25rem;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
@utility px-surface-sm {
|
|
431
|
+
padding-inline: var(--surface-x-sm);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
@utility px-surface {
|
|
435
|
+
padding-inline: var(--surface-x);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
@utility py-surface-sm {
|
|
439
|
+
padding-block: var(--surface-y-sm);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
@utility py-surface {
|
|
443
|
+
padding-block: var(--surface-y);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
@utility p-surface-sm {
|
|
447
|
+
padding: var(--surface-y-sm) var(--surface-x-sm);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
@utility p-surface {
|
|
451
|
+
padding: var(--surface-y) var(--surface-x);
|
|
452
|
+
}
|
|
453
|
+
`,M=e({RuntimeOverrideDemo:()=>R,ScalePreview:()=>L,VariableExplorer:()=>z,VariableReference:()=>B}),N={"Scale knobs":{icon:h,description:`Inherited multipliers that tighten or relax whole subtrees.`},Fonts:{icon:O,description:`Font stacks shared by typography and code surfaces.`},Typography:{icon:O,description:`Text sizes consumed by Text, Heading, Label, and text utilities.`},Spacing:{icon:u,description:`Neutral spacing scale for gaps, margins, and padding.`},Shape:{icon:u,description:`Package radius aliases that can be scoped separately from shadcn radius.`},Actions:{icon:d,description:`Clickable action heights for buttons, icon buttons, and command triggers.`},Controls:{icon:d,description:`Shared button, input, select, combobox, date picker, and trigger measurements.`},Rows:{icon:D,description:`List, command, menu, filter, activity, global-search, and table row rhythm.`},Surfaces:{icon:u,description:`Card, form section, empty state, and feature surface padding.`},Media:{icon:p,description:`Icon and avatar sizing shared across rows, badges, metadata, and controls.`},Shell:{icon:l,description:`Top-level app shell height and sidebar width.`},Other:{icon:f,description:`Supporting structural variables outside the public contract.`}},P=[`Scale knobs`,`Fonts`,`Typography`,`Spacing`,`Shape`,`Actions`,`Controls`,`Rows`,`Surfaces`,`Media`,`Shell`,`Other`],F={"--text-scale":`0.98`,"--space-scale":`0.9`,"--density-scale":`0.88`},I={"--space-scale":`1.08`,"--density-scale":`1.05`};function L(){return(0,A.jsxs)(`div`,{className:`grid gap-3 lg:grid-cols-3`,children:[(0,A.jsx)(H,{label:`Default`,note:`Root tokens without a density override.`}),(0,A.jsx)(H,{label:`Compact`,note:`Uses data-density='compact' on the wrapper.`,density:`compact`}),(0,A.jsx)(H,{label:`Comfortable`,note:`Uses data-density='comfortable' on the wrapper.`,density:`comfortable`})]})}function R(){return(0,A.jsxs)(`div`,{className:`grid gap-3 lg:grid-cols-2`,children:[(0,A.jsx)(v,{title:`Inherited defaults`,description:`Components omit size props and resolve through UIProvider defaults plus the CSS variables.`,headerEnd:(0,A.jsx)(i,{variant:`success`,children:`Ready`}),children:(0,A.jsx)(U,{})}),(0,A.jsx)(`div`,{style:F,children:(0,A.jsx)(v,{title:`Scoped override`,description:`A consuming app can override scale variables at :root or any wrapping element.`,headerEnd:(0,A.jsx)(i,{variant:`info`,children:`Scoped`}),children:(0,A.jsx)(U,{})})})]})}function z(){let e=(0,k.useMemo)(()=>K([{source:`tokens/foundation.css`,css:re},{source:`tokens/primitives.css`,css:ie},{source:`tokens/layout.css`,css:ae},{source:`tokens/components.css`,css:j}]),[]),t=(0,k.useMemo)(()=>e.filter(pe),[e]),[n,r]=(0,k.useState)(``),[o,c]=(0,k.useState)(`All`),l=(0,k.useMemo)(()=>ce(t),[t]),u=P.filter(e=>l[e]?.length),d=t.filter(e=>{let t=o===`All`||e.group===o,r=`${e.name} ${e.scope} ${e.purpose} ${e.value} ${e.utility}`.toLowerCase();return t&&r.includes(n.toLowerCase().trim())}),f=o!==`All`||n.trim().length>0;return(0,A.jsxs)(`div`,{className:`grid max-h-[44rem] gap-4 overflow-auto p-4 lg:max-h-none lg:grid-cols-[18rem_minmax(0,1fr)] lg:overflow-visible`,children:[(0,A.jsxs)(`aside`,{className:`rounded-md border border-border bg-background p-3`,children:[(0,A.jsxs)(`div`,{className:`mb-3`,children:[(0,A.jsx)(a,{weight:`semibold`,children:`Families`}),(0,A.jsx)(a,{size:`xs`,type:`secondary`,className:`mt-1`,children:`Public structural tokens only. Theme colors remain in themes/shadcn.default.css.`})]}),(0,A.jsxs)(`div`,{className:`space-y-1`,children:[(0,A.jsx)(V,{active:o===`All`,count:t.length,icon:h,label:`Public tokens`,onClick:()=>c(`All`)}),u.map(e=>{let t=N[e].icon;return(0,A.jsx)(V,{active:o===e,count:l[e].length,icon:t,label:e,onClick:()=>c(e),tone:`info`},e)})]})]}),(0,A.jsxs)(`div`,{className:`min-w-0 space-y-3`,children:[(0,A.jsxs)(`div`,{className:`flex flex-col gap-3 rounded-md border border-border bg-card px-3 py-3 md:flex-row md:items-center md:justify-between`,children:[(0,A.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-2 sm:flex-row sm:items-center`,children:[(0,A.jsx)(T,{startIcon:m,value:n,onChange:e=>r(e.target.value),placeholder:`Search variables, utilities, or purpose`,className:`w-full sm:max-w-sm`}),o!==`All`&&(0,A.jsx)(i,{variant:`secondary`,className:`w-fit`,children:o})]}),(0,A.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,A.jsxs)(a,{size:`xs`,type:`secondary`,children:[d.length,` of `,t.length]}),!!f&&(0,A.jsx)(s,{type:`button`,size:`small`,variant:`secondary`,buttonStyle:`ghost`,onClick:()=>{r(``),c(`All`)},children:`Clear`})]})]}),(0,A.jsx)(`div`,{className:`overflow-hidden rounded-md border border-border bg-background`,children:(0,A.jsxs)(`div`,{className:`max-h-[42rem] overflow-auto`,children:[(0,A.jsxs)(`table`,{className:`w-full min-w-312 border-collapse text-sm`,children:[(0,A.jsx)(`thead`,{className:`sticky top-0 z-10 bg-muted/95 text-left backdrop-blur`,children:(0,A.jsxs)(`tr`,{className:`border-b border-border`,children:[(0,A.jsx)(W,{className:`w-48`,children:`Source`}),(0,A.jsx)(W,{className:`w-72`,children:`Variable`}),(0,A.jsx)(W,{className:`w-80`,children:`Default`}),(0,A.jsx)(W,{className:`w-68`,children:`Tailwind utility`}),(0,A.jsx)(W,{children:`What it controls`})]})}),(0,A.jsx)(`tbody`,{children:d.map(e=>(0,A.jsxs)(`tr`,{className:`border-b border-border/70 transition-colors hover:bg-muted/25 last:border-b-0`,children:[(0,A.jsx)(G,{children:(0,A.jsxs)(`div`,{className:`space-y-1`,children:[(0,A.jsx)(a,{size:`inherit`,type:`secondary`,children:e.source}),(0,A.jsx)(i,{variant:`secondary`,children:e.scope})]})}),(0,A.jsx)(G,{children:(0,A.jsx)(`code`,{className:`rounded-sm bg-muted/70 px-1.5 py-0.5 font-mono text-sm text-foreground`,children:e.name})}),(0,A.jsx)(G,{children:(0,A.jsx)(`code`,{className:`font-mono text-sm text-muted-foreground`,children:e.value})}),(0,A.jsx)(G,{children:(0,A.jsx)(a,{size:`inherit`,type:e.utility===`Runtime variable`?`secondary`:void 0,children:e.utility})}),(0,A.jsx)(G,{children:(0,A.jsx)(a,{size:`inherit`,type:`secondary`,children:e.purpose})})]},e.id))})]}),d.length===0&&(0,A.jsx)(`div`,{className:`px-4 py-8 text-center`,children:(0,A.jsx)(a,{type:`secondary`,children:`No variables match the current filters.`})})]})})]})]})}var B=z;function V({active:e,count:t,icon:n,label:r,onClick:i,tone:a=`muted`}){return(0,A.jsxs)(s,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,"aria-pressed":e,onClick:i,className:_(`h-auto min-h-0 w-full justify-start rounded-md px-2 py-1.5 text-left shadow-none`,e?`bg-muted text-foreground`:`text-muted-foreground hover:bg-muted/70 hover:text-foreground`),children:[(0,A.jsx)(te,{icon:n,size:`small`,tone:a}),(0,A.jsx)(`span`,{className:`min-w-0 flex-1`,children:(0,A.jsx)(`span`,{className:`block truncate text-sm font-medium leading-5`,children:r})}),(0,A.jsx)(`span`,{className:`text-xxs tabular-nums text-muted-foreground`,children:t})]})}function H({label:e,note:t,density:n}){return(0,A.jsxs)(`div`,{"data-density":n,className:`rounded-md border border-border bg-background px-surface-sm py-surface-sm`,children:[(0,A.jsxs)(`div`,{className:`mb-3 flex items-center justify-between gap-space-md`,children:[(0,A.jsxs)(`div`,{children:[(0,A.jsx)(a,{weight:`semibold`,children:e}),(0,A.jsx)(a,{size:`xs`,type:`secondary`,children:t})]}),(0,A.jsx)(i,{variant:n===`compact`?`warning`:n===`comfortable`?`info`:`secondary`,children:n??`root`})]}),(0,A.jsx)(U,{})]})}function U(){return(0,A.jsxs)(`div`,{className:`space-y-space-lg`,children:[(0,A.jsxs)(`div`,{className:`flex flex-wrap items-center gap-space-md`,children:[(0,A.jsx)(s,{icon:d,children:`Save`}),(0,A.jsx)(s,{variant:`secondary`,buttonStyle:`outline`,children:`Preview`}),(0,A.jsx)(i,{variant:`success`,dot:!0,children:`Live`})]}),(0,A.jsx)(T,{startIcon:m,placeholder:`Search customers`}),(0,A.jsx)(x,{children:(0,A.jsxs)(C,{children:[(0,A.jsx)(ne,{variant:`icon`,children:(0,A.jsx)(l,{})}),(0,A.jsxs)(S,{children:[(0,A.jsx)(w,{children:`Customer profile`}),(0,A.jsx)(y,{children:`Rows, media, metadata, and actions share the display and row scales.`})]}),(0,A.jsx)(b,{children:(0,A.jsx)(i,{variant:`info`,children:`Synced`})})]})}),(0,A.jsx)(`div`,{style:I,className:`rounded-md border border-dashed border-border px-3 py-2`,children:(0,A.jsx)(E,{layout:`horizontal`,items:[{label:`Scale`,value:`local`},{label:`Rows`,value:`loose`},{label:`Display`,value:`1.04x`}]})})]})}function W({children:e,className:t}){return(0,A.jsx)(`th`,{className:_(`px-surface py-row-y text-xs font-semibold uppercase tracking-wide text-muted-foreground`,t),children:e})}function G({children:e}){return(0,A.jsx)(`td`,{className:`whitespace-normal break-words px-surface py-row-y-lg align-top`,children:e})}function K(e){return e.flatMap(({source:e,css:t})=>oe(e,t))}function oe(e,t){let n=[],r=[],i=null,a=null;return t.split(`
|
|
454
|
+
`).forEach((t,o)=>{let s=t.trim();if(a){a.push(J(s)),s.includes(`*/`)&&(i=Y(a.join(` `)),a=null);return}if(s.startsWith(`/*`)){s.includes(`*/`)?i=Y(J(s)):a=[J(s)];return}let c=q(s);c&&(r.push(c),i=null);let l=s.match(/^(--[a-zA-Z0-9-]+):\s*(.+);$/);if(l){let[,t,a]=l,s=se(r);n.push({id:`${e}-${o}-${s}-${t}`,source:e,name:t,value:a,purpose:i??me(t),scope:s,group:le(t,s),utility:ue(t,s)}),i=null}else s&&!s.startsWith(`*`)&&!s.endsWith(`{`)&&s!==`}`&&(i=null);s===`}`&&r.pop()}),n}function q(e){let t=e.match(/^@utility\s+([a-zA-Z0-9-]+)\s*\{/);if(t)return`@utility ${t[1]}`;if(e.startsWith(`@theme inline`))return`@theme inline`;if(e.startsWith(`:root`))return`:root`;let n=e.match(/^\[data-density=['"]([^'"]+)['"]\]\s*\{/);return n?`[data-density='${n[1]}']`:e.startsWith(`@layer `)?e.replace(/\s*\{$/,``):null}function se(e){return[...e].reverse().find(e=>!e.startsWith(`@layer`))??`global`}function J(e){return e.replace(/^\/\*/,``).replace(/\*\/$/,``).replace(/^\s*\*\s?/,``).trim()}function Y(e){return e.replace(/\s+/g,` `).trim()}function ce(e){return P.reduce((t,n)=>(t[n]=e.filter(e=>e.group===n),t),{})}function le(e,t){return e.includes(`scale`)?`Scale knobs`:e.startsWith(`--font-`)?`Fonts`:e.startsWith(`--text-`)?`Typography`:e.startsWith(`--space-`)?`Spacing`:e.startsWith(`--rounded-`)?`Shape`:e.startsWith(`--height-action`)?`Actions`:e.startsWith(`--height-control`)||e.startsWith(`--control-`)?`Controls`:e.startsWith(`--row-`)?`Rows`:e.startsWith(`--surface-`)?`Surfaces`:e.startsWith(`--icon-`)||e.startsWith(`--avatar-`)?`Media`:e.startsWith(`--shell-`)?`Shell`:t===`@theme inline`&&e.startsWith(`--spacing-space-`)?`Spacing`:t===`@theme inline`&&e.startsWith(`--radius-radius`)?`Shape`:t===`@theme inline`&&e.startsWith(`--spacing-action-`)?`Actions`:t===`@theme inline`&&e.startsWith(`--spacing-control-`)?`Controls`:t===`@theme inline`&&e.startsWith(`--spacing-row-`)?`Rows`:t===`@theme inline`&&e.startsWith(`--spacing-surface-`)?`Surfaces`:t===`@theme inline`&&(e.startsWith(`--spacing-icon-`)||e.startsWith(`--spacing-avatar-`))?`Media`:t===`@theme inline`&&e.startsWith(`--spacing-shell-`)?`Shell`:`Other`}function ue(e,t){return e.startsWith(`--font-`)?e.replace(`--font-`,`font-`):e.startsWith(`--text-`)&&!e.includes(`--line-height`)?e.replace(`--text-`,`text-`):e.startsWith(`--text-`)&&e.includes(`--line-height`)?`Paired line-height`:e.startsWith(`--spacing-`)?`spacing key: ${e.replace(`--spacing-`,``)}`:e.startsWith(`--radius-`)?e.replace(`--radius-`,`rounded-`):e.startsWith(`--color-`)?`color key: ${e.replace(`--color-`,``)}`:t.startsWith(`@utility`)?t:`Runtime variable`}var de=new Set(`--text-scale.--space-scale.--density-scale.--rounded-radius-sm.--rounded-radius.--rounded-radius-lg.--height-action-xs.--height-action-sm.--height-action.--height-action-lg.--height-control-sm.--height-control.--height-control-lg.--space-2xs.--space-xs.--space-sm.--space-md.--space-lg.--space-xl.--space-2xl.--control-height-sm.--control-height.--control-height-lg.--control-x-sm.--control-x.--control-gap-small.--control-gap.--control-y-offset.--row-x.--row-y-sm.--row-y.--row-y-lg.--surface-x-sm.--surface-x.--surface-y-sm.--surface-y.--icon-sm.--icon.--icon-lg.--avatar-sm.--avatar.--avatar-lg.--upload-avatar-small.--upload-avatar.--upload-avatar-large.--shell-header-height.--shell-header-control-size.--shell-sidebar-width.--shell-sidebar-width-expanded.--shell-sidebar-width-current.--popover-content-pad`.split(`.`)),fe=new Set(`--font-heading.--font-sans.--font-mono.--text-xxs.--text-xs.--text-sm.--text-base.--text-lg.--text-xl.--text-2xl.--text-3xl.--text-4xl.--text-5xl.--spacing-space-2xs.--spacing-space-xs.--spacing-space-sm.--spacing-space-md.--spacing-space-lg.--spacing-space-xl.--spacing-space-2xl.--radius-radius-sm.--radius-radius.--radius-radius-lg.--spacing-action-xs.--spacing-action-sm.--spacing-action.--spacing-action-lg.--spacing-row-x.--spacing-row-y-sm.--spacing-row-y.--spacing-row-y-lg.--spacing-surface-sm.--spacing-surface.--spacing-shell-header.--spacing-shell-header-control.--spacing-shell-sidebar`.split(`.`)),X=new Set([`tokens/foundation.css`,`tokens/primitives.css`,`tokens/layout.css`,`tokens/components.css`]);function pe(e){return X.has(e.source)?e.scope===`:root`?de.has(e.name):e.scope===`@theme inline`?fe.has(e.name):!1:!1}function me(e){return e.startsWith(`--color-`)?`Tailwind color alias for ${e.replace(`--color-`,``).replace(/-/g,` `)}.`:e.startsWith(`--shadow-`)?`Shadow elevation token ${e.replace(`--shadow-`,``)}.`:e===`--radius`?`Central shadcn radius token that derived radius utilities alias.`:e.startsWith(`--radius-`)?`Derived radius token for rounded-${e.replace(`--radius-`,``)}.`:e.startsWith(`--sidebar-`)?`Sidebar theme token for ${e.replace(`--sidebar-`,``).replace(/-/g,` `)}.`:e.startsWith(`--chart-`)?`Chart palette token for multi-series charts, not semantic status color.`:e.startsWith(`--inverse-`)?`Inverse-surface token for dark or artwork-backed surfaces.`:e.endsWith(`-foreground`)?`Readable foreground token paired with ${e.replace(/^--/,``).replace(/-foreground$/,``).replace(/-/g,` `)}.`:he(e)?`Shadcn theme color token for ${e.replace(/^--/,``).replace(/-/g,` `)}.`:`Controls ${e.replace(/^--/,``).replace(/-/g,` `)}.`}function he(e){return`--background.--foreground.--card.--card-foreground.--popover.--popover-foreground.--primary.--primary-foreground.--secondary.--secondary-foreground.--muted.--muted-foreground.--accent.--accent-foreground.--destructive.--destructive-foreground.--success.--success-foreground.--info.--info-foreground.--warning.--warning-foreground.--error.--error-foreground.--main.--main-foreground.--border.--input.--ring`.split(`.`).includes(e)||e.startsWith(`--inverse-`)||e.startsWith(`--sidebar-`)||e.startsWith(`--chart-`)}var Z=`import { useMemo, useState, type CSSProperties, type ReactNode } from 'react';
|
|
455
|
+
import { Database, Layers3, Rows3, Save, Search, Settings2, SlidersHorizontal, Sparkles, Type } from 'lucide-react';
|
|
456
|
+
|
|
457
|
+
import foundationCss from '@/css/tokens/foundation.css?raw';
|
|
458
|
+
import primitivesCss from '@/css/tokens/primitives.css?raw';
|
|
459
|
+
import layoutCss from '@/css/tokens/layout.css?raw';
|
|
460
|
+
import componentsCss from '@/css/tokens/components.css?raw';
|
|
461
|
+
import { Badge } from '@/components/base/badge';
|
|
462
|
+
import { Button } from '@/components/base/buttons';
|
|
463
|
+
import { SmartCard } from '@/components/base/cards';
|
|
464
|
+
import { IconBadge } from '@/components/base/display/icon-badge';
|
|
465
|
+
import { MetadataList } from '@/components/composed/data-display/metadata';
|
|
466
|
+
import { Input } from '@/components/base/forms/fields';
|
|
467
|
+
import {
|
|
468
|
+
Item,
|
|
469
|
+
ItemActions,
|
|
470
|
+
ItemContent,
|
|
471
|
+
ItemDescription,
|
|
472
|
+
ItemGroup,
|
|
473
|
+
ItemMedia,
|
|
474
|
+
ItemTitle,
|
|
475
|
+
} from '@/components/base/item';
|
|
476
|
+
import { Text } from '@/components/typography';
|
|
477
|
+
import { cn } from '@/lib/utils';
|
|
478
|
+
|
|
479
|
+
type TokenGroup =
|
|
480
|
+
| 'Scale knobs'
|
|
481
|
+
| 'Fonts'
|
|
482
|
+
| 'Typography'
|
|
483
|
+
| 'Spacing'
|
|
484
|
+
| 'Shape'
|
|
485
|
+
| 'Actions'
|
|
486
|
+
| 'Controls'
|
|
487
|
+
| 'Rows'
|
|
488
|
+
| 'Surfaces'
|
|
489
|
+
| 'Media'
|
|
490
|
+
| 'Shell'
|
|
491
|
+
| 'Other';
|
|
492
|
+
|
|
493
|
+
type CssVariableRecord = {
|
|
494
|
+
id: string;
|
|
495
|
+
source: string;
|
|
496
|
+
name: string;
|
|
497
|
+
value: string;
|
|
498
|
+
purpose: string;
|
|
499
|
+
scope: string;
|
|
500
|
+
group: TokenGroup;
|
|
501
|
+
utility: string;
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
const GROUP_META: Record<TokenGroup, { icon: typeof Type; description: string }> = {
|
|
505
|
+
'Scale knobs': {
|
|
506
|
+
icon: SlidersHorizontal,
|
|
507
|
+
description: 'Inherited multipliers that tighten or relax whole subtrees.',
|
|
508
|
+
},
|
|
509
|
+
Fonts: {
|
|
510
|
+
icon: Type,
|
|
511
|
+
description: 'Font stacks shared by typography and code surfaces.',
|
|
512
|
+
},
|
|
513
|
+
Typography: {
|
|
514
|
+
icon: Type,
|
|
515
|
+
description: 'Text sizes consumed by Text, Heading, Label, and text utilities.',
|
|
516
|
+
},
|
|
517
|
+
Spacing: {
|
|
518
|
+
icon: Layers3,
|
|
519
|
+
description: 'Neutral spacing scale for gaps, margins, and padding.',
|
|
520
|
+
},
|
|
521
|
+
Shape: {
|
|
522
|
+
icon: Layers3,
|
|
523
|
+
description: 'Package radius aliases that can be scoped separately from shadcn radius.',
|
|
524
|
+
},
|
|
525
|
+
Actions: {
|
|
526
|
+
icon: Save,
|
|
527
|
+
description: 'Clickable action heights for buttons, icon buttons, and command triggers.',
|
|
528
|
+
},
|
|
529
|
+
Controls: {
|
|
530
|
+
icon: Save,
|
|
531
|
+
description: 'Shared button, input, select, combobox, date picker, and trigger measurements.',
|
|
532
|
+
},
|
|
533
|
+
Rows: {
|
|
534
|
+
icon: Rows3,
|
|
535
|
+
description: 'List, command, menu, filter, activity, global-search, and table row rhythm.',
|
|
536
|
+
},
|
|
537
|
+
Surfaces: {
|
|
538
|
+
icon: Layers3,
|
|
539
|
+
description: 'Card, form section, empty state, and feature surface padding.',
|
|
540
|
+
},
|
|
541
|
+
Media: {
|
|
542
|
+
icon: Sparkles,
|
|
543
|
+
description: 'Icon and avatar sizing shared across rows, badges, metadata, and controls.',
|
|
544
|
+
},
|
|
545
|
+
Shell: {
|
|
546
|
+
icon: Database,
|
|
547
|
+
description: 'Top-level app shell height and sidebar width.',
|
|
548
|
+
},
|
|
549
|
+
Other: {
|
|
550
|
+
icon: Settings2,
|
|
551
|
+
description: 'Supporting structural variables outside the public contract.',
|
|
552
|
+
},
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
const GROUP_ORDER: TokenGroup[] = [
|
|
556
|
+
'Scale knobs',
|
|
557
|
+
'Fonts',
|
|
558
|
+
'Typography',
|
|
559
|
+
'Spacing',
|
|
560
|
+
'Shape',
|
|
561
|
+
'Actions',
|
|
562
|
+
'Controls',
|
|
563
|
+
'Rows',
|
|
564
|
+
'Surfaces',
|
|
565
|
+
'Media',
|
|
566
|
+
'Shell',
|
|
567
|
+
'Other',
|
|
568
|
+
];
|
|
569
|
+
|
|
570
|
+
const customScopeStyle = {
|
|
571
|
+
'--text-scale': '0.98',
|
|
572
|
+
'--space-scale': '0.9',
|
|
573
|
+
'--density-scale': '0.88',
|
|
574
|
+
} as CSSProperties;
|
|
575
|
+
|
|
576
|
+
const relaxedScopeStyle = {
|
|
577
|
+
'--space-scale': '1.08',
|
|
578
|
+
'--density-scale': '1.05',
|
|
579
|
+
} as CSSProperties;
|
|
580
|
+
|
|
581
|
+
export function ScalePreview() {
|
|
582
|
+
return (
|
|
583
|
+
<div className="grid gap-3 lg:grid-cols-3">
|
|
584
|
+
<ScaleSurface label="Default" note="Root tokens without a density override." />
|
|
585
|
+
<ScaleSurface label="Compact" note="Uses data-density='compact' on the wrapper." density="compact" />
|
|
586
|
+
<ScaleSurface label="Comfortable" note="Uses data-density='comfortable' on the wrapper." density="comfortable" />
|
|
587
|
+
</div>
|
|
588
|
+
);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
export function RuntimeOverrideDemo() {
|
|
592
|
+
return (
|
|
593
|
+
<div className="grid gap-3 lg:grid-cols-2">
|
|
594
|
+
<SmartCard
|
|
595
|
+
title="Inherited defaults"
|
|
596
|
+
description="Components omit size props and resolve through UIProvider defaults plus the CSS variables."
|
|
597
|
+
headerEnd={<Badge variant="success">Ready</Badge>}
|
|
598
|
+
>
|
|
599
|
+
<ComponentStack />
|
|
600
|
+
</SmartCard>
|
|
601
|
+
<div style={customScopeStyle}>
|
|
602
|
+
<SmartCard
|
|
603
|
+
title="Scoped override"
|
|
604
|
+
description="A consuming app can override scale variables at :root or any wrapping element."
|
|
605
|
+
headerEnd={<Badge variant="info">Scoped</Badge>}
|
|
606
|
+
>
|
|
607
|
+
<ComponentStack />
|
|
608
|
+
</SmartCard>
|
|
609
|
+
</div>
|
|
610
|
+
</div>
|
|
611
|
+
);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
export function VariableExplorer() {
|
|
615
|
+
const allRecords = useMemo(
|
|
616
|
+
() => parseCssVariables([
|
|
617
|
+
{ source: 'tokens/foundation.css', css: foundationCss },
|
|
618
|
+
{ source: 'tokens/primitives.css', css: primitivesCss },
|
|
619
|
+
{ source: 'tokens/layout.css', css: layoutCss },
|
|
620
|
+
{ source: 'tokens/components.css', css: componentsCss },
|
|
621
|
+
]),
|
|
622
|
+
[],
|
|
623
|
+
);
|
|
624
|
+
const records = useMemo(
|
|
625
|
+
() => allRecords.filter(isPublicStructuralVariable),
|
|
626
|
+
[allRecords],
|
|
627
|
+
);
|
|
628
|
+
const [query, setQuery] = useState('');
|
|
629
|
+
const [group, setGroup] = useState<TokenGroup | 'All'>('All');
|
|
630
|
+
const groups = useMemo(() => groupRecords(records), [records]);
|
|
631
|
+
const availableGroups = GROUP_ORDER.filter((name) => groups[name]?.length);
|
|
632
|
+
const filteredRecords = records.filter((record) => {
|
|
633
|
+
const matchesGroup = group === 'All' || record.group === group;
|
|
634
|
+
const haystack = \`\${record.name} \${record.scope} \${record.purpose} \${record.value} \${record.utility}\`.toLowerCase();
|
|
635
|
+
return matchesGroup && haystack.includes(query.toLowerCase().trim());
|
|
636
|
+
});
|
|
637
|
+
const hasFilter = group !== 'All' || query.trim().length > 0;
|
|
638
|
+
const resetFilters = () => {
|
|
639
|
+
setQuery('');
|
|
640
|
+
setGroup('All');
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
return (
|
|
644
|
+
<div className="grid max-h-[44rem] gap-4 overflow-auto p-4 lg:max-h-none lg:grid-cols-[18rem_minmax(0,1fr)] lg:overflow-visible">
|
|
645
|
+
<aside className="rounded-md border border-border bg-background p-3">
|
|
646
|
+
<div className="mb-3">
|
|
647
|
+
<Text weight="semibold">Families</Text>
|
|
648
|
+
<Text size="xs" type="secondary" className="mt-1">
|
|
649
|
+
Public structural tokens only. Theme colors remain in themes/shadcn.default.css.
|
|
650
|
+
</Text>
|
|
651
|
+
</div>
|
|
652
|
+
<div className="space-y-1">
|
|
653
|
+
<VariableGroupButton
|
|
654
|
+
active={group === 'All'}
|
|
655
|
+
count={records.length}
|
|
656
|
+
icon={SlidersHorizontal}
|
|
657
|
+
label="Public tokens"
|
|
658
|
+
onClick={() => setGroup('All')}
|
|
659
|
+
/>
|
|
660
|
+
{availableGroups.map((name) => {
|
|
661
|
+
const Icon = GROUP_META[name].icon;
|
|
662
|
+
return (
|
|
663
|
+
<VariableGroupButton
|
|
664
|
+
key={name}
|
|
665
|
+
active={group === name}
|
|
666
|
+
count={groups[name].length}
|
|
667
|
+
icon={Icon}
|
|
668
|
+
label={name}
|
|
669
|
+
onClick={() => setGroup(name)}
|
|
670
|
+
tone="info"
|
|
671
|
+
/>
|
|
672
|
+
);
|
|
673
|
+
})}
|
|
674
|
+
</div>
|
|
675
|
+
</aside>
|
|
676
|
+
|
|
677
|
+
<div className="min-w-0 space-y-3">
|
|
678
|
+
<div className="flex flex-col gap-3 rounded-md border border-border bg-card px-3 py-3 md:flex-row md:items-center md:justify-between">
|
|
679
|
+
<div className="flex min-w-0 flex-1 flex-col gap-2 sm:flex-row sm:items-center">
|
|
680
|
+
<Input
|
|
681
|
+
startIcon={Search}
|
|
682
|
+
value={query}
|
|
683
|
+
onChange={(event) => setQuery(event.target.value)}
|
|
684
|
+
placeholder="Search variables, utilities, or purpose"
|
|
685
|
+
className="w-full sm:max-w-sm"
|
|
686
|
+
/>
|
|
687
|
+
{group !== 'All' && (
|
|
688
|
+
<Badge variant="secondary" className="w-fit">
|
|
689
|
+
{group}
|
|
690
|
+
</Badge>
|
|
691
|
+
)}
|
|
692
|
+
</div>
|
|
693
|
+
<div className="flex shrink-0 items-center gap-2">
|
|
694
|
+
<Text size="xs" type="secondary">
|
|
695
|
+
{filteredRecords.length} of {records.length}
|
|
696
|
+
</Text>
|
|
697
|
+
{!!hasFilter && (
|
|
698
|
+
<Button
|
|
699
|
+
type="button"
|
|
700
|
+
size="small"
|
|
701
|
+
variant="secondary"
|
|
702
|
+
buttonStyle="ghost"
|
|
703
|
+
onClick={resetFilters}
|
|
704
|
+
>
|
|
705
|
+
Clear
|
|
706
|
+
</Button>
|
|
707
|
+
)}
|
|
708
|
+
</div>
|
|
709
|
+
</div>
|
|
710
|
+
|
|
711
|
+
<div className="overflow-hidden rounded-md border border-border bg-background">
|
|
712
|
+
<div className="max-h-[42rem] overflow-auto">
|
|
713
|
+
<table className="w-full min-w-312 border-collapse text-sm">
|
|
714
|
+
<thead className="sticky top-0 z-10 bg-muted/95 text-left backdrop-blur">
|
|
715
|
+
<tr className="border-b border-border">
|
|
716
|
+
<HeaderCell className="w-48">Source</HeaderCell>
|
|
717
|
+
<HeaderCell className="w-72">Variable</HeaderCell>
|
|
718
|
+
<HeaderCell className="w-80">Default</HeaderCell>
|
|
719
|
+
<HeaderCell className="w-68">Tailwind utility</HeaderCell>
|
|
720
|
+
<HeaderCell>What it controls</HeaderCell>
|
|
721
|
+
</tr>
|
|
722
|
+
</thead>
|
|
723
|
+
<tbody>
|
|
724
|
+
{filteredRecords.map((record) => (
|
|
725
|
+
<tr key={record.id} className="border-b border-border/70 transition-colors hover:bg-muted/25 last:border-b-0">
|
|
726
|
+
<BodyCell>
|
|
727
|
+
<div className="space-y-1">
|
|
728
|
+
<Text size="inherit" type="secondary">{record.source}</Text>
|
|
729
|
+
<Badge variant="secondary">{record.scope}</Badge>
|
|
730
|
+
</div>
|
|
731
|
+
</BodyCell>
|
|
732
|
+
<BodyCell>
|
|
733
|
+
<code className="rounded-sm bg-muted/70 px-1.5 py-0.5 font-mono text-sm text-foreground">{record.name}</code>
|
|
734
|
+
</BodyCell>
|
|
735
|
+
<BodyCell>
|
|
736
|
+
<code className="font-mono text-sm text-muted-foreground">{record.value}</code>
|
|
737
|
+
</BodyCell>
|
|
738
|
+
<BodyCell>
|
|
739
|
+
<Text size="inherit" type={record.utility === 'Runtime variable' ? 'secondary' : undefined}>
|
|
740
|
+
{record.utility}
|
|
741
|
+
</Text>
|
|
742
|
+
</BodyCell>
|
|
743
|
+
<BodyCell>
|
|
744
|
+
<Text size="inherit" type="secondary">{record.purpose}</Text>
|
|
745
|
+
</BodyCell>
|
|
746
|
+
</tr>
|
|
747
|
+
))}
|
|
748
|
+
</tbody>
|
|
749
|
+
</table>
|
|
750
|
+
{filteredRecords.length === 0 && (
|
|
751
|
+
<div className="px-4 py-8 text-center">
|
|
752
|
+
<Text type="secondary">No variables match the current filters.</Text>
|
|
753
|
+
</div>
|
|
754
|
+
)}
|
|
755
|
+
</div>
|
|
756
|
+
</div>
|
|
757
|
+
</div>
|
|
758
|
+
</div>
|
|
759
|
+
);
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
export const VariableReference = VariableExplorer;
|
|
763
|
+
|
|
764
|
+
function VariableGroupButton({
|
|
765
|
+
active,
|
|
766
|
+
count,
|
|
767
|
+
icon: Icon,
|
|
768
|
+
label,
|
|
769
|
+
onClick,
|
|
770
|
+
tone = 'muted',
|
|
771
|
+
}: {
|
|
772
|
+
active: boolean;
|
|
773
|
+
count: number;
|
|
774
|
+
icon: typeof Type;
|
|
775
|
+
label: string;
|
|
776
|
+
onClick: () => void;
|
|
777
|
+
tone?: 'info' | 'muted';
|
|
778
|
+
}) {
|
|
779
|
+
return (
|
|
780
|
+
<Button
|
|
781
|
+
type="button"
|
|
782
|
+
variant="secondary"
|
|
783
|
+
buttonStyle="ghost"
|
|
784
|
+
aria-pressed={active}
|
|
785
|
+
onClick={onClick}
|
|
786
|
+
className={cn(
|
|
787
|
+
'h-auto min-h-0 w-full justify-start rounded-md px-2 py-1.5 text-left shadow-none',
|
|
788
|
+
active ? 'bg-muted text-foreground' : 'text-muted-foreground hover:bg-muted/70 hover:text-foreground',
|
|
789
|
+
)}
|
|
790
|
+
>
|
|
791
|
+
<IconBadge icon={Icon} size="small" tone={tone} />
|
|
792
|
+
<span className="min-w-0 flex-1">
|
|
793
|
+
<span className="block truncate text-sm font-medium leading-5">{label}</span>
|
|
794
|
+
</span>
|
|
795
|
+
<span className="text-xxs tabular-nums text-muted-foreground">{count}</span>
|
|
796
|
+
</Button>
|
|
797
|
+
);
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
function ScaleSurface({
|
|
801
|
+
label,
|
|
802
|
+
note,
|
|
803
|
+
density,
|
|
804
|
+
}: {
|
|
805
|
+
label: string;
|
|
806
|
+
note: string;
|
|
807
|
+
density?: 'compact' | 'comfortable';
|
|
808
|
+
}) {
|
|
809
|
+
return (
|
|
810
|
+
<div
|
|
811
|
+
data-density={density}
|
|
812
|
+
className="rounded-md border border-border bg-background px-surface-sm py-surface-sm"
|
|
813
|
+
>
|
|
814
|
+
<div className="mb-3 flex items-center justify-between gap-space-md">
|
|
815
|
+
<div>
|
|
816
|
+
<Text weight="semibold">{label}</Text>
|
|
817
|
+
<Text size="xs" type="secondary">{note}</Text>
|
|
818
|
+
</div>
|
|
819
|
+
<Badge variant={density === 'compact' ? 'warning' : density === 'comfortable' ? 'info' : 'secondary'}>
|
|
820
|
+
{density ?? 'root'}
|
|
821
|
+
</Badge>
|
|
822
|
+
</div>
|
|
823
|
+
<ComponentStack />
|
|
824
|
+
</div>
|
|
825
|
+
);
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
function ComponentStack() {
|
|
829
|
+
return (
|
|
830
|
+
<div className="space-y-space-lg">
|
|
831
|
+
<div className="flex flex-wrap items-center gap-space-md">
|
|
832
|
+
<Button icon={Save}>Save</Button>
|
|
833
|
+
<Button variant="secondary" buttonStyle="outline">Preview</Button>
|
|
834
|
+
<Badge variant="success" dot>Live</Badge>
|
|
835
|
+
</div>
|
|
836
|
+
<Input startIcon={Search} placeholder="Search customers" />
|
|
837
|
+
<ItemGroup>
|
|
838
|
+
<Item>
|
|
839
|
+
<ItemMedia variant="icon">
|
|
840
|
+
<Database />
|
|
841
|
+
</ItemMedia>
|
|
842
|
+
<ItemContent>
|
|
843
|
+
<ItemTitle>Customer profile</ItemTitle>
|
|
844
|
+
<ItemDescription>Rows, media, metadata, and actions share the display and row scales.</ItemDescription>
|
|
845
|
+
</ItemContent>
|
|
846
|
+
<ItemActions>
|
|
847
|
+
<Badge variant="info">Synced</Badge>
|
|
848
|
+
</ItemActions>
|
|
849
|
+
</Item>
|
|
850
|
+
</ItemGroup>
|
|
851
|
+
<div style={relaxedScopeStyle} className="rounded-md border border-dashed border-border px-3 py-2">
|
|
852
|
+
<MetadataList
|
|
853
|
+
layout="horizontal"
|
|
854
|
+
items={[
|
|
855
|
+
{ label: 'Scale', value: 'local' },
|
|
856
|
+
{ label: 'Rows', value: 'loose' },
|
|
857
|
+
{ label: 'Display', value: '1.04x' },
|
|
858
|
+
]}
|
|
859
|
+
/>
|
|
860
|
+
</div>
|
|
861
|
+
</div>
|
|
862
|
+
);
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
function HeaderCell({ children, className }: { children: string; className?: string }) {
|
|
866
|
+
return (
|
|
867
|
+
<th className={cn('px-surface py-row-y text-xs font-semibold uppercase tracking-wide text-muted-foreground', className)}>
|
|
868
|
+
{children}
|
|
869
|
+
</th>
|
|
870
|
+
);
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
function BodyCell({ children }: { children: ReactNode }) {
|
|
874
|
+
return <td className="whitespace-normal break-words px-surface py-row-y-lg align-top">{children}</td>;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
function parseCssVariables(sources: { source: string; css: string }[]): CssVariableRecord[] {
|
|
878
|
+
return sources.flatMap(({ source, css }) => parseCssSource(source, css));
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
function parseCssSource(source: string, css: string): CssVariableRecord[] {
|
|
882
|
+
const records: CssVariableRecord[] = [];
|
|
883
|
+
const contextStack: string[] = [];
|
|
884
|
+
let activeComment: string | null = null;
|
|
885
|
+
let pendingComment: string[] | null = null;
|
|
886
|
+
|
|
887
|
+
css.split('\\n').forEach((line, lineIndex) => {
|
|
888
|
+
const trimmed = line.trim();
|
|
889
|
+
|
|
890
|
+
if (pendingComment) {
|
|
891
|
+
pendingComment.push(cleanCommentLine(trimmed));
|
|
892
|
+
if (trimmed.includes('*/')) {
|
|
893
|
+
activeComment = normalizeComment(pendingComment.join(' '));
|
|
894
|
+
pendingComment = null;
|
|
895
|
+
}
|
|
896
|
+
return;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
if (trimmed.startsWith('/*')) {
|
|
900
|
+
if (trimmed.includes('*/')) {
|
|
901
|
+
activeComment = normalizeComment(cleanCommentLine(trimmed));
|
|
902
|
+
} else {
|
|
903
|
+
pendingComment = [cleanCommentLine(trimmed)];
|
|
904
|
+
}
|
|
905
|
+
return;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
const openContext = getOpenContext(trimmed);
|
|
909
|
+
if (openContext) {
|
|
910
|
+
contextStack.push(openContext);
|
|
911
|
+
activeComment = null;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
const variable = trimmed.match(/^(--[a-zA-Z0-9-]+):\\s*(.+);$/);
|
|
915
|
+
if (variable) {
|
|
916
|
+
const [, name, value] = variable;
|
|
917
|
+
const scope = resolveScope(contextStack);
|
|
918
|
+
records.push({
|
|
919
|
+
id: \`\${source}-\${lineIndex}-\${scope}-\${name}\`,
|
|
920
|
+
source,
|
|
921
|
+
name,
|
|
922
|
+
value,
|
|
923
|
+
purpose: activeComment ?? inferPurpose(name),
|
|
924
|
+
scope,
|
|
925
|
+
group: inferGroup(name, scope),
|
|
926
|
+
utility: inferUtility(name, scope),
|
|
927
|
+
});
|
|
928
|
+
activeComment = null;
|
|
929
|
+
} else if (trimmed && !trimmed.startsWith('*') && !trimmed.endsWith('{') && trimmed !== '}') {
|
|
930
|
+
activeComment = null;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
if (trimmed === '}') {
|
|
934
|
+
contextStack.pop();
|
|
935
|
+
}
|
|
936
|
+
});
|
|
937
|
+
|
|
938
|
+
return records;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
function getOpenContext(line: string): string | null {
|
|
942
|
+
const utility = line.match(/^@utility\\s+([a-zA-Z0-9-]+)\\s*\\{/);
|
|
943
|
+
if (utility) return \`@utility \${utility[1]}\`;
|
|
944
|
+
if (line.startsWith('@theme inline')) return '@theme inline';
|
|
945
|
+
if (line.startsWith(':root')) return ':root';
|
|
946
|
+
const density = line.match(/^\\[data-density=['"]([^'"]+)['"]\\]\\s*\\{/);
|
|
947
|
+
if (density) return \`[data-density='\${density[1]}']\`;
|
|
948
|
+
if (line.startsWith('@layer ')) return line.replace(/\\s*\\{$/, '');
|
|
949
|
+
return null;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
function resolveScope(stack: string[]): string {
|
|
953
|
+
const meaningful = [...stack].reverse().find((item) => !item.startsWith('@layer'));
|
|
954
|
+
return meaningful ?? 'global';
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
function cleanCommentLine(line: string): string {
|
|
958
|
+
return line
|
|
959
|
+
.replace(/^\\/\\*/, '')
|
|
960
|
+
.replace(/\\*\\/$/, '')
|
|
961
|
+
.replace(/^\\s*\\*\\s?/, '')
|
|
962
|
+
.trim();
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
function normalizeComment(comment: string): string {
|
|
966
|
+
return comment.replace(/\\s+/g, ' ').trim();
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
function groupRecords(records: CssVariableRecord[]): Record<TokenGroup, CssVariableRecord[]> {
|
|
970
|
+
return GROUP_ORDER.reduce((acc, group) => {
|
|
971
|
+
acc[group] = records.filter((record) => record.group === group);
|
|
972
|
+
return acc;
|
|
973
|
+
}, {} as Record<TokenGroup, CssVariableRecord[]>);
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
function inferGroup(name: string, scope: string): TokenGroup {
|
|
977
|
+
if (name.includes('scale')) return 'Scale knobs';
|
|
978
|
+
if (name.startsWith('--font-')) return 'Fonts';
|
|
979
|
+
if (name.startsWith('--text-')) return 'Typography';
|
|
980
|
+
if (name.startsWith('--space-')) return 'Spacing';
|
|
981
|
+
if (name.startsWith('--rounded-')) return 'Shape';
|
|
982
|
+
if (name.startsWith('--height-action')) return 'Actions';
|
|
983
|
+
if (name.startsWith('--height-control')) return 'Controls';
|
|
984
|
+
if (name.startsWith('--control-')) return 'Controls';
|
|
985
|
+
if (name.startsWith('--row-')) return 'Rows';
|
|
986
|
+
if (name.startsWith('--surface-')) return 'Surfaces';
|
|
987
|
+
if (name.startsWith('--icon-') || name.startsWith('--avatar-')) return 'Media';
|
|
988
|
+
if (name.startsWith('--shell-')) return 'Shell';
|
|
989
|
+
if (scope === '@theme inline' && name.startsWith('--spacing-space-')) return 'Spacing';
|
|
990
|
+
if (scope === '@theme inline' && name.startsWith('--radius-radius')) return 'Shape';
|
|
991
|
+
if (scope === '@theme inline' && name.startsWith('--spacing-action-')) return 'Actions';
|
|
992
|
+
if (scope === '@theme inline' && name.startsWith('--spacing-control-')) return 'Controls';
|
|
993
|
+
if (scope === '@theme inline' && name.startsWith('--spacing-row-')) return 'Rows';
|
|
994
|
+
if (scope === '@theme inline' && name.startsWith('--spacing-surface-')) return 'Surfaces';
|
|
995
|
+
if (scope === '@theme inline' && (name.startsWith('--spacing-icon-') || name.startsWith('--spacing-avatar-'))) return 'Media';
|
|
996
|
+
if (scope === '@theme inline' && name.startsWith('--spacing-shell-')) return 'Shell';
|
|
997
|
+
return 'Other';
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
function inferUtility(name: string, scope: string): string {
|
|
1001
|
+
if (name.startsWith('--font-')) return name.replace('--font-', 'font-');
|
|
1002
|
+
if (name.startsWith('--text-') && !name.includes('--line-height')) return name.replace('--text-', 'text-');
|
|
1003
|
+
if (name.startsWith('--text-') && name.includes('--line-height')) return 'Paired line-height';
|
|
1004
|
+
if (name.startsWith('--spacing-')) return \`spacing key: \${name.replace('--spacing-', '')}\`;
|
|
1005
|
+
if (name.startsWith('--radius-')) return name.replace('--radius-', 'rounded-');
|
|
1006
|
+
if (name.startsWith('--color-')) return \`color key: \${name.replace('--color-', '')}\`;
|
|
1007
|
+
if (scope.startsWith('@utility')) return scope;
|
|
1008
|
+
return 'Runtime variable';
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
const PUBLIC_ROOT_VARIABLES = new Set([
|
|
1012
|
+
'--text-scale',
|
|
1013
|
+
'--space-scale',
|
|
1014
|
+
'--density-scale',
|
|
1015
|
+
'--rounded-radius-sm',
|
|
1016
|
+
'--rounded-radius',
|
|
1017
|
+
'--rounded-radius-lg',
|
|
1018
|
+
'--height-action-xs',
|
|
1019
|
+
'--height-action-sm',
|
|
1020
|
+
'--height-action',
|
|
1021
|
+
'--height-action-lg',
|
|
1022
|
+
'--height-control-sm',
|
|
1023
|
+
'--height-control',
|
|
1024
|
+
'--height-control-lg',
|
|
1025
|
+
'--space-2xs',
|
|
1026
|
+
'--space-xs',
|
|
1027
|
+
'--space-sm',
|
|
1028
|
+
'--space-md',
|
|
1029
|
+
'--space-lg',
|
|
1030
|
+
'--space-xl',
|
|
1031
|
+
'--space-2xl',
|
|
1032
|
+
'--control-height-sm',
|
|
1033
|
+
'--control-height',
|
|
1034
|
+
'--control-height-lg',
|
|
1035
|
+
'--control-x-sm',
|
|
1036
|
+
'--control-x',
|
|
1037
|
+
'--control-gap-small',
|
|
1038
|
+
'--control-gap',
|
|
1039
|
+
'--control-y-offset',
|
|
1040
|
+
'--row-x',
|
|
1041
|
+
'--row-y-sm',
|
|
1042
|
+
'--row-y',
|
|
1043
|
+
'--row-y-lg',
|
|
1044
|
+
'--surface-x-sm',
|
|
1045
|
+
'--surface-x',
|
|
1046
|
+
'--surface-y-sm',
|
|
1047
|
+
'--surface-y',
|
|
1048
|
+
'--icon-sm',
|
|
1049
|
+
'--icon',
|
|
1050
|
+
'--icon-lg',
|
|
1051
|
+
'--avatar-sm',
|
|
1052
|
+
'--avatar',
|
|
1053
|
+
'--avatar-lg',
|
|
1054
|
+
'--upload-avatar-small',
|
|
1055
|
+
'--upload-avatar',
|
|
1056
|
+
'--upload-avatar-large',
|
|
1057
|
+
'--shell-header-height',
|
|
1058
|
+
'--shell-header-control-size',
|
|
1059
|
+
'--shell-sidebar-width',
|
|
1060
|
+
'--shell-sidebar-width-expanded',
|
|
1061
|
+
'--shell-sidebar-width-current',
|
|
1062
|
+
'--popover-content-pad',
|
|
1063
|
+
]);
|
|
1064
|
+
|
|
1065
|
+
const PUBLIC_THEME_VARIABLES = new Set([
|
|
1066
|
+
'--font-heading',
|
|
1067
|
+
'--font-sans',
|
|
1068
|
+
'--font-mono',
|
|
1069
|
+
'--text-xxs',
|
|
1070
|
+
'--text-xs',
|
|
1071
|
+
'--text-sm',
|
|
1072
|
+
'--text-base',
|
|
1073
|
+
'--text-lg',
|
|
1074
|
+
'--text-xl',
|
|
1075
|
+
'--text-2xl',
|
|
1076
|
+
'--text-3xl',
|
|
1077
|
+
'--text-4xl',
|
|
1078
|
+
'--text-5xl',
|
|
1079
|
+
'--spacing-space-2xs',
|
|
1080
|
+
'--spacing-space-xs',
|
|
1081
|
+
'--spacing-space-sm',
|
|
1082
|
+
'--spacing-space-md',
|
|
1083
|
+
'--spacing-space-lg',
|
|
1084
|
+
'--spacing-space-xl',
|
|
1085
|
+
'--spacing-space-2xl',
|
|
1086
|
+
'--radius-radius-sm',
|
|
1087
|
+
'--radius-radius',
|
|
1088
|
+
'--radius-radius-lg',
|
|
1089
|
+
'--spacing-action-xs',
|
|
1090
|
+
'--spacing-action-sm',
|
|
1091
|
+
'--spacing-action',
|
|
1092
|
+
'--spacing-action-lg',
|
|
1093
|
+
'--spacing-row-x',
|
|
1094
|
+
'--spacing-row-y-sm',
|
|
1095
|
+
'--spacing-row-y',
|
|
1096
|
+
'--spacing-row-y-lg',
|
|
1097
|
+
'--spacing-surface-sm',
|
|
1098
|
+
'--spacing-surface',
|
|
1099
|
+
'--spacing-shell-header',
|
|
1100
|
+
'--spacing-shell-header-control',
|
|
1101
|
+
'--spacing-shell-sidebar',
|
|
1102
|
+
]);
|
|
1103
|
+
|
|
1104
|
+
const PUBLIC_TOKEN_SOURCES = new Set([
|
|
1105
|
+
'tokens/foundation.css',
|
|
1106
|
+
'tokens/primitives.css',
|
|
1107
|
+
'tokens/layout.css',
|
|
1108
|
+
'tokens/components.css',
|
|
1109
|
+
]);
|
|
1110
|
+
|
|
1111
|
+
function isPublicStructuralVariable(record: CssVariableRecord): boolean {
|
|
1112
|
+
if (!PUBLIC_TOKEN_SOURCES.has(record.source)) return false;
|
|
1113
|
+
if (record.scope === ':root') return PUBLIC_ROOT_VARIABLES.has(record.name);
|
|
1114
|
+
if (record.scope === '@theme inline') return PUBLIC_THEME_VARIABLES.has(record.name);
|
|
1115
|
+
return false;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
function inferPurpose(name: string): string {
|
|
1119
|
+
if (name.startsWith('--color-')) return \`Tailwind color alias for \${name.replace('--color-', '').replace(/-/g, ' ')}.\`;
|
|
1120
|
+
if (name.startsWith('--shadow-')) return \`Shadow elevation token \${name.replace('--shadow-', '')}.\`;
|
|
1121
|
+
if (name === '--radius') return 'Central shadcn radius token that derived radius utilities alias.';
|
|
1122
|
+
if (name.startsWith('--radius-')) return \`Derived radius token for rounded-\${name.replace('--radius-', '')}.\`;
|
|
1123
|
+
if (name.startsWith('--sidebar-')) return \`Sidebar theme token for \${name.replace('--sidebar-', '').replace(/-/g, ' ')}.\`;
|
|
1124
|
+
if (name.startsWith('--chart-')) return \`Chart palette token for multi-series charts, not semantic status color.\`;
|
|
1125
|
+
if (name.startsWith('--inverse-')) return \`Inverse-surface token for dark or artwork-backed surfaces.\`;
|
|
1126
|
+
if (name.endsWith('-foreground')) return \`Readable foreground token paired with \${name.replace(/^--/, '').replace(/-foreground$/, '').replace(/-/g, ' ')}.\`;
|
|
1127
|
+
if (isThemePaletteVariable(name)) return \`Shadcn theme color token for \${name.replace(/^--/, '').replace(/-/g, ' ')}.\`;
|
|
1128
|
+
return \`Controls \${name.replace(/^--/, '').replace(/-/g, ' ')}.\`;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
function isThemePaletteVariable(name: string): boolean {
|
|
1132
|
+
return [
|
|
1133
|
+
'--background',
|
|
1134
|
+
'--foreground',
|
|
1135
|
+
'--card',
|
|
1136
|
+
'--card-foreground',
|
|
1137
|
+
'--popover',
|
|
1138
|
+
'--popover-foreground',
|
|
1139
|
+
'--primary',
|
|
1140
|
+
'--primary-foreground',
|
|
1141
|
+
'--secondary',
|
|
1142
|
+
'--secondary-foreground',
|
|
1143
|
+
'--muted',
|
|
1144
|
+
'--muted-foreground',
|
|
1145
|
+
'--accent',
|
|
1146
|
+
'--accent-foreground',
|
|
1147
|
+
'--destructive',
|
|
1148
|
+
'--destructive-foreground',
|
|
1149
|
+
'--success',
|
|
1150
|
+
'--success-foreground',
|
|
1151
|
+
'--info',
|
|
1152
|
+
'--info-foreground',
|
|
1153
|
+
'--warning',
|
|
1154
|
+
'--warning-foreground',
|
|
1155
|
+
'--error',
|
|
1156
|
+
'--error-foreground',
|
|
1157
|
+
'--main',
|
|
1158
|
+
'--main-foreground',
|
|
1159
|
+
'--border',
|
|
1160
|
+
'--input',
|
|
1161
|
+
'--ring',
|
|
1162
|
+
].includes(name) || name.startsWith('--inverse-') || name.startsWith('--sidebar-') || name.startsWith('--chart-');
|
|
1163
|
+
}
|
|
1164
|
+
`;function Q(e){let t={code:`code`,li:`li`,p:`p`,ul:`ul`,...e.components};return M||$(`Examples`,!1),R||$(`Examples.RuntimeOverrideDemo`,!0),L||$(`Examples.ScalePreview`,!0),z||$(`Examples.VariableExplorer`,!0),(0,A.jsxs)(r,{title:`CSS Variables`,description:`Token reference for the compact structural contract that controls typography, spacing, density, controls, rows, surfaces, media, and shell dimensions.`,layer:`base`,status:`ready`,sourcePath:`src/css/themes/shadcn.default.css + src/css/tokens/*`,children:[(0,A.jsxs)(o,{title:`Overview`,id:`overview`,children:[(0,A.jsxs)(t.p,{children:[`The package uses shadcn theme variables in `,(0,A.jsx)(t.code,{children:`src/css/themes/shadcn.default.css`}),`
|
|
1165
|
+
for color, radius, shadow, charts, sidebar, and base surfaces. Library-specific
|
|
1166
|
+
scale lives in `,(0,A.jsx)(t.code,{children:`src/css/tokens/*`}),`: text scale, spacing scale, density, shared
|
|
1167
|
+
action/control height, row rhythm, surface padding, media sizing, shell sizing,
|
|
1168
|
+
and Tailwind utility aliases that route classes like `,(0,A.jsx)(t.code,{children:`h-control`}),`,
|
|
1169
|
+
`,(0,A.jsx)(t.code,{children:`h-action`}),`, `,(0,A.jsx)(t.code,{children:`gap-space-md`}),`, `,(0,A.jsx)(t.code,{children:`py-row-y`}),`, `,(0,A.jsx)(t.code,{children:`px-surface`}),`, and `,(0,A.jsx)(t.code,{children:`size-avatar`}),`
|
|
1170
|
+
through CSS variables.`]}),(0,A.jsxs)(t.p,{children:[`Normal examples omit redundant `,(0,A.jsx)(t.code,{children:`size`}),` props. Consumers should tune scale from
|
|
1171
|
+
`,(0,A.jsx)(t.code,{children:`:root`}),`, a theme stylesheet, a density wrapper such as
|
|
1172
|
+
`,(0,A.jsx)(t.code,{children:`[data-density='compact']`}),`, or `,(0,A.jsx)(t.code,{children:`<UIProvider>`}),` defaults. Component `,(0,A.jsx)(t.code,{children:`size`}),` props
|
|
1173
|
+
are intentionally narrow where they exist (`,(0,A.jsx)(t.code,{children:`default`}),` / `,(0,A.jsx)(t.code,{children:`small`}),` for controls,
|
|
1174
|
+
forms, tables, badges, items, and cards). Prefer the structural variables for
|
|
1175
|
+
product-wide changes.`]})]}),(0,A.jsxs)(o,{title:`Scale behavior`,id:`scale-behavior`,children:[(0,A.jsx)(c,{name:`ScalePreview`,source:Z,children:(0,A.jsx)(L,{})}),(0,A.jsx)(c,{name:`RuntimeOverrideDemo`,source:Z,children:(0,A.jsx)(R,{})})]}),(0,A.jsxs)(o,{title:`Reference`,id:`reference`,children:[(0,A.jsx)(t.p,{children:`The explorer parses the standalone token files and lists the public structural
|
|
1176
|
+
contract by default. Component-family compatibility aliases are intentionally
|
|
1177
|
+
absent; new code must use the compact structural contract.`}),(0,A.jsx)(c,{name:`VariableExplorer`,source:Z,layout:`flush`,children:(0,A.jsx)(z,{})})]}),(0,A.jsx)(o,{title:`Usage notes`,id:`usage-notes`,children:(0,A.jsxs)(t.ul,{children:[`
|
|
1178
|
+
`,(0,A.jsxs)(t.li,{children:[`Use root scale knobs first: `,(0,A.jsx)(t.code,{children:`--text-scale`}),`, `,(0,A.jsx)(t.code,{children:`--space-scale`}),`, and
|
|
1179
|
+
`,(0,A.jsx)(t.code,{children:`--density-scale`}),`.`]}),`
|
|
1180
|
+
`,(0,A.jsxs)(t.li,{children:[`Use structural variables when a product needs more precision, such as
|
|
1181
|
+
`,(0,A.jsx)(t.code,{children:`--height-action`}),`, `,(0,A.jsx)(t.code,{children:`--height-control`}),`, `,(0,A.jsx)(t.code,{children:`--rounded-radius`}),`, `,(0,A.jsx)(t.code,{children:`--control-x`}),`,
|
|
1182
|
+
`,(0,A.jsx)(t.code,{children:`--row-y`}),`, `,(0,A.jsx)(t.code,{children:`--surface-x`}),`, `,(0,A.jsx)(t.code,{children:`--icon`}),`, `,(0,A.jsx)(t.code,{children:`--avatar`}),`, or
|
|
1183
|
+
`,(0,A.jsx)(t.code,{children:`--shell-sidebar-width`}),`.`]}),`
|
|
1184
|
+
`,(0,A.jsxs)(t.li,{children:[`Use Tailwind aliases inside package components and app CSS instead of
|
|
1185
|
+
arbitrary `,(0,A.jsx)(t.code,{children:`var(...)`}),` utilities: `,(0,A.jsx)(t.code,{children:`h-control`}),`, `,(0,A.jsx)(t.code,{children:`text-sm`}),`,
|
|
1186
|
+
`,(0,A.jsx)(t.code,{children:`gap-space-md`}),`, `,(0,A.jsx)(t.code,{children:`py-row-y`}),`, `,(0,A.jsx)(t.code,{children:`px-surface`}),`, `,(0,A.jsx)(t.code,{children:`size-icon`}),`, `,(0,A.jsx)(t.code,{children:`bg-card`}),`.`]}),`
|
|
1187
|
+
`,(0,A.jsxs)(t.li,{children:[`Keep shadcn color, radius, and shadow variables in
|
|
1188
|
+
`,(0,A.jsx)(t.code,{children:`src/css/themes/shadcn.default.css`}),`. Sizing, density, states, layout, and
|
|
1189
|
+
component knobs belong in `,(0,A.jsx)(t.code,{children:`src/css/tokens/*`}),`.`]}),`
|
|
1190
|
+
`]})})]})}function ge(e={}){let{wrapper:t}=e.components||{};return t?(0,A.jsx)(t,{...e,children:(0,A.jsx)(Q,{...e})}):Q(e)}function $(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{ge as default};
|