@nori-ui/core 1.8.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-PLQPBMG2.js → chunk-BXZGCOKT.js} +2 -2
- package/dist/{chunk-PLQPBMG2.js.map → chunk-BXZGCOKT.js.map} +1 -1
- package/dist/{chunk-RI4Y2C5U.js → chunk-KLK7OMFT.js} +3 -3
- package/dist/{chunk-RI4Y2C5U.js.map → chunk-KLK7OMFT.js.map} +1 -1
- package/dist/chunk-OHWRTHGL.js +495 -0
- package/dist/chunk-OHWRTHGL.js.map +1 -0
- package/dist/{chunk-V5QSMDZL.js → chunk-QB6RH6UU.js} +3 -3
- package/dist/{chunk-V5QSMDZL.js.map → chunk-QB6RH6UU.js.map} +1 -1
- package/dist/chunk-S763GTIZ.js +350 -0
- package/dist/chunk-S763GTIZ.js.map +1 -0
- package/dist/chunk-UJRVWGK7.js +3 -0
- package/dist/chunk-UJRVWGK7.js.map +1 -0
- package/dist/client.cjs +2248 -1424
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.js +13 -10
- package/dist/client.js.map +1 -1
- package/dist/components/Accordion/index.js +2 -2
- package/dist/components/Command/index.cjs +1371 -0
- package/dist/components/Command/index.cjs.map +1 -0
- package/dist/components/Command/index.d.cts +89 -0
- package/dist/components/Command/index.d.ts +89 -0
- package/dist/components/Command/index.js +11 -0
- package/dist/components/Command/index.js.map +1 -0
- package/dist/components/Dialog/index.js +2 -1
- package/dist/components/Sidebar/index.cjs +675 -0
- package/dist/components/Sidebar/index.cjs.map +1 -0
- package/dist/components/Sidebar/index.d.cts +109 -0
- package/dist/components/Sidebar/index.d.ts +109 -0
- package/dist/components/Sidebar/index.js +7 -0
- package/dist/components/Sidebar/index.js.map +1 -0
- package/dist/components/Switch/index.js +2 -2
- package/dist/index.cjs +2248 -1424
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +13 -10
- package/package.json +1 -1
package/dist/client.d.cts
CHANGED
|
@@ -22,6 +22,7 @@ export { Carousel, CarouselButtonProps, CarouselContentProps, CarouselDotsProps,
|
|
|
22
22
|
export { Checkbox, CheckboxProps } from './components/Checkbox/index.cjs';
|
|
23
23
|
export { Collapsible, CollapsibleContentProps, CollapsibleProps, CollapsibleTriggerProps } from './components/Collapsible/index.cjs';
|
|
24
24
|
export { Combobox } from './components/Combobox/index.cjs';
|
|
25
|
+
export { Command, CommandDialogProps, CommandEmptyProps, CommandGroupProps, CommandItemProps, CommandProps, CommandShortcutProps, CommandTriggerProps, useCommandContext } from './components/Command/index.cjs';
|
|
25
26
|
export { ContextMenu, ContextMenuContentProps, ContextMenuProps, ContextMenuTriggerProps } from './components/ContextMenu/index.cjs';
|
|
26
27
|
export { Column, DataTable, DataTableProps, SortDirection, SortState } from './components/DataTable/index.cjs';
|
|
27
28
|
export { DatePicker, DatePickerProps, DatePickerRangeProps, DateRangeValue } from './components/DatePicker/index.cjs';
|
|
@@ -45,6 +46,7 @@ export { SegmentedControl, SegmentedControlOption, SegmentedControlProps, Segmen
|
|
|
45
46
|
export { LoadOptionsParams, LoadOptionsResult, Select, SelectOption, SelectProps, SelectRenderOptionInfo } from './components/Select/index.cjs';
|
|
46
47
|
export { Separator, SeparatorOrientation, SeparatorProps } from './components/Separator/index.cjs';
|
|
47
48
|
export { Drawer, Sheet, SheetBody, SheetBodyProps, SheetClose, SheetCloseProps, SheetDescription, SheetDescriptionProps, SheetFooter, SheetFooterProps, SheetHeader, SheetHeaderProps, SheetPanel, SheetPanelProps, SheetProps, SheetSide, SheetSize, SheetTitle, SheetTitleProps, SheetTrigger, SheetTriggerProps } from './components/Sheet/index.cjs';
|
|
49
|
+
export { Sidebar, SidebarContentProps, SidebarFooterProps, SidebarGroupLabelProps, SidebarGroupProps, SidebarHeaderProps, SidebarMenuItemProps, SidebarMenuProps, SidebarProps, SidebarSide, SidebarVariant, useSidebarContext } from './components/Sidebar/index.cjs';
|
|
48
50
|
export { Skeleton, SkeletonProps } from './components/Skeleton/index.cjs';
|
|
49
51
|
export { Slider, SliderDirection, SliderGestureProvider, SliderOrientation, SliderProps, useSliderInteractionActive } from './components/Slider/index.cjs';
|
|
50
52
|
export { Spinner, SpinnerProps, SpinnerSize } from './components/Spinner/index.cjs';
|
package/dist/client.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export { Carousel, CarouselButtonProps, CarouselContentProps, CarouselDotsProps,
|
|
|
22
22
|
export { Checkbox, CheckboxProps } from './components/Checkbox/index.js';
|
|
23
23
|
export { Collapsible, CollapsibleContentProps, CollapsibleProps, CollapsibleTriggerProps } from './components/Collapsible/index.js';
|
|
24
24
|
export { Combobox } from './components/Combobox/index.js';
|
|
25
|
+
export { Command, CommandDialogProps, CommandEmptyProps, CommandGroupProps, CommandItemProps, CommandProps, CommandShortcutProps, CommandTriggerProps, useCommandContext } from './components/Command/index.js';
|
|
25
26
|
export { ContextMenu, ContextMenuContentProps, ContextMenuProps, ContextMenuTriggerProps } from './components/ContextMenu/index.js';
|
|
26
27
|
export { Column, DataTable, DataTableProps, SortDirection, SortState } from './components/DataTable/index.js';
|
|
27
28
|
export { DatePicker, DatePickerProps, DatePickerRangeProps, DateRangeValue } from './components/DatePicker/index.js';
|
|
@@ -45,6 +46,7 @@ export { SegmentedControl, SegmentedControlOption, SegmentedControlProps, Segmen
|
|
|
45
46
|
export { LoadOptionsParams, LoadOptionsResult, Select, SelectOption, SelectProps, SelectRenderOptionInfo } from './components/Select/index.js';
|
|
46
47
|
export { Separator, SeparatorOrientation, SeparatorProps } from './components/Separator/index.js';
|
|
47
48
|
export { Drawer, Sheet, SheetBody, SheetBodyProps, SheetClose, SheetCloseProps, SheetDescription, SheetDescriptionProps, SheetFooter, SheetFooterProps, SheetHeader, SheetHeaderProps, SheetPanel, SheetPanelProps, SheetProps, SheetSide, SheetSize, SheetTitle, SheetTitleProps, SheetTrigger, SheetTriggerProps } from './components/Sheet/index.js';
|
|
49
|
+
export { Sidebar, SidebarContentProps, SidebarFooterProps, SidebarGroupLabelProps, SidebarGroupProps, SidebarHeaderProps, SidebarMenuItemProps, SidebarMenuProps, SidebarProps, SidebarSide, SidebarVariant, useSidebarContext } from './components/Sidebar/index.js';
|
|
48
50
|
export { Skeleton, SkeletonProps } from './components/Skeleton/index.js';
|
|
49
51
|
export { Slider, SliderDirection, SliderGestureProvider, SliderOrientation, SliderProps, useSliderInteractionActive } from './components/Slider/index.js';
|
|
50
52
|
export { Spinner, SpinnerProps, SpinnerSize } from './components/Spinner/index.js';
|
package/dist/client.js
CHANGED
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
import './chunk-BRCCWMGJ.js';
|
|
2
|
+
export { blueTheme, orangeTheme, presetThemes, roseTheme, slateTheme, tealTheme, useTheme, violetTheme } from './chunk-MDOZGILD.js';
|
|
3
|
+
import './chunk-QI6646JZ.js';
|
|
2
4
|
export { Icon } from './chunk-33S7ADWM.js';
|
|
5
|
+
export { Tabs } from './chunk-EN4CLDGZ.js';
|
|
3
6
|
export { TextArea } from './chunk-USFXANEU.js';
|
|
4
7
|
export { TextInput } from './chunk-V75O7QQO.js';
|
|
5
8
|
export { Toaster, toast } from './chunk-LWLK6HSW.js';
|
|
6
9
|
export { Toggle } from './chunk-STX5UKYT.js';
|
|
7
10
|
export { Tooltip } from './chunk-VL2WNGPF.js';
|
|
8
11
|
export { VStack } from './chunk-L6VYDM7S.js';
|
|
9
|
-
export {
|
|
10
|
-
import './chunk-QI6646JZ.js';
|
|
12
|
+
export { Separator } from './chunk-2XJCLPNH.js';
|
|
11
13
|
export { Drawer, Sheet, SheetBody, SheetClose, SheetDescription, SheetFooter, SheetHeader, SheetPanel, SheetTitle, SheetTrigger } from './chunk-SF6WPUC5.js';
|
|
14
|
+
export { Sidebar, useSidebarContext } from './chunk-S763GTIZ.js';
|
|
12
15
|
export { Skeleton } from './chunk-3IIIHZHT.js';
|
|
13
16
|
export { Slider, SliderGestureProvider, useSliderInteractionActive } from './chunk-7FSFJA33.js';
|
|
14
|
-
export { Switch } from './chunk-
|
|
17
|
+
export { Switch } from './chunk-KLK7OMFT.js';
|
|
15
18
|
import './chunk-VP7DRJUZ.js';
|
|
16
|
-
export {
|
|
19
|
+
export { Kbd } from './chunk-IGBXSBF7.js';
|
|
17
20
|
export { Label } from './chunk-3CEJ5TB4.js';
|
|
18
21
|
export { PAGINATION_COMPACT_BREAKPOINT, Pagination } from './chunk-3B345SQU.js';
|
|
19
22
|
export { Progress } from './chunk-OELY6K44.js';
|
|
20
23
|
export { Radio } from './chunk-UKDDK42K.js';
|
|
21
24
|
export { SegmentedControl } from './chunk-F5UKI7XD.js';
|
|
22
|
-
export {
|
|
25
|
+
export { Empty } from './chunk-XQNVWHMN.js';
|
|
23
26
|
export { Field } from './chunk-CPIKN4BX.js';
|
|
24
27
|
export { FloatButton } from './chunk-PJXVLE24.js';
|
|
25
28
|
export { HStack } from './chunk-OIHX5B4R.js';
|
|
@@ -27,18 +30,18 @@ export { HoverCard } from './chunk-BOMPFNM4.js';
|
|
|
27
30
|
export { InputGroup } from './chunk-C5HQPXRI.js';
|
|
28
31
|
export { InputOTP } from './chunk-BVLOX4A3.js';
|
|
29
32
|
export { Item } from './chunk-J5LK2XHE.js';
|
|
30
|
-
export { Kbd } from './chunk-IGBXSBF7.js';
|
|
31
33
|
export { Collapsible } from './chunk-M4BI63P6.js';
|
|
32
34
|
export { Combobox } from './chunk-IIVTPN62.js';
|
|
35
|
+
export { Command, useCommandContext } from './chunk-OHWRTHGL.js';
|
|
33
36
|
export { ContextMenu } from './chunk-TSWPHJIU.js';
|
|
34
37
|
export { DataTable } from './chunk-C32XGHWO.js';
|
|
35
38
|
export { Table } from './chunk-5YHT252H.js';
|
|
36
39
|
export { usePagination } from './chunk-73CUV7MW.js';
|
|
37
40
|
export { DatePicker } from './chunk-O6M3F7BZ.js';
|
|
38
|
-
|
|
41
|
+
import './chunk-UJRVWGK7.js';
|
|
42
|
+
export { Dialog } from './chunk-BXZGCOKT.js';
|
|
39
43
|
import './chunk-2PESUXE3.js';
|
|
40
44
|
export { DropdownMenu, MenuContent, MenuItem, MenuLabel, MenuSeparator } from './chunk-MK57AOTI.js';
|
|
41
|
-
export { Empty } from './chunk-XQNVWHMN.js';
|
|
42
45
|
export { Box } from './chunk-IWM2XDXH.js';
|
|
43
46
|
import './chunk-VLZANXRZ.js';
|
|
44
47
|
export { Text } from './chunk-ZGFXKYA5.js';
|
|
@@ -58,9 +61,9 @@ export { Card } from './chunk-PQW5LKAI.js';
|
|
|
58
61
|
export { Carousel } from './chunk-VFUV6XJR.js';
|
|
59
62
|
import { SemanticIconsProvider } from './chunk-H2LHWJ52.js';
|
|
60
63
|
export { Checkbox, SemanticIconsProvider, useSemanticIcon } from './chunk-H2LHWJ52.js';
|
|
61
|
-
export { Accordion } from './chunk-
|
|
62
|
-
import './chunk-RB3YBWQ4.js';
|
|
64
|
+
export { Accordion } from './chunk-QB6RH6UU.js';
|
|
63
65
|
import './chunk-RGJ3NBKE.js';
|
|
66
|
+
import './chunk-RB3YBWQ4.js';
|
|
64
67
|
export { Alert } from './chunk-3W3XYULK.js';
|
|
65
68
|
export { defaultSemanticIcons } from './chunk-7Z4NMNX6.js';
|
|
66
69
|
export { AlertDialog } from './chunk-U2ZKY2CP.js';
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/provider/nori-provider.tsx"],"names":["theme"],"mappings":"
|
|
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"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { Accordion } from '../../chunk-
|
|
2
|
-
import '../../chunk-RB3YBWQ4.js';
|
|
1
|
+
export { Accordion } from '../../chunk-QB6RH6UU.js';
|
|
3
2
|
import '../../chunk-RGJ3NBKE.js';
|
|
3
|
+
import '../../chunk-RB3YBWQ4.js';
|
|
4
4
|
import '../../chunk-7Z4NMNX6.js';
|
|
5
5
|
import '../../chunk-5A2QOOVN.js';
|
|
6
6
|
import '../../chunk-R5JMDDCB.js';
|