@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
package/dist/index.d.cts
CHANGED
|
@@ -1,187 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {
|
|
1
|
+
export { Accordion, AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, AccordionType } from './components/Accordion/index.cjs';
|
|
2
|
+
export { Alert, AlertProps, AlertTone } from './components/Alert/index.cjs';
|
|
3
|
+
export { AlertDialog, AlertDialogActionProps, AlertDialogCancelProps, AlertDialogContentProps, AlertDialogFooterProps, AlertDialogProps, AlertDialogTextProps, AlertDialogTriggerProps } from './components/AlertDialog/index.cjs';
|
|
4
|
+
export { Avatar, AvatarProps, AvatarSize } from './components/Avatar/index.cjs';
|
|
5
|
+
export { Badge, BadgeAppearance, BadgeProps, BadgeTone } from './components/Badge/index.cjs';
|
|
6
|
+
export { Box, BoxProps } from './components/Box/index.cjs';
|
|
7
|
+
export { Breadcrumb, BreadcrumbEllipsisProps, BreadcrumbExpandBehavior, BreadcrumbIcon, BreadcrumbItemData, BreadcrumbItemProps, BreadcrumbLinkProps, BreadcrumbListProps, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparatorContext, BreadcrumbSeparatorProps, BreadcrumbSeparatorValue, BreadcrumbSibling, getBreadcrumbJsonLd } from './components/Breadcrumb/index.cjs';
|
|
8
|
+
export { Button, ButtonProps, ButtonSize, ButtonVariant } from './components/Button/index.cjs';
|
|
9
|
+
export { Calendar, CalendarBehavior, CalendarCaption, CalendarCaptionProps, CalendarChangeMeta, CalendarMode, CalendarProps, CalendarValue, CalendarView, CaptionContextValue, CaptionOption, DateRange, DayContext, useCalendarCaption } from './components/Calendar/index.cjs';
|
|
10
|
+
export { Card, CardProps, CardSectionProps, CardTextProps } from './components/Card/index.cjs';
|
|
11
|
+
export { Checkbox, CheckboxProps } from './components/Checkbox/index.cjs';
|
|
12
|
+
export { Dialog, DialogCloseProps, DialogContentProps, DialogFooterProps, DialogProps, DialogTextProps, DialogTriggerProps } from './components/Dialog/index.cjs';
|
|
13
|
+
export { FloatButton, FloatButtonBackToTopProps, FloatButtonBadge, FloatButtonGroupDirection, FloatButtonGroupProps, FloatButtonGroupTrigger, FloatButtonPlacement, FloatButtonProps, FloatButtonShape, FloatButtonSize, FloatButtonVariant } from './components/FloatButton/index.cjs';
|
|
14
|
+
export { HStack, HStackProps, StackAlign, StackGap, StackJustify } from './components/HStack/index.cjs';
|
|
15
|
+
export { InputGroup, InputGroupAddonProps, InputGroupInputProps, InputGroupProps } from './components/InputGroup/index.cjs';
|
|
16
|
+
export { PAGINATION_COMPACT_BREAKPOINT, Pagination, PaginationItemDescriptor, PaginationItemType, PaginationJumperProps, PaginationOnPageChange, PaginationProps, PaginationRenderItemArgs, PaginationVariant, UsePaginationArgs, UsePaginationReturn, usePagination } from './components/Pagination/index.cjs';
|
|
17
|
+
export { Popover, PopoverAlign, PopoverContentProps, PopoverProps, PopoverSide, PopoverTriggerProps } from './components/Popover/index.cjs';
|
|
18
|
+
export { Progress, ProgressProps, ProgressSize, ProgressTone } from './components/Progress/index.cjs';
|
|
19
|
+
export { Radio, RadioGroupOrientation, RadioGroupProps, RadioProps } from './components/Radio/index.cjs';
|
|
20
|
+
export { SegmentedControl, SegmentedControlOption, SegmentedControlProps, SegmentedControlSize } from './components/SegmentedControl/index.cjs';
|
|
21
|
+
export { LoadOptionsParams, LoadOptionsResult, Select, SelectOption, SelectProps, SelectRenderOptionInfo } from './components/Select/index.cjs';
|
|
22
|
+
export { Separator, SeparatorOrientation, SeparatorProps } from './components/Separator/index.cjs';
|
|
23
|
+
export { Skeleton, SkeletonProps } from './components/Skeleton/index.cjs';
|
|
24
|
+
export { Slider, SliderDirection, SliderGestureProvider, SliderOrientation, SliderProps, useSliderInteractionActive } from './components/Slider/index.cjs';
|
|
25
|
+
export { Spinner, SpinnerProps, SpinnerSize } from './components/Spinner/index.cjs';
|
|
26
|
+
export { Switch, SwitchProps } from './components/Switch/index.cjs';
|
|
27
|
+
export { Tabs, TabsActivation, TabsContentProps, TabsListProps, TabsOrientation, TabsProps, TabsTriggerProps } from './components/Tabs/index.cjs';
|
|
28
|
+
export { Text, TextProps, TextVariant } from './components/Text/index.cjs';
|
|
29
|
+
export { TextArea, TextAreaProps } from './components/TextArea/index.cjs';
|
|
30
|
+
export { TextInput, TextInputProps } from './components/TextInput/index.cjs';
|
|
31
|
+
export { ToastAction, ToastOptions, ToastTone, Toaster, ToasterPosition, ToasterProps, toast } from './components/Toast/index.cjs';
|
|
32
|
+
export { Toggle, ToggleGroupItemProps, ToggleGroupMultipleProps, ToggleGroupProps, ToggleGroupSingleProps, ToggleProps, ToggleSize, ToggleVariant } from './components/Toggle/index.cjs';
|
|
33
|
+
export { Tooltip, TooltipAlign, TooltipContentProps, TooltipProps, TooltipSide, TooltipTriggerProps } from './components/Tooltip/index.cjs';
|
|
34
|
+
export { VStack, VStackProps } from './components/VStack/index.cjs';
|
|
35
|
+
export { D as Dictionary, I as I18nInput, a as I18nKeys, b as I18nOptions, T as TranslateFn, d as defaultDictionary, r as resolveI18n } from './resolve-D-GOaxZy.cjs';
|
|
6
36
|
export { Icon, IconComponentProps, IconProps, IconSize, SemanticIcons, defaultSemanticIcons } from './icons/index.cjs';
|
|
7
37
|
export { Slot, SlotProps, composeRefs } from './slot/index.cjs';
|
|
8
38
|
export { Theme, theme, themeDark } from '@nori-ui/tokens';
|
|
9
39
|
export { ClassInput, cn } from './utils/cn.cjs';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Generic layout primitive. Wraps react-native's <View> with className support.
|
|
17
|
-
* RSC-safe.
|
|
18
|
-
*/
|
|
19
|
-
declare function Box({ className, children, ...rest }: BoxProps): react_jsx_runtime.JSX.Element;
|
|
20
|
-
|
|
21
|
-
type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'destructive';
|
|
22
|
-
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
23
|
-
type IconSlot = ComponentType<{
|
|
24
|
-
size?: number;
|
|
25
|
-
color?: string;
|
|
26
|
-
}>;
|
|
27
|
-
type ButtonProps = Omit<PressableProps, 'disabled' | 'children'> & {
|
|
28
|
-
children?: ReactNode;
|
|
29
|
-
variant?: ButtonVariant;
|
|
30
|
-
size?: ButtonSize;
|
|
31
|
-
disabled?: boolean;
|
|
32
|
-
loading?: boolean;
|
|
33
|
-
leadingIcon?: IconSlot;
|
|
34
|
-
trailingIcon?: IconSlot;
|
|
35
|
-
/** If true, the single child becomes the interactive element (Slot pattern). */
|
|
36
|
-
asChild?: boolean;
|
|
37
|
-
className?: string;
|
|
38
|
-
testID?: string;
|
|
39
|
-
};
|
|
40
|
-
declare const Button: react.ForwardRefExoticComponent<Omit<PressableProps, "children" | "disabled"> & {
|
|
41
|
-
children?: ReactNode;
|
|
42
|
-
variant?: ButtonVariant;
|
|
43
|
-
size?: ButtonSize;
|
|
44
|
-
disabled?: boolean;
|
|
45
|
-
loading?: boolean;
|
|
46
|
-
leadingIcon?: IconSlot;
|
|
47
|
-
trailingIcon?: IconSlot;
|
|
48
|
-
/** If true, the single child becomes the interactive element (Slot pattern). */
|
|
49
|
-
asChild?: boolean;
|
|
50
|
-
className?: string;
|
|
51
|
-
testID?: string;
|
|
52
|
-
} & react.RefAttributes<unknown>>;
|
|
53
|
-
|
|
54
|
-
type CheckboxProps = {
|
|
55
|
-
checked?: boolean;
|
|
56
|
-
defaultChecked?: boolean;
|
|
57
|
-
indeterminate?: boolean;
|
|
58
|
-
disabled?: boolean;
|
|
59
|
-
onChange?: (next: boolean) => void;
|
|
60
|
-
label?: string;
|
|
61
|
-
className?: string;
|
|
62
|
-
testID?: string;
|
|
63
|
-
asChild?: boolean;
|
|
64
|
-
children?: ReactNode;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Checkbox — supports controlled + uncontrolled state, indeterminate (aria-checked="mixed"),
|
|
68
|
-
* asChild (via Slot), and a visible label that doubles as the accessibility label.
|
|
69
|
-
*/
|
|
70
|
-
declare function Checkbox({ checked, defaultChecked, indeterminate, disabled, onChange, label, className, testID, asChild, children, }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
71
|
-
|
|
72
|
-
type StackGap = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12;
|
|
73
|
-
type StackAlign = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
74
|
-
type StackJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
75
|
-
type HStackProps = ViewProps & {
|
|
76
|
-
gap?: StackGap;
|
|
77
|
-
align?: StackAlign;
|
|
78
|
-
justify?: StackJustify;
|
|
79
|
-
className?: string;
|
|
80
|
-
testID?: string;
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* Horizontal flex layout primitive. RSC-safe.
|
|
84
|
-
*/
|
|
85
|
-
declare function HStack({ gap, align, justify, className, children, ...rest }: HStackProps): react_jsx_runtime.JSX.Element;
|
|
86
|
-
|
|
87
|
-
type SpinnerSize = 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
88
|
-
type SpinnerProps = Omit<ActivityIndicatorProps, 'size'> & {
|
|
89
|
-
/** Visible (a11y) label. Defaults to the i18n "common.loading" default ("Loading"). */
|
|
90
|
-
label?: string;
|
|
91
|
-
size?: SpinnerSize;
|
|
92
|
-
testID?: string;
|
|
93
|
-
className?: string;
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Loading indicator.
|
|
97
|
-
*
|
|
98
|
-
* a11y: rendered with `role="progressbar"` and an `aria-label` so screen
|
|
99
|
-
* readers announce it. Respects `prefers-reduced-motion` — on web, react-native-web's
|
|
100
|
-
* ActivityIndicator will render without animation when the media query matches;
|
|
101
|
-
* on native, React Native's ActivityIndicator honors the OS reduce-motion setting
|
|
102
|
-
* automatically.
|
|
103
|
-
*
|
|
104
|
-
* RSC-safe: pure render, no hooks.
|
|
105
|
-
*/
|
|
106
|
-
declare function Spinner({ label, size, testID, color, style, ...rest }: SpinnerProps): react_jsx_runtime.JSX.Element;
|
|
107
|
-
|
|
108
|
-
type SwitchProps = {
|
|
109
|
-
checked?: boolean;
|
|
110
|
-
defaultChecked?: boolean;
|
|
111
|
-
disabled?: boolean;
|
|
112
|
-
onChange?: (next: boolean) => void;
|
|
113
|
-
label?: string;
|
|
114
|
-
className?: string;
|
|
115
|
-
testID?: string;
|
|
116
|
-
asChild?: boolean;
|
|
117
|
-
children?: ReactNode;
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* Switch — a toggle control with role="switch". Supports controlled + uncontrolled,
|
|
121
|
-
* disabled state, asChild (via Slot), and a visible label that doubles as the
|
|
122
|
-
* accessibility label.
|
|
123
|
-
*/
|
|
124
|
-
declare function Switch({ checked, defaultChecked, disabled, onChange, label, className, testID, asChild, children, }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
125
|
-
|
|
126
|
-
type TextVariant = 'body-xs' | 'body-sm' | 'body-md' | 'body-lg' | 'heading-1' | 'heading-2' | 'heading-3';
|
|
127
|
-
type TextProps = TextProps$1 & {
|
|
128
|
-
variant?: TextVariant;
|
|
129
|
-
className?: string;
|
|
130
|
-
testID?: string;
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* Typography primitive. Renders a react-native <Text>; on web via RN-Web
|
|
134
|
-
* it becomes a <div role="..."> with the appropriate className.
|
|
135
|
-
*
|
|
136
|
-
* RSC-safe: pure render, no hooks.
|
|
137
|
-
*/
|
|
138
|
-
declare function Text({ variant, className, testID, children, ...rest }: TextProps): react_jsx_runtime.JSX.Element;
|
|
139
|
-
|
|
140
|
-
type TextInputProps = Omit<TextInputProps$1, 'editable'> & {
|
|
141
|
-
label?: string;
|
|
142
|
-
helperText?: string;
|
|
143
|
-
error?: string;
|
|
144
|
-
disabled?: boolean;
|
|
145
|
-
leading?: ReactNode;
|
|
146
|
-
trailing?: ReactNode;
|
|
147
|
-
/** Pass through a custom wrapper className */
|
|
148
|
-
containerClassName?: string;
|
|
149
|
-
className?: string;
|
|
150
|
-
testID?: string;
|
|
151
|
-
/** Controlled text handler. Optional so uncontrolled usage works too. */
|
|
152
|
-
onChangeText?: (text: string) => void;
|
|
153
|
-
/** Multi-line mode — flipped by TextArea. Default false. */
|
|
154
|
-
multiline?: boolean;
|
|
155
|
-
numberOfLines?: number;
|
|
156
|
-
};
|
|
157
|
-
/**
|
|
158
|
-
* Single-line text input with label, helper, error, and leading/trailing slots.
|
|
159
|
-
*
|
|
160
|
-
* a11y: label is a <label for={id}>; the input is `aria-invalid=true` + labelled
|
|
161
|
-
* by the error/helper text via aria-describedby when present.
|
|
162
|
-
*
|
|
163
|
-
* Notionally RSC-safe — uses only useId() which React 19 guarantees is safe on
|
|
164
|
-
* the server. No "use client" required.
|
|
165
|
-
*/
|
|
166
|
-
declare function TextInput({ label, helperText, error, disabled, leading, trailing, containerClassName, className, testID, onChangeText, multiline, numberOfLines, ...rest }: TextInputProps): react_jsx_runtime.JSX.Element;
|
|
167
|
-
|
|
168
|
-
type TextAreaProps = TextInputProps;
|
|
169
|
-
/**
|
|
170
|
-
* Multi-line text input. Thin wrapper over TextInput that fixes `multiline=true`
|
|
171
|
-
* and provides a sensible default for `numberOfLines`.
|
|
172
|
-
*/
|
|
173
|
-
declare function TextArea({ numberOfLines, ...rest }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
174
|
-
|
|
175
|
-
type VStackProps = ViewProps & {
|
|
176
|
-
gap?: StackGap;
|
|
177
|
-
align?: StackAlign;
|
|
178
|
-
justify?: StackJustify;
|
|
179
|
-
className?: string;
|
|
180
|
-
testID?: string;
|
|
181
|
-
};
|
|
182
|
-
/**
|
|
183
|
-
* Vertical flex layout primitive. RSC-safe.
|
|
184
|
-
*/
|
|
185
|
-
declare function VStack({ gap, align, justify, className, children, ...rest }: VStackProps): react_jsx_runtime.JSX.Element;
|
|
186
|
-
|
|
187
|
-
export { Box, type BoxProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Checkbox, type CheckboxProps, HStack, type HStackProps, Spinner, type SpinnerProps, type SpinnerSize, type StackAlign, type StackGap, type StackJustify, Switch, type SwitchProps, Text, TextArea, type TextAreaProps, TextInput, type TextInputProps, type TextProps, type TextVariant, VStack, type VStackProps };
|
|
40
|
+
import 'react/jsx-runtime';
|
|
41
|
+
import 'react';
|
|
42
|
+
import 'react-native';
|
|
43
|
+
import '@internationalized/date';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,187 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {
|
|
1
|
+
export { Accordion, AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, AccordionType } from './components/Accordion/index.js';
|
|
2
|
+
export { Alert, AlertProps, AlertTone } from './components/Alert/index.js';
|
|
3
|
+
export { AlertDialog, AlertDialogActionProps, AlertDialogCancelProps, AlertDialogContentProps, AlertDialogFooterProps, AlertDialogProps, AlertDialogTextProps, AlertDialogTriggerProps } from './components/AlertDialog/index.js';
|
|
4
|
+
export { Avatar, AvatarProps, AvatarSize } from './components/Avatar/index.js';
|
|
5
|
+
export { Badge, BadgeAppearance, BadgeProps, BadgeTone } from './components/Badge/index.js';
|
|
6
|
+
export { Box, BoxProps } from './components/Box/index.js';
|
|
7
|
+
export { Breadcrumb, BreadcrumbEllipsisProps, BreadcrumbExpandBehavior, BreadcrumbIcon, BreadcrumbItemData, BreadcrumbItemProps, BreadcrumbLinkProps, BreadcrumbListProps, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparatorContext, BreadcrumbSeparatorProps, BreadcrumbSeparatorValue, BreadcrumbSibling, getBreadcrumbJsonLd } from './components/Breadcrumb/index.js';
|
|
8
|
+
export { Button, ButtonProps, ButtonSize, ButtonVariant } from './components/Button/index.js';
|
|
9
|
+
export { Calendar, CalendarBehavior, CalendarCaption, CalendarCaptionProps, CalendarChangeMeta, CalendarMode, CalendarProps, CalendarValue, CalendarView, CaptionContextValue, CaptionOption, DateRange, DayContext, useCalendarCaption } from './components/Calendar/index.js';
|
|
10
|
+
export { Card, CardProps, CardSectionProps, CardTextProps } from './components/Card/index.js';
|
|
11
|
+
export { Checkbox, CheckboxProps } from './components/Checkbox/index.js';
|
|
12
|
+
export { Dialog, DialogCloseProps, DialogContentProps, DialogFooterProps, DialogProps, DialogTextProps, DialogTriggerProps } from './components/Dialog/index.js';
|
|
13
|
+
export { FloatButton, FloatButtonBackToTopProps, FloatButtonBadge, FloatButtonGroupDirection, FloatButtonGroupProps, FloatButtonGroupTrigger, FloatButtonPlacement, FloatButtonProps, FloatButtonShape, FloatButtonSize, FloatButtonVariant } from './components/FloatButton/index.js';
|
|
14
|
+
export { HStack, HStackProps, StackAlign, StackGap, StackJustify } from './components/HStack/index.js';
|
|
15
|
+
export { InputGroup, InputGroupAddonProps, InputGroupInputProps, InputGroupProps } from './components/InputGroup/index.js';
|
|
16
|
+
export { PAGINATION_COMPACT_BREAKPOINT, Pagination, PaginationItemDescriptor, PaginationItemType, PaginationJumperProps, PaginationOnPageChange, PaginationProps, PaginationRenderItemArgs, PaginationVariant, UsePaginationArgs, UsePaginationReturn, usePagination } from './components/Pagination/index.js';
|
|
17
|
+
export { Popover, PopoverAlign, PopoverContentProps, PopoverProps, PopoverSide, PopoverTriggerProps } from './components/Popover/index.js';
|
|
18
|
+
export { Progress, ProgressProps, ProgressSize, ProgressTone } from './components/Progress/index.js';
|
|
19
|
+
export { Radio, RadioGroupOrientation, RadioGroupProps, RadioProps } from './components/Radio/index.js';
|
|
20
|
+
export { SegmentedControl, SegmentedControlOption, SegmentedControlProps, SegmentedControlSize } from './components/SegmentedControl/index.js';
|
|
21
|
+
export { LoadOptionsParams, LoadOptionsResult, Select, SelectOption, SelectProps, SelectRenderOptionInfo } from './components/Select/index.js';
|
|
22
|
+
export { Separator, SeparatorOrientation, SeparatorProps } from './components/Separator/index.js';
|
|
23
|
+
export { Skeleton, SkeletonProps } from './components/Skeleton/index.js';
|
|
24
|
+
export { Slider, SliderDirection, SliderGestureProvider, SliderOrientation, SliderProps, useSliderInteractionActive } from './components/Slider/index.js';
|
|
25
|
+
export { Spinner, SpinnerProps, SpinnerSize } from './components/Spinner/index.js';
|
|
26
|
+
export { Switch, SwitchProps } from './components/Switch/index.js';
|
|
27
|
+
export { Tabs, TabsActivation, TabsContentProps, TabsListProps, TabsOrientation, TabsProps, TabsTriggerProps } from './components/Tabs/index.js';
|
|
28
|
+
export { Text, TextProps, TextVariant } from './components/Text/index.js';
|
|
29
|
+
export { TextArea, TextAreaProps } from './components/TextArea/index.js';
|
|
30
|
+
export { TextInput, TextInputProps } from './components/TextInput/index.js';
|
|
31
|
+
export { ToastAction, ToastOptions, ToastTone, Toaster, ToasterPosition, ToasterProps, toast } from './components/Toast/index.js';
|
|
32
|
+
export { Toggle, ToggleGroupItemProps, ToggleGroupMultipleProps, ToggleGroupProps, ToggleGroupSingleProps, ToggleProps, ToggleSize, ToggleVariant } from './components/Toggle/index.js';
|
|
33
|
+
export { Tooltip, TooltipAlign, TooltipContentProps, TooltipProps, TooltipSide, TooltipTriggerProps } from './components/Tooltip/index.js';
|
|
34
|
+
export { VStack, VStackProps } from './components/VStack/index.js';
|
|
35
|
+
export { D as Dictionary, I as I18nInput, a as I18nKeys, b as I18nOptions, T as TranslateFn, d as defaultDictionary, r as resolveI18n } from './resolve-D-GOaxZy.js';
|
|
6
36
|
export { Icon, IconComponentProps, IconProps, IconSize, SemanticIcons, defaultSemanticIcons } from './icons/index.js';
|
|
7
37
|
export { Slot, SlotProps, composeRefs } from './slot/index.js';
|
|
8
38
|
export { Theme, theme, themeDark } from '@nori-ui/tokens';
|
|
9
39
|
export { ClassInput, cn } from './utils/cn.js';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Generic layout primitive. Wraps react-native's <View> with className support.
|
|
17
|
-
* RSC-safe.
|
|
18
|
-
*/
|
|
19
|
-
declare function Box({ className, children, ...rest }: BoxProps): react_jsx_runtime.JSX.Element;
|
|
20
|
-
|
|
21
|
-
type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'destructive';
|
|
22
|
-
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
23
|
-
type IconSlot = ComponentType<{
|
|
24
|
-
size?: number;
|
|
25
|
-
color?: string;
|
|
26
|
-
}>;
|
|
27
|
-
type ButtonProps = Omit<PressableProps, 'disabled' | 'children'> & {
|
|
28
|
-
children?: ReactNode;
|
|
29
|
-
variant?: ButtonVariant;
|
|
30
|
-
size?: ButtonSize;
|
|
31
|
-
disabled?: boolean;
|
|
32
|
-
loading?: boolean;
|
|
33
|
-
leadingIcon?: IconSlot;
|
|
34
|
-
trailingIcon?: IconSlot;
|
|
35
|
-
/** If true, the single child becomes the interactive element (Slot pattern). */
|
|
36
|
-
asChild?: boolean;
|
|
37
|
-
className?: string;
|
|
38
|
-
testID?: string;
|
|
39
|
-
};
|
|
40
|
-
declare const Button: react.ForwardRefExoticComponent<Omit<PressableProps, "children" | "disabled"> & {
|
|
41
|
-
children?: ReactNode;
|
|
42
|
-
variant?: ButtonVariant;
|
|
43
|
-
size?: ButtonSize;
|
|
44
|
-
disabled?: boolean;
|
|
45
|
-
loading?: boolean;
|
|
46
|
-
leadingIcon?: IconSlot;
|
|
47
|
-
trailingIcon?: IconSlot;
|
|
48
|
-
/** If true, the single child becomes the interactive element (Slot pattern). */
|
|
49
|
-
asChild?: boolean;
|
|
50
|
-
className?: string;
|
|
51
|
-
testID?: string;
|
|
52
|
-
} & react.RefAttributes<unknown>>;
|
|
53
|
-
|
|
54
|
-
type CheckboxProps = {
|
|
55
|
-
checked?: boolean;
|
|
56
|
-
defaultChecked?: boolean;
|
|
57
|
-
indeterminate?: boolean;
|
|
58
|
-
disabled?: boolean;
|
|
59
|
-
onChange?: (next: boolean) => void;
|
|
60
|
-
label?: string;
|
|
61
|
-
className?: string;
|
|
62
|
-
testID?: string;
|
|
63
|
-
asChild?: boolean;
|
|
64
|
-
children?: ReactNode;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Checkbox — supports controlled + uncontrolled state, indeterminate (aria-checked="mixed"),
|
|
68
|
-
* asChild (via Slot), and a visible label that doubles as the accessibility label.
|
|
69
|
-
*/
|
|
70
|
-
declare function Checkbox({ checked, defaultChecked, indeterminate, disabled, onChange, label, className, testID, asChild, children, }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
71
|
-
|
|
72
|
-
type StackGap = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12;
|
|
73
|
-
type StackAlign = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
74
|
-
type StackJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
75
|
-
type HStackProps = ViewProps & {
|
|
76
|
-
gap?: StackGap;
|
|
77
|
-
align?: StackAlign;
|
|
78
|
-
justify?: StackJustify;
|
|
79
|
-
className?: string;
|
|
80
|
-
testID?: string;
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* Horizontal flex layout primitive. RSC-safe.
|
|
84
|
-
*/
|
|
85
|
-
declare function HStack({ gap, align, justify, className, children, ...rest }: HStackProps): react_jsx_runtime.JSX.Element;
|
|
86
|
-
|
|
87
|
-
type SpinnerSize = 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
88
|
-
type SpinnerProps = Omit<ActivityIndicatorProps, 'size'> & {
|
|
89
|
-
/** Visible (a11y) label. Defaults to the i18n "common.loading" default ("Loading"). */
|
|
90
|
-
label?: string;
|
|
91
|
-
size?: SpinnerSize;
|
|
92
|
-
testID?: string;
|
|
93
|
-
className?: string;
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Loading indicator.
|
|
97
|
-
*
|
|
98
|
-
* a11y: rendered with `role="progressbar"` and an `aria-label` so screen
|
|
99
|
-
* readers announce it. Respects `prefers-reduced-motion` — on web, react-native-web's
|
|
100
|
-
* ActivityIndicator will render without animation when the media query matches;
|
|
101
|
-
* on native, React Native's ActivityIndicator honors the OS reduce-motion setting
|
|
102
|
-
* automatically.
|
|
103
|
-
*
|
|
104
|
-
* RSC-safe: pure render, no hooks.
|
|
105
|
-
*/
|
|
106
|
-
declare function Spinner({ label, size, testID, color, style, ...rest }: SpinnerProps): react_jsx_runtime.JSX.Element;
|
|
107
|
-
|
|
108
|
-
type SwitchProps = {
|
|
109
|
-
checked?: boolean;
|
|
110
|
-
defaultChecked?: boolean;
|
|
111
|
-
disabled?: boolean;
|
|
112
|
-
onChange?: (next: boolean) => void;
|
|
113
|
-
label?: string;
|
|
114
|
-
className?: string;
|
|
115
|
-
testID?: string;
|
|
116
|
-
asChild?: boolean;
|
|
117
|
-
children?: ReactNode;
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* Switch — a toggle control with role="switch". Supports controlled + uncontrolled,
|
|
121
|
-
* disabled state, asChild (via Slot), and a visible label that doubles as the
|
|
122
|
-
* accessibility label.
|
|
123
|
-
*/
|
|
124
|
-
declare function Switch({ checked, defaultChecked, disabled, onChange, label, className, testID, asChild, children, }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
125
|
-
|
|
126
|
-
type TextVariant = 'body-xs' | 'body-sm' | 'body-md' | 'body-lg' | 'heading-1' | 'heading-2' | 'heading-3';
|
|
127
|
-
type TextProps = TextProps$1 & {
|
|
128
|
-
variant?: TextVariant;
|
|
129
|
-
className?: string;
|
|
130
|
-
testID?: string;
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* Typography primitive. Renders a react-native <Text>; on web via RN-Web
|
|
134
|
-
* it becomes a <div role="..."> with the appropriate className.
|
|
135
|
-
*
|
|
136
|
-
* RSC-safe: pure render, no hooks.
|
|
137
|
-
*/
|
|
138
|
-
declare function Text({ variant, className, testID, children, ...rest }: TextProps): react_jsx_runtime.JSX.Element;
|
|
139
|
-
|
|
140
|
-
type TextInputProps = Omit<TextInputProps$1, 'editable'> & {
|
|
141
|
-
label?: string;
|
|
142
|
-
helperText?: string;
|
|
143
|
-
error?: string;
|
|
144
|
-
disabled?: boolean;
|
|
145
|
-
leading?: ReactNode;
|
|
146
|
-
trailing?: ReactNode;
|
|
147
|
-
/** Pass through a custom wrapper className */
|
|
148
|
-
containerClassName?: string;
|
|
149
|
-
className?: string;
|
|
150
|
-
testID?: string;
|
|
151
|
-
/** Controlled text handler. Optional so uncontrolled usage works too. */
|
|
152
|
-
onChangeText?: (text: string) => void;
|
|
153
|
-
/** Multi-line mode — flipped by TextArea. Default false. */
|
|
154
|
-
multiline?: boolean;
|
|
155
|
-
numberOfLines?: number;
|
|
156
|
-
};
|
|
157
|
-
/**
|
|
158
|
-
* Single-line text input with label, helper, error, and leading/trailing slots.
|
|
159
|
-
*
|
|
160
|
-
* a11y: label is a <label for={id}>; the input is `aria-invalid=true` + labelled
|
|
161
|
-
* by the error/helper text via aria-describedby when present.
|
|
162
|
-
*
|
|
163
|
-
* Notionally RSC-safe — uses only useId() which React 19 guarantees is safe on
|
|
164
|
-
* the server. No "use client" required.
|
|
165
|
-
*/
|
|
166
|
-
declare function TextInput({ label, helperText, error, disabled, leading, trailing, containerClassName, className, testID, onChangeText, multiline, numberOfLines, ...rest }: TextInputProps): react_jsx_runtime.JSX.Element;
|
|
167
|
-
|
|
168
|
-
type TextAreaProps = TextInputProps;
|
|
169
|
-
/**
|
|
170
|
-
* Multi-line text input. Thin wrapper over TextInput that fixes `multiline=true`
|
|
171
|
-
* and provides a sensible default for `numberOfLines`.
|
|
172
|
-
*/
|
|
173
|
-
declare function TextArea({ numberOfLines, ...rest }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
174
|
-
|
|
175
|
-
type VStackProps = ViewProps & {
|
|
176
|
-
gap?: StackGap;
|
|
177
|
-
align?: StackAlign;
|
|
178
|
-
justify?: StackJustify;
|
|
179
|
-
className?: string;
|
|
180
|
-
testID?: string;
|
|
181
|
-
};
|
|
182
|
-
/**
|
|
183
|
-
* Vertical flex layout primitive. RSC-safe.
|
|
184
|
-
*/
|
|
185
|
-
declare function VStack({ gap, align, justify, className, children, ...rest }: VStackProps): react_jsx_runtime.JSX.Element;
|
|
186
|
-
|
|
187
|
-
export { Box, type BoxProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Checkbox, type CheckboxProps, HStack, type HStackProps, Spinner, type SpinnerProps, type SpinnerSize, type StackAlign, type StackGap, type StackJustify, Switch, type SwitchProps, Text, TextArea, type TextAreaProps, TextInput, type TextInputProps, type TextProps, type TextVariant, VStack, type VStackProps };
|
|
40
|
+
import 'react/jsx-runtime';
|
|
41
|
+
import 'react';
|
|
42
|
+
import 'react-native';
|
|
43
|
+
import '@internationalized/date';
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,52 @@
|
|
|
1
1
|
import './chunk-BRCCWMGJ.js';
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
|
|
2
|
+
export { Toaster, toast } from './chunk-LWLK6HSW.js';
|
|
3
|
+
export { Toggle } from './chunk-MKSDYRWQ.js';
|
|
4
|
+
export { Tooltip } from './chunk-NRYWNOG5.js';
|
|
5
|
+
export { VStack } from './chunk-MRJWPRCX.js';
|
|
6
|
+
import './chunk-MDOZGILD.js';
|
|
7
|
+
import './chunk-QI6646JZ.js';
|
|
8
|
+
export { Icon } from './chunk-33S7ADWM.js';
|
|
9
|
+
export { Skeleton } from './chunk-JSAG5YO7.js';
|
|
10
|
+
export { Slider, SliderGestureProvider, useSliderInteractionActive } from './chunk-ZMSIYLSI.js';
|
|
11
|
+
export { Switch } from './chunk-ZBW3BA5R.js';
|
|
12
|
+
export { Tabs } from './chunk-XALU6LOT.js';
|
|
13
|
+
export { TextArea } from './chunk-SWC5CNKE.js';
|
|
14
|
+
export { TextInput } from './chunk-ZRD4FQBT.js';
|
|
15
|
+
export { InputGroup } from './chunk-3F4TXKDY.js';
|
|
16
|
+
export { PAGINATION_COMPACT_BREAKPOINT, Pagination, usePagination } from './chunk-7GPDNQSX.js';
|
|
17
|
+
export { Progress } from './chunk-FEPTH5RV.js';
|
|
18
|
+
export { Radio } from './chunk-IKLA2CVQ.js';
|
|
19
|
+
export { SegmentedControl } from './chunk-6AD6KCVB.js';
|
|
20
|
+
export { Separator } from './chunk-7UKRN73P.js';
|
|
21
|
+
export { Breadcrumb, getBreadcrumbJsonLd } from './chunk-LVWNMQGR.js';
|
|
22
|
+
export { Popover } from './chunk-YNKKEO2A.js';
|
|
23
|
+
export { Button } from './chunk-5XEGZFG5.js';
|
|
24
|
+
export { Spinner } from './chunk-ACLHDHX3.js';
|
|
25
|
+
export { Calendar, useCalendarCaption } from './chunk-X7APG7G2.js';
|
|
26
|
+
export { Select } from './chunk-ZQMNGPLE.js';
|
|
27
|
+
export { Card } from './chunk-OMU4R4Y5.js';
|
|
28
|
+
export { Checkbox } from './chunk-QJNV7YQP.js';
|
|
29
|
+
export { Dialog } from './chunk-WGT345SV.js';
|
|
30
|
+
export { FloatButton } from './chunk-EWWQQ5DB.js';
|
|
31
|
+
import './chunk-RFW5SRZA.js';
|
|
32
|
+
export { defaultDictionary, resolveI18n } from './chunk-FT2XBBQJ.js';
|
|
33
|
+
export { HStack } from './chunk-BZLT6R62.js';
|
|
34
|
+
export { Accordion } from './chunk-CCUXO2HN.js';
|
|
35
|
+
import './chunk-RB3YBWQ4.js';
|
|
36
|
+
import './chunk-RGJ3NBKE.js';
|
|
37
|
+
export { Alert } from './chunk-DDGMLLS3.js';
|
|
38
|
+
export { defaultSemanticIcons } from './chunk-7Z4NMNX6.js';
|
|
39
|
+
export { AlertDialog } from './chunk-SFNDR6DI.js';
|
|
40
|
+
import './chunk-KWRDJPP3.js';
|
|
41
|
+
export { Slot, composeRefs } from './chunk-ZIBNLXIV.js';
|
|
42
|
+
export { Avatar } from './chunk-PNP7L4TA.js';
|
|
43
|
+
export { Badge } from './chunk-3BDDPFCI.js';
|
|
44
|
+
export { Box } from './chunk-TLS54G6Y.js';
|
|
45
|
+
import './chunk-JQQ3FBN7.js';
|
|
46
|
+
export { Text } from './chunk-JZ774T7U.js';
|
|
47
|
+
import './chunk-5A2QOOVN.js';
|
|
48
|
+
export { cn } from './chunk-CHXHRJNZ.js';
|
|
49
|
+
export { theme, themeDark } from './chunk-R5JMDDCB.js';
|
|
50
|
+
import './chunk-WCQVDF3K.js';
|
|
11
51
|
//# sourceMappingURL=index.js.map
|
|
12
52
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/** Options accepted by the library's internal t() calls. Subset of i18next's TOptions. */
|
|
2
|
+
type I18nOptions = {
|
|
3
|
+
/** Used for pluralization (e.g. `items_one` vs `items_other`). */
|
|
4
|
+
count?: number;
|
|
5
|
+
/** Default text to render if the key is missing from the active dictionary. */
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
/** Any other key is an interpolation value — consumed by {{var}} replacement. */
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
/** Shape-compatible with i18next's TFunction, narrowed for library usage. */
|
|
11
|
+
type TranslateFn = (key: string | string[], options?: I18nOptions) => string;
|
|
12
|
+
/**
|
|
13
|
+
* Consumer-facing i18n input. One of:
|
|
14
|
+
* - undefined: use library defaults
|
|
15
|
+
* - TranslateFn: call it (this is the i18next drop-in path)
|
|
16
|
+
* - Dictionary: flat key → value map; value may contain `{{vars}}` and/or `_one|_other` plural suffixes
|
|
17
|
+
*/
|
|
18
|
+
type I18nInput = TranslateFn | Dictionary | undefined;
|
|
19
|
+
type Dictionary = Readonly<Record<string, string>>;
|
|
20
|
+
/**
|
|
21
|
+
* Keys shipped by the library — augmentable by consumers via module augmentation:
|
|
22
|
+
*
|
|
23
|
+
* ```ts
|
|
24
|
+
* declare module 'nori-ui' {
|
|
25
|
+
* interface I18nKeys {
|
|
26
|
+
* 'myApp.customLabel': string;
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* Plan 05 extends this interface as each component registers its keys.
|
|
32
|
+
*/
|
|
33
|
+
interface I18nKeys {
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Default English strings used by library components.
|
|
38
|
+
*
|
|
39
|
+
* Key naming convention:
|
|
40
|
+
* <component>.<purpose>[_plural-form]
|
|
41
|
+
*
|
|
42
|
+
* Plural suffixes follow i18next: `_zero`, `_one`, `_two`, `_few`, `_many`, `_other`.
|
|
43
|
+
* Interpolation uses `{{name}}` — double braces, no spaces, by convention.
|
|
44
|
+
*/
|
|
45
|
+
declare const defaultDictionary: Dictionary;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Normalizes the consumer's i18n input (undefined | dictionary | function) into a
|
|
49
|
+
* uniform TranslateFn. Internal code only calls the returned function.
|
|
50
|
+
*
|
|
51
|
+
* Precedence for a given key lookup:
|
|
52
|
+
* 1. consumer function (if provided) — called verbatim, no further fallback
|
|
53
|
+
* 2. consumer dictionary (if provided)
|
|
54
|
+
* 3. library defaults
|
|
55
|
+
* 4. options.defaultValue
|
|
56
|
+
* 5. the key itself (so missing strings are visible in dev, not silent)
|
|
57
|
+
*/
|
|
58
|
+
declare function resolveI18n(input: I18nInput, defaults: Dictionary): TranslateFn;
|
|
59
|
+
|
|
60
|
+
export { type Dictionary as D, type I18nInput as I, type TranslateFn as T, type I18nKeys as a, type I18nOptions as b, defaultDictionary as d, resolveI18n as r };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/** Options accepted by the library's internal t() calls. Subset of i18next's TOptions. */
|
|
2
|
+
type I18nOptions = {
|
|
3
|
+
/** Used for pluralization (e.g. `items_one` vs `items_other`). */
|
|
4
|
+
count?: number;
|
|
5
|
+
/** Default text to render if the key is missing from the active dictionary. */
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
/** Any other key is an interpolation value — consumed by {{var}} replacement. */
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
/** Shape-compatible with i18next's TFunction, narrowed for library usage. */
|
|
11
|
+
type TranslateFn = (key: string | string[], options?: I18nOptions) => string;
|
|
12
|
+
/**
|
|
13
|
+
* Consumer-facing i18n input. One of:
|
|
14
|
+
* - undefined: use library defaults
|
|
15
|
+
* - TranslateFn: call it (this is the i18next drop-in path)
|
|
16
|
+
* - Dictionary: flat key → value map; value may contain `{{vars}}` and/or `_one|_other` plural suffixes
|
|
17
|
+
*/
|
|
18
|
+
type I18nInput = TranslateFn | Dictionary | undefined;
|
|
19
|
+
type Dictionary = Readonly<Record<string, string>>;
|
|
20
|
+
/**
|
|
21
|
+
* Keys shipped by the library — augmentable by consumers via module augmentation:
|
|
22
|
+
*
|
|
23
|
+
* ```ts
|
|
24
|
+
* declare module 'nori-ui' {
|
|
25
|
+
* interface I18nKeys {
|
|
26
|
+
* 'myApp.customLabel': string;
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* Plan 05 extends this interface as each component registers its keys.
|
|
32
|
+
*/
|
|
33
|
+
interface I18nKeys {
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Default English strings used by library components.
|
|
38
|
+
*
|
|
39
|
+
* Key naming convention:
|
|
40
|
+
* <component>.<purpose>[_plural-form]
|
|
41
|
+
*
|
|
42
|
+
* Plural suffixes follow i18next: `_zero`, `_one`, `_two`, `_few`, `_many`, `_other`.
|
|
43
|
+
* Interpolation uses `{{name}}` — double braces, no spaces, by convention.
|
|
44
|
+
*/
|
|
45
|
+
declare const defaultDictionary: Dictionary;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Normalizes the consumer's i18n input (undefined | dictionary | function) into a
|
|
49
|
+
* uniform TranslateFn. Internal code only calls the returned function.
|
|
50
|
+
*
|
|
51
|
+
* Precedence for a given key lookup:
|
|
52
|
+
* 1. consumer function (if provided) — called verbatim, no further fallback
|
|
53
|
+
* 2. consumer dictionary (if provided)
|
|
54
|
+
* 3. library defaults
|
|
55
|
+
* 4. options.defaultValue
|
|
56
|
+
* 5. the key itself (so missing strings are visible in dev, not silent)
|
|
57
|
+
*/
|
|
58
|
+
declare function resolveI18n(input: I18nInput, defaults: Dictionary): TranslateFn;
|
|
59
|
+
|
|
60
|
+
export { type Dictionary as D, type I18nInput as I, type TranslateFn as T, type I18nKeys as a, type I18nOptions as b, defaultDictionary as d, resolveI18n as r };
|