admin-ui-starter-kit 0.7.0 → 0.7.1
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/.agents/skills/component-library-rules/references/components/INDEX.json +1 -1
- package/.agents/skills/component-library-rules/references/components/layout__layout-containers.md +43 -1
- package/dist/_shared/containers-CclPUW7j.cjs +2 -0
- package/dist/_shared/containers-CclPUW7j.cjs.map +1 -0
- package/dist/_shared/containers-GDaJ3SOV.js +101 -0
- package/dist/_shared/containers-GDaJ3SOV.js.map +1 -0
- package/dist/_shared/data-display-0uNuZSN7.js +1878 -0
- package/dist/_shared/data-display-0uNuZSN7.js.map +1 -0
- package/dist/_shared/data-display-DRa39LH8.cjs +2 -0
- package/dist/_shared/data-display-DRa39LH8.cjs.map +1 -0
- package/dist/_shared/layout-DN8tzvlm.cjs +2 -0
- package/dist/_shared/layout-DN8tzvlm.cjs.map +1 -0
- package/dist/_shared/layout-DNrUkvzF.js +268 -0
- package/dist/_shared/layout-DNrUkvzF.js.map +1 -0
- package/dist/components/composed/ai/index.cjs +1 -1
- package/dist/components/composed/ai/index.js +1 -1
- package/dist/components/composed/cards/index.cjs +1 -1
- package/dist/components/composed/cards/index.js +1 -1
- package/dist/components/composed/commerce/index.cjs +1 -1
- package/dist/components/composed/commerce/index.js +1 -1
- 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/features/products/index.cjs +1 -1
- package/dist/components/features/products/index.js +1 -1
- package/dist/components/features/resource/index.cjs +1 -1
- package/dist/components/features/resource/index.js +1 -1
- package/dist/components/layout/containers/index.cjs +1 -1
- package/dist/components/layout/containers/index.d.ts +1 -0
- package/dist/components/layout/containers/index.d.ts.map +1 -1
- package/dist/components/layout/containers/index.js +2 -2
- package/dist/components/layout/containers/two-column-layout.d.ts +43 -0
- package/dist/components/layout/containers/two-column-layout.d.ts.map +1 -0
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +8 -8
- package/dist/components/layout/page/index.cjs +1 -1
- package/dist/components/layout/page/index.js +1 -1
- package/dist/showcase/assets/AreaChart-D_z9eYQj.js +6 -0
- package/dist/showcase/assets/CompositeItem-BSVzIXzg.js +1 -0
- package/dist/showcase/assets/CompositeRoot-Ewl7bgm-.js +1 -0
- package/dist/showcase/assets/DialogTrigger-CD-DcY4b.js +1 -0
- package/dist/showcase/assets/LabelableContext-BdRVtvs6.js +1 -0
- package/dist/showcase/assets/MenuTrigger-B8Y7BUCN.js +1 -0
- package/dist/showcase/assets/PreviewLayout-CE0fmzoc.js +1 -0
- package/dist/showcase/assets/RadioGroup-Qaf-akL1.js +1 -0
- package/dist/showcase/assets/ScrollAreaCorner-BQR87jzh.js +1 -0
- package/dist/showcase/assets/Separator-Cymh2jzU.js +1 -0
- package/dist/showcase/assets/ToolbarRootContext-P5BSzPlo.js +1 -0
- package/dist/showcase/assets/accordion-BGUvdQ5Z.js +171 -0
- package/dist/showcase/assets/accordion-variants-B56z6tQI.js +1 -0
- package/dist/showcase/assets/action-menu-C3DOQfP4.js +1 -0
- package/dist/showcase/assets/actions-DHG4zJRu.js +38 -0
- package/dist/showcase/assets/actions-IxPK0biY.js +310 -0
- package/dist/showcase/assets/activities-TK5Lr8Wb.js +500 -0
- package/dist/showcase/assets/activities-feed-card-tgQKimyh.js +1 -0
- package/dist/showcase/assets/admin-BQrDKNJa.js +140 -0
- package/dist/showcase/assets/ai-artifact-Cv7LTw1V.js +2 -0
- package/dist/showcase/assets/ai-chat-Dmg2Tqf1.js +568 -0
- package/dist/showcase/assets/ai-elements-BmokxSCy.js +387 -0
- package/dist/showcase/assets/ai-tool-call-6qESA6We.js +1 -0
- package/dist/showcase/assets/ai-xShhEkrM.js +207 -0
- package/dist/showcase/assets/alert--MONSwFW.js +1 -0
- package/dist/showcase/assets/alert-BuMNu_BZ.js +62 -0
- package/dist/showcase/assets/alert-z1RP5MhA.js +93 -0
- package/dist/showcase/assets/api-key-list-BhmXUJty.js +73 -0
- package/dist/showcase/assets/api-key-list-hPTN6gwa.js +1 -0
- package/dist/showcase/assets/app-sidebar-CY-XpIu6.js +1 -0
- package/dist/showcase/assets/arrow-down-D0XbhSDi.js +1 -0
- package/dist/showcase/assets/arrow-left-DBxsWbzL.js +1 -0
- package/dist/showcase/assets/arrow-right-Dk80zKWl.js +1 -0
- package/dist/showcase/assets/arrow-up-BiZ_VvpP.js +1 -0
- package/dist/showcase/assets/arrow-up-right-OdmPQEwY.js +1 -0
- package/dist/showcase/assets/avatar-BThv_quW.js +1 -0
- package/dist/showcase/assets/avatar-Bcy2snIC.js +67 -0
- package/dist/showcase/assets/avatar-Ca3to6dB.js +57 -0
- package/dist/showcase/assets/avatar-Dba0yVei.js +1 -0
- package/dist/showcase/assets/badge-A1w2eIaM.js +31 -0
- package/dist/showcase/assets/badge-check-DyqZ9Ff8.js +1 -0
- package/dist/showcase/assets/bell-DyqsYdKK.js +1 -0
- package/dist/showcase/assets/boolean-indicator-gaFjXuY1.js +1 -0
- package/dist/showcase/assets/bot-BGQvS_p9.js +1 -0
- package/dist/showcase/assets/box-BoFEAPr6.js +1 -0
- package/dist/showcase/assets/braces-D88Ve7g-.js +1 -0
- package/dist/showcase/assets/brain-hIv2TdLu.js +1 -0
- package/dist/showcase/assets/brand-CiWM8HzB.js +36 -0
- package/dist/showcase/assets/breadcrumb-DlHNoCer.js +1 -0
- package/dist/showcase/assets/breadcrumb-Dy-UbgK5.js +52 -0
- package/dist/showcase/assets/breadcrumbs-BoXmoDHt.js +1 -0
- package/dist/showcase/assets/briefcase-BeN7dk_G.js +1 -0
- package/dist/showcase/assets/building-2-ICycTKXZ.js +1 -0
- package/dist/showcase/assets/button-BADo_inb.js +44 -0
- package/dist/showcase/assets/button-group-BGkXY3HC.js +1 -0
- package/dist/showcase/assets/buttons-3z50eWMp.js +272 -0
- package/dist/showcase/assets/calendar-BAfoc476.js +1 -0
- package/dist/showcase/assets/calendar-DNxQUmlO.js +16 -0
- package/dist/showcase/assets/calendar-days-D86Fv-vG.js +1 -0
- package/dist/showcase/assets/calendar-pjS8iCZE.js +1 -0
- package/dist/showcase/assets/camera-DxWfctRe.js +1 -0
- package/dist/showcase/assets/card-BazLaDA9.js +188 -0
- package/dist/showcase/assets/card-F8Ona144.js +1 -0
- package/dist/showcase/assets/card-checkbox-group-DtK7aVPU.js +1 -0
- package/dist/showcase/assets/card-primitives-DzqLvy5f.js +1 -0
- package/dist/showcase/assets/card-radio-group-EjPkSg-w.js +1 -0
- package/dist/showcase/assets/cards--V2D7Sft.js +354 -0
- package/dist/showcase/assets/carousel-BNmTHQiN.js +452 -0
- package/dist/showcase/assets/cell-renderers-BdpeNGHs.js +1 -0
- package/dist/showcase/assets/chart-column-CJx3qWPs.js +1 -0
- package/dist/showcase/assets/chart-p7dUP6Mo.js +358 -0
- package/dist/showcase/assets/checkbox-BBxn_hxI.js +1 -0
- package/dist/showcase/assets/checkbox-BEyESyQ2.js +1 -0
- package/dist/showcase/assets/chevron-down-mjLUdP6b.js +1 -0
- package/dist/showcase/assets/chevron-left-DOofVtEd.js +1 -0
- package/dist/showcase/assets/chevron-up-BJk6z8Fg.js +1 -0
- package/dist/showcase/assets/chevrons-up-down-C-9zUpl_.js +1 -0
- package/dist/showcase/assets/circle-OmLq29jq.js +1 -0
- package/dist/showcase/assets/circle-alert-DSpR2pdl.js +1 -0
- package/dist/showcase/assets/circle-check-BjuHEm7p.js +1 -0
- package/dist/showcase/assets/circle-check-big-BuYdgE3Q.js +1 -0
- package/dist/showcase/assets/circle-dot-DlYGMuaF.js +1 -0
- package/dist/showcase/assets/circle-question-mark-BlgRDDu3.js +1 -0
- package/dist/showcase/assets/circle-x-BavQ4wuc.js +1 -0
- package/dist/showcase/assets/clock-3-CzeN1Iwk.js +1 -0
- package/dist/showcase/assets/clock-CZYS08d1.js +1 -0
- package/dist/showcase/assets/code-xml-D4NwoTpD.js +1 -0
- package/dist/showcase/assets/collapsible-BtawbO_2.js +1 -0
- package/dist/showcase/assets/collapsible-CJXE3z1T.js +27 -0
- package/dist/showcase/assets/collapsible-ws3VKPg9.js +1 -0
- package/dist/showcase/assets/combobox-Btpk7-vH.js +685 -0
- package/dist/showcase/assets/command-CoiVI2_b.js +1 -0
- package/dist/showcase/assets/command-Dkn9XqF2.js +1 -0
- package/dist/showcase/assets/comment-composer-BNnVQo1O.js +1 -0
- package/dist/showcase/assets/comment-item-BiIgcrPQ.js +1 -0
- package/dist/showcase/assets/comments-CvzWz23L.js +357 -0
- package/dist/showcase/assets/commerce-CBHLQF8q.js +19 -0
- package/dist/showcase/assets/commerce-address-card-Bqm0FQkG.js +33 -0
- package/dist/showcase/assets/commerce-cart-summary-BtGCOEun.js +43 -0
- package/dist/showcase/assets/commerce-coupon-input-I3FY6pgV.js +11 -0
- package/dist/showcase/assets/commerce-discount-stack-CWqyobuL.js +17 -0
- package/dist/showcase/assets/commerce-inventory-section-rBtMNLTt.js +123 -0
- package/dist/showcase/assets/commerce-loyalty-points-ne7c2ObQ.js +19 -0
- package/dist/showcase/assets/commerce-order-status-eLtUC1iE.js +21 -0
- package/dist/showcase/assets/commerce-payment-method-B3yFyhpS.js +17 -0
- package/dist/showcase/assets/commerce-refund-status-C1pzTSus.js +17 -0
- package/dist/showcase/assets/commerce-seo-listing-CBk_c8ru.js +61 -0
- package/dist/showcase/assets/commerce-shipment-tracking-auiKGGyV.js +24 -0
- package/dist/showcase/assets/commerce-subscription-summary-BCX4WxbS.js +25 -0
- package/dist/showcase/assets/commerce-tax-breakdown-D4F5dOjL.js +19 -0
- package/dist/showcase/assets/commerce-upcoming-booking-qlWKp0kq.js +20 -0
- package/dist/showcase/assets/commerce-voucher-entry-CqCuoKHq.js +19 -0
- package/dist/showcase/assets/composite-DeYDU7hg.js +1 -0
- package/dist/showcase/assets/conditional-rendering-CFHxzngX.js +1 -0
- package/dist/showcase/assets/contact-card-CxVeuwp_.js +65 -0
- package/dist/showcase/assets/content-container-CJN01OtO.js +1 -0
- package/dist/showcase/assets/copyable-DajG-Sgx.js +1 -0
- package/dist/showcase/assets/copyable-zOzqOOBl.js +96 -0
- package/dist/showcase/assets/course-card-DO8z-KeM.js +77 -0
- package/dist/showcase/assets/cpu-C8IgjvoP.js +1 -0
- package/dist/showcase/assets/credit-card-XYEEHtzk.js +1 -0
- package/dist/showcase/assets/css-variables-BglvDaVO.js +1223 -0
- package/dist/showcase/assets/currency-Bso6kejw.js +148 -0
- package/dist/showcase/assets/dark-surfaces-5WTjzxYN.js +90 -0
- package/dist/showcase/assets/data-view-B7uRWXOO.js +4 -0
- package/dist/showcase/assets/data-view-C4bGuOlY.js +124 -0
- package/dist/showcase/assets/database-CZLgFKRy.js +1 -0
- package/dist/showcase/assets/date-block-BicWaKPj.js +1 -0
- package/dist/showcase/assets/date-block-yRFY8Ne5.js +1 -0
- package/dist/showcase/assets/date-picker-CskCoiwf.js +1 -0
- package/dist/showcase/assets/date-pickers-fcqdsvef.js +73 -0
- package/dist/showcase/assets/dense-info-Dg38xVsF.js +106 -0
- package/dist/showcase/assets/design-system-consistency-DFa3RNWm.js +264 -0
- package/dist/showcase/assets/dialog-C4fhqXD0.js +1 -0
- package/dist/showcase/assets/dialog-CN_gfVV2.js +1 -0
- package/dist/showcase/assets/dialog-CoJdLYZ8.js +1 -0
- package/dist/showcase/assets/display-utilities-DB0eXAdH.js +4 -0
- package/dist/showcase/assets/display-utilities.examples-ez3DfdgN.js +309 -0
- package/dist/showcase/assets/dist-5H2NtsLp.js +45 -0
- package/dist/showcase/assets/dist-SJMpFlRc.js +1 -0
- package/dist/showcase/assets/dollar-sign-LBLhl0Y2.js +1 -0
- package/dist/showcase/assets/download-BkOWnQEj.js +1 -0
- package/dist/showcase/assets/dropdown-menu-5yqchTEF.js +1 -0
- package/dist/showcase/assets/dropzone-CJHqIcHB.js +1 -0
- package/dist/showcase/assets/earth-BGrx2u2i.js +1 -0
- package/dist/showcase/assets/ellipsis-Dumpj4aE.js +1 -0
- package/dist/showcase/assets/ellipsis-vertical-h1O9pibc.js +1 -0
- package/dist/showcase/assets/empty-Cc8JP5--.js +1 -0
- package/dist/showcase/assets/empty-item-C-v-Akyi.js +49 -0
- package/dist/showcase/assets/empty-state-B7BQDoeL.js +1 -0
- package/dist/showcase/assets/empty-state-BSvZNFnQ.js +190 -0
- package/dist/showcase/assets/enhanced-activities-D7g7ZD9m.js +357 -0
- package/dist/showcase/assets/enhanced-combobox-4Olgu--e.js +1 -0
- package/dist/showcase/assets/esm-CFFDcW-Z.js +2 -0
- package/dist/showcase/assets/event-calendar-vdFWcI49.js +138 -0
- package/dist/showcase/assets/event-log-BbHM_3Ko.js +330 -0
- package/dist/showcase/assets/example-BsDQngs7.js +1 -0
- package/dist/showcase/assets/external-link-BvVwsJxR.js +1 -0
- package/dist/showcase/assets/eye-CAeo-GNe.js +1 -0
- package/dist/showcase/assets/feature-announcement-7hZGrJd6.js +34 -0
- package/dist/showcase/assets/file-D4d3b9bx.js +1 -0
- package/dist/showcase/assets/file-text-C59ToXmU.js +1 -0
- package/dist/showcase/assets/filter-layout-BjoG6qxP.js +1 -0
- package/dist/showcase/assets/filters-CrE_UGbo.js +139 -0
- package/dist/showcase/assets/fixtures-ClOCQD2a.js +1 -0
- package/dist/showcase/assets/flag-CuF52WEl.js +1 -0
- package/dist/showcase/assets/folder-open-BLLtgh4E.js +1 -0
- package/dist/showcase/assets/form-field-D5kwgD4P.js +1 -0
- package/dist/showcase/assets/format-LvvHefMj.js +1 -0
- package/dist/showcase/assets/forms-Ck6hPzLP.js +915 -0
- package/dist/showcase/assets/funnel-Bvp5cFZt.js +1 -0
- package/dist/showcase/assets/generic-Cownd_Wk.js +1 -0
- package/dist/showcase/assets/getPseudoElementBounds-CPnjAO3K.js +1 -0
- package/dist/showcase/assets/gift-BCQpmV33.js +1 -0
- package/dist/showcase/assets/giftcard-cards-B_78Meny.js +85 -0
- package/dist/showcase/assets/git-branch-r0dDGCKy.js +1 -0
- package/dist/showcase/assets/global-search-DD9cGOt5.js +1 -0
- package/dist/showcase/assets/global-search-fTKzzx8k.js +215 -0
- package/dist/showcase/assets/globe-RF5bwiar.js +1 -0
- package/dist/showcase/assets/gradient-card-BDJes3UK.js +58 -0
- package/dist/showcase/assets/grip-vertical-qqe2NqfZ.js +1 -0
- package/dist/showcase/assets/hash-D9_KYvHs.js +1 -0
- package/dist/showcase/assets/header-XNCAB6Rs.js +1 -0
- package/dist/showcase/assets/header-notifications-BdWsVoN3.js +1 -0
- package/dist/showcase/assets/heart-C56rAanb.js +1 -0
- package/dist/showcase/assets/hooks-fDydjf6M.js +220 -0
- package/dist/showcase/assets/house-DbYM6er_.js +1 -0
- package/dist/showcase/assets/icon-badge-DWQE6dAm.js +37 -0
- package/dist/showcase/assets/icon-badge-ruuI6tt0.js +1 -0
- package/dist/showcase/assets/image-DCpC2weW.js +1 -0
- package/dist/showcase/assets/inbox-cvR2MbZq.js +1 -0
- package/dist/showcase/assets/index-B4sKWDcN.js +10 -0
- package/dist/showcase/assets/index-Dy3INIq2.css +2 -0
- package/dist/showcase/assets/inertValue-DhXA8ytu.js +1 -0
- package/dist/showcase/assets/info-DXwnIz56.js +1 -0
- package/dist/showcase/assets/inline-stat-C9Syz6in.js +1 -0
- package/dist/showcase/assets/inline-stat-CDcWILUM.js +15 -0
- package/dist/showcase/assets/input-CLQIEOQ4.js +1 -0
- package/dist/showcase/assets/input-D70ed8oB.js +1 -0
- package/dist/showcase/assets/input-group-CMJ2yUuD.js +47 -0
- package/dist/showcase/assets/input-group-DwZov3Y6.js +1 -0
- package/dist/showcase/assets/inputs-DQWbPvC8.js +155 -0
- package/dist/showcase/assets/installation-B2BcSkJr.js +134 -0
- package/dist/showcase/assets/invoice-header-Ds4A6mLs.js +36 -0
- package/dist/showcase/assets/invoice-items-LFYeS0eR.js +36 -0
- package/dist/showcase/assets/invoice-mini-BMVm8x43.js +14 -0
- package/dist/showcase/assets/invoice-table-BVZ-PtSC.js +30 -0
- package/dist/showcase/assets/isSameDay-BYK9pmDX.js +1 -0
- package/dist/showcase/assets/isToday-B3-xb910.js +1 -0
- package/dist/showcase/assets/italic-CPSVPc63.js +1 -0
- package/dist/showcase/assets/item-KsGEgVjl.js +1 -0
- package/dist/showcase/assets/item-WOhHNpnr.js +1 -0
- package/dist/showcase/assets/item-avTNp1z7.js +140 -0
- package/dist/showcase/assets/kanban-DwVW3Lab.js +188 -0
- package/dist/showcase/assets/key-round-CNEqnMGG.js +1 -0
- package/dist/showcase/assets/label-BZzl85ev.js +1 -0
- package/dist/showcase/assets/languages-BWquWXSu.js +1 -0
- package/dist/showcase/assets/layers-hYbCFSpT.js +1 -0
- package/dist/showcase/assets/layout-app-shell-BRLO7lFp.js +608 -0
- package/dist/showcase/assets/layout-auth-ysobcsYs.js +790 -0
- package/dist/showcase/assets/layout-containers-BoVYkBOk.js +141 -0
- package/dist/showcase/assets/layout-header-BnkgzPgS.js +203 -0
- package/dist/showcase/assets/layout-page-CdzQQr2_.js +315 -0
- package/dist/showcase/assets/layout-primitives-BXP_nFQX.js +34 -0
- package/dist/showcase/assets/layout-sidebar-tPHppANn.js +224 -0
- package/dist/showcase/assets/layout-users-DgChX6ig.js +117 -0
- package/dist/showcase/assets/layout-workspace-u1kkLDCd.js +191 -0
- package/dist/showcase/assets/lib-VG1Lf4Lk.js +1 -0
- package/dist/showcase/assets/list-checks-CUXbiTmk.js +1 -0
- package/dist/showcase/assets/lock-BwI_fNQW.js +1 -0
- package/dist/showcase/assets/lock-keyhole-DKi16lNp.js +1 -0
- package/dist/showcase/assets/mail-BlH-8y33.js +1 -0
- package/dist/showcase/assets/mail-check-DrNT7RWT.js +1 -0
- package/dist/showcase/assets/map-BKztQq4-.js +124 -0
- package/dist/showcase/assets/map-pin-BwGJCGY8.js +1 -0
- package/dist/showcase/assets/media-library-CUI_IPkM.js +699 -0
- package/dist/showcase/assets/mention-inline-suggestions-BIIRKRpU.js +1 -0
- package/dist/showcase/assets/mentions-CTkcQNFc.js +138 -0
- package/dist/showcase/assets/menus-DilZRggQ.js +171 -0
- package/dist/showcase/assets/message-square-Cjuladix.js +1 -0
- package/dist/showcase/assets/metadata-list-C6CF85o9.js +1 -0
- package/dist/showcase/assets/metadata-list-PqngP9QU.js +286 -0
- package/dist/showcase/assets/metric-C5Wrr90_.js +1 -0
- package/dist/showcase/assets/metric-bar-CIesI_gw.js +1 -0
- package/dist/showcase/assets/metric-grid-FlL7atag.js +1 -0
- package/dist/showcase/assets/metric-trend-chip-DxTiaCTB.js +1 -0
- package/dist/showcase/assets/metrics-analytics-bar-YabnSIOP.js +44 -0
- package/dist/showcase/assets/metrics-analytics-cards-Buas8exV.js +50 -0
- package/dist/showcase/assets/metrics-comparison-Jx1WGPZL.js +76 -0
- package/dist/showcase/assets/metrics-heatmap-C5cB95P9.js +27 -0
- package/dist/showcase/assets/metrics-inline-badge-D7r40gFm.js +17 -0
- package/dist/showcase/assets/metrics-kpi-row-CweMAqSm.js +31 -0
- package/dist/showcase/assets/metrics-micro-grid-UUa2fUGF.js +42 -0
- package/dist/showcase/assets/metrics-overview-eGnNPvwF.js +192 -0
- package/dist/showcase/assets/metrics-stat-cards-CEcX0zqZ.js +54 -0
- package/dist/showcase/assets/minus-CVVsGq91.js +1 -0
- package/dist/showcase/assets/money-display-Chu4t6MY.js +1 -0
- package/dist/showcase/assets/money-display-DNs6PXCm.js +3 -0
- package/dist/showcase/assets/month-year-picker-B0odiuhf.js +1 -0
- package/dist/showcase/assets/navigation-CQwt1f4b.js +90 -0
- package/dist/showcase/assets/navigation-KQxXtiL6.js +231 -0
- package/dist/showcase/assets/navigation-extras-2uJbGPhJ.js +43 -0
- package/dist/showcase/assets/notification-banner-Cx1Qm0ij.js +1 -0
- package/dist/showcase/assets/onboarding-checklist-CAHajXzP.js +119 -0
- package/dist/showcase/assets/overflow-tab-bar-gNULx5Wr.js +1 -0
- package/dist/showcase/assets/overlays-CaSVa-L2.js +159 -0
- package/dist/showcase/assets/overlays-zjTanrAP.js +408 -0
- package/dist/showcase/assets/overview-EZ_RMkeD.js +184 -0
- package/dist/showcase/assets/package-CqQQqj6Y.js +1 -0
- package/dist/showcase/assets/package-check-Nqr5Lv95.js +1 -0
- package/dist/showcase/assets/page-BTXFFFwT.js +1 -0
- package/dist/showcase/assets/page-action-button-NJqE-qP0.js +1 -0
- package/dist/showcase/assets/page-header-AFTuoGVw.js +1 -0
- package/dist/showcase/assets/pagination-B1Ewc7Co.js +1 -0
- package/dist/showcase/assets/pagination-DOdLcTiT.js +42 -0
- package/dist/showcase/assets/paperclip-D0oBI19t.js +1 -0
- package/dist/showcase/assets/password-input-C5MrNrHm.js +1 -0
- package/dist/showcase/assets/pencil-DdCEPDLe.js +1 -0
- package/dist/showcase/assets/phone-BdGmQ_eI.js +1 -0
- package/dist/showcase/assets/placeholder-pattern-BnyJukU0.js +1 -0
- package/dist/showcase/assets/plus-Dp_nZNjk.js +1 -0
- package/dist/showcase/assets/popover-BP4R2w67.js +1 -0
- package/dist/showcase/assets/popover-DfGXC2pN.js +1 -0
- package/dist/showcase/assets/popover-menu-DGkCA4YC.js +1 -0
- package/dist/showcase/assets/product-empty-state-CKylTX_h.js +1 -0
- package/dist/showcase/assets/product-option-action-menu-vqslODBe.js +1 -0
- package/dist/showcase/assets/product-rows-CWy63Dk5.js +1 -0
- package/dist/showcase/assets/product-structure-card-EJY038tP.js +1 -0
- package/dist/showcase/assets/product-variant-action-menu-CnRJscP3.js +1 -0
- package/dist/showcase/assets/products-jpCjHLbZ.js +61 -0
- package/dist/showcase/assets/progress-D19PRprP.js +1 -0
- package/dist/showcase/assets/progress-UbtWRfF2.js +18 -0
- package/dist/showcase/assets/progress-twHfoY8k.js +1 -0
- package/dist/showcase/assets/props-table-aynAz90t.js +1 -0
- package/dist/showcase/assets/props.generated-IUhT2lh_.json +42950 -0
- package/dist/showcase/assets/qr-code-ywR6kVzD.js +1 -0
- package/dist/showcase/assets/quote-BFMPQa3L.js +1 -0
- package/dist/showcase/assets/receipt-CcTseXcy.js +1 -0
- package/dist/showcase/assets/receipt-text-C9BMAbTL.js +1 -0
- package/dist/showcase/assets/refinement-guide-lotMKye4.js +189 -0
- package/dist/showcase/assets/refresh-cw-DpfoVhbc.js +1 -0
- package/dist/showcase/assets/resolveValueLabel-mzTN-8j9.js +1 -0
- package/dist/showcase/assets/resource-CwHVDrOk.js +1 -0
- package/dist/showcase/assets/resource-kPziVtVy.js +139 -0
- package/dist/showcase/assets/resource-selector-card-xIysiHOg.js +43 -0
- package/dist/showcase/assets/rich-text-editor-Bi6stpAW.js +124 -0
- package/dist/showcase/assets/rich-text-editor-DggGI4Dj.js +143 -0
- package/dist/showcase/assets/rotate-ccw-Uau0Jm3_.js +1 -0
- package/dist/showcase/assets/route-Dj29lOBc.js +1 -0
- package/dist/showcase/assets/save-j-PKUm-B.js +1 -0
- package/dist/showcase/assets/schema-form-D4kfmM1o.js +327 -0
- package/dist/showcase/assets/scroll-area-CK1S6JpQ.js +1 -0
- package/dist/showcase/assets/scroll-area-Di7TDfFD.js +32 -0
- package/dist/showcase/assets/section-C_rLy6Zn.js +1 -0
- package/dist/showcase/assets/select-BRC14Sd3.js +1 -0
- package/dist/showcase/assets/select-J0hPSc5B.js +1 -0
- package/dist/showcase/assets/send-BnVbRsaN.js +1 -0
- package/dist/showcase/assets/separator-7gHhV7ed.js +1 -0
- package/dist/showcase/assets/separator-CjWigMul.js +1 -0
- package/dist/showcase/assets/separator-Dpo134G3.js +28 -0
- package/dist/showcase/assets/separator-JYQ5rY8E.js +1 -0
- package/dist/showcase/assets/settings-2-D06IRW2d.js +1 -0
- package/dist/showcase/assets/settings-YDwquOPS.js +1 -0
- package/dist/showcase/assets/sheet-O9T8bfRr.js +1 -0
- package/dist/showcase/assets/shield-Cebk5nXH.js +1 -0
- package/dist/showcase/assets/shield-alert-BldSpQ1t.js +1 -0
- package/dist/showcase/assets/shield-check-CNudpzdR.js +1 -0
- package/dist/showcase/assets/shopping-bag-BuHsmxnN.js +1 -0
- package/dist/showcase/assets/showcase-B1BPgzRP.js +132 -0
- package/dist/showcase/assets/sidebar-DPVgEwE0.js +1 -0
- package/dist/showcase/assets/sidebar.context-CYk51BQ5.js +1 -0
- package/dist/showcase/assets/skeleton-CrB6dGV4.js +29 -0
- package/dist/showcase/assets/skeleton-DMWrHdVi.js +1 -0
- package/dist/showcase/assets/skeleton-IBZSxxTq.js +1 -0
- package/dist/showcase/assets/skeleton-OK5SgmlA.js +1 -0
- package/dist/showcase/assets/slider-DMLIlQeO.js +1 -0
- package/dist/showcase/assets/smart-card-CwDYx0xj.js +1 -0
- package/dist/showcase/assets/sonner-Dpe1Nwfb.js +22 -0
- package/dist/showcase/assets/sortable.esm-BSC2lHxr.js +5 -0
- package/dist/showcase/assets/sparkles-BDnbTUMq.js +1 -0
- package/dist/showcase/assets/spinner-BZ0h-j9y.js +49 -0
- package/dist/showcase/assets/spinner-TNaSAQh7.js +30 -0
- package/dist/showcase/assets/spinner-k76a4i_M.js +1 -0
- package/dist/showcase/assets/square-pen-Cn-sFtCo.js +1 -0
- package/dist/showcase/assets/stacked-avatars-Ds8eV_Nx.js +1 -0
- package/dist/showcase/assets/star-BzQGhFDT.js +1 -0
- package/dist/showcase/assets/startOfDay-BfIUGWW-.js +1 -0
- package/dist/showcase/assets/styles-BleHZ-uX.js +1 -0
- package/dist/showcase/assets/suggestions-CsrJSY__.js +126 -0
- package/dist/showcase/assets/support-rail-C_fc_C1j.js +26 -0
- package/dist/showcase/assets/switch-BEfD8lic.js +1 -0
- package/dist/showcase/assets/switch-BOlIXIn9.js +1 -0
- package/dist/showcase/assets/switch-card-CCJ-MaRI.js +1 -0
- package/dist/showcase/assets/sync-vACCm2ND.js +124 -0
- package/dist/showcase/assets/table-CeZy8iT0.js +686 -0
- package/dist/showcase/assets/table-DPpHEvR_.js +1 -0
- package/dist/showcase/assets/table-actions-C9J5piiU.js +1 -0
- package/dist/showcase/assets/tabs-Ca6ldTWi.js +1 -0
- package/dist/showcase/assets/tabs-DGP5RvNm.js +19 -0
- package/dist/showcase/assets/tags-input-BOemEMZS.js +1 -0
- package/dist/showcase/assets/text-button-C8qZqcCy.js +1 -0
- package/dist/showcase/assets/text-link-BFYPeXTq.js +1 -0
- package/dist/showcase/assets/textarea-DcCHHuP-.js +1 -0
- package/dist/showcase/assets/textarea-RUqV9hNm.js +1 -0
- package/dist/showcase/assets/throttle-alert-Sf7FjTvh.js +1 -0
- package/dist/showcase/assets/timelines-nQ8shLIn.js +200 -0
- package/dist/showcase/assets/toggle-group-k5nqOfUW.js +1 -0
- package/dist/showcase/assets/toggles-E80ufOk5.js +71 -0
- package/dist/showcase/assets/toggles-group-vaJ63gg9.js +32 -0
- package/dist/showcase/assets/tooltip-DIvBe7hb.js +31 -0
- package/dist/showcase/assets/trash-2-C-6T17-B.js +1 -0
- package/dist/showcase/assets/trending-up-DRyRbFnA.js +1 -0
- package/dist/showcase/assets/truck-BE6OFjJs.js +1 -0
- package/dist/showcase/assets/typography-i6Zhj3TO.js +223 -0
- package/dist/showcase/assets/ui-badge-MBQsz2Mn.js +28 -0
- package/dist/showcase/assets/ui-card-jaEeRDe5.js +30 -0
- package/dist/showcase/assets/ui-table-CbmOEWVu.js +42 -0
- package/dist/showcase/assets/upload-tray-D4aE56cX.js +138 -0
- package/dist/showcase/assets/use-layout-link-DpqFiDf-.js +1 -0
- package/dist/showcase/assets/useAriaLabelledBy-DSKQpAlQ.js +1 -0
- package/dist/showcase/assets/useCollapsiblePanel-DL6IpVQS.js +1 -0
- package/dist/showcase/assets/useCompositeItem-jckozrpu.js +1 -0
- package/dist/showcase/assets/useCompositeListItem-Ce0eZtsp.js +1 -0
- package/dist/showcase/assets/useLabelableId-Bs8clfkJ.js +1 -0
- package/dist/showcase/assets/useOpenInteractionType-KBhpVaur.js +1 -0
- package/dist/showcase/assets/useRender-Bn5cjIfs.js +1 -0
- package/dist/showcase/assets/useTriggerFocusGuards-D5Cl055z.js +1 -0
- package/dist/showcase/assets/useValueChanged-B-czUWmg.js +1 -0
- package/dist/showcase/assets/user-C7ORJkSr.js +1 -0
- package/dist/showcase/assets/user-plus-O410ITvy.js +1 -0
- package/dist/showcase/assets/users-BlcUaVEY.js +1 -0
- package/dist/showcase/assets/variant-details-BJ0OtpeL.js +50 -0
- package/dist/showcase/assets/variant-management-pTZ83MM_.js +209 -0
- package/dist/showcase/assets/vendor-profile-F2EP-AGx.js +37 -0
- package/dist/showcase/assets/video-fYZEPex_.js +1 -0
- package/dist/showcase/assets/visually-hidden-C1KAHG63.js +1 -0
- package/dist/showcase/assets/weight-input-_wl5mPGA.js +1 -0
- package/dist/showcase/assets/wrench-BzqNpztP.js +1 -0
- package/dist/showcase/assets/x-C5_SzMQM.js +1 -0
- package/dist/showcase/assets/zap-DdInHaAD.js +1 -0
- package/dist/showcase/index.html +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/_shared/containers-8ryMAXNr.js +0 -48
- package/dist/_shared/containers-8ryMAXNr.js.map +0 -1
- package/dist/_shared/containers-BcrM8-22.cjs +0 -2
- package/dist/_shared/containers-BcrM8-22.cjs.map +0 -1
- package/dist/_shared/data-display-B9Lciun3.cjs +0 -2
- package/dist/_shared/data-display-B9Lciun3.cjs.map +0 -1
- package/dist/_shared/data-display-CYmwUdmU.js +0 -1878
- package/dist/_shared/data-display-CYmwUdmU.js.map +0 -1
- package/dist/_shared/layout-CZVEJ3p_.cjs +0 -2
- package/dist/_shared/layout-CZVEJ3p_.cjs.map +0 -1
- package/dist/_shared/layout-D75TJTaD.js +0 -268
- package/dist/_shared/layout-D75TJTaD.js.map +0 -1
- package/dist/showcase/assets/AreaChart-iGBzUSAV.js +0 -6
- package/dist/showcase/assets/CompositeItem-1e8qsdC5.js +0 -1
- package/dist/showcase/assets/CompositeRoot-DneCUh3i.js +0 -1
- package/dist/showcase/assets/DialogTrigger-CVhas4X-.js +0 -1
- package/dist/showcase/assets/LabelableContext-Bfc22fLa.js +0 -1
- package/dist/showcase/assets/MenuTrigger-WTiiOMpe.js +0 -1
- package/dist/showcase/assets/PreviewLayout-ClbLOtTa.js +0 -1
- package/dist/showcase/assets/RadioGroup-DEBYMgi5.js +0 -1
- package/dist/showcase/assets/ScrollAreaCorner-CilamsvS.js +0 -1
- package/dist/showcase/assets/Separator-DSecBOlo.js +0 -1
- package/dist/showcase/assets/ToolbarRootContext-BY_Czi0-.js +0 -1
- package/dist/showcase/assets/accordion-FV2cJ9V1.js +0 -171
- package/dist/showcase/assets/accordion-variants-DRNuXgFT.js +0 -1
- package/dist/showcase/assets/action-menu-uhMTzBIl.js +0 -1
- package/dist/showcase/assets/actions-C3kChFSc.js +0 -310
- package/dist/showcase/assets/actions-DizTzuf8.js +0 -38
- package/dist/showcase/assets/activities-DQ7u_XKr.js +0 -500
- package/dist/showcase/assets/activities-feed-card-DoxFXr20.js +0 -1
- package/dist/showcase/assets/admin-CRVq1bj-.js +0 -140
- package/dist/showcase/assets/ai-DMBh2BKA.js +0 -207
- package/dist/showcase/assets/ai-artifact-DnSz7Xj1.js +0 -2
- package/dist/showcase/assets/ai-chat-Ba60tj9x.js +0 -568
- package/dist/showcase/assets/ai-elements-CaMbMARm.js +0 -387
- package/dist/showcase/assets/ai-tool-call-Cg11pnXq.js +0 -1
- package/dist/showcase/assets/alert-AeDTPQQ5.js +0 -62
- package/dist/showcase/assets/alert-BQucj-0f.js +0 -1
- package/dist/showcase/assets/alert-DY0yMYc3.js +0 -93
- package/dist/showcase/assets/api-key-list-DZiVRCkz.js +0 -73
- package/dist/showcase/assets/api-key-list-DuoC5nyO.js +0 -1
- package/dist/showcase/assets/app-sidebar-D_RbOUZC.js +0 -1
- package/dist/showcase/assets/arrow-down-J_5dmfVv.js +0 -1
- package/dist/showcase/assets/arrow-left-DeKmFjyi.js +0 -1
- package/dist/showcase/assets/arrow-right-ztHj2bIY.js +0 -1
- package/dist/showcase/assets/arrow-up-CCenfeVW.js +0 -1
- package/dist/showcase/assets/arrow-up-right-URGvP7LF.js +0 -1
- package/dist/showcase/assets/avatar-CTFW3AQa.js +0 -1
- package/dist/showcase/assets/avatar-DH3vm33j.js +0 -1
- package/dist/showcase/assets/avatar-DRi6ZWB2.js +0 -67
- package/dist/showcase/assets/avatar-eEOgFI6D.js +0 -57
- package/dist/showcase/assets/badge-C9RqIyT7.js +0 -31
- package/dist/showcase/assets/badge-check-CRkt0WPY.js +0 -1
- package/dist/showcase/assets/bell-B-bFEx5I.js +0 -1
- package/dist/showcase/assets/boolean-indicator-CD3scHDz.js +0 -1
- package/dist/showcase/assets/bot-DbSsnrvR.js +0 -1
- package/dist/showcase/assets/box-BDLbaerX.js +0 -1
- package/dist/showcase/assets/braces-nP1Ffv07.js +0 -1
- package/dist/showcase/assets/brain-B69nRyRF.js +0 -1
- package/dist/showcase/assets/brand-WHRuwaVX.js +0 -36
- package/dist/showcase/assets/breadcrumb-CYxS57Ko.js +0 -1
- package/dist/showcase/assets/breadcrumb-viDsLdax.js +0 -52
- package/dist/showcase/assets/breadcrumbs-CX6eCwn4.js +0 -1
- package/dist/showcase/assets/briefcase-BCMmOuh2.js +0 -1
- package/dist/showcase/assets/building-2-DCSQxFoC.js +0 -1
- package/dist/showcase/assets/button-It_u4rRb.js +0 -44
- package/dist/showcase/assets/button-group-B2NgHAyn.js +0 -1
- package/dist/showcase/assets/buttons-ClK1qR3J.js +0 -272
- package/dist/showcase/assets/calendar-CX89JdTd.js +0 -16
- package/dist/showcase/assets/calendar-DV83xhzB.js +0 -1
- package/dist/showcase/assets/calendar-HrkenM2F.js +0 -1
- package/dist/showcase/assets/calendar-days-O55Ncg5j.js +0 -1
- package/dist/showcase/assets/camera-C6hO-Q3l.js +0 -1
- package/dist/showcase/assets/card-CXet5wLR.js +0 -1
- package/dist/showcase/assets/card-ChwovoeQ.js +0 -188
- package/dist/showcase/assets/card-checkbox-group-DN7Ui724.js +0 -1
- package/dist/showcase/assets/card-primitives-C5YmKK4H.js +0 -1
- package/dist/showcase/assets/card-radio-group-DaiWsziy.js +0 -1
- package/dist/showcase/assets/cards-CpYk7Lcz.js +0 -354
- package/dist/showcase/assets/carousel-CaoSMqW3.js +0 -452
- package/dist/showcase/assets/cell-renderers-BTLGZyvy.js +0 -1
- package/dist/showcase/assets/chart-DukdMlSE.js +0 -358
- package/dist/showcase/assets/chart-column-BqDA22mr.js +0 -1
- package/dist/showcase/assets/checkbox-CJg8G3-s.js +0 -1
- package/dist/showcase/assets/checkbox-DlOCnOfc.js +0 -1
- package/dist/showcase/assets/chevron-down-CjLLqYjs.js +0 -1
- package/dist/showcase/assets/chevron-left-lE5l5Y1q.js +0 -1
- package/dist/showcase/assets/chevron-up-WpyEPcvJ.js +0 -1
- package/dist/showcase/assets/chevrons-up-down-CPkjAe_j.js +0 -1
- package/dist/showcase/assets/circle-B9E-rFdh.js +0 -1
- package/dist/showcase/assets/circle-alert-DX4Q8Agf.js +0 -1
- package/dist/showcase/assets/circle-check-BdcUhuQ7.js +0 -1
- package/dist/showcase/assets/circle-check-big-CeaAGVP1.js +0 -1
- package/dist/showcase/assets/circle-dot-DoXkol-T.js +0 -1
- package/dist/showcase/assets/circle-question-mark-CYE6Hj4n.js +0 -1
- package/dist/showcase/assets/circle-x-BpB4A5gs.js +0 -1
- package/dist/showcase/assets/clock-3-B7Fa1qg-.js +0 -1
- package/dist/showcase/assets/clock-B1cuTZnL.js +0 -1
- package/dist/showcase/assets/code-xml-C_ICl6NY.js +0 -1
- package/dist/showcase/assets/collapsible-CtrQcEWW.js +0 -27
- package/dist/showcase/assets/collapsible-XZ4qRG4O.js +0 -1
- package/dist/showcase/assets/collapsible-ZP3Pv6SI.js +0 -1
- package/dist/showcase/assets/combobox-GMkDgk_z.js +0 -685
- package/dist/showcase/assets/command-BXhyoNX1.js +0 -1
- package/dist/showcase/assets/command-DNHjxTyl.js +0 -1
- package/dist/showcase/assets/comment-composer-BtE5Erp8.js +0 -1
- package/dist/showcase/assets/comment-item-TztxmXc7.js +0 -1
- package/dist/showcase/assets/comments-CEMkLRtb.js +0 -357
- package/dist/showcase/assets/commerce-BtvCQH0C.js +0 -19
- package/dist/showcase/assets/commerce-address-card-8PUGRwNW.js +0 -33
- package/dist/showcase/assets/commerce-cart-summary-nrO5v1O8.js +0 -43
- package/dist/showcase/assets/commerce-coupon-input-C-sT1FNq.js +0 -11
- package/dist/showcase/assets/commerce-discount-stack-BdGk8tbD.js +0 -17
- package/dist/showcase/assets/commerce-inventory-section-BnBu7wK5.js +0 -123
- package/dist/showcase/assets/commerce-loyalty-points-Bjei3EdW.js +0 -19
- package/dist/showcase/assets/commerce-order-status--TMOLhrS.js +0 -21
- package/dist/showcase/assets/commerce-payment-method-C8fVquyN.js +0 -17
- package/dist/showcase/assets/commerce-refund-status-Cs6dbewH.js +0 -17
- package/dist/showcase/assets/commerce-seo-listing-C4WvKFei.js +0 -61
- package/dist/showcase/assets/commerce-shipment-tracking-BcezyjSw.js +0 -24
- package/dist/showcase/assets/commerce-subscription-summary-BjhnmqOx.js +0 -25
- package/dist/showcase/assets/commerce-tax-breakdown-js8xMRDn.js +0 -19
- package/dist/showcase/assets/commerce-upcoming-booking-doggTqfA.js +0 -20
- package/dist/showcase/assets/commerce-voucher-entry-ByMZAiZO.js +0 -19
- package/dist/showcase/assets/composite-D2jjTQvZ.js +0 -1
- package/dist/showcase/assets/conditional-rendering-Cy3xN7KO.js +0 -1
- package/dist/showcase/assets/contact-card-BSH_KDbf.js +0 -65
- package/dist/showcase/assets/content-container-Q9Bp8aFE.js +0 -1
- package/dist/showcase/assets/copyable-8_0ImOB2.js +0 -1
- package/dist/showcase/assets/copyable-B3R9lXVu.js +0 -96
- package/dist/showcase/assets/course-card-zh8fH-6n.js +0 -77
- package/dist/showcase/assets/cpu-DlPQMchp.js +0 -1
- package/dist/showcase/assets/credit-card-DeuhwEKG.js +0 -1
- package/dist/showcase/assets/css-variables-BxE5DqUm.js +0 -1223
- package/dist/showcase/assets/currency-D3DomSfR.js +0 -148
- package/dist/showcase/assets/dark-surfaces-DYh199dt.js +0 -90
- package/dist/showcase/assets/data-view-HJme-PWk.js +0 -124
- package/dist/showcase/assets/data-view-s5TQvt4f.js +0 -4
- package/dist/showcase/assets/database-KGU1LGqB.js +0 -1
- package/dist/showcase/assets/date-block-CxFhNxK2.js +0 -1
- package/dist/showcase/assets/date-block-DmRDymLD.js +0 -1
- package/dist/showcase/assets/date-picker-CScVl5jV.js +0 -1
- package/dist/showcase/assets/date-pickers-D4EmH-RF.js +0 -73
- package/dist/showcase/assets/dense-info-DXbmG0Nf.js +0 -106
- package/dist/showcase/assets/design-system-consistency-D_j9P0qR.js +0 -264
- package/dist/showcase/assets/dialog-BHymSzYi.js +0 -1
- package/dist/showcase/assets/dialog-CGr-za_Y.js +0 -1
- package/dist/showcase/assets/dialog-DeXQn0Lm.js +0 -1
- package/dist/showcase/assets/display-utilities-Y1wtHZNJ.js +0 -4
- package/dist/showcase/assets/display-utilities.examples-BMKQv0ep.js +0 -309
- package/dist/showcase/assets/dist-DfpWey5P.js +0 -1
- package/dist/showcase/assets/dist-DrnHE1zU.js +0 -45
- package/dist/showcase/assets/dollar-sign-DzPcAVIr.js +0 -1
- package/dist/showcase/assets/download-YQyeAxpe.js +0 -1
- package/dist/showcase/assets/dropdown-menu-DijrdxTg.js +0 -1
- package/dist/showcase/assets/dropzone-CJQVfB6l.js +0 -1
- package/dist/showcase/assets/earth-CzKdl3sr.js +0 -1
- package/dist/showcase/assets/ellipsis-Bm3jOBg8.js +0 -1
- package/dist/showcase/assets/ellipsis-vertical-BfYWo5Lf.js +0 -1
- package/dist/showcase/assets/empty-BdJ7O2MX.js +0 -1
- package/dist/showcase/assets/empty-item-BQdBtp6f.js +0 -49
- package/dist/showcase/assets/empty-state-62UU8y5C.js +0 -1
- package/dist/showcase/assets/empty-state-CCL_J3tY.js +0 -190
- package/dist/showcase/assets/enhanced-activities-CC1UzTfz.js +0 -357
- package/dist/showcase/assets/enhanced-combobox-B9cjPsF6.js +0 -1
- package/dist/showcase/assets/esm-B-fRlXh3.js +0 -2
- package/dist/showcase/assets/event-calendar-Bhwxq8YS.js +0 -138
- package/dist/showcase/assets/event-log-CnKaX_Qy.js +0 -330
- package/dist/showcase/assets/example-DDhaO2UY.js +0 -1
- package/dist/showcase/assets/external-link-CANOM2jg.js +0 -1
- package/dist/showcase/assets/eye-Bipckkwy.js +0 -1
- package/dist/showcase/assets/feature-announcement-lwmHkJsA.js +0 -34
- package/dist/showcase/assets/file-D3AT65yE.js +0 -1
- package/dist/showcase/assets/file-text-BzM5AARd.js +0 -1
- package/dist/showcase/assets/filter-layout-Dcg6Bnrn.js +0 -1
- package/dist/showcase/assets/filters-CqlLV9PM.js +0 -139
- package/dist/showcase/assets/fixtures-yK2xR5Qs.js +0 -1
- package/dist/showcase/assets/flag-DwDsuNoj.js +0 -1
- package/dist/showcase/assets/folder-open-CU6X87LZ.js +0 -1
- package/dist/showcase/assets/form-field-CpRcKtwS.js +0 -1
- package/dist/showcase/assets/format-DmB3OvZa.js +0 -1
- package/dist/showcase/assets/forms-htLZTBP2.js +0 -915
- package/dist/showcase/assets/funnel-Dg-pRz2W.js +0 -1
- package/dist/showcase/assets/generic-C19aoW0F.js +0 -1
- package/dist/showcase/assets/getPseudoElementBounds-r_QLBIGn.js +0 -1
- package/dist/showcase/assets/gift-CpwvL7we.js +0 -1
- package/dist/showcase/assets/giftcard-cards-DHZQPc_n.js +0 -85
- package/dist/showcase/assets/git-branch-CZga8VLM.js +0 -1
- package/dist/showcase/assets/global-search-DqJo5jCc.js +0 -1
- package/dist/showcase/assets/global-search-_HODxZaU.js +0 -215
- package/dist/showcase/assets/globe-pWzZwcAv.js +0 -1
- package/dist/showcase/assets/gradient-card-D9fPawlx.js +0 -58
- package/dist/showcase/assets/grip-vertical-oqI1TI-N.js +0 -1
- package/dist/showcase/assets/hash-DQPCJKw8.js +0 -1
- package/dist/showcase/assets/header-DkCzYf6f.js +0 -1
- package/dist/showcase/assets/header-notifications-CPiuGNR5.js +0 -1
- package/dist/showcase/assets/heart-0z9BLROt.js +0 -1
- package/dist/showcase/assets/hooks-CXwg9TyF.js +0 -220
- package/dist/showcase/assets/house-Bg4YZsNF.js +0 -1
- package/dist/showcase/assets/icon-badge-CrSkFExw.js +0 -1
- package/dist/showcase/assets/icon-badge-D1fdev_s.js +0 -37
- package/dist/showcase/assets/image-BXWnqpeJ.js +0 -1
- package/dist/showcase/assets/inbox-CObYzZZR.js +0 -1
- package/dist/showcase/assets/index-DBheiRxz.css +0 -2
- package/dist/showcase/assets/index-DSBghWdd.js +0 -10
- package/dist/showcase/assets/inertValue-DOcq7b5x.js +0 -1
- package/dist/showcase/assets/info-wAcLD6Uj.js +0 -1
- package/dist/showcase/assets/inline-stat-CufTTte_.js +0 -1
- package/dist/showcase/assets/inline-stat-D4GrY6tT.js +0 -15
- package/dist/showcase/assets/input-Bq9vs-9_.js +0 -1
- package/dist/showcase/assets/input-DsP89oH1.js +0 -1
- package/dist/showcase/assets/input-group-CCaNByLp.js +0 -1
- package/dist/showcase/assets/input-group-m-swxf-o.js +0 -47
- package/dist/showcase/assets/inputs-BSEM9vfa.js +0 -155
- package/dist/showcase/assets/installation-uRaDUCjH.js +0 -134
- package/dist/showcase/assets/invoice-header-D48jDTWC.js +0 -36
- package/dist/showcase/assets/invoice-items-jRLo8FHu.js +0 -36
- package/dist/showcase/assets/invoice-mini-DLS8PQrl.js +0 -14
- package/dist/showcase/assets/invoice-table-D4y33M95.js +0 -30
- package/dist/showcase/assets/isSameDay-Cn7Vlp79.js +0 -1
- package/dist/showcase/assets/isToday-B0jKMww1.js +0 -1
- package/dist/showcase/assets/italic-BHsKu0Gj.js +0 -1
- package/dist/showcase/assets/item-BLXAOZLR.js +0 -1
- package/dist/showcase/assets/item-C8eCX4DH.js +0 -140
- package/dist/showcase/assets/item-D5xwkRvf.js +0 -1
- package/dist/showcase/assets/kanban-ujfZHhvd.js +0 -188
- package/dist/showcase/assets/key-round-B_fKEPa6.js +0 -1
- package/dist/showcase/assets/label-NSapdBaB.js +0 -1
- package/dist/showcase/assets/languages-TkdVe7-2.js +0 -1
- package/dist/showcase/assets/layers-1IEBbvoc.js +0 -1
- package/dist/showcase/assets/layout-app-shell-D4PFTEsD.js +0 -608
- package/dist/showcase/assets/layout-auth-BTriDNME.js +0 -790
- package/dist/showcase/assets/layout-containers-CLJfaL-J.js +0 -101
- package/dist/showcase/assets/layout-header-CsNPnQde.js +0 -203
- package/dist/showcase/assets/layout-page-CSejcBCR.js +0 -315
- package/dist/showcase/assets/layout-primitives-D1MJs2E3.js +0 -34
- package/dist/showcase/assets/layout-sidebar-CO8Hdnoh.js +0 -224
- package/dist/showcase/assets/layout-users-BgrXF4nn.js +0 -117
- package/dist/showcase/assets/layout-workspace-DLg1f_o-.js +0 -191
- package/dist/showcase/assets/lib-B7vzArq-.js +0 -1
- package/dist/showcase/assets/list-checks-tsvYcEx2.js +0 -1
- package/dist/showcase/assets/lock-CPztxP5s.js +0 -1
- package/dist/showcase/assets/lock-keyhole-BHaFzps8.js +0 -1
- package/dist/showcase/assets/mail-DFoR3rHO.js +0 -1
- package/dist/showcase/assets/mail-check-QV1zqP5D.js +0 -1
- package/dist/showcase/assets/map-BOo4UMER.js +0 -124
- package/dist/showcase/assets/map-pin-CEcA7jdk.js +0 -1
- package/dist/showcase/assets/media-library-CKR3NF1Y.js +0 -699
- package/dist/showcase/assets/mention-inline-suggestions-Chbuzkb7.js +0 -1
- package/dist/showcase/assets/mentions-syVuen0M.js +0 -138
- package/dist/showcase/assets/menus-COIxEKPm.js +0 -171
- package/dist/showcase/assets/message-square-CYSVV7nZ.js +0 -1
- package/dist/showcase/assets/metadata-list-BHIfOKD6.js +0 -1
- package/dist/showcase/assets/metadata-list-DLI17y0k.js +0 -286
- package/dist/showcase/assets/metric-bar-OTyaeNJY.js +0 -1
- package/dist/showcase/assets/metric-grid-BcjDZqHZ.js +0 -1
- package/dist/showcase/assets/metric-opI4qu4r.js +0 -1
- package/dist/showcase/assets/metric-trend-chip-BvhqlY9f.js +0 -1
- package/dist/showcase/assets/metrics-analytics-bar-Z8xY1Gwq.js +0 -44
- package/dist/showcase/assets/metrics-analytics-cards-DfzbV-8j.js +0 -50
- package/dist/showcase/assets/metrics-comparison-C71X-WeV.js +0 -76
- package/dist/showcase/assets/metrics-heatmap-Cs1ixWQX.js +0 -27
- package/dist/showcase/assets/metrics-inline-badge-DP1guaTx.js +0 -17
- package/dist/showcase/assets/metrics-kpi-row-CVwHH3rN.js +0 -31
- package/dist/showcase/assets/metrics-micro-grid-CQGKibEU.js +0 -42
- package/dist/showcase/assets/metrics-overview-DPGjh2Gi.js +0 -192
- package/dist/showcase/assets/metrics-stat-cards-C3k7Uyt1.js +0 -54
- package/dist/showcase/assets/minus-BTHZFjKs.js +0 -1
- package/dist/showcase/assets/money-display-B8BodAKb.js +0 -1
- package/dist/showcase/assets/money-display-C7TuSgzA.js +0 -3
- package/dist/showcase/assets/month-year-picker-DQcCIbM9.js +0 -1
- package/dist/showcase/assets/navigation-BjYK7JTx.js +0 -231
- package/dist/showcase/assets/navigation-DkkHPGFq.js +0 -90
- package/dist/showcase/assets/navigation-extras-drFz7Xmf.js +0 -43
- package/dist/showcase/assets/notification-banner-CATA6COT.js +0 -1
- package/dist/showcase/assets/onboarding-checklist-CjGo74ic.js +0 -119
- package/dist/showcase/assets/overflow-tab-bar-BYRykiZn.js +0 -1
- package/dist/showcase/assets/overlays-BtfkqYL1.js +0 -159
- package/dist/showcase/assets/overlays-CzmrvPNh.js +0 -408
- package/dist/showcase/assets/overview-B5ckb1et.js +0 -184
- package/dist/showcase/assets/package-Db-MTVUx.js +0 -1
- package/dist/showcase/assets/package-check-UP9srP8w.js +0 -1
- package/dist/showcase/assets/page-BFvDdpX3.js +0 -1
- package/dist/showcase/assets/page-action-button-CROlcZJb.js +0 -1
- package/dist/showcase/assets/page-header-B8xYCCzF.js +0 -1
- package/dist/showcase/assets/pagination-B7j6cJXU.js +0 -1
- package/dist/showcase/assets/pagination-B8LN9MT7.js +0 -42
- package/dist/showcase/assets/paperclip-CAcGOT6G.js +0 -1
- package/dist/showcase/assets/password-input-DzO1QEsL.js +0 -1
- package/dist/showcase/assets/pencil-Db0qlNpO.js +0 -1
- package/dist/showcase/assets/phone-BHkprQ5O.js +0 -1
- package/dist/showcase/assets/placeholder-pattern-Ba0rjJa5.js +0 -1
- package/dist/showcase/assets/plus-CaAfJIjc.js +0 -1
- package/dist/showcase/assets/popover-BZsIv1AP.js +0 -1
- package/dist/showcase/assets/popover-DCfeA2ZY.js +0 -1
- package/dist/showcase/assets/popover-menu-kjcHCICE.js +0 -1
- package/dist/showcase/assets/product-empty-state-CSdeHHZT.js +0 -1
- package/dist/showcase/assets/product-option-action-menu-FvgEaWA7.js +0 -1
- package/dist/showcase/assets/product-rows-Cb8gLOeV.js +0 -1
- package/dist/showcase/assets/product-structure-card-CFqufBoJ.js +0 -1
- package/dist/showcase/assets/product-variant-action-menu-BvSn7PuK.js +0 -1
- package/dist/showcase/assets/products-D1aG4KFi.js +0 -61
- package/dist/showcase/assets/progress-2NWkkA6x.js +0 -18
- package/dist/showcase/assets/progress-DECH8qUu.js +0 -1
- package/dist/showcase/assets/progress-DHsjY-V1.js +0 -1
- package/dist/showcase/assets/props-table-CzpevabQ.js +0 -1
- package/dist/showcase/assets/props.generated-CXbCZMUk.json +0 -42824
- package/dist/showcase/assets/qr-code-DLeRQu83.js +0 -1
- package/dist/showcase/assets/quote-eFsPYmD1.js +0 -1
- package/dist/showcase/assets/receipt-V9T3dONa.js +0 -1
- package/dist/showcase/assets/receipt-text-866Msgc2.js +0 -1
- package/dist/showcase/assets/refinement-guide-BoerkamA.js +0 -189
- package/dist/showcase/assets/refresh-cw-Crg4uqw8.js +0 -1
- package/dist/showcase/assets/resolveValueLabel-D8poX7JF.js +0 -1
- package/dist/showcase/assets/resource-Ca8tGlsX.js +0 -139
- package/dist/showcase/assets/resource-aE-LkpW8.js +0 -1
- package/dist/showcase/assets/resource-selector-card-DzDG2Wl6.js +0 -43
- package/dist/showcase/assets/rich-text-editor-BCTbpMcY.js +0 -143
- package/dist/showcase/assets/rich-text-editor-CdklzzLj.js +0 -124
- package/dist/showcase/assets/rotate-ccw-CCPhnEPA.js +0 -1
- package/dist/showcase/assets/route-CODe9_7c.js +0 -1
- package/dist/showcase/assets/save-B_ze9MC9.js +0 -1
- package/dist/showcase/assets/schema-form-CEmpu59s.js +0 -327
- package/dist/showcase/assets/scroll-area-BM0asGLD.js +0 -32
- package/dist/showcase/assets/scroll-area-zRw8lSrA.js +0 -1
- package/dist/showcase/assets/section-DLqBJGPH.js +0 -1
- package/dist/showcase/assets/select-B0ivd5pJ.js +0 -1
- package/dist/showcase/assets/select-BrPUZL6Z.js +0 -1
- package/dist/showcase/assets/send-B4jTMdd9.js +0 -1
- package/dist/showcase/assets/separator-7f_tdxB3.js +0 -28
- package/dist/showcase/assets/separator-BvhVS5L0.js +0 -1
- package/dist/showcase/assets/separator-DeMF0eCd.js +0 -1
- package/dist/showcase/assets/separator-Dsqit2yw.js +0 -1
- package/dist/showcase/assets/settings-2-DnZeyxSR.js +0 -1
- package/dist/showcase/assets/settings-GFwewlvm.js +0 -1
- package/dist/showcase/assets/sheet-B06fRKgl.js +0 -1
- package/dist/showcase/assets/shield-NNzIJA-o.js +0 -1
- package/dist/showcase/assets/shield-alert-dlgSUsVl.js +0 -1
- package/dist/showcase/assets/shield-check-CkqmRaJd.js +0 -1
- package/dist/showcase/assets/shopping-bag-x4S32KGc.js +0 -1
- package/dist/showcase/assets/showcase-CiXeaTrT.js +0 -132
- package/dist/showcase/assets/sidebar-BDOvomlZ.js +0 -1
- package/dist/showcase/assets/sidebar.context-M_w0AsBU.js +0 -1
- package/dist/showcase/assets/skeleton-C0-TGyFP.js +0 -29
- package/dist/showcase/assets/skeleton-ClY9N5IF.js +0 -1
- package/dist/showcase/assets/skeleton-CyCX3AHa.js +0 -1
- package/dist/showcase/assets/skeleton-JapnB0xo.js +0 -1
- package/dist/showcase/assets/slider-BagnbSUE.js +0 -1
- package/dist/showcase/assets/smart-card-BA097ZGN.js +0 -1
- package/dist/showcase/assets/sonner-bg55zTHJ.js +0 -22
- package/dist/showcase/assets/sortable.esm-DCj5rKPd.js +0 -5
- package/dist/showcase/assets/sparkles-a2TsduRv.js +0 -1
- package/dist/showcase/assets/spinner-BRTHJLPS.js +0 -49
- package/dist/showcase/assets/spinner-RQ5TsGWE.js +0 -30
- package/dist/showcase/assets/spinner-yQrc4KLG.js +0 -1
- package/dist/showcase/assets/square-pen-wg5I0K5c.js +0 -1
- package/dist/showcase/assets/stacked-avatars-BGpGV4Is.js +0 -1
- package/dist/showcase/assets/star-Ccv6TKPm.js +0 -1
- package/dist/showcase/assets/startOfDay-BslQvd9l.js +0 -1
- package/dist/showcase/assets/styles-CMmKOMCT.js +0 -1
- package/dist/showcase/assets/suggestions--A7bRqHY.js +0 -126
- package/dist/showcase/assets/support-rail-b2WhhyFB.js +0 -26
- package/dist/showcase/assets/switch-Cv_v9byU.js +0 -1
- package/dist/showcase/assets/switch-DY-b3cEd.js +0 -1
- package/dist/showcase/assets/switch-card-C-Q3eon2.js +0 -1
- package/dist/showcase/assets/sync-BmH6kK2e.js +0 -124
- package/dist/showcase/assets/table-DAil3SVn.js +0 -686
- package/dist/showcase/assets/table-DNimuqS6.js +0 -1
- package/dist/showcase/assets/table-actions-Bgp9_jhZ.js +0 -1
- package/dist/showcase/assets/tabs-DN23r2we.js +0 -1
- package/dist/showcase/assets/tabs-RbFeMoGk.js +0 -19
- package/dist/showcase/assets/tags-input-Cp-ikGn_.js +0 -1
- package/dist/showcase/assets/text-button-CPxfmks9.js +0 -1
- package/dist/showcase/assets/text-link-BBHsgNSW.js +0 -1
- package/dist/showcase/assets/textarea-BGe_VCrI.js +0 -1
- package/dist/showcase/assets/textarea-DAV6cQCw.js +0 -1
- package/dist/showcase/assets/throttle-alert-B85zpgs4.js +0 -1
- package/dist/showcase/assets/timelines-BptCi-0C.js +0 -200
- package/dist/showcase/assets/toggle-group-B4tIG940.js +0 -1
- package/dist/showcase/assets/toggles-BSkNLAjb.js +0 -71
- package/dist/showcase/assets/toggles-group-CQIwVA__.js +0 -32
- package/dist/showcase/assets/tooltip-DN6bKPgk.js +0 -31
- package/dist/showcase/assets/trash-2-DZ5FSAFb.js +0 -1
- package/dist/showcase/assets/trending-up-DtSjt9AO.js +0 -1
- package/dist/showcase/assets/truck-B0QFWMMH.js +0 -1
- package/dist/showcase/assets/typography-8sXlmgaD.js +0 -223
- package/dist/showcase/assets/ui-badge-C4odkkUK.js +0 -28
- package/dist/showcase/assets/ui-card-CU1Ga8J6.js +0 -30
- package/dist/showcase/assets/ui-table-Bp-MkWh5.js +0 -42
- package/dist/showcase/assets/upload-tray-DT0HesKW.js +0 -138
- package/dist/showcase/assets/use-layout-link-BsJvjSZp.js +0 -1
- package/dist/showcase/assets/useAriaLabelledBy-Bl2oGr7T.js +0 -1
- package/dist/showcase/assets/useCollapsiblePanel-C8-r9Srt.js +0 -1
- package/dist/showcase/assets/useCompositeItem-DVZX40q_.js +0 -1
- package/dist/showcase/assets/useCompositeListItem-DWggcwRs.js +0 -1
- package/dist/showcase/assets/useLabelableId-Dx_-xVBr.js +0 -1
- package/dist/showcase/assets/useOpenInteractionType-CKNY2kPx.js +0 -1
- package/dist/showcase/assets/useRender-Bk8pPQUW.js +0 -1
- package/dist/showcase/assets/useTriggerFocusGuards-D74GGv1k.js +0 -1
- package/dist/showcase/assets/useValueChanged-BjYsvuOC.js +0 -1
- package/dist/showcase/assets/user-DlFWtE-h.js +0 -1
- package/dist/showcase/assets/user-plus-NGAALkPS.js +0 -1
- package/dist/showcase/assets/users-DYPDZwd6.js +0 -1
- package/dist/showcase/assets/variant-details-DtdWm8Bt.js +0 -50
- package/dist/showcase/assets/variant-management-Dk_P-wBF.js +0 -209
- package/dist/showcase/assets/vendor-profile-Bf1kKKdO.js +0 -37
- package/dist/showcase/assets/video-BObmzTOM.js +0 -1
- package/dist/showcase/assets/visually-hidden-rJ25V2wc.js +0 -1
- package/dist/showcase/assets/weight-input-DpQ3yEQ3.js +0 -1
- package/dist/showcase/assets/wrench-Df-eIMsM.js +0 -1
- package/dist/showcase/assets/x-DVQ0XpIT.js +0 -1
- package/dist/showcase/assets/zap-_0WPgXWT.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{sr as e}from"./example-BsDQngs7.js";function t(t){return e(19)?t:t?`true`:void 0}export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as e}from"./index-B4sKWDcN.js";var t=e(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e}from"./section-C_rLy6Zn.js";import{d as t,n}from"./index-B4sKWDcN.js";var r=t();function i({label:t,value:i,layout:a=`between`,mono:o=!1,className:s,labelClassName:c,valueClassName:l}){return a===`stacked`?(0,r.jsxs)(`div`,{className:n(`inline-stat--component`,`flex flex-col gap-space-2xs`,s),children:[(0,r.jsx)(e,{tag:`span`,size:`inherit`,type:`secondary`,className:n(`text-xs leading-tight`,c),children:t}),(0,r.jsx)(e,{tag:`span`,size:`inherit`,className:n(`text-sm leading-snug`,o&&`tabular-nums`,l),children:i})]}):(0,r.jsxs)(`div`,{className:n(`inline-stat--component flex items-center gap-space-md`,a===`between`?`justify-between`:`justify-start`,s),children:[(0,r.jsx)(e,{tag:`span`,size:`inherit`,type:`secondary`,className:n(`text-xs leading-tight`,c),children:t}),(0,r.jsx)(e,{tag:`span`,size:`inherit`,className:n(`text-sm leading-snug`,o&&`tabular-nums`,l),children:i})]})}i.displayName=`InlineStat`;export{i as t};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{n as e}from"./chunk-QTnfLwEv.js";import{n as t,t as n}from"./section-C_rLy6Zn.js";import{t as r}from"./example-BsDQngs7.js";import{d as i}from"./index-B4sKWDcN.js";import{t as a}from"./props-table-aynAz90t.js";import{t as o}from"./inline-stat-C9Syz6in.js";var s=e({InlineStatLayouts:()=>l}),c=i();function l(){return(0,c.jsxs)(`div`,{className:`flex w-full max-w-md flex-col gap-space-md`,children:[(0,c.jsx)(o,{label:`Total spent`,value:`$12,450`,mono:!0}),(0,c.jsx)(o,{layout:`inline`,label:`Status:`,value:`Active`}),(0,c.jsx)(o,{layout:`stacked`,label:`Last seen`,value:`3 hours ago`})]})}var u=`import { InlineStat } from '@/components/composed/data-display/inline-stat';
|
|
2
|
+
|
|
3
|
+
export function InlineStatLayouts() {
|
|
4
|
+
return (
|
|
5
|
+
<div className="flex w-full max-w-md flex-col gap-space-md">
|
|
6
|
+
<InlineStat label="Total spent" value="$12,450" mono />
|
|
7
|
+
<InlineStat layout="inline" label="Status:" value="Active" />
|
|
8
|
+
<InlineStat layout="stacked" label="Last seen" value="3 hours ago" />
|
|
9
|
+
</div>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
`;function d(e){let i={code:`code`,p:`p`,...e.components};return s||p(`Examples`,!1),l||p(`Examples.InlineStatLayouts`,!0),(0,c.jsxs)(t,{title:`Inline stat`,description:`Inline label/value pairs for counters, totals, and compact card rows. Use MetadataList for entity detail fields.`,layer:`base`,status:`ready`,sourcePath:`src/components/composed/data-display/inline-stat`,children:[(0,c.jsx)(n,{title:`Overview`,id:`overview`,children:(0,c.jsxs)(i.p,{children:[(0,c.jsx)(i.code,{children:`InlineStat`}),` is for one-line or stacked measurements inside cards, toolbars,
|
|
13
|
+
and summary rows: totals, confidence factors, usage counts, and small status
|
|
14
|
+
pairs. Use `,(0,c.jsx)(i.code,{children:`MetadataList`}),` when the content is a detail section describing one
|
|
15
|
+
resource with many fields, columns, icons, or tooltips.`]})}),(0,c.jsx)(n,{title:`Examples`,id:`examples`,children:(0,c.jsx)(r,{name:`InlineStatLayouts`,source:u,children:(0,c.jsx)(l,{})})}),(0,c.jsx)(n,{title:`API`,id:`api`,children:(0,c.jsx)(a,{component:`InlineStat`})})]})}function f(e={}){let{wrapper:t}=e.components||{};return t?(0,c.jsx)(t,{...e,children:(0,c.jsx)(d,{...e})}):d(e)}function p(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./chunk-QTnfLwEv.js";import{t}from"./react-sKtkuLrH.js";import{p as n,x as r}from"./section-C_rLy6Zn.js";import{Er as i}from"./example-BsDQngs7.js";import{t as a}from"./circle-x-BavQ4wuc.js";import{N as ee,d as o,n as s}from"./index-B4sKWDcN.js";import{t as te}from"./use-form-field-state-CGGJFfWu.js";import{a as c,f as l,i as u,l as d,n as ne,o as f,r as p,t as m,u as h}from"./form-sizing-Bv0A0Oi0.js";var g=e(t(),1),_=o(),re={clear:`Clear input`},v=(e,t,n)=>{let r=e||``;return t&&r&&(r=t+r),n&&r&&(r+=n),r};function y({className:e,type:t=`text`,startIcon:o,endIcon:y,startAddon:b,endAddon:x,maxLength:S,showCharacterCount:C,clearable:w,onClear:T,isLoading:E,returnValueWithAddons:D,invalid:ie,size:O,onChange:k,value:A,defaultValue:j,id:M,strings:N,...P},F){let I=(0,g.useRef)(null),L=ee(re,N),{defaultControlSize:R}=r(),z=l(O,R),B=(0,g.useCallback)(e=>{typeof F==`function`?F(e):F&&(F.current=e),I.current=e},[F]),{id:V,value:H,isReactHookForm:U,characterCount:ae,hasCharacterLimit:W,showCount:G,hasValue:K,updateValue:q,clearValue:J,wouldExceedLimit:Y}=te({controlledValue:A,defaultValue:j,maxLength:S,showCharacterCount:C,providedId:M,idPrefix:`input`,hasOnChange:k!==void 0}),X=!!w,Z=!!E,oe=!!y,se=!!x,Q=t===`file`,$=!!ie,ce=(0,g.useMemo)(()=>{let e=z===`small`?`ps-control-sm`:`ps-control`,t=z===`small`?`pe-control-sm`:`pe-control`;return o&&(e=f[z]),b&&(e=m[z]),y&&(t=u[z]),x&&(t=p[z]),(X&&K||Z)&&(t=u[z]),G&&(t=ne[z]),`${e} ${t}`},[o,b,y,x,X,K,Z,G,z]),le=(0,g.useCallback)(e=>{let t=e.target.value;if(!Y(t)&&(q(t),k))if(D){let n=v(t,b,x);k({...e,target:{...e.target,value:n},currentTarget:{...e.currentTarget,value:n}})}else k(e)},[k,D,b,x,q,Y]),ue=(0,g.useCallback)(()=>{let e=D?v(``,b,x):``,t={target:{value:e},currentTarget:{value:e}};J(),k?.(t),T?.(),I.current?.focus()},[D,b,x,J,k,T]),de=X&&K&&!G&&!Z,fe=Z&&!G,pe=oe&&!X&&!G&&!Z,me=se&&!X&&!G&&!Z;return(0,_.jsxs)(`div`,{className:s(`input--component`,`relative`),children:[(0,_.jsx)(`input`,{ref:B,id:V,type:t,...!U&&{value:H},onChange:le,maxLength:S,"aria-invalid":$||void 0,disabled:P.disabled||E,className:s(`file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground`,`border-input flex w-full min-w-0 rounded-radius border`,`transition-[color,box-shadow] outline-none`,`disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,h[z],d[z],`file:inline-flex file:h-control-file file:border file:bg-transparent file:px-control file:font-medium`,`file:text-pxs`,Q?`cursor-pointer bg-background text-foreground file:cursor-pointer file:rounded-md file:border-input file:bg-background file:text-foreground`:`bg-transparent`,`focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,`aria-invalid:ring-destructive/20 aria-invalid:border-destructive aria-invalid:text-destructive`,`aria-invalid:placeholder:text-destructive/40`,Q?`read-only:bg-background`:`read-only:bg-muted`,ce,e),...P}),!!o&&(0,_.jsx)(`div`,{className:s(`pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-control`,P.disabled&&`opacity-50`,$?`text-destructive`:`text-muted-foreground/80`),children:(0,_.jsx)(o,{className:c[z],"aria-hidden":`true`})}),!!b&&(0,_.jsx)(`span`,{className:s(`pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center`,z===`small`?`ps-control-sm text-pxs`:`ps-control text-sm`,P.disabled&&`opacity-50`,$?`text-destructive`:`text-muted-foreground`),children:b}),!!pe&&!!y&&(0,_.jsx)(`div`,{className:s(`pointer-events-none absolute inset-y-0 end-0 flex items-center justify-center pe-control`,P.disabled&&`opacity-50`,$?`text-destructive`:`text-muted-foreground/80`),children:(0,_.jsx)(y,{className:c[z],"aria-hidden":`true`})}),!!me&&(0,_.jsx)(`span`,{className:s(`pointer-events-none absolute inset-y-0 end-0 flex items-center justify-center`,z===`small`?`pe-control-sm text-pxs`:`pe-control text-sm`,P.disabled&&`opacity-50`,$?`text-destructive`:`text-muted-foreground`),children:x}),!!G&&(0,_.jsx)(`div`,{className:s(`pointer-events-none absolute inset-y-0 end-0 flex items-center justify-center tabular-nums`,z===`small`?`pe-control-sm text-pxs`:`pe-control text-sm`,P.disabled&&`opacity-50`,$?`text-destructive`:`text-muted-foreground`),"aria-live":`polite`,role:`status`,children:(0,_.jsxs)(n,{tag:`span`,size:z===`small`?`xxs`:`xs`,type:$?`error`:`secondary`,children:[ae,W?`/${S}`:``]})}),!!fe&&(0,_.jsx)(`div`,{className:s(`pointer-events-none absolute inset-y-0 end-0 flex items-center justify-center pe-control`,$?`text-destructive`:`text-muted-foreground/80`),children:(0,_.jsx)(i,{className:s(c[z],`animate-spin`),"aria-hidden":`true`})}),!!de&&(0,_.jsx)(`button`,{type:`button`,className:`text-muted-foreground/80 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 absolute inset-y-0 end-0 flex h-full w-control-clear items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus-visible:z-10 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,"aria-label":L.clear,onClick:ue,disabled:E,children:(0,_.jsx)(a,{className:c[z],"aria-hidden":`true`})})]})}var b=(0,g.memo)(g.forwardRef(y));b.displayName=`Input`;export{b as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./chunk-QTnfLwEv.js";import{t}from"./react-sKtkuLrH.js";import{Kt as n,Qt as r,hr as i,jn as a,mr as o,nr as s,vn as c}from"./example-BsDQngs7.js";import{d as l,n as u}from"./index-B4sKWDcN.js";import{t as d}from"./useControlled-BHUji6Sp.js";import{c as f,n as p,o as m,r as h,t as g}from"./LabelableContext-BdRVtvs6.js";import{t as _}from"./useLabelableId-Bs8clfkJ.js";var v=e(t(),1),y=v.forwardRef(function(e,t){let{render:l,className:u,id:y,name:b,value:x,disabled:S=!1,onValueChange:C,defaultValue:w,autoFocus:T=!1,style:E,...D}=e,{state:O,name:k,disabled:A,setTouched:j,setDirty:M,validityData:N,setFocused:P,setFilled:F,validationMode:I,validation:L}=m(),{clearErrors:R}=p(),z=A||S,B=k??b,V={...O,disabled:z},{labelId:H}=g(),U=_({id:y});o(()=>{let e=x!=null;L.inputRef.current?.value||e&&x!==``?F(!0):e&&x===``&&F(!1)},[L.inputRef,F,x]);let W=v.useRef(null);o(()=>{T&&W.current===a(n(W.current))&&P(!0)},[T,P]);let[G]=d({controlled:x,default:w,name:`FieldControl`,state:`value`}),K=x!==void 0,q=K?G:void 0,J=i(()=>L.inputRef.current?.value);return h(L.inputRef,U,q,J,!z,b),s(`input`,e,{ref:[t,W],state:V,props:[{id:U,disabled:z,name:B,ref:L.inputRef,"aria-labelledby":H,autoFocus:T,...K?{value:q}:{defaultValue:w},onChange(e){let t=e.currentTarget.value;C?.(t,r(c,e.nativeEvent)),M(t!==N.initialValue),F(t!==``),e.nativeEvent.defaultPrevented||(R(B),L.change(t))},onFocus(){P(!0)},onBlur(e){j(!0),P(!1),I===`onBlur`&&L.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(j(!0),L.commit(e.currentTarget.value))}},D,e=>L.getValidationProps(z,e)],stateAttributesMapping:f})}),b=l(),x=v.forwardRef(function(e,t){return(0,b.jsx)(y,{ref:t,...e})});function S({className:e,type:t,...n}){return(0,b.jsx)(x,{type:t,"data-slot":`input`,className:u(`border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive h-9 rounded-md border bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] file:h-7 file:text-sm file:font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,e),...n})}export{S as t};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import{n as e}from"./chunk-QTnfLwEv.js";import{n as t,t as n}from"./section-C_rLy6Zn.js";import{t as r}from"./example-BsDQngs7.js";import{t as i}from"./lock-BwI_fNQW.js";import{t as a}from"./mail-BlH-8y33.js";import{a as o,d as s}from"./index-B4sKWDcN.js";import{n as c,r as l,t as u}from"./input-group-DwZov3Y6.js";import{t as d}from"./PreviewLayout-CE0fmzoc.js";var f=e({LeadingIcon:()=>m,StackedEmailPassword:()=>g,TrailingAddon:()=>h}),p=s();function m(){return(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)(u,{children:[(0,p.jsx)(c,{children:(0,p.jsx)(o,{className:`size-4`})}),(0,p.jsx)(l,{placeholder:`Search…`})]})})}function h(){return(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)(u,{children:[(0,p.jsx)(l,{placeholder:`username`}),(0,p.jsx)(c,{align:`inline-end`,className:`text-muted-foreground`,children:`@example.com`})]})})}function g(){return(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)(d,{children:[(0,p.jsxs)(u,{children:[(0,p.jsx)(c,{children:(0,p.jsx)(a,{className:`size-4`})}),(0,p.jsx)(l,{type:`email`,placeholder:`email@example.com`})]}),(0,p.jsxs)(u,{children:[(0,p.jsx)(c,{children:(0,p.jsx)(i,{className:`size-4`})}),(0,p.jsx)(l,{type:`password`,placeholder:`••••••••`})]})]})})}var _=`import { Search, Mail, Lock } from 'lucide-react';
|
|
2
|
+
import {
|
|
3
|
+
InputGroup,
|
|
4
|
+
InputGroupAddon,
|
|
5
|
+
InputGroupInput,
|
|
6
|
+
} from '@/components/ui/input-group';
|
|
7
|
+
import { Col } from '../../PreviewLayout';
|
|
8
|
+
|
|
9
|
+
export function LeadingIcon() {
|
|
10
|
+
return (
|
|
11
|
+
<>
|
|
12
|
+
<InputGroup>
|
|
13
|
+
<InputGroupAddon><Search className="size-4" /></InputGroupAddon>
|
|
14
|
+
<InputGroupInput placeholder="Search…" />
|
|
15
|
+
</InputGroup>
|
|
16
|
+
</>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function TrailingAddon() {
|
|
21
|
+
return (
|
|
22
|
+
<>
|
|
23
|
+
<InputGroup>
|
|
24
|
+
<InputGroupInput placeholder="username" />
|
|
25
|
+
<InputGroupAddon align="inline-end" className="text-muted-foreground">@example.com</InputGroupAddon>
|
|
26
|
+
</InputGroup>
|
|
27
|
+
</>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function StackedEmailPassword() {
|
|
32
|
+
return (
|
|
33
|
+
<>
|
|
34
|
+
<Col>
|
|
35
|
+
<InputGroup>
|
|
36
|
+
<InputGroupAddon><Mail className="size-4" /></InputGroupAddon>
|
|
37
|
+
<InputGroupInput type="email" placeholder="email@example.com" />
|
|
38
|
+
</InputGroup>
|
|
39
|
+
<InputGroup>
|
|
40
|
+
<InputGroupAddon><Lock className="size-4" /></InputGroupAddon>
|
|
41
|
+
<InputGroupInput type="password" placeholder="••••••••" />
|
|
42
|
+
</InputGroup>
|
|
43
|
+
</Col>
|
|
44
|
+
</>
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
`;function v(e){return f||b(`Examples`,!1),m||b(`Examples.LeadingIcon`,!0),g||b(`Examples.StackedEmailPassword`,!0),h||b(`Examples.TrailingAddon`,!0),(0,p.jsx)(t,{title:`UI · Input group`,description:`Input with leading / trailing add-ons.`,layer:`ui`,status:`ready`,children:(0,p.jsxs)(n,{title:`Examples`,id:`examples`,children:[(0,p.jsx)(r,{name:`LeadingIcon`,source:_,children:(0,p.jsx)(m,{})}),(0,p.jsx)(r,{name:`TrailingAddon`,source:_,children:(0,p.jsx)(h,{})}),(0,p.jsx)(r,{name:`StackedEmailPassword`,source:_,children:(0,p.jsx)(g,{})})]})})}function y(e={}){let{wrapper:t}=e.components||{};return t?(0,p.jsx)(t,{...e,children:(0,p.jsx)(v,{...e})}):v(e)}function b(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{y as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-QTnfLwEv.js";import{t as e}from"./react-sKtkuLrH.js";import{c as t}from"./section-C_rLy6Zn.js";import{d as n,n as r}from"./index-B4sKWDcN.js";import{t as i}from"./input-D70ed8oB.js";e();var a=n();function o({className:e,...t}){return(0,a.jsx)(`div`,{"data-slot":`input-group`,role:`group`,className:r(`border-input has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-9 rounded-md border shadow-xs transition-[color,box-shadow] has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot][aria-invalid=true]]:ring-[3px] has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 [[data-slot=combobox-content]_&]:focus-within:border-inherit [[data-slot=combobox-content]_&]:focus-within:ring-0 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto`,e),...t})}var s=t(`text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4 flex cursor-text items-center justify-center select-none`,{variants:{align:{"inline-start":`pl-2 has-[>button]:ml-[-0.25rem] has-[>kbd]:ml-[-0.15rem] order-first`,"inline-end":`pr-2 has-[>button]:mr-[-0.25rem] has-[>kbd]:mr-[-0.15rem] order-last`,"block-start":`px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2 order-first w-full justify-start`,"block-end":`px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start`}},defaultVariants:{align:`inline-start`}});function c({className:e,align:t=`inline-start`,...n}){return(0,a.jsx)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":t,className:r(s({align:t}),e),onClick:e=>{e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()},...n})}t(`gap-2 text-sm shadow-none flex items-center`,{variants:{size:{xs:`h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5`,sm:``,"icon-xs":`size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0`,"icon-sm":`size-8 p-0 has-[>svg]:p-0`}},defaultVariants:{size:`xs`}});function l({className:e,...t}){return(0,a.jsx)(i,{"data-slot":`input-group-control`,className:r(`rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 flex-1`,e),...t})}export{c as n,l as r,o as t};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import{n as e,r as t}from"./chunk-QTnfLwEv.js";import{t as n}from"./react-sKtkuLrH.js";import{c as r,n as i,t as a}from"./section-C_rLy6Zn.js";import{t as o}from"./example-BsDQngs7.js";import{t as s}from"./chevron-down-mjLUdP6b.js";import{t as c}from"./minus-CVVsGq91.js";import{d as l,n as u}from"./index-B4sKWDcN.js";import{a as d,i as f,n as ee,o as p,t as m}from"./select-BRC14Sd3.js";import{t as h}from"./input-D70ed8oB.js";import{t as g}from"./textarea-RUqV9hNm.js";import{t as _}from"./PreviewLayout-CE0fmzoc.js";var v=t(n(),1),y=l();function te({className:e,...t}){return(0,y.jsx)(`label`,{"data-slot":`label`,className:u(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}function b({className:e,...t}){return(0,y.jsx)(`fieldset`,{"data-slot":`field-set`,className:u(`flex flex-col gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3`,e),...t})}function x({className:e,variant:t=`legend`,...n}){return(0,y.jsx)(`legend`,{"data-slot":`field-legend`,"data-variant":t,className:u(`mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base`,e),...n})}function S({className:e,...t}){return(0,y.jsx)(`div`,{"data-slot":`field-group`,className:u(`group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4`,e),...t})}var C=r(`group/field flex w-full gap-3 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:`flex-col *:w-full [&>.sr-only]:w-auto`,horizontal:`flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`,responsive:`flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`}},defaultVariants:{orientation:`vertical`}});function w({className:e,orientation:t=`vertical`,...n}){return(0,y.jsx)(`div`,{role:`group`,"data-slot":`field`,"data-orientation":t,className:u(C({orientation:t}),e),...n})}function T({className:e,...t}){return(0,y.jsx)(te,{"data-slot":`field-label`,className:u(`group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:bg-input/30 has-[>[data-slot=field]]:rounded-2xl has-[>[data-slot=field]]:border *:data-[slot=field]:p-4`,`has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col`,e),...t})}function E({className:e,...t}){return(0,y.jsx)(`p`,{"data-slot":`field-description`,className:u(`text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5`,`last:mt-0 nth-last-2:-mt-1`,`[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,e),...t})}function D({className:e,children:t,errors:n,...r}){let i=(0,v.useMemo)(()=>{if(t)return t;if(!n?.length)return null;let e=[...new Map(n.map(e=>[e?.message,e])).values()];return e?.length==1?e[0]?.message:(0,y.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:e.map((e,t)=>e?.message&&(0,y.jsx)(`li`,{children:e.message},t))})},[t,n]);return i?(0,y.jsx)(`div`,{role:`alert`,"data-slot":`field-error`,className:u(`text-sm font-normal text-destructive`,e),...r,children:i}):null}var O=Object.defineProperty,k=Object.defineProperties,A=Object.getOwnPropertyDescriptors,j=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,P=(e,t,n)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ne=(e,t)=>{for(var n in t||={})M.call(t,n)&&P(e,n,t[n]);if(j)for(var n of j(t))N.call(t,n)&&P(e,n,t[n]);return e},re=(e,t)=>k(e,A(t)),ie=(e,t)=>{var n={};for(var r in e)M.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&j)for(var r of j(e))t.indexOf(r)<0&&N.call(e,r)&&(n[r]=e[r]);return n};function ae(e){return[setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)]}function oe(e){let t=v.useRef();return v.useEffect(()=>{t.current=e}),t.current}var F=18,I=40,L=`${I}px`,R=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function se({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[i,a]=v.useState(!1),[o,s]=v.useState(!1),[c,l]=v.useState(!1),u=v.useMemo(()=>n===`none`?!1:(n===`increase-width`||n===`experimental-no-flickering`)&&i&&o,[i,o,n]),d=v.useCallback(()=>{let r=e.current,i=t.current;if(!r||!i||c||n===`none`)return;let o=r,s=o.getBoundingClientRect().left+o.offsetWidth,u=o.getBoundingClientRect().top+o.offsetHeight/2,d=s-F,f=u;document.querySelectorAll(R).length===0&&document.elementFromPoint(d,f)===r||(a(!0),l(!0))},[e,t,c,n]);return v.useEffect(()=>{let t=e.current;if(!t||n===`none`)return;function r(){s(window.innerWidth-t.getBoundingClientRect().right>=I)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}},[e,n]),v.useEffect(()=>{let e=r||document.activeElement===t.current;if(n===`none`||!e)return;let i=setTimeout(d,0),a=setTimeout(d,2e3),o=setTimeout(d,5e3),s=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(i),clearTimeout(a),clearTimeout(o),clearTimeout(s)}},[t,r,n,d]),{hasPWMBadge:i,willPushPWMBadge:u,PWM_BADGE_SPACE_WIDTH:L}}var ce=v.createContext({}),z=v.forwardRef((e,t)=>{var n=e,{value:r,onChange:i,maxLength:a,textAlign:o=`left`,pattern:s,placeholder:c,inputMode:l=`numeric`,onComplete:u,pushPasswordManagerStrategy:d=`increase-width`,pasteTransformer:f,containerClassName:ee,noScriptCSSFallback:p=le,render:m,children:h}=n,g=ie(n,[`value`,`onChange`,`maxLength`,`textAlign`,`pattern`,`placeholder`,`inputMode`,`onComplete`,`pushPasswordManagerStrategy`,`pasteTransformer`,`containerClassName`,`noScriptCSSFallback`,`render`,`children`]),_;let[y,te]=v.useState(typeof g.defaultValue==`string`?g.defaultValue:``),b=r??y,x=oe(b),S=v.useCallback(e=>{i?.(e),te(e)},[i]),C=v.useMemo(()=>s?typeof s==`string`?new RegExp(s):s:null,[s]),w=v.useRef(null),T=v.useRef(null),E=v.useRef({value:b,onChange:S,isIOS:typeof window<`u`&&((_=window==null?void 0:window.CSS)?.supports)?.call(_,`-webkit-touch-callout`,`none`)}),D=v.useRef({prev:[w.current?.selectionStart,w.current?.selectionEnd,w.current?.selectionDirection]});v.useImperativeHandle(t,()=>w.current,[]),v.useEffect(()=>{let e=w.current,t=T.current;if(!e||!t)return;E.current.value!==e.value&&E.current.onChange(e.value),D.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection];function n(){if(document.activeElement!==e){N(null),F(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,i=e.maxLength,a=e.value,o=D.current.prev,s=-1,c=-1,l;if(a.length!==0&&t!==null&&n!==null){let e=t===n,r=t===a.length&&a.length<i;if(e&&!r){let e=t;if(e===0)s=0,c=1,l=`forward`;else if(e===i)s=e-1,c=e,l=`backward`;else if(i>1&&a.length>1){let t=0;if(o[0]!==null&&o[1]!==null){l=e<o[1]?`backward`:`forward`;let n=o[0]===o[1]&&o[0]<i;l===`backward`&&!n&&(t=-1)}s=t+e,c=t+e+1}}s!==-1&&c!==-1&&s!==c&&w.current.setSelectionRange(s,c,l)}let u=s===-1?t:s,d=c===-1?n:c,f=l??r;N(u),F(d),D.current.prev=[u,d,f]}if(document.addEventListener(`selectionchange`,n,{capture:!0}),n(),document.activeElement===e&&j(!0),!document.getElementById(`input-otp-style`)){let e=document.createElement(`style`);if(e.id=`input-otp-style`,document.head.appendChild(e),e.sheet){let t=`background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;`;B(e.sheet,`[data-input-otp]::selection { background: transparent !important; color: transparent !important; }`),B(e.sheet,`[data-input-otp]:autofill { ${t} }`),B(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),B(e.sheet,`@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }`),B(e.sheet,`[data-input-otp] + * { pointer-events: all !important; }`)}}let r=()=>{t&&t.style.setProperty(`--root-height`,`${e.clientHeight}px`)};r();let i=new ResizeObserver(r);return i.observe(e),()=>{document.removeEventListener(`selectionchange`,n,{capture:!0}),i.disconnect()}},[]);let[O,k]=v.useState(!1),[A,j]=v.useState(!1),[M,N]=v.useState(null),[P,F]=v.useState(null);v.useEffect(()=>{ae(()=>{var e;(e=w.current)==null||e.dispatchEvent(new Event(`input`));let t=w.current?.selectionStart,n=w.current?.selectionEnd,r=w.current?.selectionDirection;t!==null&&n!==null&&(N(t),F(n),D.current.prev=[t,n,r])})},[b,A]),v.useEffect(()=>{x!==void 0&&b!==x&&x.length<a&&b.length===a&&u?.(b)},[a,u,x,b]);let I=se({containerRef:T,inputRef:w,pushPasswordManagerStrategy:d,isFocused:A}),L=v.useCallback(e=>{let t=e.currentTarget.value.slice(0,a);if(t.length>0&&C&&!C.test(t)){e.preventDefault();return}typeof x==`string`&&t.length<x.length&&document.dispatchEvent(new Event(`selectionchange`)),S(t)},[a,S,x,C]),R=v.useCallback(()=>{var e;if(w.current){let t=Math.min(w.current.value.length,a-1),n=w.current.value.length;(e=w.current)==null||e.setSelectionRange(t,n),N(t),F(n)}j(!0)},[a]),z=v.useCallback(e=>{let t=w.current;if(!f&&(!E.current.isIOS||!e.clipboardData||!t))return;let n=e.clipboardData.getData(`text/plain`),r=f?f(n):n;e.preventDefault();let i=w.current?.selectionStart,o=w.current?.selectionEnd,s=(i===o?b.slice(0,i)+r+b.slice(i):b.slice(0,i)+r+b.slice(o)).slice(0,a);if(s.length>0&&C&&!C.test(s))return;t.value=s,S(s);let c=Math.min(s.length,a-1),l=s.length;t.setSelectionRange(c,l),N(c),F(l)},[a,S,C,b]),ue=v.useMemo(()=>({position:`relative`,cursor:g.disabled?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}),[g.disabled]),V=v.useMemo(()=>({position:`absolute`,inset:0,width:I.willPushPWMBadge?`calc(100% + ${I.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:I.willPushPWMBadge?`inset(0 ${I.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:o,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--root-height)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}),[I.PWM_BADGE_SPACE_WIDTH,I.willPushPWMBadge,o]),H=v.useMemo(()=>v.createElement(`input`,re(ne({autoComplete:g.autoComplete||`one-time-code`},g),{"data-input-otp":!0,"data-input-otp-placeholder-shown":b.length===0||void 0,"data-input-otp-mss":M,"data-input-otp-mse":P,inputMode:l,pattern:C?.source,"aria-placeholder":c,style:V,maxLength:a,value:b,ref:w,onPaste:e=>{var t;z(e),(t=g.onPaste)==null||t.call(g,e)},onChange:L,onMouseOver:e=>{var t;k(!0),(t=g.onMouseOver)==null||t.call(g,e)},onMouseLeave:e=>{var t;k(!1),(t=g.onMouseLeave)==null||t.call(g,e)},onFocus:e=>{var t;R(),(t=g.onFocus)==null||t.call(g,e)},onBlur:e=>{var t;j(!1),(t=g.onBlur)==null||t.call(g,e)}})),[L,R,z,l,V,a,P,M,g,C?.source,b]),U=v.useMemo(()=>({slots:Array.from({length:a}).map((e,t)=>{let n=A&&M!==null&&P!==null&&(M===P&&t===M||t>=M&&t<P),r=b[t]===void 0?null:b[t];return{char:r,placeholderChar:b[0]===void 0?c?.[t]??null:null,isActive:n,hasFakeCaret:n&&r===null}}),isFocused:A,isHovering:!g.disabled&&O}),[A,O,a,P,M,g.disabled,b]),W=v.useMemo(()=>m?m(U):v.createElement(ce.Provider,{value:U},h),[h,U,m]);return v.createElement(v.Fragment,null,p!==null&&v.createElement(`noscript`,null,v.createElement(`style`,null,p)),v.createElement(`div`,{ref:T,"data-input-otp-container":!0,style:ue,className:ee},W,v.createElement(`div`,{style:{position:`absolute`,inset:0,pointerEvents:`none`}},H)))});z.displayName=`Input`;function B(e,t){try{e.insertRule(t)}catch{console.error(`input-otp could not insert CSS rule:`,t)}}var le=`
|
|
2
|
+
[data-input-otp] {
|
|
3
|
+
--nojs-bg: white !important;
|
|
4
|
+
--nojs-fg: black !important;
|
|
5
|
+
|
|
6
|
+
background-color: var(--nojs-bg) !important;
|
|
7
|
+
color: var(--nojs-fg) !important;
|
|
8
|
+
caret-color: var(--nojs-fg) !important;
|
|
9
|
+
letter-spacing: .25em !important;
|
|
10
|
+
text-align: center !important;
|
|
11
|
+
border: 1px solid var(--nojs-fg) !important;
|
|
12
|
+
border-radius: 4px !important;
|
|
13
|
+
width: 100% !important;
|
|
14
|
+
}
|
|
15
|
+
@media (prefers-color-scheme: dark) {
|
|
16
|
+
[data-input-otp] {
|
|
17
|
+
--nojs-bg: black !important;
|
|
18
|
+
--nojs-fg: white !important;
|
|
19
|
+
}
|
|
20
|
+
}`;function ue({className:e,containerClassName:t,...n}){return(0,y.jsx)(z,{"data-slot":`input-otp`,containerClassName:u(`cn-input-otp flex items-center has-disabled:opacity-50`,t),spellCheck:!1,className:u(`disabled:cursor-not-allowed`,e),...n})}function V({className:e,...t}){return(0,y.jsx)(`div`,{"data-slot":`input-otp-group`,className:u(`flex items-center rounded-3xl has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40`,e),...t})}function H({index:e,className:t,...n}){let{char:r,hasFakeCaret:i,isActive:a}=v.useContext(ce)?.slots[e]??{};return(0,y.jsxs)(`div`,{"data-slot":`input-otp-slot`,"data-active":a,className:u(`relative flex size-9 items-center justify-center border-y border-r border-input bg-input/50 text-sm transition-all outline-none first:rounded-l-3xl first:border-l last:rounded-r-3xl aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/30 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40`,t),...n,children:[r,i&&(0,y.jsx)(`div`,{className:`pointer-events-none absolute inset-0 flex items-center justify-center`,children:(0,y.jsx)(`div`,{className:`h-4 w-px animate-caret-blink bg-foreground duration-1000`})})]})}function U({...e}){return(0,y.jsx)(`div`,{"data-slot":`input-otp-separator`,className:`flex items-center [&_svg:not([class*='size-'])]:size-4`,role:`separator`,...e,children:(0,y.jsx)(c,{})})}function W({className:e,...t}){return(0,y.jsx)(`kbd`,{"data-slot":`kbd`,className:u(`pointer-events-none inline-flex h-5.5 w-fit min-w-5.5 items-center justify-center gap-1 rounded-lg bg-muted px-1.5 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=input-group]:bg-input in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3`,e),...t})}function de({className:e,...t}){return(0,y.jsx)(`kbd`,{"data-slot":`kbd-group`,className:u(`inline-flex items-center gap-1`,e),...t})}function fe({className:e,size:t=`default`,...n}){return(0,y.jsxs)(`div`,{className:u(`group/native-select relative w-fit has-[select:disabled]:opacity-50`,e),"data-slot":`native-select-wrapper`,"data-size":t,children:[(0,y.jsx)(`select`,{"data-slot":`native-select`,"data-size":t,className:`h-9 w-full min-w-0 appearance-none rounded-3xl border border-transparent bg-input/50 py-1 pr-8 pl-3 text-sm transition-[color,box-shadow,background-color] outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-8 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,...n}),(0,y.jsx)(s,{className:`pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground select-none`,"aria-hidden":`true`,"data-slot":`native-select-icon`})]})}function G({className:e,...t}){return(0,y.jsx)(`option`,{"data-slot":`native-select-option`,className:u(`bg-[Canvas] text-[CanvasText]`,e),...t})}var pe=e({FieldExample:()=>Z,InputExample:()=>K,InputOTPExample:()=>X,KbdExample:()=>me,NativeSelectExample:()=>Y,SelectExample:()=>J,TextareaExample:()=>q});function K(){let[e,t]=(0,v.useState)(``);return(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)(_,{children:[(0,y.jsx)(h,{placeholder:`Type something…`,value:e,onChange:e=>t(e.target.value)}),(0,y.jsx)(h,{disabled:!0,placeholder:`Disabled`}),(0,y.jsx)(h,{"aria-invalid":!0,placeholder:`Invalid state`}),(0,y.jsx)(h,{type:`email`,placeholder:`email@example.com`})]})})}function q(){let[e,t]=(0,v.useState)(`Write a short internal note for the operations team.`);return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(g,{placeholder:`Multi-line input…`,value:e,onChange:e=>t(e.target.value)})})}function J(){let[e,t]=(0,v.useState)(null);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(m,{value:e,onValueChange:t,children:[(0,y.jsx)(d,{className:`w-48`,children:(0,y.jsx)(p,{placeholder:`Pick a fruit`})}),(0,y.jsxs)(ee,{children:[(0,y.jsx)(f,{value:`apple`,children:`Apple`}),(0,y.jsx)(f,{value:`banana`,children:`Banana`}),(0,y.jsx)(f,{value:`cherry`,children:`Cherry`}),(0,y.jsx)(f,{value:`date`,children:`Date`})]})]}),(0,y.jsxs)(`div`,{className:`mt-2 text-xs text-muted-foreground`,children:[`value: `,e||`—`]})]})}function Y(){let[e,t]=(0,v.useState)(`open`);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(fe,{"aria-label":`Issue status`,value:e,onChange:e=>t(e.target.value),children:[(0,y.jsx)(G,{value:`open`,children:`Open`}),(0,y.jsx)(G,{value:`review`,children:`In review`}),(0,y.jsx)(G,{value:`resolved`,children:`Resolved`})]}),(0,y.jsxs)(`div`,{className:`mt-2 text-xs text-muted-foreground`,children:[`value: `,e]})]})}function X(){let[e,t]=(0,v.useState)(``);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(ue,{maxLength:6,value:e,onChange:t,children:[(0,y.jsxs)(V,{children:[(0,y.jsx)(H,{index:0}),(0,y.jsx)(H,{index:1}),(0,y.jsx)(H,{index:2})]}),(0,y.jsx)(U,{}),(0,y.jsxs)(V,{children:[(0,y.jsx)(H,{index:3}),(0,y.jsx)(H,{index:4}),(0,y.jsx)(H,{index:5})]})]}),(0,y.jsxs)(`div`,{className:`mt-2 text-xs text-muted-foreground`,children:[`value: `,e||`empty`]})]})}function Z(){return(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)(b,{className:`max-w-md`,children:[(0,y.jsx)(x,{variant:`label`,children:`Notification settings`}),(0,y.jsxs)(S,{children:[(0,y.jsxs)(w,{children:[(0,y.jsx)(T,{htmlFor:`ui-field-email`,children:`Email`}),(0,y.jsx)(h,{id:`ui-field-email`,type:`email`,defaultValue:`kira@example.com`}),(0,y.jsx)(E,{children:`Used for critical account notifications.`})]}),(0,y.jsxs)(w,{"data-invalid":`true`,children:[(0,y.jsx)(T,{htmlFor:`ui-field-backup-email`,children:`Backup email`}),(0,y.jsx)(h,{id:`ui-field-backup-email`,type:`email`,"aria-invalid":!0,defaultValue:`invalid`}),(0,y.jsx)(D,{children:`Enter a valid email address.`})]})]})]})})}function me(){return(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)(de,{children:[(0,y.jsx)(W,{children:`Ctrl`}),(0,y.jsx)(W,{children:`K`})]})})}var Q=`import { useState } from 'react';
|
|
21
|
+
import {
|
|
22
|
+
Field,
|
|
23
|
+
FieldDescription,
|
|
24
|
+
FieldError,
|
|
25
|
+
FieldGroup,
|
|
26
|
+
FieldLabel,
|
|
27
|
+
FieldLegend,
|
|
28
|
+
FieldSet,
|
|
29
|
+
} from '@/components/ui/field';
|
|
30
|
+
import { Input } from '@/components/ui/input';
|
|
31
|
+
import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from '@/components/ui/input-otp';
|
|
32
|
+
import { Kbd, KbdGroup } from '@/components/ui/kbd';
|
|
33
|
+
import { NativeSelect, NativeSelectOption } from '@/components/ui/native-select';
|
|
34
|
+
import { Textarea } from '@/components/ui/textarea';
|
|
35
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select';
|
|
36
|
+
import { Col } from '../../PreviewLayout';
|
|
37
|
+
|
|
38
|
+
export function InputExample() {
|
|
39
|
+
const [text, setText] = useState('');
|
|
40
|
+
return (
|
|
41
|
+
<>
|
|
42
|
+
<Col>
|
|
43
|
+
<Input placeholder="Type something…" value={text} onChange={(e) => setText(e.target.value)} />
|
|
44
|
+
<Input disabled placeholder="Disabled" />
|
|
45
|
+
<Input aria-invalid placeholder="Invalid state" />
|
|
46
|
+
<Input type="email" placeholder="email@example.com" />
|
|
47
|
+
</Col>
|
|
48
|
+
</>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function TextareaExample() {
|
|
53
|
+
const [body, setBody] = useState('Write a short internal note for the operations team.');
|
|
54
|
+
return (
|
|
55
|
+
<>
|
|
56
|
+
<Textarea placeholder="Multi-line input…" value={body} onChange={(e) => setBody(e.target.value)} />
|
|
57
|
+
</>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function SelectExample() {
|
|
62
|
+
const [fruit, setFruit] = useState<string | null>(null);
|
|
63
|
+
return (
|
|
64
|
+
<>
|
|
65
|
+
<Select value={fruit} onValueChange={setFruit}>
|
|
66
|
+
<SelectTrigger className="w-48">
|
|
67
|
+
<SelectValue placeholder="Pick a fruit" />
|
|
68
|
+
</SelectTrigger>
|
|
69
|
+
<SelectContent>
|
|
70
|
+
<SelectItem value="apple">Apple</SelectItem>
|
|
71
|
+
<SelectItem value="banana">Banana</SelectItem>
|
|
72
|
+
<SelectItem value="cherry">Cherry</SelectItem>
|
|
73
|
+
<SelectItem value="date">Date</SelectItem>
|
|
74
|
+
</SelectContent>
|
|
75
|
+
</Select>
|
|
76
|
+
<div className="mt-2 text-xs text-muted-foreground">value: {fruit || '—'}</div>
|
|
77
|
+
</>
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function NativeSelectExample() {
|
|
82
|
+
const [status, setStatus] = useState('open');
|
|
83
|
+
|
|
84
|
+
return (
|
|
85
|
+
<>
|
|
86
|
+
<NativeSelect
|
|
87
|
+
aria-label="Issue status"
|
|
88
|
+
value={status}
|
|
89
|
+
onChange={(event) => setStatus(event.target.value)}
|
|
90
|
+
>
|
|
91
|
+
<NativeSelectOption value="open">Open</NativeSelectOption>
|
|
92
|
+
<NativeSelectOption value="review">In review</NativeSelectOption>
|
|
93
|
+
<NativeSelectOption value="resolved">Resolved</NativeSelectOption>
|
|
94
|
+
</NativeSelect>
|
|
95
|
+
<div className="mt-2 text-xs text-muted-foreground">value: {status}</div>
|
|
96
|
+
</>
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function InputOTPExample() {
|
|
101
|
+
const [code, setCode] = useState('');
|
|
102
|
+
|
|
103
|
+
return (
|
|
104
|
+
<>
|
|
105
|
+
<InputOTP maxLength={6} value={code} onChange={setCode}>
|
|
106
|
+
<InputOTPGroup>
|
|
107
|
+
<InputOTPSlot index={0} />
|
|
108
|
+
<InputOTPSlot index={1} />
|
|
109
|
+
<InputOTPSlot index={2} />
|
|
110
|
+
</InputOTPGroup>
|
|
111
|
+
<InputOTPSeparator />
|
|
112
|
+
<InputOTPGroup>
|
|
113
|
+
<InputOTPSlot index={3} />
|
|
114
|
+
<InputOTPSlot index={4} />
|
|
115
|
+
<InputOTPSlot index={5} />
|
|
116
|
+
</InputOTPGroup>
|
|
117
|
+
</InputOTP>
|
|
118
|
+
<div className="mt-2 text-xs text-muted-foreground">value: {code || 'empty'}</div>
|
|
119
|
+
</>
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function FieldExample() {
|
|
124
|
+
return (
|
|
125
|
+
<>
|
|
126
|
+
<FieldSet className="max-w-md">
|
|
127
|
+
<FieldLegend variant="label">Notification settings</FieldLegend>
|
|
128
|
+
<FieldGroup>
|
|
129
|
+
<Field>
|
|
130
|
+
<FieldLabel htmlFor="ui-field-email">Email</FieldLabel>
|
|
131
|
+
<Input id="ui-field-email" type="email" defaultValue="kira@example.com" />
|
|
132
|
+
<FieldDescription>Used for critical account notifications.</FieldDescription>
|
|
133
|
+
</Field>
|
|
134
|
+
<Field data-invalid="true">
|
|
135
|
+
<FieldLabel htmlFor="ui-field-backup-email">Backup email</FieldLabel>
|
|
136
|
+
<Input id="ui-field-backup-email" type="email" aria-invalid defaultValue="invalid" />
|
|
137
|
+
<FieldError>Enter a valid email address.</FieldError>
|
|
138
|
+
</Field>
|
|
139
|
+
</FieldGroup>
|
|
140
|
+
</FieldSet>
|
|
141
|
+
</>
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function KbdExample() {
|
|
146
|
+
return (
|
|
147
|
+
<>
|
|
148
|
+
<KbdGroup>
|
|
149
|
+
<Kbd>Ctrl</Kbd>
|
|
150
|
+
<Kbd>K</Kbd>
|
|
151
|
+
</KbdGroup>
|
|
152
|
+
</>
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
`;function he(e){return pe||$(`Examples`,!1),Z||$(`Examples.FieldExample`,!0),K||$(`Examples.InputExample`,!0),X||$(`Examples.InputOTPExample`,!0),me||$(`Examples.KbdExample`,!0),Y||$(`Examples.NativeSelectExample`,!0),J||$(`Examples.SelectExample`,!0),q||$(`Examples.TextareaExample`,!0),(0,y.jsx)(i,{title:`UI · Inputs`,description:`Input, Textarea, Select, NativeSelect, InputOTP, Field, and Kbd primitives.`,layer:`ui`,status:`ready`,children:(0,y.jsxs)(a,{title:`Examples`,id:`examples`,children:[(0,y.jsx)(o,{name:`InputExample`,source:Q,children:(0,y.jsx)(K,{})}),(0,y.jsx)(o,{name:`TextareaExample`,source:Q,children:(0,y.jsx)(q,{})}),(0,y.jsx)(o,{name:`SelectExample`,source:Q,children:(0,y.jsx)(J,{})}),(0,y.jsx)(o,{name:`NativeSelectExample`,source:Q,children:(0,y.jsx)(Y,{})}),(0,y.jsx)(o,{name:`InputOTPExample`,source:Q,children:(0,y.jsx)(X,{})}),(0,y.jsx)(o,{name:`FieldExample`,source:Q,children:(0,y.jsx)(Z,{})}),(0,y.jsx)(o,{name:`KbdExample`,source:Q,children:(0,y.jsx)(me,{})})]})})}function ge(e={}){let{wrapper:t}=e.components||{};return t?(0,y.jsx)(t,{...e,children:(0,y.jsx)(he,{...e})}):he(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};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import{n as e}from"./chunk-QTnfLwEv.js";import{n as t,o as n,p as r,t as i}from"./section-C_rLy6Zn.js";import{r as a,t as o}from"./example-BsDQngs7.js";import{t as s}from"./wrench-BzqNpztP.js";import{d as c,l,o as u,s as d}from"./index-B4sKWDcN.js";import{t as f}from"./icon-badge-ruuI6tt0.js";import{t as p}from"./smart-card-CwDYx0xj.js";var m=l(`plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]),h=l(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),g=e({ImportRecipe:()=>x,InstallCommand:()=>y,MaintainerChecks:()=>C,NextLinks:()=>w,OptionalPeers:()=>S,RequiredSteps:()=>b}),_=c(),v=[[`Package`,`Install the library plus React, Tailwind, and icon peers used by the base layer.`],[`Stylesheet`,`Import the package stylesheet once in the application entry.`],[`Provider`,`Wrap the app in UIProvider when you want centralized display defaults.`],[`Imports`,`Use exact package subpaths for every component family.`]];function y(){return(0,_.jsx)(p,{title:`Install the package`,description:`Use the package as a library dependency, not copied source.`,icon:(0,_.jsx)(f,{icon:u,tone:`primary`,shape:`square`,size:`default`}),children:(0,_.jsx)(`div`,{className:`rounded-md bg-muted px-3 py-2 font-mono text-xs text-foreground`,children:`npm install admin-ui-starter-kit react react-dom tailwindcss lucide-react`})})}function b(){return(0,_.jsx)(`div`,{className:`grid gap-3 md:grid-cols-2`,children:v.map(([e,t],n)=>(0,_.jsx)(p,{surface:`framed`,padding:`default`,children:(0,_.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,_.jsx)(`span`,{className:`inline-flex size-7 shrink-0 items-center justify-center rounded-md bg-muted text-xs font-semibold text-foreground`,children:n+1}),(0,_.jsxs)(`div`,{children:[(0,_.jsx)(r,{weight:`semibold`,children:e}),(0,_.jsx)(r,{size:`xs`,type:`secondary`,className:`mt-1`,children:t})]})]})},e))})}function x(){return(0,_.jsx)(p,{title:`Exact public imports`,description:`Do not import raw shadcn primitives or preview files from consuming apps.`,icon:(0,_.jsx)(f,{icon:m,tone:`info`,shape:`square`,size:`default`}),children:(0,_.jsxs)(`div`,{className:`grid gap-2 font-mono text-xs text-foreground`,children:[(0,_.jsx)(`div`,{className:`rounded-md bg-muted px-3 py-2`,children:`import 'admin-ui-starter-kit/style.css';`}),(0,_.jsxs)(`div`,{className:`rounded-md bg-muted px-3 py-2`,children:[`import `,`{ UIProvider }`,` from 'admin-ui-starter-kit/ui-provider';`]}),(0,_.jsxs)(`div`,{className:`rounded-md bg-muted px-3 py-2`,children:[`import `,`{ Button }`,` from 'admin-ui-starter-kit/base/buttons';`]}),(0,_.jsxs)(`div`,{className:`rounded-md bg-muted px-3 py-2`,children:[`import `,`{ GlobalSearch }`,` from 'admin-ui-starter-kit/features/global-search';`]})]})})}function S(){return(0,_.jsx)(p,{surface:`framed`,padding:`default`,children:(0,_.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,_.jsx)(f,{icon:s,tone:`warning`,shape:`square`}),(0,_.jsxs)(`div`,{className:`min-w-0 space-y-2`,children:[(0,_.jsxs)(`div`,{children:[(0,_.jsx)(r,{weight:`semibold`,children:`Feature peers stay opt-in`}),(0,_.jsx)(r,{size:`xs`,type:`secondary`,className:`mt-1`,children:`Rich text, charts, maps, drag and drop, and command palettes are installed only when the consuming app uses those surfaces.`})]}),(0,_.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,_.jsx)(n,{variant:`secondary`,children:`@tiptap/react`}),(0,_.jsx)(n,{variant:`secondary`,children:`recharts`}),(0,_.jsx)(n,{variant:`secondary`,children:`embla-carousel-react`}),(0,_.jsx)(n,{variant:`secondary`,children:`cmdk`})]})]})]})})}function C(){return(0,_.jsxs)(`div`,{className:`grid gap-3 md:grid-cols-2`,children:[(0,_.jsx)(p,{title:`Consumer install skill`,description:`Installs the migration guidance into a downstream app.`,icon:(0,_.jsx)(f,{icon:d,tone:`success`,shape:`square`,size:`default`}),children:(0,_.jsx)(`div`,{className:`rounded-md bg-muted px-3 py-2 font-mono text-xs text-foreground`,children:`npx admin-ui-starter-kit-install-skill`})}),(0,_.jsx)(p,{title:`Release verification`,description:`Run package checks before publishing a release.`,icon:(0,_.jsx)(f,{icon:h,tone:`warning`,shape:`square`,size:`default`}),children:(0,_.jsx)(`div`,{className:`rounded-md bg-muted px-3 py-2 font-mono text-xs text-foreground`,children:`npm run verify:release`})})]})}function w(){return(0,_.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,_.jsx)(a,{href:`#/base/css-variables`,size:`default`,children:`View CSS variables`}),(0,_.jsx)(a,{href:`#/docs/showcase`,size:`default`,buttonStyle:`outline`,children:`Use the showcase`})]})}var T=`import {
|
|
2
|
+
ClipboardCheck,
|
|
3
|
+
PackageOpen,
|
|
4
|
+
Plug,
|
|
5
|
+
TerminalSquare,
|
|
6
|
+
Wrench } from 'lucide-react';
|
|
7
|
+
|
|
8
|
+
import { Badge } from '@/components/base/badge';
|
|
9
|
+
import { Button } from '@/components/base/buttons';
|
|
10
|
+
import { SmartCard } from '@/components/base/cards';
|
|
11
|
+
import { IconBadge,
|
|
12
|
+
} from '@/components/base/display';
|
|
13
|
+
import { Text } from '@/components/typography';
|
|
14
|
+
|
|
15
|
+
const REQUIRED_STEPS = [
|
|
16
|
+
['Package', 'Install the library plus React, Tailwind, and icon peers used by the base layer.'],
|
|
17
|
+
['Stylesheet', 'Import the package stylesheet once in the application entry.'],
|
|
18
|
+
['Provider', 'Wrap the app in UIProvider when you want centralized display defaults.'],
|
|
19
|
+
['Imports', 'Use exact package subpaths for every component family.'],
|
|
20
|
+
] as const;
|
|
21
|
+
|
|
22
|
+
export function InstallCommand() {
|
|
23
|
+
return (
|
|
24
|
+
<SmartCard
|
|
25
|
+
title="Install the package"
|
|
26
|
+
description="Use the package as a library dependency, not copied source."
|
|
27
|
+
icon={<IconBadge icon={PackageOpen} tone="primary" shape="square" size="default" />}
|
|
28
|
+
>
|
|
29
|
+
<div className="rounded-md bg-muted px-3 py-2 font-mono text-xs text-foreground">
|
|
30
|
+
npm install admin-ui-starter-kit react react-dom tailwindcss lucide-react
|
|
31
|
+
</div>
|
|
32
|
+
</SmartCard>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function RequiredSteps() {
|
|
37
|
+
return (
|
|
38
|
+
<div className="grid gap-3 md:grid-cols-2">
|
|
39
|
+
{REQUIRED_STEPS.map(([title, description], index) => (
|
|
40
|
+
<SmartCard key={title} surface="framed" padding="default">
|
|
41
|
+
<div className="flex items-start gap-3">
|
|
42
|
+
<span className="inline-flex size-7 shrink-0 items-center justify-center rounded-md bg-muted text-xs font-semibold text-foreground">{index + 1}</span>
|
|
43
|
+
<div>
|
|
44
|
+
<Text weight="semibold">{title}</Text>
|
|
45
|
+
<Text size="xs" type="secondary" className="mt-1">
|
|
46
|
+
{description}
|
|
47
|
+
</Text>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</SmartCard>
|
|
51
|
+
))}
|
|
52
|
+
</div>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ImportRecipe() {
|
|
57
|
+
return (
|
|
58
|
+
<SmartCard
|
|
59
|
+
title="Exact public imports"
|
|
60
|
+
description="Do not import raw shadcn primitives or preview files from consuming apps."
|
|
61
|
+
icon={<IconBadge icon={Plug} tone="info" shape="square" size="default" />}
|
|
62
|
+
>
|
|
63
|
+
<div className="grid gap-2 font-mono text-xs text-foreground">
|
|
64
|
+
<div className="rounded-md bg-muted px-3 py-2">import 'admin-ui-starter-kit/style.css';</div>
|
|
65
|
+
<div className="rounded-md bg-muted px-3 py-2">import {'{ UIProvider }'} from 'admin-ui-starter-kit/ui-provider';</div>
|
|
66
|
+
<div className="rounded-md bg-muted px-3 py-2">import {'{ Button }'} from 'admin-ui-starter-kit/base/buttons';</div>
|
|
67
|
+
<div className="rounded-md bg-muted px-3 py-2">import {'{ GlobalSearch }'} from 'admin-ui-starter-kit/features/global-search';</div>
|
|
68
|
+
</div>
|
|
69
|
+
</SmartCard>
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function OptionalPeers() {
|
|
74
|
+
return (
|
|
75
|
+
<SmartCard surface="framed" padding="default">
|
|
76
|
+
<div className="flex items-start gap-3">
|
|
77
|
+
<IconBadge icon={Wrench} tone="warning" shape="square" />
|
|
78
|
+
<div className="min-w-0 space-y-2">
|
|
79
|
+
<div>
|
|
80
|
+
<Text weight="semibold">Feature peers stay opt-in</Text>
|
|
81
|
+
<Text size="xs" type="secondary" className="mt-1">
|
|
82
|
+
Rich text, charts, maps, drag and drop, and command palettes are installed only when the consuming app uses those surfaces.
|
|
83
|
+
</Text>
|
|
84
|
+
</div>
|
|
85
|
+
<div className="flex flex-wrap gap-2">
|
|
86
|
+
<Badge variant="secondary">@tiptap/react</Badge>
|
|
87
|
+
<Badge variant="secondary">recharts</Badge>
|
|
88
|
+
<Badge variant="secondary">embla-carousel-react</Badge>
|
|
89
|
+
<Badge variant="secondary">cmdk</Badge>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</SmartCard>
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function MaintainerChecks() {
|
|
98
|
+
return (
|
|
99
|
+
<div className="grid gap-3 md:grid-cols-2">
|
|
100
|
+
<SmartCard
|
|
101
|
+
title="Consumer install skill"
|
|
102
|
+
description="Installs the migration guidance into a downstream app."
|
|
103
|
+
icon={<IconBadge icon={ClipboardCheck} tone="success" shape="square" size="default" />}
|
|
104
|
+
>
|
|
105
|
+
<div className="rounded-md bg-muted px-3 py-2 font-mono text-xs text-foreground">npx admin-ui-starter-kit-install-skill</div>
|
|
106
|
+
</SmartCard>
|
|
107
|
+
<SmartCard
|
|
108
|
+
title="Release verification"
|
|
109
|
+
description="Run package checks before publishing a release."
|
|
110
|
+
icon={<IconBadge icon={TerminalSquare} tone="warning" shape="square" size="default" />}
|
|
111
|
+
>
|
|
112
|
+
<div className="rounded-md bg-muted px-3 py-2 font-mono text-xs text-foreground">npm run verify:release</div>
|
|
113
|
+
</SmartCard>
|
|
114
|
+
</div>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function NextLinks() {
|
|
119
|
+
return (
|
|
120
|
+
<div className="flex flex-wrap gap-2">
|
|
121
|
+
<Button href="#/base/css-variables" size="default">
|
|
122
|
+
View CSS variables
|
|
123
|
+
</Button>
|
|
124
|
+
<Button href="#/docs/showcase" size="default" buttonStyle="outline">
|
|
125
|
+
Use the showcase
|
|
126
|
+
</Button>
|
|
127
|
+
</div>
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
`;function E(e){let n={code:`code`,p:`p`,...e.components};return g||O(`Examples`,!1),x||O(`Examples.ImportRecipe`,!0),y||O(`Examples.InstallCommand`,!0),C||O(`Examples.MaintainerChecks`,!0),w||O(`Examples.NextLinks`,!0),S||O(`Examples.OptionalPeers`,!0),b||O(`Examples.RequiredSteps`,!0),(0,_.jsxs)(t,{title:`Installation`,description:`Install the package, import the stylesheet, and consume exact public subpaths.`,layer:`docs`,status:`ready`,sourcePath:`README.md`,children:[(0,_.jsxs)(i,{title:`Install`,id:`install`,children:[(0,_.jsx)(o,{name:`InstallCommand`,source:T,layout:`flush`,children:(0,_.jsx)(y,{})}),(0,_.jsx)(o,{name:`RequiredSteps`,source:T,layout:`flush`,children:(0,_.jsx)(b,{})})]}),(0,_.jsxs)(i,{title:`Imports`,id:`imports`,children:[(0,_.jsx)(o,{name:`ImportRecipe`,source:T,layout:`flush`,children:(0,_.jsx)(x,{})}),(0,_.jsxs)(n.p,{children:[`Exact subpaths are part of the public contract. The root entrypoint intentionally
|
|
131
|
+
stays small; component families are imported from `,(0,_.jsx)(n.code,{children:`base/*`}),`, `,(0,_.jsx)(n.code,{children:`composed/*`}),`,
|
|
132
|
+
`,(0,_.jsx)(n.code,{children:`features/*`}),`, or `,(0,_.jsx)(n.code,{children:`layout/*`}),` public paths.`]})]}),(0,_.jsxs)(i,{title:`Optional Peers`,id:`optional-peers`,children:[(0,_.jsx)(o,{name:`OptionalPeers`,source:T,layout:`flush`,children:(0,_.jsx)(S,{})}),(0,_.jsx)(n.p,{children:`Only install optional peers for surfaces your app renders. The library remains
|
|
133
|
+
framework-neutral; routing, mutations, query clients, and i18n systems stay in
|
|
134
|
+
the consuming app.`})]}),(0,_.jsxs)(i,{title:`Verification`,id:`verification`,children:[(0,_.jsx)(o,{name:`MaintainerChecks`,source:T,layout:`flush`,children:(0,_.jsx)(C,{})}),(0,_.jsx)(o,{name:`NextLinks`,source:T,layout:`center`,children:(0,_.jsx)(w,{})})]})]})}function D(e={}){let{wrapper:t}=e.components||{};return t?(0,_.jsx)(t,{...e,children:(0,_.jsx)(E,{...e})}):E(e)}function O(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{D as default};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import{n as e}from"./chunk-QTnfLwEv.js";import{f as t,n,o as r,p as i,t as a}from"./section-C_rLy6Zn.js";import{t as o}from"./example-BsDQngs7.js";import{N as s,d as c,n as l}from"./index-B4sKWDcN.js";import{t as u}from"./props-table-aynAz90t.js";import{t as d}from"./smart-card-CwDYx0xj.js";import{t as f}from"./separator-CjWigMul.js";import{t as p}from"./inline-stat-C9Syz6in.js";var m={title:`Invoice`,billFrom:`Bill From`,billTo:`Bill To`,issued:`Issued`,due:`Due`,amountDue:`Amount Due`},h=c();function g({eyebrow:e,name:t,location:n}){return(0,h.jsxs)(`div`,{className:l(`invoice-header--component`,`space-y-1`),children:[(0,h.jsx)(i,{size:`xs`,type:`secondary`,weight:`medium`,className:`uppercase tracking-wider`,children:e}),(0,h.jsx)(i,{weight:`semibold`,className:`leading-snug`,children:t}),!!n&&(0,h.jsx)(i,{size:`xs`,type:`secondary`,className:`leading-snug`,children:n})]})}function _({invoiceNumber:e,status:n,statusVariant:a=`success`,from:o,to:c,issuedDate:u,dueDate:_,amount:v,className:y,strings:b}){let x=s(m,b);return(0,h.jsxs)(d,{title:x.title,className:y,children:[(0,h.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,h.jsx)(i,{weight:`bold`,className:`font-mono tracking-wide`,children:e}),(0,h.jsx)(r,{variant:a,children:n})]}),(0,h.jsxs)(`div`,{className:`mt-5 grid grid-cols-1 gap-5 sm:grid-cols-2 sm:gap-6`,children:[(0,h.jsx)(g,{eyebrow:x.billFrom,name:o.name,location:o.location}),(0,h.jsx)(g,{eyebrow:x.billTo,name:c.name,location:c.location})]}),(0,h.jsx)(f,{className:`my-5`}),(0,h.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-4`,children:[(0,h.jsxs)(`div`,{className:`space-y-1`,children:[!!u&&(0,h.jsx)(p,{layout:`inline`,label:x.issued,value:u,mono:!0,labelClassName:`text-xs uppercase tracking-wider font-medium`,valueClassName:`text-xs font-medium`}),!!_&&(0,h.jsx)(p,{layout:`inline`,label:x.due,value:_,mono:!0,labelClassName:`text-xs uppercase tracking-wider font-medium`,valueClassName:`text-xs font-medium`})]}),(0,h.jsxs)(`div`,{className:`text-right`,children:[(0,h.jsx)(i,{size:`xs`,type:`secondary`,weight:`medium`,className:`uppercase tracking-wider`,children:x.amountDue}),(0,h.jsx)(t,{tag:`h3`,className:l(`mt-1 text-base tabular-nums leading-none tracking-tight border-none pb-0`),children:v})]})]})]})}_.displayName=`InvoiceHeaderCard`;var v=e({Overdue:()=>b,Paid:()=>y});function y(){return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(_,{invoiceNumber:`#INV-2026-0392`,status:`Paid`,statusVariant:`success`,from:{name:`Gift Come True Ltd.`,location:`New York, NY`},to:{name:`Daniel Smith`,location:`Los Angeles, USA`},issuedDate:`Mar 20, 2026`,dueDate:`Apr 20, 2026`,amount:`2,480.00 USD`})})}function b(){return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(_,{invoiceNumber:`#INV-2026-0114`,status:`Overdue`,statusVariant:`error`,from:{name:`Gift Come True Ltd.`},to:{name:`Adventure Park Bansko`},issuedDate:`Feb 14, 2026`,dueDate:`Mar 14, 2026`,amount:`3,120.00 USD`})})}var x=`import { InvoiceHeaderCard } from '@/components/composed/data-display/invoice-header';
|
|
2
|
+
|
|
3
|
+
export function Paid() {
|
|
4
|
+
return (
|
|
5
|
+
<>
|
|
6
|
+
<InvoiceHeaderCard
|
|
7
|
+
invoiceNumber="#INV-2026-0392"
|
|
8
|
+
status="Paid"
|
|
9
|
+
statusVariant="success"
|
|
10
|
+
from={{ name: 'Gift Come True Ltd.', location: 'New York, NY' }}
|
|
11
|
+
to={{ name: 'Daniel Smith', location: 'Los Angeles, USA' }}
|
|
12
|
+
issuedDate="Mar 20, 2026"
|
|
13
|
+
dueDate="Apr 20, 2026"
|
|
14
|
+
amount="2,480.00 USD"
|
|
15
|
+
/>
|
|
16
|
+
</>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function Overdue() {
|
|
21
|
+
return (
|
|
22
|
+
<>
|
|
23
|
+
<InvoiceHeaderCard
|
|
24
|
+
invoiceNumber="#INV-2026-0114"
|
|
25
|
+
status="Overdue"
|
|
26
|
+
statusVariant="error"
|
|
27
|
+
from={{ name: 'Gift Come True Ltd.' }}
|
|
28
|
+
to={{ name: 'Adventure Park Bansko' }}
|
|
29
|
+
issuedDate="Feb 14, 2026"
|
|
30
|
+
dueDate="Mar 14, 2026"
|
|
31
|
+
amount="3,120.00 USD"
|
|
32
|
+
/>
|
|
33
|
+
</>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
`;function S(e){let t={h4:`h4`,...e.components};return v||w(`Examples`,!1),b||w(`Examples.Overdue`,!0),y||w(`Examples.Paid`,!0),(0,h.jsxs)(n,{title:`Composed · Invoice header`,description:`Top of an invoice — number, status, parties, amount.`,layer:`composed`,status:`ready`,children:[(0,h.jsxs)(a,{title:`Examples`,id:`examples`,children:[(0,h.jsx)(o,{name:`Paid`,source:x,children:(0,h.jsx)(y,{})}),(0,h.jsx)(o,{name:`Overdue`,source:x,children:(0,h.jsx)(b,{})})]}),(0,h.jsxs)(a,{title:`API`,id:`api`,children:[(0,h.jsx)(t.h4,{children:`InvoiceHeaderCard`}),(0,h.jsx)(u,{component:`InvoiceHeaderCard`})]})]})}function C(e={}){let{wrapper:t}=e.components||{};return t?(0,h.jsx)(t,{...e,children:(0,h.jsx)(S,{...e})}):S(e)}function w(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{C as default};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import{n as e}from"./chunk-QTnfLwEv.js";import{n as t,o as n,p as r,t as i}from"./section-C_rLy6Zn.js";import{t as a}from"./example-BsDQngs7.js";import{t as o}from"./package-CqQQqj6Y.js";import{d as s,n as c}from"./index-B4sKWDcN.js";import{t as l}from"./props-table-aynAz90t.js";import{t as u}from"./icon-badge-ruuI6tt0.js";import{c as d,n as f,o as p,r as m,t as h,u as g}from"./item-WOhHNpnr.js";import{t as _}from"./separator-CjWigMul.js";import{t as v}from"./inline-stat-C9Syz6in.js";var y=s();function b({items:e,subtotal:t,tax:i,discount:a,total:o,className:s}){return(0,y.jsxs)(`div`,{className:c(`invoice-items--component`,`w-full min-w-0 max-w-full overflow-hidden rounded-lg border border-border bg-card shadow-sm`,s),children:[(0,y.jsxs)(`div`,{className:`grid grid-cols-[1fr_72px_96px_96px] gap-3 bg-muted/40 px-4 py-3`,children:[(0,y.jsx)(r,{size:`xs`,type:`secondary`,weight:`medium`,children:`Item`}),(0,y.jsx)(r,{size:`xs`,type:`secondary`,weight:`medium`,align:`center`,children:`Qty`}),(0,y.jsx)(r,{size:`xs`,type:`secondary`,weight:`medium`,align:`right`,children:`Price`}),(0,y.jsx)(r,{size:`xs`,type:`secondary`,weight:`medium`,align:`right`,children:`Total`})]}),e.map((t,i)=>(0,y.jsxs)(`div`,{children:[(0,y.jsxs)(`div`,{className:`grid grid-cols-[1fr_72px_96px_96px] items-center gap-3 px-4 py-3`,children:[(0,y.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,y.jsx)(r,{weight:`medium`,children:t.title}),!!t.badge&&(0,y.jsx)(n,{variant:t.badgeVariant??`secondary`,children:t.badge})]}),!!t.description&&(0,y.jsx)(r,{size:`xs`,type:`secondary`,className:`line-clamp-1`,children:t.description})]}),(0,y.jsx)(r,{align:`center`,type:`secondary`,className:`tabular-nums`,children:t.quantity??1}),(0,y.jsx)(r,{align:`right`,className:`tabular-nums`,children:t.unitPrice??t.total}),(0,y.jsx)(r,{align:`right`,weight:`semibold`,className:`tabular-nums`,children:t.total})]}),i<e.length-1&&(0,y.jsx)(_,{className:`mx-4 !w-auto`})]},t.id)),!!(t||i||a||o)&&(0,y.jsxs)(`div`,{className:`space-y-2 border-t border-border bg-muted/30 px-4 py-3`,children:[!!t&&(0,y.jsx)(v,{label:`Subtotal`,value:t,mono:!0,labelClassName:`text-sm`,valueClassName:`text-sm`}),!!a&&(0,y.jsx)(v,{label:`Discount`,value:`-${a}`,mono:!0,labelClassName:`text-sm`,valueClassName:`text-sm text-success`}),!!i&&(0,y.jsx)(v,{label:`Tax`,value:i,mono:!0,labelClassName:`text-sm`,valueClassName:`text-sm`}),!!o&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(_,{}),(0,y.jsx)(v,{className:`pt-1`,label:`Total`,value:(0,y.jsx)(r,{weight:`semibold`,className:`tabular-nums`,children:o}),labelClassName:`text-sm font-semibold`})]})]})]})}function x({items:e,total:t,className:i}){return(0,y.jsxs)(`div`,{className:c(`invoice-items--component`,`w-full min-w-0 max-w-full space-y-2`,i),children:[(0,y.jsx)(p,{className:`min-w-0 max-w-full`,children:e.map(e=>(0,y.jsxs)(h,{className:`min-w-0 bg-card shadow-sm`,children:[(0,y.jsx)(d,{children:(0,y.jsx)(u,{tone:`muted`,size:`default`,shape:`square`,children:e.icon??(0,y.jsx)(o,{})})}),(0,y.jsxs)(m,{className:`min-w-0 basis-0`,children:[(0,y.jsx)(g,{className:`w-full min-w-0 max-w-full`,children:(0,y.jsx)(`span`,{className:`block min-w-0 truncate`,children:e.title})}),!!(e.description||e.badge)&&(0,y.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[!!e.badge&&(0,y.jsx)(n,{variant:e.badgeVariant??`secondary`,className:`shrink-0`,children:e.badge}),!!e.description&&(0,y.jsx)(r,{size:`xs`,type:`secondary`,className:`min-w-0 truncate`,children:e.description})]})]}),(0,y.jsxs)(f,{className:`ml-auto min-w-0 shrink-0 justify-end`,children:[!!e.quantity&&e.quantity>1&&(0,y.jsxs)(r,{size:`xs`,type:`secondary`,className:`shrink-0 tabular-nums`,children:[`x`,e.quantity]}),(0,y.jsx)(r,{weight:`semibold`,align:`right`,className:`shrink-0 tabular-nums`,children:e.total})]})]},e.id))}),!!t&&(0,y.jsx)(v,{className:`rounded-lg border border-border bg-muted/30 px-4 py-2.5`,label:`Total`,value:(0,y.jsx)(r,{weight:`semibold`,className:`tabular-nums`,children:t}),labelClassName:`text-sm font-semibold`})]})}function S({items:e,subtotal:t,tax:i,discount:a,total:s,className:l}){return(0,y.jsxs)(`div`,{className:c(`invoice-items--component`,`w-full min-w-0 max-w-full overflow-hidden rounded-lg border border-border bg-card shadow-sm`,l),children:[(0,y.jsx)(`div`,{className:`divide-y divide-border`,children:e.map(e=>(0,y.jsx)(`div`,{className:`px-4 py-3`,children:(0,y.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,y.jsxs)(`div`,{className:`flex items-start gap-3 flex-1 min-w-0`,children:[(0,y.jsx)(`div`,{className:`mt-0.5 flex size-9 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary`,children:e.icon??(0,y.jsx)(o,{className:`size-4`})}),(0,y.jsxs)(`div`,{className:`flex-1 min-w-0 space-y-1`,children:[(0,y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,y.jsx)(r,{weight:`semibold`,children:e.title}),!!e.badge&&(0,y.jsx)(n,{variant:e.badgeVariant??`secondary`,children:e.badge})]}),!!e.description&&(0,y.jsx)(r,{size:`xs`,type:`secondary`,className:`line-clamp-2`,children:e.description}),(0,y.jsxs)(`div`,{className:`flex items-center gap-3 pt-0.5`,children:[!!e.quantity&&(0,y.jsxs)(r,{size:`xs`,type:`discrete`,children:[`Qty: `,e.quantity]}),!!e.unitPrice&&(0,y.jsxs)(r,{size:`xs`,type:`discrete`,className:`tabular-nums`,children:[`@ `,e.unitPrice]})]})]})]}),(0,y.jsx)(`div`,{className:`flex flex-col items-end gap-1 shrink-0`,children:(0,y.jsx)(r,{weight:`semibold`,className:`tabular-nums`,children:e.total})})]})},e.id))}),!!s&&(0,y.jsx)(`div`,{className:`border-t border-border bg-muted/30 px-4 py-3`,children:(0,y.jsxs)(`div`,{className:`space-y-2`,children:[!!t&&(0,y.jsx)(v,{label:`Subtotal`,value:t,mono:!0,labelClassName:`text-sm`,valueClassName:`text-sm`}),!!a&&(0,y.jsx)(v,{label:`Discount`,value:`-${a}`,mono:!0,labelClassName:`text-sm`,valueClassName:`text-sm text-success`}),!!i&&(0,y.jsx)(v,{label:`Tax (20%)`,value:i,mono:!0,labelClassName:`text-sm`,valueClassName:`text-sm`}),(0,y.jsx)(_,{}),(0,y.jsx)(v,{className:`pt-1`,label:`Total Due`,value:(0,y.jsx)(r,{weight:`semibold`,className:`tabular-nums`,children:s}),labelClassName:`text-sm font-semibold`})]})})]})}b.displayName=`InvoiceItemsTable`,x.displayName=`InvoiceItemsCompact`,S.displayName=`InvoiceItemsDetailed`;var C=e({Compact:()=>E,Detailed:()=>D,Table:()=>T}),w=[{id:`1`,title:`Spa & Wellness Package`,description:`Full body massage — 90 min`,quantity:2,unitPrice:`120.00 USD`,total:`240.00 USD`,badge:`Premium`,badgeVariant:`primary`},{id:`2`,title:`Wine Tasting Experience`,description:`Curated selection of 6 wines`,quantity:1,unitPrice:`85.00 USD`,total:`85.00 USD`},{id:`3`,title:`Gift Wrapping Service`,quantity:1,unitPrice:`15.00 USD`,total:`15.00 USD`,badge:`Add-on`,badgeVariant:`info`}];function T(){return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(b,{items:w,subtotal:`340.00 USD`,tax:`68.00 USD`,discount:`20.00 USD`,total:`388.00 USD`})})}function E(){return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(x,{items:w,total:`340.00 USD`})})}function D(){return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(S,{items:w,subtotal:`340.00 USD`,tax:`68.00 USD`,discount:`20.00 USD`,total:`388.00 USD`})})}var O=`import {
|
|
2
|
+
InvoiceItemsTable,
|
|
3
|
+
InvoiceItemsCompact,
|
|
4
|
+
InvoiceItemsDetailed,
|
|
5
|
+
} from '@/components/composed/data-display/invoice-items';
|
|
6
|
+
|
|
7
|
+
const items = [
|
|
8
|
+
{ id: '1', title: 'Spa & Wellness Package', description: 'Full body massage — 90 min', quantity: 2, unitPrice: '120.00 USD', total: '240.00 USD', badge: 'Premium', badgeVariant: 'primary' as const },
|
|
9
|
+
{ id: '2', title: 'Wine Tasting Experience', description: 'Curated selection of 6 wines', quantity: 1, unitPrice: '85.00 USD', total: '85.00 USD' },
|
|
10
|
+
{ id: '3', title: 'Gift Wrapping Service', quantity: 1, unitPrice: '15.00 USD', total: '15.00 USD', badge: 'Add-on', badgeVariant: 'info' as const },
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
export function Table() {
|
|
14
|
+
return (
|
|
15
|
+
<>
|
|
16
|
+
<InvoiceItemsTable items={items} subtotal="340.00 USD" tax="68.00 USD" discount="20.00 USD" total="388.00 USD" />
|
|
17
|
+
</>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function Compact() {
|
|
22
|
+
return (
|
|
23
|
+
<>
|
|
24
|
+
<InvoiceItemsCompact items={items} total="340.00 USD" />
|
|
25
|
+
</>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function Detailed() {
|
|
30
|
+
return (
|
|
31
|
+
<>
|
|
32
|
+
<InvoiceItemsDetailed items={items} subtotal="340.00 USD" tax="68.00 USD" discount="20.00 USD" total="388.00 USD" />
|
|
33
|
+
</>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
`;function k(e){let n={h4:`h4`,...e.components};return C||j(`Examples`,!1),E||j(`Examples.Compact`,!0),D||j(`Examples.Detailed`,!0),T||j(`Examples.Table`,!0),(0,y.jsxs)(t,{title:`Composed · Invoice items`,description:`Table, compact, detailed layouts with subtotal/tax/discount/total.`,layer:`composed`,status:`ready`,children:[(0,y.jsxs)(i,{title:`Examples`,id:`examples`,children:[(0,y.jsx)(a,{name:`Table`,source:O,children:(0,y.jsx)(T,{})}),(0,y.jsx)(a,{name:`Compact`,source:O,children:(0,y.jsx)(E,{})}),(0,y.jsx)(a,{name:`Detailed`,source:O,children:(0,y.jsx)(D,{})})]}),(0,y.jsxs)(i,{title:`API`,id:`api`,children:[(0,y.jsx)(n.h4,{children:`InvoiceItemsTable`}),(0,y.jsx)(l,{component:`InvoiceItemsTable`}),(0,y.jsx)(n.h4,{children:`InvoiceItemsCompact`}),(0,y.jsx)(l,{component:`InvoiceItemsCompact`}),(0,y.jsx)(n.h4,{children:`InvoiceItemsDetailed`}),(0,y.jsx)(l,{component:`InvoiceItemsDetailed`})]})]})}function A(e={}){let{wrapper:t}=e.components||{};return t?(0,y.jsx)(t,{...e,children:(0,y.jsx)(k,{...e})}):k(e)}function j(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{A as default};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{n as e}from"./chunk-QTnfLwEv.js";import{n as t,o as n,p as r,t as i}from"./section-C_rLy6Zn.js";import{t as a}from"./example-BsDQngs7.js";import{M as o,d as s,n as c}from"./index-B4sKWDcN.js";import{t as l}from"./props-table-aynAz90t.js";import{t as u}from"./smart-card-CwDYx0xj.js";var d={paid:`Paid`,pending:`Pending`,overdue:`Overdue`,items:e=>e===1?`1 line item`:`${e} line items`,due:`Due`},f={paid:`success`,pending:`warning`,overdue:`error`};d.paid,d.pending,d.overdue;var p=s();function m({invoice:e,className:t,strings:i}){let a=o(d,i),s={paid:a.paid,pending:a.pending,overdue:a.overdue};return(0,p.jsx)(u,{padding:`default`,className:c(`invoice-mini--component min-w-0`,t),children:(0,p.jsxs)(`div`,{className:`space-y-2`,children:[(0,p.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,p.jsx)(r,{weight:`semibold`,className:`min-w-0 flex-1 truncate font-mono tracking-wide`,children:e.invoiceNumber}),(0,p.jsx)(n,{variant:f[e.status],size:`small`,dot:!0,className:`shrink-0`,children:s[e.status]})]}),(0,p.jsx)(r,{type:`secondary`,className:`truncate`,children:e.customerName}),(0,p.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-x-3 gap-y-1 pt-1`,children:[(0,p.jsxs)(`div`,{className:`min-w-0 space-y-0.5`,children:[(0,p.jsx)(r,{size:`xs`,type:`secondary`,children:a.items(e.lineItemsCount)}),(0,p.jsxs)(r,{size:`xs`,type:`discrete`,className:`whitespace-nowrap tabular-nums`,children:[a.due,` `,e.dueDate]})]}),(0,p.jsx)(r,{size:`base`,weight:`bold`,className:c(`ml-auto shrink-0 tabular-nums leading-none`),children:e.totalAmount})]})]})})}m.displayName=`InvoiceMiniCard`;var h=e({Statuses:()=>g});function g(){return(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)(`div`,{className:`grid grid-cols-[repeat(auto-fit,minmax(min(13rem,100%),1fr))] gap-3`,children:[(0,p.jsx)(m,{invoice:{invoiceNumber:`INV-2026-0198`,customerName:`Spa Retreat New York`,lineItemsCount:8,totalAmount:`4,560 USD`,status:`paid`,dueDate:`Apr 5, 2026`}}),(0,p.jsx)(m,{invoice:{invoiceNumber:`INV-2026-0201`,customerName:`Adventure Park Bansko`,lineItemsCount:4,totalAmount:`2,840 USD`,status:`pending`,dueDate:`Apr 8, 2026`}}),(0,p.jsx)(m,{invoice:{invoiceNumber:`INV-2026-0195`,customerName:`Chef's Table New York`,lineItemsCount:3,totalAmount:`1,280 USD`,status:`overdue`,dueDate:`Mar 24, 2026`}})]})})}var _=`import { InvoiceMiniCard } from '@/components/composed/data-display/invoice-mini';
|
|
2
|
+
|
|
3
|
+
export function Statuses() {
|
|
4
|
+
return (
|
|
5
|
+
<>
|
|
6
|
+
<div className="grid grid-cols-[repeat(auto-fit,minmax(min(13rem,100%),1fr))] gap-3">
|
|
7
|
+
<InvoiceMiniCard invoice={{ invoiceNumber: 'INV-2026-0198', customerName: 'Spa Retreat New York', lineItemsCount: 8, totalAmount: '4,560 USD', status: 'paid', dueDate: 'Apr 5, 2026' }} />
|
|
8
|
+
<InvoiceMiniCard invoice={{ invoiceNumber: 'INV-2026-0201', customerName: 'Adventure Park Bansko', lineItemsCount: 4, totalAmount: '2,840 USD', status: 'pending', dueDate: 'Apr 8, 2026' }} />
|
|
9
|
+
<InvoiceMiniCard invoice={{ invoiceNumber: 'INV-2026-0195', customerName: "Chef's Table New York", lineItemsCount: 3, totalAmount: '1,280 USD', status: 'overdue', dueDate: 'Mar 24, 2026' }} />
|
|
10
|
+
</div>
|
|
11
|
+
</>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
`;function v(e){let n={h4:`h4`,...e.components};return h||b(`Examples`,!1),g||b(`Examples.Statuses`,!0),(0,p.jsxs)(t,{title:`Composed · Invoice mini`,description:`Compact invoice tile — paid / pending / overdue.`,layer:`composed`,status:`ready`,children:[(0,p.jsx)(i,{title:`Examples`,id:`examples`,children:(0,p.jsx)(a,{name:`Statuses`,source:_,children:(0,p.jsx)(g,{})})}),(0,p.jsxs)(i,{title:`API`,id:`api`,children:[(0,p.jsx)(n.h4,{children:`InvoiceMiniCard`}),(0,p.jsx)(l,{component:`InvoiceMiniCard`})]})]})}function y(e={}){let{wrapper:t}=e.components||{};return t?(0,p.jsx)(t,{...e,children:(0,p.jsx)(v,{...e})}):v(e)}function b(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{y as default};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import{n as e}from"./chunk-QTnfLwEv.js";import{n as t,p as n,t as r,w as i}from"./section-C_rLy6Zn.js";import{t as a}from"./example-BsDQngs7.js";import{N as o,d as s,n as c}from"./index-B4sKWDcN.js";import{t as l}from"./props-table-aynAz90t.js";import{t as u}from"./separator-CjWigMul.js";var d={subtotal:`Subtotal`,tax:`Tax`,total:`Total`},f=s(),p=`border border-border shadow-sm`,m={left:`text-left justify-start`,right:`text-right justify-end`,center:`text-center justify-center`};function h(e){return[{id:`description`,header:`Item`,width:`minmax(0,1fr)`,cell:e=>(0,f.jsx)(n,{className:`truncate`,children:e.description})},{id:`qty`,header:`Qty`,width:`36px`,align:`center`,cell:e=>(0,f.jsx)(n,{align:`center`,className:`tabular-nums`,children:e.qty})},{id:`price`,header:`Price`,width:`82px`,align:`right`,cell:t=>(0,f.jsxs)(n,{className:`tabular-nums font-mono`,children:[e,t.price.toFixed(2)]})},{id:`total`,header:`Total`,width:`82px`,align:`right`,cell:t=>(0,f.jsxs)(n,{weight:`medium`,className:`tabular-nums font-mono`,children:[e,t.total.toFixed(2)]})}]}function g(e,t,n,r){let i=e.reduce((e,t)=>e+t.total,0),a=Math.round(i*t*100)/100,o=Math.round(t*100),s=i+a,c=e=>`${n}${e.toFixed(2)}`;return[{label:r.subtotal,value:c(i)},{label:`${r.tax} (${o}%)`,value:c(a)},{label:r.total,value:c(s),emphasis:`total`}]}function _({items:e,columns:t,footerRows:r,taxRate:a=.2,currency:s,className:l,strings:_}){let v=o(d,_),{defaultCurrency:y}=i(),b=s??y??`€`,x=t??h(b),S=r??(t?[]:g(e,a,b,v)),C=x.map(e=>e.width??`1fr`).join(` `);return(0,f.jsxs)(`div`,{className:c(`invoice-table--component`,`w-full min-w-0 max-w-full overflow-hidden rounded-lg bg-card`,p,l),children:[(0,f.jsx)(`div`,{className:`grid min-w-0 gap-2 bg-muted/40 px-4 py-3`,style:{gridTemplateColumns:C},children:x.map(e=>(0,f.jsx)(`div`,{className:c(`flex min-w-0`,m[e.align??`left`],e.headerClassName),children:(0,f.jsx)(n,{size:`xs`,weight:`medium`,type:`secondary`,className:`min-w-0 truncate uppercase tracking-wider`,children:e.header})},e.id))}),e.map((e,t)=>(0,f.jsx)(`div`,{className:c(`grid min-w-0 gap-2 px-4 py-3`,t%2==1&&`bg-muted/20`),style:{gridTemplateColumns:C},children:x.map(n=>(0,f.jsx)(`div`,{className:c(`flex min-w-0 items-center`,m[n.align??`left`],n.cellClassName),children:n.cell(e,t)},n.id))},t)),S.length>0&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u,{}),(0,f.jsx)(`div`,{className:`space-y-2 px-4 py-3`,children:S.map((e,t)=>(0,f.jsxs)(`div`,{className:c(`flex justify-between`,e.emphasis===`total`&&`pt-2`),children:[(0,f.jsx)(n,{type:e.emphasis===`total`?void 0:`secondary`,weight:e.emphasis===`total`?`bold`:`regular`,children:e.label}),(0,f.jsx)(n,{weight:e.emphasis===`total`?`bold`:`regular`,className:`tabular-nums font-mono`,children:e.value})]},t))})]})]})}_.displayName=`InvoiceTable`;var v=e({Default:()=>y,WithTaxRate:()=>b});function y(){return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(_,{items:[{description:`Wine Tasting x 2`,qty:2,price:185,total:370},{description:`Luxury Spa Package`,qty:1,price:420,total:420},{description:`Gift Basket (Large)`,qty:3,price:94,total:282}]})})}function b(){return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(_,{taxRate:20,items:[{description:`Hot Air Balloon`,qty:1,price:580,total:580},{description:`Photo Tour`,qty:2,price:120,total:240}]})})}var x=`import { InvoiceTable } from '@/components/composed/data-display/invoice-table';
|
|
2
|
+
|
|
3
|
+
export function Default() {
|
|
4
|
+
return (
|
|
5
|
+
<>
|
|
6
|
+
<InvoiceTable
|
|
7
|
+
items={[
|
|
8
|
+
{ description: 'Wine Tasting x 2', qty: 2, price: 185, total: 370 },
|
|
9
|
+
{ description: 'Luxury Spa Package', qty: 1, price: 420, total: 420 },
|
|
10
|
+
{ description: 'Gift Basket (Large)', qty: 3, price: 94, total: 282 },
|
|
11
|
+
]}
|
|
12
|
+
/>
|
|
13
|
+
</>
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function WithTaxRate() {
|
|
18
|
+
return (
|
|
19
|
+
<>
|
|
20
|
+
<InvoiceTable
|
|
21
|
+
taxRate={20}
|
|
22
|
+
items={[
|
|
23
|
+
{ description: 'Hot Air Balloon', qty: 1, price: 580, total: 580 },
|
|
24
|
+
{ description: 'Photo Tour', qty: 2, price: 120, total: 240 },
|
|
25
|
+
]}
|
|
26
|
+
/>
|
|
27
|
+
</>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
`;function S(e){let n={h4:`h4`,...e.components};return v||w(`Examples`,!1),y||w(`Examples.Default`,!0),b||w(`Examples.WithTaxRate`,!0),(0,f.jsxs)(t,{title:`Composed · Invoice table`,description:`Line items with qty / price / total.`,layer:`composed`,status:`ready`,children:[(0,f.jsxs)(r,{title:`Examples`,id:`examples`,children:[(0,f.jsx)(a,{name:`Default`,source:x,children:(0,f.jsx)(y,{})}),(0,f.jsx)(a,{name:`WithTaxRate`,source:x,children:(0,f.jsx)(b,{})})]}),(0,f.jsxs)(r,{title:`API`,id:`api`,children:[(0,f.jsx)(n.h4,{children:`InvoiceTable`}),(0,f.jsx)(l,{component:`InvoiceTable`})]})]})}function C(e={}){let{wrapper:t}=e.components||{};return t?(0,f.jsx)(t,{...e,children:(0,f.jsx)(S,{...e})}):S(e)}function w(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./startOfDay-BfIUGWW-.js";import{E as t,S as n,T as r}from"./index-B4sKWDcN.js";function i(e,n,i){let a=r(e,i?.in);return isNaN(n)?t(i?.in||e,NaN):(n&&a.setDate(a.getDate()+n),a)}function a(t,r,i){let[a,o]=n(i?.in,t,r);return+e(a)==+e(o)}export{i as n,a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./isSameDay-BYK9pmDX.js";import{E as t,x as n}from"./index-B4sKWDcN.js";function r(r,i){return e(t(i?.in||r,r),n(i?.in||r))}export{r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as e}from"./index-B4sKWDcN.js";var t=e(`bold`,[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]),n=e(`italic`,[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]);export{t as n,n as t};
|