@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/client.d.cts
CHANGED
|
@@ -1,15 +1,53 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { I18nInput, TranslateFn } from './
|
|
4
|
-
export { Dictionary, I18nKeys, I18nOptions, defaultDictionary, resolveI18n } from './
|
|
3
|
+
import { I as I18nInput, T as TranslateFn } from './resolve-D-GOaxZy.cjs';
|
|
4
|
+
export { D as Dictionary, a as I18nKeys, b as I18nOptions, d as defaultDictionary, r as resolveI18n } from './resolve-D-GOaxZy.cjs';
|
|
5
|
+
import { L as LocaleInput } from './index-uXPK_Rg8.cjs';
|
|
6
|
+
export { a as LocaleProvider, b as LocaleProviderProps, d as detectLocale, u as useLocale } from './index-uXPK_Rg8.cjs';
|
|
5
7
|
import { SemanticIcons } from './icons/index.cjs';
|
|
6
8
|
export { Icon, IconComponentProps, IconProps, IconSize, defaultSemanticIcons } from './icons/index.cjs';
|
|
7
|
-
export {
|
|
9
|
+
export { Accordion, AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, AccordionType } from './components/Accordion/index.cjs';
|
|
10
|
+
export { Alert, AlertProps, AlertTone } from './components/Alert/index.cjs';
|
|
11
|
+
export { AlertDialog, AlertDialogActionProps, AlertDialogCancelProps, AlertDialogContentProps, AlertDialogFooterProps, AlertDialogProps, AlertDialogTextProps, AlertDialogTriggerProps } from './components/AlertDialog/index.cjs';
|
|
12
|
+
export { Avatar, AvatarProps, AvatarSize } from './components/Avatar/index.cjs';
|
|
13
|
+
export { Badge, BadgeAppearance, BadgeProps, BadgeTone } from './components/Badge/index.cjs';
|
|
14
|
+
export { Box, BoxProps } from './components/Box/index.cjs';
|
|
15
|
+
export { Breadcrumb, BreadcrumbEllipsisProps, BreadcrumbExpandBehavior, BreadcrumbIcon, BreadcrumbItemData, BreadcrumbItemProps, BreadcrumbLinkProps, BreadcrumbListProps, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparatorContext, BreadcrumbSeparatorProps, BreadcrumbSeparatorValue, BreadcrumbSibling, getBreadcrumbJsonLd } from './components/Breadcrumb/index.cjs';
|
|
16
|
+
export { Button, ButtonProps, ButtonSize, ButtonVariant } from './components/Button/index.cjs';
|
|
17
|
+
export { Calendar, CalendarBehavior, CalendarCaption, CalendarCaptionProps, CalendarChangeMeta, CalendarMode, CalendarProps, CalendarValue, CalendarView, CaptionContextValue, CaptionOption, DateRange, DayContext, useCalendarCaption } from './components/Calendar/index.cjs';
|
|
18
|
+
export { Card, CardProps, CardSectionProps, CardTextProps } from './components/Card/index.cjs';
|
|
19
|
+
export { Checkbox, CheckboxProps } from './components/Checkbox/index.cjs';
|
|
20
|
+
export { Dialog, DialogCloseProps, DialogContentProps, DialogFooterProps, DialogProps, DialogTextProps, DialogTriggerProps } from './components/Dialog/index.cjs';
|
|
21
|
+
export { FloatButton, FloatButtonBackToTopProps, FloatButtonBadge, FloatButtonGroupDirection, FloatButtonGroupProps, FloatButtonGroupTrigger, FloatButtonPlacement, FloatButtonProps, FloatButtonShape, FloatButtonSize, FloatButtonVariant } from './components/FloatButton/index.cjs';
|
|
22
|
+
export { HStack, HStackProps, StackAlign, StackGap, StackJustify } from './components/HStack/index.cjs';
|
|
23
|
+
export { InputGroup, InputGroupAddonProps, InputGroupInputProps, InputGroupProps } from './components/InputGroup/index.cjs';
|
|
24
|
+
export { PAGINATION_COMPACT_BREAKPOINT, Pagination, PaginationItemDescriptor, PaginationItemType, PaginationJumperProps, PaginationOnPageChange, PaginationProps, PaginationRenderItemArgs, PaginationVariant, UsePaginationArgs, UsePaginationReturn, usePagination } from './components/Pagination/index.cjs';
|
|
25
|
+
export { Popover, PopoverAlign, PopoverContentProps, PopoverProps, PopoverSide, PopoverTriggerProps } from './components/Popover/index.cjs';
|
|
26
|
+
export { Progress, ProgressProps, ProgressSize, ProgressTone } from './components/Progress/index.cjs';
|
|
27
|
+
export { Radio, RadioGroupOrientation, RadioGroupProps, RadioProps } from './components/Radio/index.cjs';
|
|
28
|
+
export { SegmentedControl, SegmentedControlOption, SegmentedControlProps, SegmentedControlSize } from './components/SegmentedControl/index.cjs';
|
|
29
|
+
export { LoadOptionsParams, LoadOptionsResult, Select, SelectOption, SelectProps, SelectRenderOptionInfo } from './components/Select/index.cjs';
|
|
30
|
+
export { Separator, SeparatorOrientation, SeparatorProps } from './components/Separator/index.cjs';
|
|
31
|
+
export { Skeleton, SkeletonProps } from './components/Skeleton/index.cjs';
|
|
32
|
+
export { Slider, SliderDirection, SliderGestureProvider, SliderOrientation, SliderProps, useSliderInteractionActive } from './components/Slider/index.cjs';
|
|
33
|
+
export { Spinner, SpinnerProps, SpinnerSize } from './components/Spinner/index.cjs';
|
|
34
|
+
export { Switch, SwitchProps } from './components/Switch/index.cjs';
|
|
35
|
+
export { Tabs, TabsActivation, TabsContentProps, TabsListProps, TabsOrientation, TabsProps, TabsTriggerProps } from './components/Tabs/index.cjs';
|
|
36
|
+
export { Text, TextProps, TextVariant } from './components/Text/index.cjs';
|
|
37
|
+
export { TextArea, TextAreaProps } from './components/TextArea/index.cjs';
|
|
38
|
+
export { TextInput, TextInputProps } from './components/TextInput/index.cjs';
|
|
39
|
+
export { ToastAction, ToastOptions, ToastTone, Toaster, ToasterPosition, ToasterProps, toast } from './components/Toast/index.cjs';
|
|
40
|
+
export { Toggle, ToggleGroupItemProps, ToggleGroupMultipleProps, ToggleGroupProps, ToggleGroupSingleProps, ToggleProps, ToggleSize, ToggleVariant } from './components/Toggle/index.cjs';
|
|
41
|
+
export { Tooltip, TooltipAlign, TooltipContentProps, TooltipProps, TooltipSide, TooltipTriggerProps } from './components/Tooltip/index.cjs';
|
|
42
|
+
export { VStack, VStackProps } from './components/VStack/index.cjs';
|
|
8
43
|
export { Slot, SlotProps, composeRefs } from './slot/index.cjs';
|
|
9
44
|
import { Theme } from '@nori-ui/tokens';
|
|
10
45
|
export { Theme, theme, themeDark } from '@nori-ui/tokens';
|
|
46
|
+
import { N as NoriTheme, C as ColorScheme } from './use-theme-CoqfnvRs.cjs';
|
|
47
|
+
export { P as PresetThemeName, T as ThemeProvider, c as ThemeProviderProps, d as blueTheme, e as defaultTheme, o as orangeTheme, p as presetThemes, r as roseTheme, s as slateTheme, t as tealTheme, u as useColorScheme, f as useTheme, g as useThemeColors, v as violetTheme } from './use-theme-CoqfnvRs.cjs';
|
|
11
48
|
export { ClassInput, cn } from './utils/cn.cjs';
|
|
12
49
|
import 'react-native';
|
|
50
|
+
import '@internationalized/date';
|
|
13
51
|
|
|
14
52
|
type I18nContextValue = {
|
|
15
53
|
t: TranslateFn;
|
|
@@ -31,9 +69,33 @@ declare function SemanticIconsProvider({ icons, children }: SemanticIconsProvide
|
|
|
31
69
|
declare function useSemanticIcon<K extends keyof SemanticIcons>(name: K): SemanticIcons[K];
|
|
32
70
|
|
|
33
71
|
type NoriProviderProps = {
|
|
34
|
-
|
|
72
|
+
/**
|
|
73
|
+
* Theme to apply to descendants. Pass:
|
|
74
|
+
* - a `NoriTheme` (`{ light, dark }`) — covers both schemes
|
|
75
|
+
* - a single `Theme` — used for both schemes (rare)
|
|
76
|
+
* - one of the bundled presets: `tealTheme`, `blueTheme`, `roseTheme`,
|
|
77
|
+
* `violetTheme`, `orangeTheme`, `slateTheme` (from `@nori-ui/core`)
|
|
78
|
+
* - omit — falls back to the default Nori palette (teal)
|
|
79
|
+
*/
|
|
80
|
+
theme?: NoriTheme | Theme;
|
|
81
|
+
/**
|
|
82
|
+
* Force a color scheme for descendants, overriding the OS signal. Use
|
|
83
|
+
* when an app shell is hard-coded to one scheme (e.g. forced-dark
|
|
84
|
+
* editorial chrome) and wants library components inside it to render
|
|
85
|
+
* against the matching half of the theme.
|
|
86
|
+
*
|
|
87
|
+
* Omit to track the OS Appearance (native) / `<html>` `dark` class (web).
|
|
88
|
+
*/
|
|
89
|
+
colorScheme?: ColorScheme;
|
|
35
90
|
i18n?: I18nInput;
|
|
36
91
|
icons?: Partial<SemanticIcons>;
|
|
92
|
+
/**
|
|
93
|
+
* BCP 47 locale tag (or `Intl.Locale`) used by locale-aware components
|
|
94
|
+
* (Calendar, Number/Currency formatting, RelativeTime). Defaults to
|
|
95
|
+
* the runtime's resolved locale (`new Intl.DateTimeFormat().resolvedOptions().locale`),
|
|
96
|
+
* which mirrors what other `Intl` calls in the consumer's code use.
|
|
97
|
+
*/
|
|
98
|
+
locale?: LocaleInput;
|
|
37
99
|
children?: ReactNode;
|
|
38
100
|
};
|
|
39
101
|
/**
|
|
@@ -41,117 +103,6 @@ type NoriProviderProps = {
|
|
|
41
103
|
* Place near the root of your app. Only needed to override defaults — the
|
|
42
104
|
* library works out of the box without any provider.
|
|
43
105
|
*/
|
|
44
|
-
declare function NoriProvider({ theme, i18n, icons, children }: NoriProviderProps): react_jsx_runtime.JSX.Element;
|
|
106
|
+
declare function NoriProvider({ theme, colorScheme, i18n, icons, locale, children }: NoriProviderProps): react_jsx_runtime.JSX.Element;
|
|
45
107
|
|
|
46
|
-
type
|
|
47
|
-
theme?: Theme;
|
|
48
|
-
children?: ReactNode;
|
|
49
|
-
};
|
|
50
|
-
declare function ThemeProvider({ theme, children }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
51
|
-
|
|
52
|
-
declare function useTheme(): {
|
|
53
|
-
readonly color: {
|
|
54
|
-
readonly danger: "#ef4444";
|
|
55
|
-
readonly info: "#3b82f6";
|
|
56
|
-
readonly neutral: {
|
|
57
|
-
readonly "100": "#f4f4f5";
|
|
58
|
-
readonly "200": "#e4e4e7";
|
|
59
|
-
readonly "300": "#d4d4d8";
|
|
60
|
-
readonly "400": "#a1a1aa";
|
|
61
|
-
readonly "50": "#fafafa";
|
|
62
|
-
readonly "500": "#71717a";
|
|
63
|
-
readonly "600": "#52525b";
|
|
64
|
-
readonly "700": "#3f3f46";
|
|
65
|
-
readonly "800": "#27272a";
|
|
66
|
-
readonly "900": "#18181b";
|
|
67
|
-
};
|
|
68
|
-
readonly primary: {
|
|
69
|
-
readonly "100": "#dbeafe";
|
|
70
|
-
readonly "200": "#bfdbfe";
|
|
71
|
-
readonly "300": "#93c5fd";
|
|
72
|
-
readonly "400": "#60a5fa";
|
|
73
|
-
readonly "50": "#f0f7ff";
|
|
74
|
-
readonly "500": "#3b82f6";
|
|
75
|
-
readonly "600": "#2563eb";
|
|
76
|
-
readonly "700": "#1d4ed8";
|
|
77
|
-
readonly "800": "#1e40af";
|
|
78
|
-
readonly "900": "#1e3a8a";
|
|
79
|
-
};
|
|
80
|
-
readonly success: "#22c55e";
|
|
81
|
-
readonly warning: "#f59e0b";
|
|
82
|
-
};
|
|
83
|
-
readonly fontSize: {
|
|
84
|
-
readonly "2xl": "24px";
|
|
85
|
-
readonly "3xl": "30px";
|
|
86
|
-
readonly "4xl": "36px";
|
|
87
|
-
readonly lg: "18px";
|
|
88
|
-
readonly md: "16px";
|
|
89
|
-
readonly sm: "14px";
|
|
90
|
-
readonly xl: "20px";
|
|
91
|
-
readonly xs: "12px";
|
|
92
|
-
};
|
|
93
|
-
readonly fontWeight: {
|
|
94
|
-
readonly bold: "700";
|
|
95
|
-
readonly medium: "500";
|
|
96
|
-
readonly regular: "400";
|
|
97
|
-
readonly semibold: "600";
|
|
98
|
-
};
|
|
99
|
-
readonly lineHeight: {
|
|
100
|
-
readonly normal: "1.4";
|
|
101
|
-
readonly relaxed: "1.6";
|
|
102
|
-
readonly tight: "1.2";
|
|
103
|
-
};
|
|
104
|
-
readonly radius: {
|
|
105
|
-
readonly "2xl": "16px";
|
|
106
|
-
readonly full: "9999px";
|
|
107
|
-
readonly lg: "8px";
|
|
108
|
-
readonly md: "6px";
|
|
109
|
-
readonly none: "0px";
|
|
110
|
-
readonly sm: "4px";
|
|
111
|
-
readonly xl: "12px";
|
|
112
|
-
};
|
|
113
|
-
readonly semantic: {
|
|
114
|
-
readonly background: {
|
|
115
|
-
readonly default: "#fafafa";
|
|
116
|
-
readonly elevated: "#ffffff";
|
|
117
|
-
readonly subtle: "#f4f4f5";
|
|
118
|
-
};
|
|
119
|
-
readonly border: {
|
|
120
|
-
readonly default: "#e4e4e7";
|
|
121
|
-
readonly strong: "#d4d4d8";
|
|
122
|
-
};
|
|
123
|
-
readonly interactive: {
|
|
124
|
-
readonly destructive: "#ef4444";
|
|
125
|
-
readonly primary: "#2563eb";
|
|
126
|
-
readonly primaryHover: "#1d4ed8";
|
|
127
|
-
readonly primaryPressed: "#1e40af";
|
|
128
|
-
};
|
|
129
|
-
readonly text: {
|
|
130
|
-
readonly default: "#18181b";
|
|
131
|
-
readonly inverted: "#fafafa";
|
|
132
|
-
readonly muted: "#52525b";
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
readonly shadow: {
|
|
136
|
-
readonly lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)";
|
|
137
|
-
readonly md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)";
|
|
138
|
-
readonly sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)";
|
|
139
|
-
};
|
|
140
|
-
readonly spacing: {
|
|
141
|
-
readonly "0": "0px";
|
|
142
|
-
readonly "1": "4px";
|
|
143
|
-
readonly "10": "40px";
|
|
144
|
-
readonly "12": "48px";
|
|
145
|
-
readonly "16": "64px";
|
|
146
|
-
readonly "2": "8px";
|
|
147
|
-
readonly "20": "80px";
|
|
148
|
-
readonly "24": "96px";
|
|
149
|
-
readonly "3": "12px";
|
|
150
|
-
readonly "4": "16px";
|
|
151
|
-
readonly "5": "20px";
|
|
152
|
-
readonly "6": "24px";
|
|
153
|
-
readonly "8": "32px";
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
export { I18nInput, I18nProvider, type I18nProviderProps, NoriProvider, type NoriProviderProps, SemanticIcons, SemanticIconsProvider, type SemanticIconsProviderProps, ThemeProvider, type ThemeProviderProps, TranslateFn, useSemanticIcon, useTheme, useTranslation };
|
|
108
|
+
export { ColorScheme, I18nInput, I18nProvider, type I18nProviderProps, LocaleInput, NoriProvider, type NoriProviderProps, NoriTheme, SemanticIcons, SemanticIconsProvider, type SemanticIconsProviderProps, TranslateFn, useSemanticIcon, useTranslation };
|
package/dist/client.d.ts
CHANGED
|
@@ -1,15 +1,53 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { I18nInput, TranslateFn } from './
|
|
4
|
-
export { Dictionary, I18nKeys, I18nOptions, defaultDictionary, resolveI18n } from './
|
|
3
|
+
import { I as I18nInput, T as TranslateFn } from './resolve-D-GOaxZy.js';
|
|
4
|
+
export { D as Dictionary, a as I18nKeys, b as I18nOptions, d as defaultDictionary, r as resolveI18n } from './resolve-D-GOaxZy.js';
|
|
5
|
+
import { L as LocaleInput } from './index-D3_M3G6U.js';
|
|
6
|
+
export { a as LocaleProvider, b as LocaleProviderProps, d as detectLocale, u as useLocale } from './index-D3_M3G6U.js';
|
|
5
7
|
import { SemanticIcons } from './icons/index.js';
|
|
6
8
|
export { Icon, IconComponentProps, IconProps, IconSize, defaultSemanticIcons } from './icons/index.js';
|
|
7
|
-
export {
|
|
9
|
+
export { Accordion, AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, AccordionType } from './components/Accordion/index.js';
|
|
10
|
+
export { Alert, AlertProps, AlertTone } from './components/Alert/index.js';
|
|
11
|
+
export { AlertDialog, AlertDialogActionProps, AlertDialogCancelProps, AlertDialogContentProps, AlertDialogFooterProps, AlertDialogProps, AlertDialogTextProps, AlertDialogTriggerProps } from './components/AlertDialog/index.js';
|
|
12
|
+
export { Avatar, AvatarProps, AvatarSize } from './components/Avatar/index.js';
|
|
13
|
+
export { Badge, BadgeAppearance, BadgeProps, BadgeTone } from './components/Badge/index.js';
|
|
14
|
+
export { Box, BoxProps } from './components/Box/index.js';
|
|
15
|
+
export { Breadcrumb, BreadcrumbEllipsisProps, BreadcrumbExpandBehavior, BreadcrumbIcon, BreadcrumbItemData, BreadcrumbItemProps, BreadcrumbLinkProps, BreadcrumbListProps, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparatorContext, BreadcrumbSeparatorProps, BreadcrumbSeparatorValue, BreadcrumbSibling, getBreadcrumbJsonLd } from './components/Breadcrumb/index.js';
|
|
16
|
+
export { Button, ButtonProps, ButtonSize, ButtonVariant } from './components/Button/index.js';
|
|
17
|
+
export { Calendar, CalendarBehavior, CalendarCaption, CalendarCaptionProps, CalendarChangeMeta, CalendarMode, CalendarProps, CalendarValue, CalendarView, CaptionContextValue, CaptionOption, DateRange, DayContext, useCalendarCaption } from './components/Calendar/index.js';
|
|
18
|
+
export { Card, CardProps, CardSectionProps, CardTextProps } from './components/Card/index.js';
|
|
19
|
+
export { Checkbox, CheckboxProps } from './components/Checkbox/index.js';
|
|
20
|
+
export { Dialog, DialogCloseProps, DialogContentProps, DialogFooterProps, DialogProps, DialogTextProps, DialogTriggerProps } from './components/Dialog/index.js';
|
|
21
|
+
export { FloatButton, FloatButtonBackToTopProps, FloatButtonBadge, FloatButtonGroupDirection, FloatButtonGroupProps, FloatButtonGroupTrigger, FloatButtonPlacement, FloatButtonProps, FloatButtonShape, FloatButtonSize, FloatButtonVariant } from './components/FloatButton/index.js';
|
|
22
|
+
export { HStack, HStackProps, StackAlign, StackGap, StackJustify } from './components/HStack/index.js';
|
|
23
|
+
export { InputGroup, InputGroupAddonProps, InputGroupInputProps, InputGroupProps } from './components/InputGroup/index.js';
|
|
24
|
+
export { PAGINATION_COMPACT_BREAKPOINT, Pagination, PaginationItemDescriptor, PaginationItemType, PaginationJumperProps, PaginationOnPageChange, PaginationProps, PaginationRenderItemArgs, PaginationVariant, UsePaginationArgs, UsePaginationReturn, usePagination } from './components/Pagination/index.js';
|
|
25
|
+
export { Popover, PopoverAlign, PopoverContentProps, PopoverProps, PopoverSide, PopoverTriggerProps } from './components/Popover/index.js';
|
|
26
|
+
export { Progress, ProgressProps, ProgressSize, ProgressTone } from './components/Progress/index.js';
|
|
27
|
+
export { Radio, RadioGroupOrientation, RadioGroupProps, RadioProps } from './components/Radio/index.js';
|
|
28
|
+
export { SegmentedControl, SegmentedControlOption, SegmentedControlProps, SegmentedControlSize } from './components/SegmentedControl/index.js';
|
|
29
|
+
export { LoadOptionsParams, LoadOptionsResult, Select, SelectOption, SelectProps, SelectRenderOptionInfo } from './components/Select/index.js';
|
|
30
|
+
export { Separator, SeparatorOrientation, SeparatorProps } from './components/Separator/index.js';
|
|
31
|
+
export { Skeleton, SkeletonProps } from './components/Skeleton/index.js';
|
|
32
|
+
export { Slider, SliderDirection, SliderGestureProvider, SliderOrientation, SliderProps, useSliderInteractionActive } from './components/Slider/index.js';
|
|
33
|
+
export { Spinner, SpinnerProps, SpinnerSize } from './components/Spinner/index.js';
|
|
34
|
+
export { Switch, SwitchProps } from './components/Switch/index.js';
|
|
35
|
+
export { Tabs, TabsActivation, TabsContentProps, TabsListProps, TabsOrientation, TabsProps, TabsTriggerProps } from './components/Tabs/index.js';
|
|
36
|
+
export { Text, TextProps, TextVariant } from './components/Text/index.js';
|
|
37
|
+
export { TextArea, TextAreaProps } from './components/TextArea/index.js';
|
|
38
|
+
export { TextInput, TextInputProps } from './components/TextInput/index.js';
|
|
39
|
+
export { ToastAction, ToastOptions, ToastTone, Toaster, ToasterPosition, ToasterProps, toast } from './components/Toast/index.js';
|
|
40
|
+
export { Toggle, ToggleGroupItemProps, ToggleGroupMultipleProps, ToggleGroupProps, ToggleGroupSingleProps, ToggleProps, ToggleSize, ToggleVariant } from './components/Toggle/index.js';
|
|
41
|
+
export { Tooltip, TooltipAlign, TooltipContentProps, TooltipProps, TooltipSide, TooltipTriggerProps } from './components/Tooltip/index.js';
|
|
42
|
+
export { VStack, VStackProps } from './components/VStack/index.js';
|
|
8
43
|
export { Slot, SlotProps, composeRefs } from './slot/index.js';
|
|
9
44
|
import { Theme } from '@nori-ui/tokens';
|
|
10
45
|
export { Theme, theme, themeDark } from '@nori-ui/tokens';
|
|
46
|
+
import { N as NoriTheme, C as ColorScheme } from './use-theme-CoqfnvRs.js';
|
|
47
|
+
export { P as PresetThemeName, T as ThemeProvider, c as ThemeProviderProps, d as blueTheme, e as defaultTheme, o as orangeTheme, p as presetThemes, r as roseTheme, s as slateTheme, t as tealTheme, u as useColorScheme, f as useTheme, g as useThemeColors, v as violetTheme } from './use-theme-CoqfnvRs.js';
|
|
11
48
|
export { ClassInput, cn } from './utils/cn.js';
|
|
12
49
|
import 'react-native';
|
|
50
|
+
import '@internationalized/date';
|
|
13
51
|
|
|
14
52
|
type I18nContextValue = {
|
|
15
53
|
t: TranslateFn;
|
|
@@ -31,9 +69,33 @@ declare function SemanticIconsProvider({ icons, children }: SemanticIconsProvide
|
|
|
31
69
|
declare function useSemanticIcon<K extends keyof SemanticIcons>(name: K): SemanticIcons[K];
|
|
32
70
|
|
|
33
71
|
type NoriProviderProps = {
|
|
34
|
-
|
|
72
|
+
/**
|
|
73
|
+
* Theme to apply to descendants. Pass:
|
|
74
|
+
* - a `NoriTheme` (`{ light, dark }`) — covers both schemes
|
|
75
|
+
* - a single `Theme` — used for both schemes (rare)
|
|
76
|
+
* - one of the bundled presets: `tealTheme`, `blueTheme`, `roseTheme`,
|
|
77
|
+
* `violetTheme`, `orangeTheme`, `slateTheme` (from `@nori-ui/core`)
|
|
78
|
+
* - omit — falls back to the default Nori palette (teal)
|
|
79
|
+
*/
|
|
80
|
+
theme?: NoriTheme | Theme;
|
|
81
|
+
/**
|
|
82
|
+
* Force a color scheme for descendants, overriding the OS signal. Use
|
|
83
|
+
* when an app shell is hard-coded to one scheme (e.g. forced-dark
|
|
84
|
+
* editorial chrome) and wants library components inside it to render
|
|
85
|
+
* against the matching half of the theme.
|
|
86
|
+
*
|
|
87
|
+
* Omit to track the OS Appearance (native) / `<html>` `dark` class (web).
|
|
88
|
+
*/
|
|
89
|
+
colorScheme?: ColorScheme;
|
|
35
90
|
i18n?: I18nInput;
|
|
36
91
|
icons?: Partial<SemanticIcons>;
|
|
92
|
+
/**
|
|
93
|
+
* BCP 47 locale tag (or `Intl.Locale`) used by locale-aware components
|
|
94
|
+
* (Calendar, Number/Currency formatting, RelativeTime). Defaults to
|
|
95
|
+
* the runtime's resolved locale (`new Intl.DateTimeFormat().resolvedOptions().locale`),
|
|
96
|
+
* which mirrors what other `Intl` calls in the consumer's code use.
|
|
97
|
+
*/
|
|
98
|
+
locale?: LocaleInput;
|
|
37
99
|
children?: ReactNode;
|
|
38
100
|
};
|
|
39
101
|
/**
|
|
@@ -41,117 +103,6 @@ type NoriProviderProps = {
|
|
|
41
103
|
* Place near the root of your app. Only needed to override defaults — the
|
|
42
104
|
* library works out of the box without any provider.
|
|
43
105
|
*/
|
|
44
|
-
declare function NoriProvider({ theme, i18n, icons, children }: NoriProviderProps): react_jsx_runtime.JSX.Element;
|
|
106
|
+
declare function NoriProvider({ theme, colorScheme, i18n, icons, locale, children }: NoriProviderProps): react_jsx_runtime.JSX.Element;
|
|
45
107
|
|
|
46
|
-
type
|
|
47
|
-
theme?: Theme;
|
|
48
|
-
children?: ReactNode;
|
|
49
|
-
};
|
|
50
|
-
declare function ThemeProvider({ theme, children }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
51
|
-
|
|
52
|
-
declare function useTheme(): {
|
|
53
|
-
readonly color: {
|
|
54
|
-
readonly danger: "#ef4444";
|
|
55
|
-
readonly info: "#3b82f6";
|
|
56
|
-
readonly neutral: {
|
|
57
|
-
readonly "100": "#f4f4f5";
|
|
58
|
-
readonly "200": "#e4e4e7";
|
|
59
|
-
readonly "300": "#d4d4d8";
|
|
60
|
-
readonly "400": "#a1a1aa";
|
|
61
|
-
readonly "50": "#fafafa";
|
|
62
|
-
readonly "500": "#71717a";
|
|
63
|
-
readonly "600": "#52525b";
|
|
64
|
-
readonly "700": "#3f3f46";
|
|
65
|
-
readonly "800": "#27272a";
|
|
66
|
-
readonly "900": "#18181b";
|
|
67
|
-
};
|
|
68
|
-
readonly primary: {
|
|
69
|
-
readonly "100": "#dbeafe";
|
|
70
|
-
readonly "200": "#bfdbfe";
|
|
71
|
-
readonly "300": "#93c5fd";
|
|
72
|
-
readonly "400": "#60a5fa";
|
|
73
|
-
readonly "50": "#f0f7ff";
|
|
74
|
-
readonly "500": "#3b82f6";
|
|
75
|
-
readonly "600": "#2563eb";
|
|
76
|
-
readonly "700": "#1d4ed8";
|
|
77
|
-
readonly "800": "#1e40af";
|
|
78
|
-
readonly "900": "#1e3a8a";
|
|
79
|
-
};
|
|
80
|
-
readonly success: "#22c55e";
|
|
81
|
-
readonly warning: "#f59e0b";
|
|
82
|
-
};
|
|
83
|
-
readonly fontSize: {
|
|
84
|
-
readonly "2xl": "24px";
|
|
85
|
-
readonly "3xl": "30px";
|
|
86
|
-
readonly "4xl": "36px";
|
|
87
|
-
readonly lg: "18px";
|
|
88
|
-
readonly md: "16px";
|
|
89
|
-
readonly sm: "14px";
|
|
90
|
-
readonly xl: "20px";
|
|
91
|
-
readonly xs: "12px";
|
|
92
|
-
};
|
|
93
|
-
readonly fontWeight: {
|
|
94
|
-
readonly bold: "700";
|
|
95
|
-
readonly medium: "500";
|
|
96
|
-
readonly regular: "400";
|
|
97
|
-
readonly semibold: "600";
|
|
98
|
-
};
|
|
99
|
-
readonly lineHeight: {
|
|
100
|
-
readonly normal: "1.4";
|
|
101
|
-
readonly relaxed: "1.6";
|
|
102
|
-
readonly tight: "1.2";
|
|
103
|
-
};
|
|
104
|
-
readonly radius: {
|
|
105
|
-
readonly "2xl": "16px";
|
|
106
|
-
readonly full: "9999px";
|
|
107
|
-
readonly lg: "8px";
|
|
108
|
-
readonly md: "6px";
|
|
109
|
-
readonly none: "0px";
|
|
110
|
-
readonly sm: "4px";
|
|
111
|
-
readonly xl: "12px";
|
|
112
|
-
};
|
|
113
|
-
readonly semantic: {
|
|
114
|
-
readonly background: {
|
|
115
|
-
readonly default: "#fafafa";
|
|
116
|
-
readonly elevated: "#ffffff";
|
|
117
|
-
readonly subtle: "#f4f4f5";
|
|
118
|
-
};
|
|
119
|
-
readonly border: {
|
|
120
|
-
readonly default: "#e4e4e7";
|
|
121
|
-
readonly strong: "#d4d4d8";
|
|
122
|
-
};
|
|
123
|
-
readonly interactive: {
|
|
124
|
-
readonly destructive: "#ef4444";
|
|
125
|
-
readonly primary: "#2563eb";
|
|
126
|
-
readonly primaryHover: "#1d4ed8";
|
|
127
|
-
readonly primaryPressed: "#1e40af";
|
|
128
|
-
};
|
|
129
|
-
readonly text: {
|
|
130
|
-
readonly default: "#18181b";
|
|
131
|
-
readonly inverted: "#fafafa";
|
|
132
|
-
readonly muted: "#52525b";
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
readonly shadow: {
|
|
136
|
-
readonly lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)";
|
|
137
|
-
readonly md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)";
|
|
138
|
-
readonly sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)";
|
|
139
|
-
};
|
|
140
|
-
readonly spacing: {
|
|
141
|
-
readonly "0": "0px";
|
|
142
|
-
readonly "1": "4px";
|
|
143
|
-
readonly "10": "40px";
|
|
144
|
-
readonly "12": "48px";
|
|
145
|
-
readonly "16": "64px";
|
|
146
|
-
readonly "2": "8px";
|
|
147
|
-
readonly "20": "80px";
|
|
148
|
-
readonly "24": "96px";
|
|
149
|
-
readonly "3": "12px";
|
|
150
|
-
readonly "4": "16px";
|
|
151
|
-
readonly "5": "20px";
|
|
152
|
-
readonly "6": "24px";
|
|
153
|
-
readonly "8": "32px";
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
export { I18nInput, I18nProvider, type I18nProviderProps, NoriProvider, type NoriProviderProps, SemanticIcons, SemanticIconsProvider, type SemanticIconsProviderProps, ThemeProvider, type ThemeProviderProps, TranslateFn, useSemanticIcon, useTheme, useTranslation };
|
|
108
|
+
export { ColorScheme, I18nInput, I18nProvider, type I18nProviderProps, LocaleInput, NoriProvider, type NoriProviderProps, NoriTheme, SemanticIcons, SemanticIconsProvider, type SemanticIconsProviderProps, TranslateFn, useSemanticIcon, useTranslation };
|
package/dist/client.js
CHANGED
|
@@ -1,51 +1,69 @@
|
|
|
1
1
|
import './chunk-BRCCWMGJ.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
|
|
14
|
-
|
|
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
|
+
export { blueTheme, orangeTheme, presetThemes, roseTheme, slateTheme, tealTheme, useTheme, violetTheme } from './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
|
+
import { LocaleProvider } from './chunk-X7APG7G2.js';
|
|
26
|
+
export { Calendar, LocaleProvider, detectLocale, useCalendarCaption, useLocale } from './chunk-X7APG7G2.js';
|
|
27
|
+
export { Select } from './chunk-ZQMNGPLE.js';
|
|
28
|
+
export { Card } from './chunk-OMU4R4Y5.js';
|
|
29
|
+
import { SemanticIconsProvider } from './chunk-QJNV7YQP.js';
|
|
30
|
+
export { Checkbox, SemanticIconsProvider, useSemanticIcon } from './chunk-QJNV7YQP.js';
|
|
31
|
+
export { Dialog } from './chunk-WGT345SV.js';
|
|
32
|
+
export { FloatButton } from './chunk-EWWQQ5DB.js';
|
|
33
|
+
import { I18nProvider } from './chunk-RFW5SRZA.js';
|
|
34
|
+
export { I18nProvider, useTranslation } from './chunk-RFW5SRZA.js';
|
|
35
|
+
export { defaultDictionary, resolveI18n } from './chunk-FT2XBBQJ.js';
|
|
36
|
+
export { HStack } from './chunk-BZLT6R62.js';
|
|
37
|
+
export { Accordion } from './chunk-CCUXO2HN.js';
|
|
38
|
+
import './chunk-RB3YBWQ4.js';
|
|
39
|
+
import './chunk-RGJ3NBKE.js';
|
|
40
|
+
export { Alert } from './chunk-DDGMLLS3.js';
|
|
41
|
+
export { defaultSemanticIcons } from './chunk-7Z4NMNX6.js';
|
|
42
|
+
export { AlertDialog } from './chunk-SFNDR6DI.js';
|
|
43
|
+
import './chunk-KWRDJPP3.js';
|
|
44
|
+
export { Slot, composeRefs } from './chunk-ZIBNLXIV.js';
|
|
45
|
+
export { Avatar } from './chunk-PNP7L4TA.js';
|
|
46
|
+
export { Badge } from './chunk-3BDDPFCI.js';
|
|
47
|
+
export { Box } from './chunk-TLS54G6Y.js';
|
|
48
|
+
import './chunk-JQQ3FBN7.js';
|
|
49
|
+
export { Text } from './chunk-JZ774T7U.js';
|
|
50
|
+
import './chunk-5A2QOOVN.js';
|
|
51
|
+
export { cn } from './chunk-CHXHRJNZ.js';
|
|
52
|
+
import { ColorSchemeProvider, ThemeProvider } from './chunk-R5JMDDCB.js';
|
|
53
|
+
export { ThemeProvider, defaultTheme, theme, themeDark, useColorScheme, useThemeColors } from './chunk-R5JMDDCB.js';
|
|
54
|
+
import { __name } from './chunk-WCQVDF3K.js';
|
|
15
55
|
import { jsx } from 'nativewind/jsx-runtime';
|
|
16
56
|
|
|
17
|
-
|
|
18
|
-
t: resolveI18n(void 0, defaultDictionary)
|
|
19
|
-
};
|
|
20
|
-
var I18nContext = createContext(defaultValue);
|
|
21
|
-
I18nContext.displayName = "I18nContext";
|
|
22
|
-
function I18nProvider({ i18n, children }) {
|
|
23
|
-
const value = useMemo(() => ({ t: resolveI18n(i18n, defaultDictionary) }), [i18n]);
|
|
24
|
-
return /* @__PURE__ */ jsx(I18nContext.Provider, { value, children });
|
|
25
|
-
}
|
|
26
|
-
__name(I18nProvider, "I18nProvider");
|
|
27
|
-
function useTranslation() {
|
|
28
|
-
return useContext(I18nContext);
|
|
29
|
-
}
|
|
30
|
-
__name(useTranslation, "useTranslation");
|
|
31
|
-
var ThemeContext = createContext(theme);
|
|
32
|
-
ThemeContext.displayName = "ThemeContext";
|
|
33
|
-
function ThemeProvider({ theme: theme2 = theme, children }) {
|
|
34
|
-
return /* @__PURE__ */ jsx(ThemeContext.Provider, { value: theme2, children });
|
|
35
|
-
}
|
|
36
|
-
__name(ThemeProvider, "ThemeProvider");
|
|
37
|
-
function NoriProvider({ theme: theme2, i18n, icons, children }) {
|
|
57
|
+
function NoriProvider({ theme: theme2, colorScheme, i18n, icons, locale, children }) {
|
|
38
58
|
const themeProps = theme2 === void 0 ? {} : { theme: theme2 };
|
|
39
59
|
const i18nProps = i18n === void 0 ? {} : { i18n };
|
|
40
60
|
const iconsProps = icons === void 0 ? {} : { icons };
|
|
41
|
-
|
|
61
|
+
const localeProps = locale === void 0 ? {} : { locale };
|
|
62
|
+
const inner = /* @__PURE__ */ jsx(LocaleProvider, { ...localeProps, children: /* @__PURE__ */ jsx(ThemeProvider, { ...themeProps, children: /* @__PURE__ */ jsx(I18nProvider, { ...i18nProps, children: /* @__PURE__ */ jsx(SemanticIconsProvider, { ...iconsProps, children }) }) }) });
|
|
63
|
+
return colorScheme === void 0 ? inner : /* @__PURE__ */ jsx(ColorSchemeProvider, { value: colorScheme, children: inner });
|
|
42
64
|
}
|
|
43
65
|
__name(NoriProvider, "NoriProvider");
|
|
44
|
-
function useTheme() {
|
|
45
|
-
return useContext(ThemeContext);
|
|
46
|
-
}
|
|
47
|
-
__name(useTheme, "useTheme");
|
|
48
66
|
|
|
49
|
-
export {
|
|
67
|
+
export { NoriProvider };
|
|
50
68
|
//# sourceMappingURL=client.js.map
|
|
51
69
|
//# sourceMappingURL=client.js.map
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/
|
|
1
|
+
{"version":3,"sources":["../src/provider/nori-provider.tsx"],"names":["theme"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDO,SAAS,YAAA,CAAa,EAAE,KAAA,EAAAA,MAAAA,EAAO,aAAa,IAAA,EAAM,KAAA,EAAO,MAAA,EAAQ,QAAA,EAAS,EAAsB;AAGnG,EAAA,MAAM,aAAaA,MAAAA,KAAU,MAAA,GAAY,EAAC,GAAI,EAAE,OAAAA,MAAAA,EAAM;AACtD,EAAA,MAAM,YAAY,IAAA,KAAS,MAAA,GAAY,EAAC,GAAI,EAAE,IAAA,EAAK;AACnD,EAAA,MAAM,aAAa,KAAA,KAAU,MAAA,GAAY,EAAC,GAAI,EAAE,KAAA,EAAM;AACtD,EAAA,MAAM,cAAc,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA,EAAO;AAEzD,EAAA,MAAM,KAAA,uBACD,cAAA,EAAA,EAAgB,GAAG,aAChB,QAAA,kBAAA,GAAA,CAAC,aAAA,EAAA,EAAe,GAAG,UAAA,EACf,QAAA,kBAAA,GAAA,CAAC,gBAAc,GAAG,SAAA,EACd,8BAAC,qBAAA,EAAA,EAAuB,GAAG,YAAa,QAAA,EAAS,CAAA,EACrD,GACJ,CAAA,EACJ,CAAA;AAGJ,EAAA,OAAO,gBAAgB,MAAA,GAAY,KAAA,uBAAS,mBAAA,EAAA,EAAoB,KAAA,EAAO,aAAc,QAAA,EAAA,KAAA,EAAM,CAAA;AAC/F;AAnBgB,MAAA,CAAA,YAAA,EAAA,cAAA,CAAA","file":"client.js","sourcesContent":["'use client';\n\nimport type { Theme } from '@nori-ui/tokens';\nimport type { ReactNode } from 'react';\nimport { I18nProvider } from '../i18n/context';\nimport { type LocaleInput, LocaleProvider } from '../i18n/locale';\nimport type { I18nInput } from '../i18n/types';\nimport type { SemanticIcons } from '../icons/default-semantic-icons';\nimport { SemanticIconsProvider } from '../icons/semantic-context';\nimport { type NoriTheme, ThemeProvider } from '../theme/context';\nimport { type ColorScheme, ColorSchemeProvider } from '../theme/use-color-scheme';\n\nexport type NoriProviderProps = {\n /**\n * Theme to apply to descendants. Pass:\n * - a `NoriTheme` (`{ light, dark }`) — covers both schemes\n * - a single `Theme` — used for both schemes (rare)\n * - one of the bundled presets: `tealTheme`, `blueTheme`, `roseTheme`,\n * `violetTheme`, `orangeTheme`, `slateTheme` (from `@nori-ui/core`)\n * - omit — falls back to the default Nori palette (teal)\n */\n theme?: NoriTheme | Theme;\n /**\n * Force a color scheme for descendants, overriding the OS signal. Use\n * when an app shell is hard-coded to one scheme (e.g. forced-dark\n * editorial chrome) and wants library components inside it to render\n * against the matching half of the theme.\n *\n * Omit to track the OS Appearance (native) / `<html>` `dark` class (web).\n */\n colorScheme?: ColorScheme;\n i18n?: I18nInput;\n icons?: Partial<SemanticIcons>;\n /**\n * BCP 47 locale tag (or `Intl.Locale`) used by locale-aware components\n * (Calendar, Number/Currency formatting, RelativeTime). Defaults to\n * the runtime's resolved locale (`new Intl.DateTimeFormat().resolvedOptions().locale`),\n * which mirrors what other `Intl` calls in the consumer's code use.\n */\n locale?: LocaleInput;\n children?: ReactNode;\n};\n\n/**\n * Single root provider composing theme, i18n, and semantic-icons contexts.\n * Place near the root of your app. Only needed to override defaults — the\n * library works out of the box without any provider.\n */\nexport function NoriProvider({ theme, colorScheme, i18n, icons, locale, children }: NoriProviderProps) {\n // Conditionally spread each optional prop — `exactOptionalPropertyTypes: true`\n // rejects passing `undefined` to a prop typed as `T | missing`.\n const themeProps = theme === undefined ? {} : { theme };\n const i18nProps = i18n === undefined ? {} : { i18n };\n const iconsProps = icons === undefined ? {} : { icons };\n const localeProps = locale === undefined ? {} : { locale };\n\n const inner = (\n <LocaleProvider {...localeProps}>\n <ThemeProvider {...themeProps}>\n <I18nProvider {...i18nProps}>\n <SemanticIconsProvider {...iconsProps}>{children}</SemanticIconsProvider>\n </I18nProvider>\n </ThemeProvider>\n </LocaleProvider>\n );\n\n return colorScheme === undefined ? inner : <ColorSchemeProvider value={colorScheme}>{inner}</ColorSchemeProvider>;\n}\n"]}
|