@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/i18n/index.cjs
CHANGED
|
@@ -13,6 +13,36 @@ var defaultDictionary = {
|
|
|
13
13
|
"common.loading": "Loading",
|
|
14
14
|
"common.error": "Something went wrong",
|
|
15
15
|
"common.retry": "Try again",
|
|
16
|
+
// breadcrumb
|
|
17
|
+
"breadcrumb.ariaLabel": "Breadcrumb",
|
|
18
|
+
"breadcrumb.expandLabel": "Show full path",
|
|
19
|
+
"breadcrumb.ellipsisLabel": "More",
|
|
20
|
+
"breadcrumb.currentPageLabel": "Current page",
|
|
21
|
+
"breadcrumb.siblingMenuLabel": "Open sibling pages",
|
|
22
|
+
// pagination
|
|
23
|
+
"pagination.ariaLabel": "Pagination",
|
|
24
|
+
"pagination.previous": "Previous page",
|
|
25
|
+
"pagination.next": "Next page",
|
|
26
|
+
"pagination.first": "First page",
|
|
27
|
+
"pagination.last": "Last page",
|
|
28
|
+
"pagination.ellipsis": "More pages",
|
|
29
|
+
"pagination.currentPage": "Current page",
|
|
30
|
+
"pagination.gotoPage": "Go to page {{page}}",
|
|
31
|
+
"pagination.range": "Showing {{from}}\u2013{{to}} of {{total}}",
|
|
32
|
+
"pagination.pageOf": "Page {{page}} of {{total}}",
|
|
33
|
+
"pagination.pageSizeLabel": "Items per page",
|
|
34
|
+
"pagination.jumperLabel": "Go to page",
|
|
35
|
+
"pagination.jumperPlaceholder": "#",
|
|
36
|
+
// floatButton
|
|
37
|
+
"floatButton.backToTop": "Back to top",
|
|
38
|
+
// calendar
|
|
39
|
+
"calendar.header.previous": "Previous",
|
|
40
|
+
"calendar.header.next": "Next",
|
|
41
|
+
"calendar.header.openMonthView": "Open month picker",
|
|
42
|
+
"calendar.header.openYearView": "Open year picker",
|
|
43
|
+
"calendar.header.openDayView": "Open day picker",
|
|
44
|
+
"calendar.today": "Today",
|
|
45
|
+
"calendar.clear": "Clear",
|
|
16
46
|
// button
|
|
17
47
|
"button.loadingLabel": "Loading",
|
|
18
48
|
// input
|
|
@@ -50,13 +80,19 @@ function resolveI18n(input, defaults) {
|
|
|
50
80
|
}
|
|
51
81
|
__name(resolveI18n, "resolveI18n");
|
|
52
82
|
function pluralize(key, count) {
|
|
53
|
-
if (count === void 0)
|
|
54
|
-
|
|
83
|
+
if (count === void 0) {
|
|
84
|
+
return key;
|
|
85
|
+
}
|
|
86
|
+
if (count === 1) {
|
|
87
|
+
return `${key}_one`;
|
|
88
|
+
}
|
|
55
89
|
return `${key}_other`;
|
|
56
90
|
}
|
|
57
91
|
__name(pluralize, "pluralize");
|
|
58
92
|
function interpolate(template, options) {
|
|
59
|
-
if (!options)
|
|
93
|
+
if (!options) {
|
|
94
|
+
return template;
|
|
95
|
+
}
|
|
60
96
|
return template.replace(/\{\{\s*([A-Za-z0-9_.-]+)\s*\}\}/g, (_match, name) => {
|
|
61
97
|
const value = options[name];
|
|
62
98
|
return value === void 0 || value === null ? "" : String(value);
|
package/dist/i18n/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/i18n/default-dictionary.ts","../../src/i18n/resolve.ts"],"names":[],"mappings":";;;;;;AAWO,IAAM,iBAAA,GAAgC;AAAA;AAAA,EAEzC,eAAA,EAAiB,QAAA;AAAA,EACjB,gBAAA,EAAkB,SAAA;AAAA,EAClB,cAAA,EAAgB,OAAA;AAAA,EAChB,aAAA,EAAe,MAAA;AAAA,EACf,gBAAA,EAAkB,SAAA;AAAA,EAClB,cAAA,EAAgB,sBAAA;AAAA,EAChB,cAAA,EAAgB,WAAA;AAAA;AAAA,EAGhB,qBAAA,EAAuB,SAAA;AAAA;AAAA,EAGvB,aAAA,EAAe,OAAA;AAAA,EACf,oBAAA,EAAsB,eAAA;AAAA,EACtB,oBAAA,EAAsB,eAAA;AAAA;AAAA,EAGtB,kBAAA,EAAoB,SAAA;AAAA,EACpB,oBAAA,EAAsB,WAAA;AAAA,EACtB,WAAA,EAAa,IAAA;AAAA,EACb,YAAA,EAAc;AAClB;;;
|
|
1
|
+
{"version":3,"sources":["../../src/i18n/default-dictionary.ts","../../src/i18n/resolve.ts"],"names":[],"mappings":"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","file":"index.cjs","sourcesContent":["import type { Dictionary } from './types';\n\n/**\n * Default English strings used by library components.\n *\n * Key naming convention:\n * <component>.<purpose>[_plural-form]\n *\n * Plural suffixes follow i18next: `_zero`, `_one`, `_two`, `_few`, `_many`, `_other`.\n * Interpolation uses `{{name}}` — double braces, no spaces, by convention.\n */\nexport const defaultDictionary: Dictionary = {\n // generic / shared\n 'common.cancel': 'Cancel',\n 'common.confirm': 'Confirm',\n 'common.close': 'Close',\n 'common.back': 'Back',\n 'common.loading': 'Loading',\n 'common.error': 'Something went wrong',\n 'common.retry': 'Try again',\n\n // breadcrumb\n 'breadcrumb.ariaLabel': 'Breadcrumb',\n 'breadcrumb.expandLabel': 'Show full path',\n 'breadcrumb.ellipsisLabel': 'More',\n 'breadcrumb.currentPageLabel': 'Current page',\n 'breadcrumb.siblingMenuLabel': 'Open sibling pages',\n\n // pagination\n 'pagination.ariaLabel': 'Pagination',\n 'pagination.previous': 'Previous page',\n 'pagination.next': 'Next page',\n 'pagination.first': 'First page',\n 'pagination.last': 'Last page',\n 'pagination.ellipsis': 'More pages',\n 'pagination.currentPage': 'Current page',\n 'pagination.gotoPage': 'Go to page {{page}}',\n 'pagination.range': 'Showing {{from}}–{{to}} of {{total}}',\n 'pagination.pageOf': 'Page {{page}} of {{total}}',\n 'pagination.pageSizeLabel': 'Items per page',\n 'pagination.jumperLabel': 'Go to page',\n 'pagination.jumperPlaceholder': '#',\n\n // floatButton\n 'floatButton.backToTop': 'Back to top',\n\n // calendar\n 'calendar.header.previous': 'Previous',\n 'calendar.header.next': 'Next',\n 'calendar.header.openMonthView': 'Open month picker',\n 'calendar.header.openYearView': 'Open year picker',\n 'calendar.header.openDayView': 'Open day picker',\n 'calendar.today': 'Today',\n 'calendar.clear': 'Clear',\n\n // button\n 'button.loadingLabel': 'Loading',\n\n // input\n 'input.clear': 'Clear',\n 'input.passwordShow': 'Show password',\n 'input.passwordHide': 'Hide password',\n\n // checkbox / switch\n 'checkbox.checked': 'Checked',\n 'checkbox.unchecked': 'Unchecked',\n 'switch.on': 'On',\n 'switch.off': 'Off',\n};\n","import type { Dictionary, I18nInput, I18nOptions, TranslateFn } from './types';\n\n/**\n * Normalizes the consumer's i18n input (undefined | dictionary | function) into a\n * uniform TranslateFn. Internal code only calls the returned function.\n *\n * Precedence for a given key lookup:\n * 1. consumer function (if provided) — called verbatim, no further fallback\n * 2. consumer dictionary (if provided)\n * 3. library defaults\n * 4. options.defaultValue\n * 5. the key itself (so missing strings are visible in dev, not silent)\n */\nexport function resolveI18n(input: I18nInput, defaults: Dictionary): TranslateFn {\n if (typeof input === 'function') {\n // Wrap so the consumer fn is always invoked with (key, options) — enables\n // Jest `toHaveBeenCalledWith(key, undefined)` assertions and mirrors i18next's\n // own call signature exactly.\n return (keyOrKeys, options) => input(keyOrKeys, options);\n }\n\n const dict = input ?? {};\n\n return (keyOrKeys, options) => {\n const keys = Array.isArray(keyOrKeys) ? keyOrKeys : [keyOrKeys];\n for (const rawKey of keys) {\n const key = pluralize(rawKey, options?.count);\n const template = dict[key] ?? defaults[key];\n if (template !== undefined) {\n return interpolate(template, options);\n }\n }\n // exhausted the key list\n const lastKey = keys[keys.length - 1];\n if (options?.defaultValue !== undefined) {\n return interpolate(options.defaultValue, options);\n }\n return lastKey ?? '';\n };\n}\n\nfunction pluralize(key: string, count: number | undefined): string {\n if (count === undefined) {\n return key;\n }\n // Minimal English pluralization — extend with ICU rules later if needed.\n if (count === 1) {\n return `${key}_one`;\n }\n return `${key}_other`;\n}\n\nfunction interpolate(template: string, options: I18nOptions | undefined): string {\n if (!options) {\n return template;\n }\n return template.replace(/\\{\\{\\s*([A-Za-z0-9_.-]+)\\s*\\}\\}/g, (_match, name: string) => {\n const value = options[name];\n return value === undefined || value === null ? '' : String(value);\n });\n}\n"]}
|
package/dist/i18n/index.d.cts
CHANGED
|
@@ -1,60 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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, type I18nInput, type I18nKeys, type I18nOptions, type TranslateFn, defaultDictionary, resolveI18n };
|
|
1
|
+
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';
|
|
2
|
+
export { L as LocaleInput } from '../index-uXPK_Rg8.cjs';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react';
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -1,60 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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, type I18nInput, type I18nKeys, type I18nOptions, type TranslateFn, defaultDictionary, resolveI18n };
|
|
1
|
+
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';
|
|
2
|
+
export { L as LocaleInput } from '../index-D3_M3G6U.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react';
|
package/dist/i18n/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import '../chunk-QI6646JZ.js';
|
|
2
|
+
export { defaultDictionary, resolveI18n } from '../chunk-FT2XBBQJ.js';
|
|
3
|
+
import '../chunk-WCQVDF3K.js';
|
|
3
4
|
//# sourceMappingURL=index.js.map
|
|
4
5
|
//# sourceMappingURL=index.js.map
|
package/dist/icons/index.cjs
CHANGED
|
@@ -1,41 +1,341 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var reactNative = require('react-native');
|
|
4
|
+
var react = require('react');
|
|
3
5
|
var jsxRuntime = require('nativewind/jsx-runtime');
|
|
4
6
|
|
|
5
7
|
var __defProp = Object.defineProperty;
|
|
6
8
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
-
|
|
9
|
+
|
|
10
|
+
// ../tokens/build/theme.ts
|
|
11
|
+
var theme = {
|
|
12
|
+
color: {
|
|
13
|
+
danger: "#ef4444",
|
|
14
|
+
info: "#3b82f6",
|
|
15
|
+
neutral: {
|
|
16
|
+
"100": "#f4f4f5",
|
|
17
|
+
"200": "#e4e4e7",
|
|
18
|
+
"300": "#d4d4d8",
|
|
19
|
+
"400": "#a1a1aa",
|
|
20
|
+
"50": "#fafafa",
|
|
21
|
+
"500": "#71717a",
|
|
22
|
+
"600": "#52525b",
|
|
23
|
+
"700": "#3f3f46",
|
|
24
|
+
"800": "#27272a",
|
|
25
|
+
"900": "#18181b"
|
|
26
|
+
},
|
|
27
|
+
primary: {
|
|
28
|
+
"100": "#ccfbf1",
|
|
29
|
+
"200": "#99f6e4",
|
|
30
|
+
"300": "#5eead4",
|
|
31
|
+
"400": "#2dd4bf",
|
|
32
|
+
"50": "#f0fdfa",
|
|
33
|
+
"500": "#14b8a6",
|
|
34
|
+
"600": "#0d9488",
|
|
35
|
+
"700": "#0f766e",
|
|
36
|
+
"800": "#115e59",
|
|
37
|
+
"900": "#134e4a"
|
|
38
|
+
},
|
|
39
|
+
success: "#22c55e",
|
|
40
|
+
warning: "#f59e0b"
|
|
41
|
+
},
|
|
42
|
+
fontFamily: {
|
|
43
|
+
body: "system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
44
|
+
display: "ui-serif, Georgia, 'Times New Roman', serif",
|
|
45
|
+
mono: "ui-monospace, 'SF Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace"
|
|
46
|
+
},
|
|
47
|
+
fontSize: {
|
|
48
|
+
"2xl": "24px",
|
|
49
|
+
"3xl": "30px",
|
|
50
|
+
"4xl": "36px",
|
|
51
|
+
lg: "18px",
|
|
52
|
+
md: "16px",
|
|
53
|
+
sm: "14px",
|
|
54
|
+
xl: "20px",
|
|
55
|
+
xs: "12px"
|
|
56
|
+
},
|
|
57
|
+
fontWeight: {
|
|
58
|
+
bold: "700",
|
|
59
|
+
medium: "500",
|
|
60
|
+
regular: "400",
|
|
61
|
+
semibold: "600"
|
|
62
|
+
},
|
|
63
|
+
lineHeight: {
|
|
64
|
+
normal: "1.4",
|
|
65
|
+
relaxed: "1.6",
|
|
66
|
+
tight: "1.2"
|
|
67
|
+
},
|
|
68
|
+
radius: {
|
|
69
|
+
"2xl": "16px",
|
|
70
|
+
full: "9999px",
|
|
71
|
+
lg: "8px",
|
|
72
|
+
md: "6px",
|
|
73
|
+
none: "0px",
|
|
74
|
+
sm: "4px",
|
|
75
|
+
xl: "12px"
|
|
76
|
+
},
|
|
77
|
+
semantic: {
|
|
78
|
+
background: {
|
|
79
|
+
default: "#fafafa",
|
|
80
|
+
elevated: "#ffffff",
|
|
81
|
+
subtle: "#f4f4f5"
|
|
82
|
+
},
|
|
83
|
+
border: {
|
|
84
|
+
default: "#e4e4e7",
|
|
85
|
+
strong: "#d4d4d8"
|
|
86
|
+
},
|
|
87
|
+
interactive: {
|
|
88
|
+
destructive: "#ef4444",
|
|
89
|
+
primary: "#0d9488",
|
|
90
|
+
primaryHover: "#0f766e",
|
|
91
|
+
primaryPressed: "#115e59"
|
|
92
|
+
},
|
|
93
|
+
text: {
|
|
94
|
+
default: "#18181b",
|
|
95
|
+
inverted: "#fafafa",
|
|
96
|
+
muted: "#52525b"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
shadow: {
|
|
100
|
+
lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)",
|
|
101
|
+
md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)",
|
|
102
|
+
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)"
|
|
103
|
+
},
|
|
104
|
+
spacing: {
|
|
105
|
+
"0": "0px",
|
|
106
|
+
"1": "4px",
|
|
107
|
+
"10": "40px",
|
|
108
|
+
"12": "48px",
|
|
109
|
+
"16": "64px",
|
|
110
|
+
"2": "8px",
|
|
111
|
+
"20": "80px",
|
|
112
|
+
"24": "96px",
|
|
113
|
+
"3": "12px",
|
|
114
|
+
"4": "16px",
|
|
115
|
+
"5": "20px",
|
|
116
|
+
"6": "24px",
|
|
117
|
+
"8": "32px"
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
var themeDark = {
|
|
121
|
+
color: {
|
|
122
|
+
danger: "#ef4444",
|
|
123
|
+
info: "#3b82f6",
|
|
124
|
+
neutral: {
|
|
125
|
+
"100": "#f4f4f5",
|
|
126
|
+
"200": "#e4e4e7",
|
|
127
|
+
"300": "#d4d4d8",
|
|
128
|
+
"400": "#a1a1aa",
|
|
129
|
+
"50": "#fafafa",
|
|
130
|
+
"500": "#71717a",
|
|
131
|
+
"600": "#52525b",
|
|
132
|
+
"700": "#3f3f46",
|
|
133
|
+
"800": "#27272a",
|
|
134
|
+
"900": "#18181b"
|
|
135
|
+
},
|
|
136
|
+
primary: {
|
|
137
|
+
"100": "#ccfbf1",
|
|
138
|
+
"200": "#99f6e4",
|
|
139
|
+
"300": "#5eead4",
|
|
140
|
+
"400": "#2dd4bf",
|
|
141
|
+
"50": "#f0fdfa",
|
|
142
|
+
"500": "#14b8a6",
|
|
143
|
+
"600": "#0d9488",
|
|
144
|
+
"700": "#0f766e",
|
|
145
|
+
"800": "#115e59",
|
|
146
|
+
"900": "#134e4a"
|
|
147
|
+
},
|
|
148
|
+
success: "#22c55e",
|
|
149
|
+
warning: "#f59e0b"
|
|
150
|
+
},
|
|
151
|
+
fontFamily: {
|
|
152
|
+
body: "system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
153
|
+
display: "ui-serif, Georgia, 'Times New Roman', serif",
|
|
154
|
+
mono: "ui-monospace, 'SF Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace"
|
|
155
|
+
},
|
|
156
|
+
fontSize: {
|
|
157
|
+
"2xl": "24px",
|
|
158
|
+
"3xl": "30px",
|
|
159
|
+
"4xl": "36px",
|
|
160
|
+
lg: "18px",
|
|
161
|
+
md: "16px",
|
|
162
|
+
sm: "14px",
|
|
163
|
+
xl: "20px",
|
|
164
|
+
xs: "12px"
|
|
165
|
+
},
|
|
166
|
+
fontWeight: {
|
|
167
|
+
bold: "700",
|
|
168
|
+
medium: "500",
|
|
169
|
+
regular: "400",
|
|
170
|
+
semibold: "600"
|
|
171
|
+
},
|
|
172
|
+
lineHeight: {
|
|
173
|
+
normal: "1.4",
|
|
174
|
+
relaxed: "1.6",
|
|
175
|
+
tight: "1.2"
|
|
176
|
+
},
|
|
177
|
+
radius: {
|
|
178
|
+
"2xl": "16px",
|
|
179
|
+
full: "9999px",
|
|
180
|
+
lg: "8px",
|
|
181
|
+
md: "6px",
|
|
182
|
+
none: "0px",
|
|
183
|
+
sm: "4px",
|
|
184
|
+
xl: "12px"
|
|
185
|
+
},
|
|
186
|
+
semantic: {
|
|
187
|
+
background: {
|
|
188
|
+
default: "#18181b",
|
|
189
|
+
elevated: "#3f3f46",
|
|
190
|
+
subtle: "#27272a"
|
|
191
|
+
},
|
|
192
|
+
border: {
|
|
193
|
+
default: "#3f3f46",
|
|
194
|
+
strong: "#52525b"
|
|
195
|
+
},
|
|
196
|
+
interactive: {
|
|
197
|
+
destructive: "#ef4444",
|
|
198
|
+
primary: "#2dd4bf",
|
|
199
|
+
primaryHover: "#5eead4",
|
|
200
|
+
primaryPressed: "#99f6e4"
|
|
201
|
+
},
|
|
202
|
+
text: {
|
|
203
|
+
default: "#fafafa",
|
|
204
|
+
inverted: "#18181b",
|
|
205
|
+
muted: "#a1a1aa"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
shadow: {
|
|
209
|
+
lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)",
|
|
210
|
+
md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)",
|
|
211
|
+
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)"
|
|
212
|
+
},
|
|
213
|
+
spacing: {
|
|
214
|
+
"0": "0px",
|
|
215
|
+
"1": "4px",
|
|
216
|
+
"10": "40px",
|
|
217
|
+
"12": "48px",
|
|
218
|
+
"16": "64px",
|
|
219
|
+
"2": "8px",
|
|
220
|
+
"20": "80px",
|
|
221
|
+
"24": "96px",
|
|
222
|
+
"3": "12px",
|
|
223
|
+
"4": "16px",
|
|
224
|
+
"5": "20px",
|
|
225
|
+
"6": "24px",
|
|
226
|
+
"8": "32px"
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
var defaultTheme = {
|
|
230
|
+
light: theme,
|
|
231
|
+
dark: themeDark
|
|
232
|
+
};
|
|
233
|
+
var ThemeContext = react.createContext(defaultTheme);
|
|
234
|
+
ThemeContext.displayName = "ThemeContext";
|
|
235
|
+
var ColorSchemeOverrideContext = react.createContext(null);
|
|
236
|
+
ColorSchemeOverrideContext.displayName = "ColorSchemeOverrideContext";
|
|
237
|
+
var isWeb = reactNative.Platform.OS === "web";
|
|
238
|
+
function readWebScheme() {
|
|
239
|
+
if (typeof document === "undefined") {
|
|
240
|
+
return "light";
|
|
241
|
+
}
|
|
242
|
+
const root = document.documentElement;
|
|
243
|
+
if (root.classList.contains("dark")) {
|
|
244
|
+
return "dark";
|
|
245
|
+
}
|
|
246
|
+
if (root.getAttribute("data-theme") === "dark") {
|
|
247
|
+
return "dark";
|
|
248
|
+
}
|
|
249
|
+
return "light";
|
|
250
|
+
}
|
|
251
|
+
__name(readWebScheme, "readWebScheme");
|
|
252
|
+
function useColorScheme() {
|
|
253
|
+
const override = react.useContext(ColorSchemeOverrideContext);
|
|
254
|
+
const [scheme, setScheme] = react.useState(() => {
|
|
255
|
+
if (isWeb) {
|
|
256
|
+
return readWebScheme();
|
|
257
|
+
}
|
|
258
|
+
return reactNative.Appearance.getColorScheme() ?? "light";
|
|
259
|
+
});
|
|
260
|
+
react.useEffect(() => {
|
|
261
|
+
if (isWeb) {
|
|
262
|
+
const root = document.documentElement;
|
|
263
|
+
const update = /* @__PURE__ */ __name(() => setScheme(readWebScheme()), "update");
|
|
264
|
+
const observer = new MutationObserver(update);
|
|
265
|
+
observer.observe(root, { attributes: true, attributeFilter: ["class", "data-theme"] });
|
|
266
|
+
update();
|
|
267
|
+
return () => observer.disconnect();
|
|
268
|
+
}
|
|
269
|
+
const sub = reactNative.Appearance.addChangeListener(({ colorScheme }) => {
|
|
270
|
+
setScheme(colorScheme ?? "light");
|
|
271
|
+
});
|
|
272
|
+
return () => sub.remove();
|
|
273
|
+
}, []);
|
|
274
|
+
return override ?? scheme;
|
|
275
|
+
}
|
|
276
|
+
__name(useColorScheme, "useColorScheme");
|
|
277
|
+
|
|
278
|
+
// src/theme/use-theme-colors.ts
|
|
279
|
+
function useThemeColors() {
|
|
280
|
+
const scheme = useColorScheme();
|
|
281
|
+
const themePair = react.useContext(ThemeContext);
|
|
282
|
+
return scheme === "dark" ? themePair.dark : themePair.light;
|
|
283
|
+
}
|
|
284
|
+
__name(useThemeColors, "useThemeColors");
|
|
285
|
+
var isWeb2 = reactNative.Platform.OS === "web";
|
|
286
|
+
var make = /* @__PURE__ */ __name(({ path, glyph }) => /* @__PURE__ */ __name(function PlaceholderIcon({ size = 20, color = "currentColor" }) {
|
|
287
|
+
const colors = useThemeColors();
|
|
288
|
+
if (isWeb2) {
|
|
289
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
290
|
+
"svg",
|
|
291
|
+
{
|
|
292
|
+
width: size,
|
|
293
|
+
height: size,
|
|
294
|
+
viewBox: "0 0 24 24",
|
|
295
|
+
fill: "none",
|
|
296
|
+
stroke: color,
|
|
297
|
+
strokeWidth: "2",
|
|
298
|
+
strokeLinecap: "round",
|
|
299
|
+
strokeLinejoin: "round",
|
|
300
|
+
"aria-hidden": "true",
|
|
301
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: path })
|
|
302
|
+
}
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
const resolvedColor = color === "currentColor" ? colors.semantic.text.default : color;
|
|
8
306
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
|
-
|
|
307
|
+
reactNative.Text,
|
|
10
308
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
stroke: color,
|
|
16
|
-
strokeWidth: "2",
|
|
17
|
-
strokeLinecap: "round",
|
|
18
|
-
strokeLinejoin: "round",
|
|
19
|
-
"aria-hidden": "true",
|
|
20
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: path })
|
|
309
|
+
accessibilityElementsHidden: true,
|
|
310
|
+
importantForAccessibility: "no-hide-descendants",
|
|
311
|
+
style: { fontSize: size, lineHeight: size, color: resolvedColor },
|
|
312
|
+
children: glyph
|
|
21
313
|
}
|
|
22
314
|
);
|
|
23
315
|
}, "PlaceholderIcon"), "make");
|
|
24
316
|
var defaultSemanticIcons = {
|
|
25
|
-
checkmark: make("M20 6 9 17l-5-5"),
|
|
26
|
-
close: make("M18 6 6 18 M6 6l12 12"),
|
|
27
|
-
eye: make(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
),
|
|
37
|
-
|
|
38
|
-
|
|
317
|
+
checkmark: make({ path: "M20 6 9 17l-5-5", glyph: "\u2713" }),
|
|
318
|
+
close: make({ path: "M18 6 6 18 M6 6l12 12", glyph: "\u2715" }),
|
|
319
|
+
eye: make({
|
|
320
|
+
path: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z",
|
|
321
|
+
glyph: "\u{1F441}"
|
|
322
|
+
}),
|
|
323
|
+
eyeOff: make({
|
|
324
|
+
path: "M17.94 17.94A10 10 0 0 1 2 12s3.5-7 10-7c2 0 3.8.6 5.4 1.5 M1 1l22 22",
|
|
325
|
+
glyph: "\u{1F648}"
|
|
326
|
+
}),
|
|
327
|
+
chevronDown: make({ path: "m6 9 6 6 6-6", glyph: "\u2304" }),
|
|
328
|
+
chevronUp: make({ path: "m18 15-6-6-6 6", glyph: "\u2303" }),
|
|
329
|
+
alertTriangle: make({
|
|
330
|
+
path: "M12 9v4 M12 17h.01 M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z",
|
|
331
|
+
glyph: "\u26A0"
|
|
332
|
+
}),
|
|
333
|
+
info: make({
|
|
334
|
+
path: "M12 8h.01 M11 12h1v4h1 M12 22C6.48 22 2 17.52 2 12 2 6.48 6.48 2 12 2c5.52 0 10 4.48 10 10 0 5.52-4.48 10-10 10z",
|
|
335
|
+
glyph: "\u24D8"
|
|
336
|
+
}),
|
|
337
|
+
check: make({ path: "M20 6 9 17l-5-5", glyph: "\u2713" }),
|
|
338
|
+
x: make({ path: "M18 6 6 18 M6 6l12 12", glyph: "\u2715" })
|
|
39
339
|
};
|
|
40
340
|
var SIZE_MAP = {
|
|
41
341
|
sm: 16,
|