@nori-ui/core 0.0.5 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animation/animated-view.cjs +13 -0
- package/dist/animation/animated-view.cjs.map +1 -0
- package/dist/animation/animated-view.d.cts +6 -0
- package/dist/animation/animated-view.d.ts +6 -0
- package/dist/animation/animated-view.js +4 -0
- package/dist/animation/animated-view.js.map +1 -0
- package/dist/animation/animated-view.web.cjs +9 -0
- package/dist/animation/animated-view.web.cjs.map +1 -0
- package/dist/animation/animated-view.web.d.cts +5 -0
- package/dist/animation/animated-view.web.d.ts +5 -0
- package/dist/animation/animated-view.web.js +8 -0
- package/dist/animation/animated-view.web.js.map +1 -0
- package/dist/animation/use-animated-number.cjs +80 -0
- package/dist/animation/use-animated-number.cjs.map +1 -0
- package/dist/animation/use-animated-number.d.cts +8 -0
- package/dist/animation/use-animated-number.d.ts +8 -0
- package/dist/animation/use-animated-number.js +4 -0
- package/dist/animation/use-animated-number.js.map +1 -0
- package/dist/animation/use-animated-number.web.cjs +28 -0
- package/dist/animation/use-animated-number.web.cjs.map +1 -0
- package/dist/animation/use-animated-number.web.d.cts +8 -0
- package/dist/animation/use-animated-number.web.d.ts +8 -0
- package/dist/animation/use-animated-number.web.js +25 -0
- package/dist/animation/use-animated-number.web.js.map +1 -0
- package/dist/{chunk-RX7UULY3.js → chunk-33S7ADWM.js} +3 -3
- package/dist/{chunk-RX7UULY3.js.map → chunk-33S7ADWM.js.map} +1 -1
- package/dist/chunk-3BDDPFCI.js +108 -0
- package/dist/chunk-3BDDPFCI.js.map +1 -0
- package/dist/chunk-3F4TXKDY.js +314 -0
- package/dist/chunk-3F4TXKDY.js.map +1 -0
- package/dist/chunk-5A2QOOVN.js +15 -0
- package/dist/chunk-5A2QOOVN.js.map +1 -0
- package/dist/chunk-5XEGZFG5.js +208 -0
- package/dist/chunk-5XEGZFG5.js.map +1 -0
- package/dist/chunk-6AD6KCVB.js +178 -0
- package/dist/chunk-6AD6KCVB.js.map +1 -0
- package/dist/chunk-7GPDNQSX.js +967 -0
- package/dist/chunk-7GPDNQSX.js.map +1 -0
- package/dist/chunk-7UKRN73P.js +42 -0
- package/dist/chunk-7UKRN73P.js.map +1 -0
- package/dist/chunk-7Z4NMNX6.js +64 -0
- package/dist/chunk-7Z4NMNX6.js.map +1 -0
- package/dist/chunk-ACLHDHX3.js +29 -0
- package/dist/chunk-ACLHDHX3.js.map +1 -0
- package/dist/chunk-BZLT6R62.js +80 -0
- package/dist/chunk-BZLT6R62.js.map +1 -0
- package/dist/chunk-CCUXO2HN.js +450 -0
- package/dist/chunk-CCUXO2HN.js.map +1 -0
- package/dist/chunk-CHXHRJNZ.js +43 -0
- package/dist/chunk-CHXHRJNZ.js.map +1 -0
- package/dist/chunk-DDGMLLS3.js +188 -0
- package/dist/chunk-DDGMLLS3.js.map +1 -0
- package/dist/chunk-EWWQQ5DB.js +654 -0
- package/dist/chunk-EWWQQ5DB.js.map +1 -0
- package/dist/chunk-FEPTH5RV.js +169 -0
- package/dist/chunk-FEPTH5RV.js.map +1 -0
- package/dist/{chunk-SSTXLK5I.js → chunk-FT2XBBQJ.js} +42 -6
- package/dist/chunk-FT2XBBQJ.js.map +1 -0
- package/dist/chunk-IKLA2CVQ.js +260 -0
- package/dist/chunk-IKLA2CVQ.js.map +1 -0
- package/dist/chunk-JQQ3FBN7.js +18 -0
- package/dist/chunk-JQQ3FBN7.js.map +1 -0
- package/dist/chunk-JSAG5YO7.js +69 -0
- package/dist/chunk-JSAG5YO7.js.map +1 -0
- package/dist/chunk-JZ774T7U.js +76 -0
- package/dist/chunk-JZ774T7U.js.map +1 -0
- package/dist/chunk-KWRDJPP3.js +10 -0
- package/dist/chunk-KWRDJPP3.js.map +1 -0
- package/dist/chunk-LVWNMQGR.js +1106 -0
- package/dist/chunk-LVWNMQGR.js.map +1 -0
- package/dist/chunk-LWLK6HSW.js +143 -0
- package/dist/chunk-LWLK6HSW.js.map +1 -0
- package/dist/chunk-MDOZGILD.js +134 -0
- package/dist/chunk-MDOZGILD.js.map +1 -0
- package/dist/chunk-MKSDYRWQ.js +446 -0
- package/dist/chunk-MKSDYRWQ.js.map +1 -0
- package/dist/chunk-MRJWPRCX.js +80 -0
- package/dist/chunk-MRJWPRCX.js.map +1 -0
- package/dist/chunk-NRYWNOG5.js +410 -0
- package/dist/chunk-NRYWNOG5.js.map +1 -0
- package/dist/chunk-OMU4R4Y5.js +144 -0
- package/dist/chunk-OMU4R4Y5.js.map +1 -0
- package/dist/chunk-PNP7L4TA.js +103 -0
- package/dist/chunk-PNP7L4TA.js.map +1 -0
- package/dist/chunk-QI6646JZ.js +3 -0
- package/dist/{chunk-UAKFCMWK.js.map → chunk-QI6646JZ.js.map} +1 -1
- package/dist/chunk-QJNV7YQP.js +138 -0
- package/dist/chunk-QJNV7YQP.js.map +1 -0
- package/dist/chunk-R5JMDDCB.js +292 -0
- package/dist/chunk-R5JMDDCB.js.map +1 -0
- package/dist/chunk-RB3YBWQ4.js +77 -0
- package/dist/chunk-RB3YBWQ4.js.map +1 -0
- package/dist/chunk-RFW5SRZA.js +23 -0
- package/dist/chunk-RFW5SRZA.js.map +1 -0
- package/dist/chunk-RGJ3NBKE.js +8 -0
- package/dist/chunk-RGJ3NBKE.js.map +1 -0
- package/dist/chunk-SFNDR6DI.js +485 -0
- package/dist/chunk-SFNDR6DI.js.map +1 -0
- package/dist/chunk-SWC5CNKE.js +13 -0
- package/dist/chunk-SWC5CNKE.js.map +1 -0
- package/dist/chunk-TLS54G6Y.js +15 -0
- package/dist/chunk-TLS54G6Y.js.map +1 -0
- package/dist/chunk-WCQVDF3K.js +12 -0
- package/dist/{chunk-7QVYU63E.js.map → chunk-WCQVDF3K.js.map} +1 -1
- package/dist/chunk-WGT345SV.js +427 -0
- package/dist/chunk-WGT345SV.js.map +1 -0
- package/dist/chunk-X7APG7G2.js +1566 -0
- package/dist/chunk-X7APG7G2.js.map +1 -0
- package/dist/chunk-XALU6LOT.js +306 -0
- package/dist/chunk-XALU6LOT.js.map +1 -0
- package/dist/chunk-YNKKEO2A.js +336 -0
- package/dist/chunk-YNKKEO2A.js.map +1 -0
- package/dist/chunk-ZBW3BA5R.js +148 -0
- package/dist/chunk-ZBW3BA5R.js.map +1 -0
- package/dist/{chunk-FXKIWONG.js → chunk-ZIBNLXIV.js} +12 -6
- package/dist/chunk-ZIBNLXIV.js.map +1 -0
- package/dist/chunk-ZMSIYLSI.js +563 -0
- package/dist/chunk-ZMSIYLSI.js.map +1 -0
- package/dist/chunk-ZQMNGPLE.js +981 -0
- package/dist/chunk-ZQMNGPLE.js.map +1 -0
- package/dist/chunk-ZRD4FQBT.js +153 -0
- package/dist/chunk-ZRD4FQBT.js.map +1 -0
- package/dist/client.cjs +11289 -439
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +68 -117
- package/dist/client.d.ts +68 -117
- package/dist/client.js +58 -40
- package/dist/client.js.map +1 -1
- package/dist/components/Accordion/index.cjs +900 -0
- package/dist/components/Accordion/index.cjs.map +1 -0
- package/dist/components/Accordion/index.d.cts +72 -0
- package/dist/components/Accordion/index.d.ts +72 -0
- package/dist/components/Accordion/index.js +10 -0
- package/dist/components/Accordion/index.js.map +1 -0
- package/dist/components/Alert/index.cjs +567 -0
- package/dist/components/Alert/index.cjs.map +1 -0
- package/dist/components/Alert/index.d.cts +41 -0
- package/dist/components/Alert/index.d.ts +41 -0
- package/dist/components/Alert/index.js +8 -0
- package/dist/components/Alert/index.js.map +1 -0
- package/dist/components/AlertDialog/index.cjs +892 -0
- package/dist/components/AlertDialog/index.cjs.map +1 -0
- package/dist/components/AlertDialog/index.d.cts +68 -0
- package/dist/components/AlertDialog/index.d.ts +68 -0
- package/dist/components/AlertDialog/index.js +9 -0
- package/dist/components/AlertDialog/index.js.map +1 -0
- package/dist/components/Avatar/index.cjs +427 -0
- package/dist/components/Avatar/index.cjs.map +1 -0
- package/dist/components/Avatar/index.d.cts +40 -0
- package/dist/components/Avatar/index.d.ts +40 -0
- package/dist/components/Avatar/index.js +7 -0
- package/dist/components/Avatar/index.js.map +1 -0
- package/dist/components/Badge/index.cjs +433 -0
- package/dist/components/Badge/index.cjs.map +1 -0
- package/dist/components/Badge/index.d.cts +35 -0
- package/dist/components/Badge/index.d.ts +35 -0
- package/dist/components/Badge/index.js +7 -0
- package/dist/components/Badge/index.js.map +1 -0
- package/dist/components/Box/index.cjs +415 -0
- package/dist/components/Box/index.cjs.map +1 -0
- package/dist/components/Box/index.d.cts +24 -0
- package/dist/components/Box/index.d.ts +24 -0
- package/dist/components/Box/index.js +9 -0
- package/dist/components/Box/index.js.map +1 -0
- package/dist/components/Breadcrumb/index.cjs +1939 -0
- package/dist/components/Breadcrumb/index.cjs.map +1 -0
- package/dist/components/Breadcrumb/index.d.cts +186 -0
- package/dist/components/Breadcrumb/index.d.ts +186 -0
- package/dist/components/Breadcrumb/index.js +11 -0
- package/dist/components/Breadcrumb/index.js.map +1 -0
- package/dist/components/Button/index.cjs +631 -0
- package/dist/components/Button/index.cjs.map +1 -0
- package/dist/components/Button/index.d.cts +27 -0
- package/dist/components/Button/index.d.ts +27 -0
- package/dist/components/Button/index.js +9 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Calendar/index.cjs +3017 -0
- package/dist/components/Calendar/index.cjs.map +1 -0
- package/dist/components/Calendar/index.d.cts +169 -0
- package/dist/components/Calendar/index.d.ts +169 -0
- package/dist/components/Calendar/index.js +11 -0
- package/dist/components/Calendar/index.js.map +1 -0
- package/dist/components/Card/index.cjs +469 -0
- package/dist/components/Card/index.cjs.map +1 -0
- package/dist/components/Card/index.d.cts +33 -0
- package/dist/components/Card/index.d.ts +33 -0
- package/dist/components/Card/index.js +7 -0
- package/dist/components/Card/index.js.map +1 -0
- package/dist/components/Checkbox/index.cjs +590 -0
- package/dist/components/Checkbox/index.cjs.map +1 -0
- package/dist/components/Checkbox/index.d.cts +22 -0
- package/dist/components/Checkbox/index.d.ts +22 -0
- package/dist/components/Checkbox/index.js +9 -0
- package/dist/components/Checkbox/index.js.map +1 -0
- package/dist/components/Dialog/index.cjs +888 -0
- package/dist/components/Dialog/index.cjs.map +1 -0
- package/dist/components/Dialog/index.d.cts +56 -0
- package/dist/components/Dialog/index.d.ts +56 -0
- package/dist/components/Dialog/index.js +10 -0
- package/dist/components/Dialog/index.js.map +1 -0
- package/dist/components/FloatButton/index.cjs +1254 -0
- package/dist/components/FloatButton/index.cjs.map +1 -0
- package/dist/components/FloatButton/index.d.cts +133 -0
- package/dist/components/FloatButton/index.d.ts +133 -0
- package/dist/components/FloatButton/index.js +11 -0
- package/dist/components/FloatButton/index.js.map +1 -0
- package/dist/components/HStack/index.cjs +480 -0
- package/dist/components/HStack/index.cjs.map +1 -0
- package/dist/components/HStack/index.d.cts +24 -0
- package/dist/components/HStack/index.d.ts +24 -0
- package/dist/components/HStack/index.js +9 -0
- package/dist/components/HStack/index.js.map +1 -0
- package/dist/components/InputGroup/index.cjs +638 -0
- package/dist/components/InputGroup/index.cjs.map +1 -0
- package/dist/components/InputGroup/index.d.cts +33 -0
- package/dist/components/InputGroup/index.d.ts +33 -0
- package/dist/components/InputGroup/index.js +7 -0
- package/dist/components/InputGroup/index.js.map +1 -0
- package/dist/components/Pagination/index.cjs +2501 -0
- package/dist/components/Pagination/index.cjs.map +1 -0
- package/dist/components/Pagination/index.d.cts +164 -0
- package/dist/components/Pagination/index.d.ts +164 -0
- package/dist/components/Pagination/index.js +12 -0
- package/dist/components/Pagination/index.js.map +1 -0
- package/dist/components/Popover/index.cjs +739 -0
- package/dist/components/Popover/index.cjs.map +1 -0
- package/dist/components/Popover/index.d.cts +44 -0
- package/dist/components/Popover/index.d.ts +44 -0
- package/dist/components/Popover/index.js +8 -0
- package/dist/components/Popover/index.js.map +1 -0
- package/dist/components/Progress/index.cjs +493 -0
- package/dist/components/Progress/index.cjs.map +1 -0
- package/dist/components/Progress/index.d.cts +63 -0
- package/dist/components/Progress/index.d.ts +63 -0
- package/dist/components/Progress/index.js +7 -0
- package/dist/components/Progress/index.js.map +1 -0
- package/dist/components/Radio/index.cjs +584 -0
- package/dist/components/Radio/index.cjs.map +1 -0
- package/dist/components/Radio/index.d.cts +51 -0
- package/dist/components/Radio/index.d.ts +51 -0
- package/dist/components/Radio/index.js +7 -0
- package/dist/components/Radio/index.js.map +1 -0
- package/dist/components/SegmentedControl/index.cjs +502 -0
- package/dist/components/SegmentedControl/index.cjs.map +1 -0
- package/dist/components/SegmentedControl/index.d.cts +45 -0
- package/dist/components/SegmentedControl/index.d.ts +45 -0
- package/dist/components/SegmentedControl/index.js +7 -0
- package/dist/components/SegmentedControl/index.js.map +1 -0
- package/dist/components/Select/index.cjs +1359 -0
- package/dist/components/Select/index.cjs.map +1 -0
- package/dist/components/Select/index.d.cts +140 -0
- package/dist/components/Select/index.d.ts +140 -0
- package/dist/components/Select/index.js +8 -0
- package/dist/components/Select/index.js.map +1 -0
- package/dist/components/Separator/index.cjs +358 -0
- package/dist/components/Separator/index.cjs.map +1 -0
- package/dist/components/Separator/index.d.cts +28 -0
- package/dist/components/Separator/index.d.ts +28 -0
- package/dist/components/Separator/index.js +6 -0
- package/dist/components/Separator/index.js.map +1 -0
- package/dist/components/Skeleton/index.cjs +384 -0
- package/dist/components/Skeleton/index.cjs.map +1 -0
- package/dist/components/Skeleton/index.d.cts +30 -0
- package/dist/components/Skeleton/index.d.ts +30 -0
- package/dist/components/Skeleton/index.js +6 -0
- package/dist/components/Skeleton/index.js.map +1 -0
- package/dist/components/Slider/index.cjs +880 -0
- package/dist/components/Slider/index.cjs.map +1 -0
- package/dist/components/Slider/index.d.cts +84 -0
- package/dist/components/Slider/index.d.ts +84 -0
- package/dist/components/Slider/index.js +6 -0
- package/dist/components/Slider/index.js.map +1 -0
- package/dist/components/Spinner/index.cjs +32 -0
- package/dist/components/Spinner/index.cjs.map +1 -0
- package/dist/components/Spinner/index.d.cts +25 -0
- package/dist/components/Spinner/index.d.ts +25 -0
- package/dist/components/Spinner/index.js +4 -0
- package/dist/components/Spinner/index.js.map +1 -0
- package/dist/components/Switch/index.cjs +623 -0
- package/dist/components/Switch/index.cjs.map +1 -0
- package/dist/components/Switch/index.d.cts +22 -0
- package/dist/components/Switch/index.d.ts +22 -0
- package/dist/components/Switch/index.js +10 -0
- package/dist/components/Switch/index.js.map +1 -0
- package/dist/components/Tabs/index.cjs +630 -0
- package/dist/components/Tabs/index.cjs.map +1 -0
- package/dist/components/Tabs/index.d.cts +63 -0
- package/dist/components/Tabs/index.d.ts +63 -0
- package/dist/components/Tabs/index.js +7 -0
- package/dist/components/Tabs/index.js.map +1 -0
- package/dist/components/Text/index.cjs +401 -0
- package/dist/components/Text/index.cjs.map +1 -0
- package/dist/components/Text/index.d.cts +24 -0
- package/dist/components/Text/index.d.ts +24 -0
- package/dist/components/Text/index.js +7 -0
- package/dist/components/Text/index.js.map +1 -0
- package/dist/components/TextArea/index.cjs +482 -0
- package/dist/components/TextArea/index.cjs.map +1 -0
- package/dist/components/TextArea/index.d.cts +25 -0
- package/dist/components/TextArea/index.d.ts +25 -0
- package/dist/components/TextArea/index.js +8 -0
- package/dist/components/TextArea/index.js.map +1 -0
- package/dist/components/TextInput/index.cjs +477 -0
- package/dist/components/TextInput/index.cjs.map +1 -0
- package/dist/components/TextInput/index.d.cts +33 -0
- package/dist/components/TextInput/index.d.ts +33 -0
- package/dist/components/TextInput/index.js +7 -0
- package/dist/components/TextInput/index.js.map +1 -0
- package/dist/components/Toast/index.cjs +167 -0
- package/dist/components/Toast/index.cjs.map +1 -0
- package/dist/components/Toast/index.d.cts +143 -0
- package/dist/components/Toast/index.d.ts +143 -0
- package/dist/components/Toast/index.js +4 -0
- package/dist/components/Toast/index.js.map +1 -0
- package/dist/components/Toggle/index.cjs +770 -0
- package/dist/components/Toggle/index.cjs.map +1 -0
- package/dist/components/Toggle/index.d.cts +83 -0
- package/dist/components/Toggle/index.d.ts +83 -0
- package/dist/components/Toggle/index.js +7 -0
- package/dist/components/Toggle/index.js.map +1 -0
- package/dist/components/Tooltip/index.cjs +813 -0
- package/dist/components/Tooltip/index.cjs.map +1 -0
- package/dist/components/Tooltip/index.d.cts +55 -0
- package/dist/components/Tooltip/index.d.ts +55 -0
- package/dist/components/Tooltip/index.js +8 -0
- package/dist/components/Tooltip/index.js.map +1 -0
- package/dist/components/VStack/index.cjs +480 -0
- package/dist/components/VStack/index.cjs.map +1 -0
- package/dist/components/VStack/index.d.cts +19 -0
- package/dist/components/VStack/index.d.ts +19 -0
- package/dist/components/VStack/index.js +9 -0
- package/dist/components/VStack/index.js.map +1 -0
- package/dist/i18n/index.cjs +39 -3
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +4 -60
- package/dist/i18n/index.d.ts +4 -60
- package/dist/i18n/index.js +3 -2
- package/dist/icons/index.cjs +326 -26
- package/dist/icons/index.cjs.map +1 -1
- package/dist/icons/index.js +4 -3
- package/dist/index-D3_M3G6U.d.ts +19 -0
- package/dist/index-uXPK_Rg8.d.cts +19 -0
- package/dist/index.cjs +11176 -463
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -183
- package/dist/index.d.ts +39 -183
- package/dist/index.js +49 -9
- package/dist/resolve-D-GOaxZy.d.cts +60 -0
- package/dist/resolve-D-GOaxZy.d.ts +60 -0
- package/dist/slot/index.cjs +9 -3
- package/dist/slot/index.cjs.map +1 -1
- package/dist/slot/index.js +2 -2
- package/dist/stories/index.cjs +108 -0
- package/dist/stories/index.cjs.map +1 -0
- package/dist/stories/index.d.cts +46 -0
- package/dist/stories/index.d.ts +46 -0
- package/dist/stories/index.js +94 -0
- package/dist/stories/index.js.map +1 -0
- package/dist/theme/index.cjs +259 -26
- package/dist/theme/index.cjs.map +1 -1
- package/dist/theme/index.d.cts +26 -0
- package/dist/theme/index.d.ts +26 -0
- package/dist/theme/index.js +4 -3
- package/dist/use-theme-CoqfnvRs.d.cts +112 -0
- package/dist/use-theme-CoqfnvRs.d.ts +112 -0
- package/dist/utils/cn.cjs +18 -6
- package/dist/utils/cn.cjs.map +1 -1
- package/dist/utils/cn.js +2 -2
- package/package.json +41 -10
- package/dist/chunk-6OABNXBY.js +0 -213
- package/dist/chunk-6OABNXBY.js.map +0 -1
- package/dist/chunk-7QVYU63E.js +0 -6
- package/dist/chunk-FXKIWONG.js.map +0 -1
- package/dist/chunk-NDEDMCHT.js +0 -40
- package/dist/chunk-NDEDMCHT.js.map +0 -1
- package/dist/chunk-SSTXLK5I.js.map +0 -1
- package/dist/chunk-UAKFCMWK.js +0 -3
- package/dist/chunk-X3AJNNF6.js +0 -539
- package/dist/chunk-X3AJNNF6.js.map +0 -1
- package/dist/chunk-XGM2K4TT.js +0 -31
- package/dist/chunk-XGM2K4TT.js.map +0 -1
- package/dist/stories/story-registry.cjs +0 -776
- package/dist/stories/story-registry.cjs.map +0 -1
- package/dist/stories/story-registry.d.cts +0 -13
- package/dist/stories/story-registry.d.ts +0 -13
- package/dist/stories/story-registry.js +0 -106
- package/dist/stories/story-registry.js.map +0 -1
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode, ComponentType } from 'react';
|
|
3
|
+
|
|
4
|
+
/** Where the ellipsis sends the user when tapped/clicked. */
|
|
5
|
+
type BreadcrumbExpandBehavior =
|
|
6
|
+
/** Replace `…` with all hidden items inline (MUI). Web default. */
|
|
7
|
+
'inline'
|
|
8
|
+
/** Open a popover/sheet listing the hidden items (Primer / iOS). Native default. */
|
|
9
|
+
| 'menu'
|
|
10
|
+
/** Don't collapse — fall back to a horizontal scroll container. Useful for IDE-style file paths. */
|
|
11
|
+
| 'scroll'
|
|
12
|
+
/** Render `…` but don't react to interaction. Pure visual hint. */
|
|
13
|
+
| 'none';
|
|
14
|
+
type BreadcrumbSeparatorContext = {
|
|
15
|
+
/** Index of the item PRECEDING this separator. */
|
|
16
|
+
fromIndex: number;
|
|
17
|
+
/** Total visible items. */
|
|
18
|
+
visibleCount: number;
|
|
19
|
+
/** Reading direction at render time. */
|
|
20
|
+
dir: 'ltr' | 'rtl';
|
|
21
|
+
};
|
|
22
|
+
type BreadcrumbSeparatorValue = string | ReactNode | ((ctx: BreadcrumbSeparatorContext) => ReactNode);
|
|
23
|
+
type BreadcrumbIcon = ComponentType<{
|
|
24
|
+
size?: number;
|
|
25
|
+
color?: string;
|
|
26
|
+
}>;
|
|
27
|
+
type BreadcrumbSibling = {
|
|
28
|
+
/** Visible label. */
|
|
29
|
+
label: ReactNode;
|
|
30
|
+
/** Link target. Omit for an `onSelect`-driven sibling. */
|
|
31
|
+
href?: string;
|
|
32
|
+
/** Optional leading icon. */
|
|
33
|
+
icon?: BreadcrumbIcon;
|
|
34
|
+
/** Click / tap handler. */
|
|
35
|
+
onSelect?: () => void;
|
|
36
|
+
/** Render as inactive in the sibling menu. */
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
};
|
|
39
|
+
type BreadcrumbItemData = {
|
|
40
|
+
/** Visible label. Strings are wrapped in `<Text>`; ReactNode passes through. */
|
|
41
|
+
label: ReactNode;
|
|
42
|
+
/** Link target. When omitted and not `current`, the item renders as a button (use with `onSelect`). */
|
|
43
|
+
href?: string;
|
|
44
|
+
/** Leading icon component (lucide, custom, …). Sized to the line height. */
|
|
45
|
+
icon?: BreadcrumbIcon;
|
|
46
|
+
/** Marks this item as the current page. The last item is auto-flagged when no item is explicitly current. */
|
|
47
|
+
current?: boolean;
|
|
48
|
+
/** Sibling list — when provided, the item gets a chevron and opens a popover menu of siblings on tap. */
|
|
49
|
+
siblings?: BreadcrumbSibling[];
|
|
50
|
+
/** Render a skeleton instead of the label — useful while async paths resolve. */
|
|
51
|
+
loading?: boolean;
|
|
52
|
+
/** Click / tap handler when `href` is absent. */
|
|
53
|
+
onSelect?: () => void;
|
|
54
|
+
/** Stable key for React's reconciler. Defaults to the item index. */
|
|
55
|
+
key?: string | number;
|
|
56
|
+
/** Override per-item label truncation in characters. 0 disables truncation. */
|
|
57
|
+
maxLabelLength?: number;
|
|
58
|
+
};
|
|
59
|
+
type BreadcrumbProps = {
|
|
60
|
+
/** Items-array mode. When provided, `children` is ignored. */
|
|
61
|
+
items?: ReadonlyArray<BreadcrumbItemData>;
|
|
62
|
+
/**
|
|
63
|
+
* Visual separator between items. Strings render as plain text; nodes
|
|
64
|
+
* render as-is; functions receive `(ctx)` and return a node.
|
|
65
|
+
* @defaultValue a chevron glyph (auto-flips for RTL)
|
|
66
|
+
*/
|
|
67
|
+
separator?: BreadcrumbSeparatorValue;
|
|
68
|
+
/**
|
|
69
|
+
* Maximum number of visible items. The middle is collapsed into a
|
|
70
|
+
* single ellipsis; the first / last items are kept by default.
|
|
71
|
+
* Pass `0` or `undefined` to disable count-based collapse.
|
|
72
|
+
*/
|
|
73
|
+
maxItems?: number;
|
|
74
|
+
/** How many items at the START of the list stay visible when the middle collapses. @defaultValue 1 */
|
|
75
|
+
itemsBeforeCollapse?: number;
|
|
76
|
+
/** How many items at the END of the list stay visible when the middle collapses. @defaultValue 1 */
|
|
77
|
+
itemsAfterCollapse?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Width-based collapse using `onLayout` (works on RN-Web via the
|
|
80
|
+
* built-in ResizeObserver shim and on native via the layout system).
|
|
81
|
+
* The library renders a hidden measurement copy of every item, then
|
|
82
|
+
* shows only the items that fit the container — middle items are
|
|
83
|
+
* folded into the ellipsis. Pass `false` to opt out and let the row
|
|
84
|
+
* grow to its natural width (it will overflow its parent if the
|
|
85
|
+
* parent does not provide its own scroll/clip handling).
|
|
86
|
+
* @defaultValue true
|
|
87
|
+
*/
|
|
88
|
+
collapseOnOverflow?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* What the ellipsis does when tapped/clicked.
|
|
91
|
+
* @defaultValue 'inline' on web, 'menu' on native
|
|
92
|
+
*/
|
|
93
|
+
expandBehavior?: BreadcrumbExpandBehavior;
|
|
94
|
+
/** Override the default i18n string for the "show full path" SR label. */
|
|
95
|
+
expandLabel?: string;
|
|
96
|
+
/** Override the default i18n string for the ellipsis SR label. */
|
|
97
|
+
ellipsisLabel?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Visually-hidden prefix announced before the current page's label.
|
|
100
|
+
* Helps screen readers convey "Current page: Settings" instead of "Settings".
|
|
101
|
+
*/
|
|
102
|
+
currentPageLabel?: string;
|
|
103
|
+
/** Override the SR label for sibling menus opened from a crumb. */
|
|
104
|
+
siblingMenuLabel?: string;
|
|
105
|
+
/** Visible aria-label on the wrapping `<nav>`. @defaultValue translated "Breadcrumb" */
|
|
106
|
+
ariaLabel?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Emit JSON-LD `BreadcrumbList` structured data for SEO + LLM
|
|
109
|
+
* ingest. Web only; ignored on native.
|
|
110
|
+
* @defaultValue true (only when `items` is provided AND on web)
|
|
111
|
+
*/
|
|
112
|
+
schemaOrg?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Reading direction. RTL flips the default chevron separator and the
|
|
115
|
+
* collapse logic so the start/end stay anchored to the right edge.
|
|
116
|
+
* @defaultValue 'ltr'
|
|
117
|
+
*/
|
|
118
|
+
dir?: 'ltr' | 'rtl';
|
|
119
|
+
/**
|
|
120
|
+
* Truncate each item's label after this many characters. Per-item
|
|
121
|
+
* `maxLabelLength` overrides this. @defaultValue 0 (no truncation)
|
|
122
|
+
*/
|
|
123
|
+
maxLabelLength?: number;
|
|
124
|
+
children?: ReactNode;
|
|
125
|
+
className?: string;
|
|
126
|
+
testID?: string;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Build a JSON-LD `BreadcrumbList` document from a list of items. Use it
|
|
130
|
+
* with your framework's metadata API for SSR-time emission:
|
|
131
|
+
*
|
|
132
|
+
* ```tsx
|
|
133
|
+
* // Next.js App Router metadata
|
|
134
|
+
* export async function generateMetadata() {
|
|
135
|
+
* return { other: { 'application/ld+json': getBreadcrumbJsonLd(items) } };
|
|
136
|
+
* }
|
|
137
|
+
* ```
|
|
138
|
+
*
|
|
139
|
+
* The component renders this client-side via `document.head` injection
|
|
140
|
+
* automatically — but framework-driven SSR is preferred for reliable
|
|
141
|
+
* search-engine pickup, hence this exported helper.
|
|
142
|
+
*/
|
|
143
|
+
declare function getBreadcrumbJsonLd(items: ReadonlyArray<BreadcrumbItemData>): string;
|
|
144
|
+
type BreadcrumbListProps = {
|
|
145
|
+
children?: ReactNode;
|
|
146
|
+
className?: string;
|
|
147
|
+
testID?: string;
|
|
148
|
+
};
|
|
149
|
+
type BreadcrumbItemProps = {
|
|
150
|
+
children?: ReactNode;
|
|
151
|
+
className?: string;
|
|
152
|
+
testID?: string;
|
|
153
|
+
};
|
|
154
|
+
type BreadcrumbLinkProps = {
|
|
155
|
+
href?: string;
|
|
156
|
+
onPress?: () => void;
|
|
157
|
+
asChild?: boolean;
|
|
158
|
+
children?: ReactNode;
|
|
159
|
+
className?: string;
|
|
160
|
+
testID?: string;
|
|
161
|
+
};
|
|
162
|
+
type BreadcrumbPageProps = {
|
|
163
|
+
children?: ReactNode;
|
|
164
|
+
className?: string;
|
|
165
|
+
testID?: string;
|
|
166
|
+
};
|
|
167
|
+
type BreadcrumbSeparatorProps = {
|
|
168
|
+
children?: ReactNode;
|
|
169
|
+
className?: string;
|
|
170
|
+
testID?: string;
|
|
171
|
+
};
|
|
172
|
+
type BreadcrumbEllipsisProps = {
|
|
173
|
+
ellipsisLabel?: string;
|
|
174
|
+
className?: string;
|
|
175
|
+
testID?: string;
|
|
176
|
+
};
|
|
177
|
+
declare const Breadcrumb: (({ items, separator, maxItems, itemsBeforeCollapse, itemsAfterCollapse, collapseOnOverflow, expandBehavior, expandLabel, ellipsisLabel, currentPageLabel, siblingMenuLabel, ariaLabel, schemaOrg, dir, maxLabelLength, children, className, testID, }: BreadcrumbProps) => react_jsx_runtime.JSX.Element) & {
|
|
178
|
+
List: ({ children, className, testID }: BreadcrumbListProps) => react_jsx_runtime.JSX.Element;
|
|
179
|
+
Item: ({ children, className, testID }: BreadcrumbItemProps) => react_jsx_runtime.JSX.Element;
|
|
180
|
+
Link: ({ href, onPress, asChild, children, className, testID }: BreadcrumbLinkProps) => react_jsx_runtime.JSX.Element;
|
|
181
|
+
Page: ({ children, className, testID }: BreadcrumbPageProps) => react_jsx_runtime.JSX.Element;
|
|
182
|
+
Separator: ({ children, className, testID }: BreadcrumbSeparatorProps) => react_jsx_runtime.JSX.Element;
|
|
183
|
+
Ellipsis: ({ ellipsisLabel, className, testID }: BreadcrumbEllipsisProps) => react_jsx_runtime.JSX.Element;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
export { Breadcrumb, type BreadcrumbEllipsisProps, type BreadcrumbExpandBehavior, type BreadcrumbIcon, type BreadcrumbItemData, type BreadcrumbItemProps, type BreadcrumbLinkProps, type BreadcrumbListProps, type BreadcrumbPageProps, type BreadcrumbProps, type BreadcrumbSeparatorContext, type BreadcrumbSeparatorProps, type BreadcrumbSeparatorValue, type BreadcrumbSibling, getBreadcrumbJsonLd };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { Breadcrumb, getBreadcrumbJsonLd } from '../../chunk-LVWNMQGR.js';
|
|
2
|
+
import '../../chunk-YNKKEO2A.js';
|
|
3
|
+
import '../../chunk-RFW5SRZA.js';
|
|
4
|
+
import '../../chunk-FT2XBBQJ.js';
|
|
5
|
+
import '../../chunk-ZIBNLXIV.js';
|
|
6
|
+
import '../../chunk-5A2QOOVN.js';
|
|
7
|
+
import '../../chunk-CHXHRJNZ.js';
|
|
8
|
+
import '../../chunk-R5JMDDCB.js';
|
|
9
|
+
import '../../chunk-WCQVDF3K.js';
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|