@devalok/shilp-sutra 0.1.1 → 0.2.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/composed/avatar-group.d.ts +1 -0
- package/dist/composed/avatar-group.js +1 -0
- package/dist/composed/command-palette.d.ts +1 -0
- package/dist/composed/command-palette.js +1 -0
- package/dist/composed/content-card.d.ts.map +1 -1
- package/dist/composed/date-picker/calendar-grid.d.ts +1 -0
- package/dist/composed/date-picker/calendar-grid.js +1 -0
- package/dist/composed/date-picker/date-picker.d.ts +1 -0
- package/dist/composed/date-picker/date-picker.js +1 -0
- package/dist/composed/date-picker/date-range-picker.d.ts +1 -0
- package/dist/composed/date-picker/date-range-picker.js +1 -0
- package/dist/composed/date-picker/date-time-picker.d.ts +1 -0
- package/dist/composed/date-picker/date-time-picker.js +1 -0
- package/dist/composed/date-picker/index.d.ts +1 -0
- package/dist/composed/date-picker/month-picker.d.ts +1 -0
- package/dist/composed/date-picker/month-picker.js +1 -0
- package/dist/composed/date-picker/presets.d.ts +1 -0
- package/dist/composed/date-picker/presets.js +1 -0
- package/dist/composed/date-picker/time-picker.d.ts +1 -0
- package/dist/composed/date-picker/time-picker.js +1 -0
- package/dist/composed/date-picker/use-calendar.d.ts +1 -0
- package/dist/composed/date-picker/use-calendar.js +1 -0
- package/dist/composed/date-picker/year-picker.d.ts +1 -0
- package/dist/composed/date-picker/year-picker.js +1 -0
- package/dist/composed/empty-state.d.ts.map +1 -1
- package/dist/composed/error-boundary.d.ts +1 -0
- package/dist/composed/error-boundary.js +1 -0
- package/dist/composed/global-loading.d.ts +1 -0
- package/dist/composed/global-loading.js +1 -0
- package/dist/composed/index.d.ts +15 -0
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/index.js +1 -0
- package/dist/composed/lib/string-utils.d.ts +1 -0
- package/dist/composed/lib/string-utils.js +1 -0
- package/dist/composed/loading-skeleton.d.ts.map +1 -1
- package/dist/composed/member-picker.d.ts +1 -0
- package/dist/composed/member-picker.js +1 -0
- package/dist/composed/page-header.d.ts.map +1 -1
- package/dist/composed/page-skeletons.d.ts.map +1 -1
- package/dist/composed/priority-indicator.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.d.ts +1 -0
- package/dist/composed/rich-text-editor.js +1 -0
- package/dist/composed/status-badge.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +10 -0
- package/dist/hooks/use-color-mode.d.ts +1 -0
- package/dist/hooks/use-color-mode.js +1 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +1 -0
- package/dist/hooks/use-toast.d.ts +1 -0
- package/dist/hooks/use-toast.js +1 -0
- package/dist/primitives/react-accordion.d.ts +114 -0
- package/dist/primitives/react-alert-dialog.d.ts +51 -0
- package/dist/primitives/react-aspect-ratio.d.ts +11 -0
- package/dist/primitives/react-avatar.d.ts +24 -0
- package/dist/primitives/react-checkbox.d.ts +50 -0
- package/dist/primitives/react-collapsible.d.ts +33 -0
- package/dist/primitives/react-context-menu.d.ts +96 -0
- package/dist/primitives/react-dialog.d.ts +103 -0
- package/dist/primitives/react-dropdown-menu.d.ts +97 -0
- package/dist/primitives/react-hover-card.d.ts +79 -0
- package/dist/primitives/react-label.d.ts +10 -0
- package/dist/primitives/react-menu.d.ts +169 -0
- package/dist/primitives/react-menubar.d.ts +115 -0
- package/dist/primitives/react-navigation-menu.d.ts +126 -0
- package/dist/primitives/react-popover.d.ts +85 -0
- package/dist/primitives/react-progress.d.ts +19 -0
- package/dist/primitives/react-radio-group.d.ts +58 -0
- package/dist/primitives/react-roving-focus.d.ts +49 -0
- package/dist/primitives/react-select.d.ts +137 -0
- package/dist/primitives/react-separator.d.ts +21 -0
- package/dist/primitives/react-slider.d.ts +75 -0
- package/dist/primitives/react-switch.d.ts +21 -0
- package/dist/primitives/react-tabs.d.ts +56 -0
- package/dist/primitives/react-toast.d.ts +120 -0
- package/dist/primitives/react-toggle-group.d.ts +75 -0
- package/dist/primitives/react-toggle.d.ts +24 -0
- package/dist/primitives/react-tooltip.d.ts +101 -0
- package/dist/primitives/react-visually-hidden.d.ts +22 -0
- package/dist/shell/app-command-palette.d.ts +1 -0
- package/dist/shell/app-command-palette.js +1 -0
- package/dist/shell/bottom-navbar.d.ts +1 -0
- package/dist/shell/bottom-navbar.js +1 -0
- package/dist/shell/index.d.ts +11 -0
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/index.js +1 -0
- package/dist/shell/link-context.d.ts +1 -0
- package/dist/shell/link-context.js +1 -0
- package/dist/shell/notification-center.d.ts +1 -0
- package/dist/shell/notification-center.js +1 -0
- package/dist/shell/notification-preferences.d.ts +1 -0
- package/dist/shell/notification-preferences.js +1 -0
- package/dist/shell/sidebar.d.ts +1 -0
- package/dist/shell/sidebar.js +1 -0
- package/dist/shell/top-bar.d.ts +1 -0
- package/dist/shell/top-bar.js +1 -0
- package/dist/tailwind/index.cjs +339 -0
- package/dist/ui/accordion.d.ts +2 -1
- package/dist/ui/accordion.js +1 -0
- package/dist/ui/alert-dialog.d.ts +2 -1
- package/dist/ui/alert-dialog.js +1 -0
- package/dist/ui/alert.d.ts +1 -0
- package/dist/ui/alert.js +1 -0
- package/dist/ui/aspect-ratio.d.ts +2 -1
- package/dist/ui/aspect-ratio.js +1 -0
- package/dist/ui/autocomplete.d.ts +1 -0
- package/dist/ui/autocomplete.js +1 -0
- package/dist/ui/avatar.d.ts +2 -1
- package/dist/ui/avatar.js +1 -0
- package/dist/ui/badge.d.ts +1 -0
- package/dist/ui/badge.js +1 -0
- package/dist/ui/banner.d.ts +1 -0
- package/dist/ui/banner.js +1 -0
- package/dist/ui/breadcrumb.d.ts +1 -0
- package/dist/ui/breadcrumb.js +1 -0
- package/dist/ui/button-group.d.ts +1 -0
- package/dist/ui/button-group.js +1 -0
- package/dist/ui/button.d.ts +1 -0
- package/dist/ui/button.js +1 -0
- package/dist/ui/card.d.ts +1 -0
- package/dist/ui/card.js +1 -0
- package/dist/ui/charts/_internal/animation.d.ts +1 -0
- package/dist/ui/charts/_internal/animation.js +1 -0
- package/dist/ui/charts/_internal/axes.d.ts +1 -0
- package/dist/ui/charts/_internal/axes.js +1 -0
- package/dist/ui/charts/_internal/colors.d.ts +1 -0
- package/dist/ui/charts/_internal/colors.js +1 -0
- package/dist/ui/charts/_internal/grid-lines.d.ts +1 -0
- package/dist/ui/charts/_internal/grid-lines.js +1 -0
- package/dist/ui/charts/_internal/legend.d.ts +1 -0
- package/dist/ui/charts/_internal/legend.js +1 -0
- package/dist/ui/charts/_internal/scales.d.ts +1 -0
- package/dist/ui/charts/_internal/tooltip.d.ts +1 -0
- package/dist/ui/charts/_internal/tooltip.js +1 -0
- package/dist/ui/charts/_internal/types.d.ts +1 -0
- package/dist/ui/charts/_internal/types.js +1 -0
- package/dist/ui/charts/area-chart.d.ts +1 -0
- package/dist/ui/charts/area-chart.js +1 -0
- package/dist/ui/charts/bar-chart.d.ts +1 -0
- package/dist/ui/charts/bar-chart.js +1 -0
- package/dist/ui/charts/chart-container.d.ts +1 -0
- package/dist/ui/charts/chart-container.js +1 -0
- package/dist/ui/charts/gauge-chart.d.ts +1 -0
- package/dist/ui/charts/gauge-chart.js +1 -0
- package/dist/ui/charts/index.d.ts +1 -0
- package/dist/ui/charts/line-chart.d.ts +1 -0
- package/dist/ui/charts/line-chart.js +1 -0
- package/dist/ui/charts/pie-chart.d.ts +1 -0
- package/dist/ui/charts/pie-chart.js +1 -0
- package/dist/ui/charts/radar-chart.d.ts +1 -0
- package/dist/ui/charts/radar-chart.js +1 -0
- package/dist/ui/charts/sparkline.d.ts +1 -0
- package/dist/ui/charts/sparkline.js +1 -0
- package/dist/ui/checkbox.d.ts +2 -1
- package/dist/ui/checkbox.js +1 -0
- package/dist/ui/chip.d.ts +1 -0
- package/dist/ui/chip.js +1 -0
- package/dist/ui/code.d.ts.map +1 -1
- package/dist/ui/collapsible.d.ts +2 -1
- package/dist/ui/collapsible.js +1 -0
- package/dist/ui/combobox.d.ts +1 -0
- package/dist/ui/combobox.js +1 -0
- package/dist/ui/container.d.ts.map +1 -1
- package/dist/ui/context-menu.d.ts +2 -1
- package/dist/ui/context-menu.js +1 -0
- package/dist/ui/data-table-toolbar.d.ts +1 -0
- package/dist/ui/data-table-toolbar.js +1 -0
- package/dist/ui/data-table.d.ts +1 -0
- package/dist/ui/data-table.js +1 -0
- package/dist/ui/dialog.d.ts +2 -1
- package/dist/ui/dialog.js +1 -0
- package/dist/ui/dropdown-menu.d.ts +2 -1
- package/dist/ui/dropdown-menu.js +1 -0
- package/dist/ui/file-upload.d.ts +1 -0
- package/dist/ui/file-upload.js +1 -0
- package/dist/ui/form.d.ts +1 -0
- package/dist/ui/form.js +1 -0
- package/dist/ui/hover-card.d.ts +2 -1
- package/dist/ui/hover-card.js +1 -0
- package/dist/ui/icon-button.d.ts +1 -0
- package/dist/ui/icon-button.js +1 -0
- package/dist/ui/index.d.ts +18 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +1 -0
- package/dist/ui/input-otp.d.ts +1 -0
- package/dist/ui/input-otp.js +1 -0
- package/dist/ui/input.d.ts +2 -1
- package/dist/ui/input.js +1 -0
- package/dist/ui/label.d.ts +2 -1
- package/dist/ui/label.js +1 -0
- package/dist/ui/lib/slot.d.ts +1 -0
- package/dist/ui/lib/use-reduced-motion.d.ts +1 -0
- package/dist/ui/lib/use-reduced-motion.js +1 -0
- package/dist/ui/lib/use-ripple.d.ts +1 -0
- package/dist/ui/lib/use-ripple.js +1 -0
- package/dist/ui/link.d.ts +1 -0
- package/dist/ui/link.js +1 -0
- package/dist/ui/menubar.d.ts +2 -1
- package/dist/ui/menubar.js +1 -0
- package/dist/ui/navigation-menu.d.ts +2 -1
- package/dist/ui/navigation-menu.js +1 -0
- package/dist/ui/number-input.d.ts +1 -0
- package/dist/ui/number-input.js +1 -0
- package/dist/ui/pagination.d.ts +1 -0
- package/dist/ui/pagination.js +1 -0
- package/dist/ui/popover.d.ts +2 -1
- package/dist/ui/popover.js +1 -0
- package/dist/ui/progress.d.ts +2 -1
- package/dist/ui/progress.js +1 -0
- package/dist/ui/radio.d.ts +2 -1
- package/dist/ui/radio.js +1 -0
- package/dist/ui/search-input.d.ts +6 -5
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +2 -1
- package/dist/ui/segmented-control.d.ts +1 -0
- package/dist/ui/segmented-control.js +1 -0
- package/dist/ui/select.d.ts +2 -1
- package/dist/ui/select.js +1 -0
- package/dist/ui/separator.d.ts +2 -1
- package/dist/ui/separator.js +1 -0
- package/dist/ui/sheet.d.ts +2 -1
- package/dist/ui/sheet.js +1 -0
- package/dist/ui/sidebar.d.ts +1 -0
- package/dist/ui/sidebar.js +1 -0
- package/dist/ui/skeleton.d.ts.map +1 -1
- package/dist/ui/slider.d.ts +2 -1
- package/dist/ui/slider.js +1 -0
- package/dist/ui/spinner.d.ts.map +1 -1
- package/dist/ui/stack.d.ts +2 -2
- package/dist/ui/stack.d.ts.map +1 -1
- package/dist/ui/stack.js +21 -16
- package/dist/ui/stat-card.d.ts +4 -1
- package/dist/ui/stat-card.d.ts.map +1 -1
- package/dist/ui/stat-card.js +22 -21
- package/dist/ui/stepper.d.ts +1 -0
- package/dist/ui/stepper.js +1 -0
- package/dist/ui/switch.d.ts +2 -1
- package/dist/ui/switch.js +1 -0
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/tabs.d.ts +2 -1
- package/dist/ui/tabs.js +1 -0
- package/dist/ui/text.d.ts +1 -1
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/textarea.d.ts +1 -0
- package/dist/ui/textarea.js +1 -0
- package/dist/ui/toast.d.ts +2 -1
- package/dist/ui/toast.js +1 -0
- package/dist/ui/toaster.d.ts +1 -0
- package/dist/ui/toaster.js +1 -0
- package/dist/ui/toggle-group.d.ts +2 -1
- package/dist/ui/toggle-group.js +1 -0
- package/dist/ui/toggle.d.ts +2 -1
- package/dist/ui/toggle.js +1 -0
- package/dist/ui/tooltip.d.ts +2 -1
- package/dist/ui/tooltip.js +1 -0
- package/dist/ui/transitions.d.ts +1 -0
- package/dist/ui/transitions.js +1 -0
- package/dist/ui/tree-view/index.d.ts +1 -0
- package/dist/ui/tree-view/tree-item.d.ts +1 -0
- package/dist/ui/tree-view/tree-item.js +1 -0
- package/dist/ui/tree-view/tree-view.d.ts +1 -0
- package/dist/ui/tree-view/tree-view.js +1 -0
- package/dist/ui/tree-view/use-tree.d.ts +1 -0
- package/dist/ui/tree-view/use-tree.js +1 -0
- package/dist/ui/visually-hidden.d.ts.map +1 -1
- package/package.json +97 -18
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as _radix_ui_react_context from './_internal/react-context';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Primitive } from './_internal/react-primitive';
|
|
4
|
+
|
|
5
|
+
type Direction = 'ltr' | 'rtl';
|
|
6
|
+
declare const createSliderScope: _radix_ui_react_context.CreateScope;
|
|
7
|
+
interface SliderProps extends Omit<SliderHorizontalProps | SliderVerticalProps, keyof SliderOrientationPrivateProps | 'defaultValue'> {
|
|
8
|
+
name?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
orientation?: React.AriaAttributes['aria-orientation'];
|
|
11
|
+
dir?: Direction;
|
|
12
|
+
min?: number;
|
|
13
|
+
max?: number;
|
|
14
|
+
step?: number;
|
|
15
|
+
minStepsBetweenThumbs?: number;
|
|
16
|
+
value?: number[];
|
|
17
|
+
defaultValue?: number[];
|
|
18
|
+
onValueChange?(value: number[]): void;
|
|
19
|
+
onValueCommit?(value: number[]): void;
|
|
20
|
+
inverted?: boolean;
|
|
21
|
+
form?: string;
|
|
22
|
+
}
|
|
23
|
+
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
24
|
+
type SliderOrientationPrivateProps = {
|
|
25
|
+
min: number;
|
|
26
|
+
max: number;
|
|
27
|
+
inverted: boolean;
|
|
28
|
+
onSlideStart?(value: number): void;
|
|
29
|
+
onSlideMove?(value: number): void;
|
|
30
|
+
onSlideEnd?(): void;
|
|
31
|
+
onHomeKeyDown(event: React.KeyboardEvent): void;
|
|
32
|
+
onEndKeyDown(event: React.KeyboardEvent): void;
|
|
33
|
+
onStepKeyDown(step: {
|
|
34
|
+
event: React.KeyboardEvent;
|
|
35
|
+
direction: number;
|
|
36
|
+
}): void;
|
|
37
|
+
};
|
|
38
|
+
interface SliderOrientationProps extends Omit<SliderImplProps, keyof SliderImplPrivateProps>, SliderOrientationPrivateProps {
|
|
39
|
+
}
|
|
40
|
+
interface SliderHorizontalProps extends SliderOrientationProps {
|
|
41
|
+
dir?: Direction;
|
|
42
|
+
}
|
|
43
|
+
interface SliderVerticalProps extends SliderOrientationProps {
|
|
44
|
+
}
|
|
45
|
+
type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
46
|
+
type SliderImplPrivateProps = {
|
|
47
|
+
onSlideStart(event: React.PointerEvent): void;
|
|
48
|
+
onSlideMove(event: React.PointerEvent): void;
|
|
49
|
+
onSlideEnd(event: React.PointerEvent): void;
|
|
50
|
+
onHomeKeyDown(event: React.KeyboardEvent): void;
|
|
51
|
+
onEndKeyDown(event: React.KeyboardEvent): void;
|
|
52
|
+
onStepKeyDown(event: React.KeyboardEvent): void;
|
|
53
|
+
};
|
|
54
|
+
interface SliderImplProps extends PrimitiveDivProps, SliderImplPrivateProps {
|
|
55
|
+
}
|
|
56
|
+
type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
57
|
+
interface SliderTrackProps extends PrimitiveSpanProps {
|
|
58
|
+
}
|
|
59
|
+
declare const SliderTrack: React.ForwardRefExoticComponent<SliderTrackProps & React.RefAttributes<HTMLSpanElement>>;
|
|
60
|
+
interface SliderRangeProps extends PrimitiveSpanProps {
|
|
61
|
+
}
|
|
62
|
+
declare const SliderRange: React.ForwardRefExoticComponent<SliderRangeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
63
|
+
interface SliderThumbProps extends Omit<SliderThumbImplProps, 'index'> {
|
|
64
|
+
}
|
|
65
|
+
declare const SliderThumb: React.ForwardRefExoticComponent<SliderThumbProps & React.RefAttributes<HTMLSpanElement>>;
|
|
66
|
+
interface SliderThumbImplProps extends PrimitiveSpanProps {
|
|
67
|
+
index: number;
|
|
68
|
+
name?: string;
|
|
69
|
+
}
|
|
70
|
+
declare const Root: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
71
|
+
declare const Track: React.ForwardRefExoticComponent<SliderTrackProps & React.RefAttributes<HTMLSpanElement>>;
|
|
72
|
+
declare const Range: React.ForwardRefExoticComponent<SliderRangeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
73
|
+
declare const Thumb: React.ForwardRefExoticComponent<SliderThumbProps & React.RefAttributes<HTMLSpanElement>>;
|
|
74
|
+
|
|
75
|
+
export { Range, Root, Slider, type SliderProps, SliderRange, type SliderRangeProps, SliderThumb, type SliderThumbProps, SliderTrack, type SliderTrackProps, Thumb, Track, createSliderScope };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as _radix_ui_react_context from './_internal/react-context';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Primitive } from './_internal/react-primitive';
|
|
4
|
+
|
|
5
|
+
declare const createSwitchScope: _radix_ui_react_context.CreateScope;
|
|
6
|
+
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
7
|
+
interface SwitchProps extends PrimitiveButtonProps {
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
defaultChecked?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
onCheckedChange?(checked: boolean): void;
|
|
12
|
+
}
|
|
13
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
15
|
+
interface SwitchThumbProps extends PrimitiveSpanProps {
|
|
16
|
+
}
|
|
17
|
+
declare const SwitchThumb: React.ForwardRefExoticComponent<SwitchThumbProps & React.RefAttributes<HTMLSpanElement>>;
|
|
18
|
+
declare const Root: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
declare const Thumb: React.ForwardRefExoticComponent<SwitchThumbProps & React.RefAttributes<HTMLSpanElement>>;
|
|
20
|
+
|
|
21
|
+
export { Root, Switch, type SwitchProps, SwitchThumb, type SwitchThumbProps, Thumb, createSwitchScope };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as _radix_ui_react_context from './_internal/react-context';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Primitive } from './_internal/react-primitive';
|
|
4
|
+
import * as RovingFocusGroup from './react-roving-focus';
|
|
5
|
+
|
|
6
|
+
declare const createTabsScope: _radix_ui_react_context.CreateScope;
|
|
7
|
+
type RovingFocusGroupProps = React.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;
|
|
8
|
+
type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
9
|
+
interface TabsProps extends PrimitiveDivProps {
|
|
10
|
+
/** The value for the selected tab, if controlled */
|
|
11
|
+
value?: string;
|
|
12
|
+
/** The value of the tab to select by default, if uncontrolled */
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
/** A function called when a new tab is selected */
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
/**
|
|
17
|
+
* The orientation the tabs are layed out.
|
|
18
|
+
* Mainly so arrow navigation is done accordingly (left & right vs. up & down)
|
|
19
|
+
* @defaultValue horizontal
|
|
20
|
+
*/
|
|
21
|
+
orientation?: RovingFocusGroupProps['orientation'];
|
|
22
|
+
/**
|
|
23
|
+
* The direction of navigation between toolbar items.
|
|
24
|
+
*/
|
|
25
|
+
dir?: RovingFocusGroupProps['dir'];
|
|
26
|
+
/**
|
|
27
|
+
* Whether a tab is activated automatically or manually.
|
|
28
|
+
* @defaultValue automatic
|
|
29
|
+
* */
|
|
30
|
+
activationMode?: 'automatic' | 'manual';
|
|
31
|
+
}
|
|
32
|
+
declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
interface TabsListProps extends PrimitiveDivProps {
|
|
34
|
+
loop?: RovingFocusGroupProps['loop'];
|
|
35
|
+
}
|
|
36
|
+
declare const TabsList: React.ForwardRefExoticComponent<TabsListProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
38
|
+
interface TabsTriggerProps extends PrimitiveButtonProps {
|
|
39
|
+
value: string;
|
|
40
|
+
}
|
|
41
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
42
|
+
interface TabsContentProps extends PrimitiveDivProps {
|
|
43
|
+
value: string;
|
|
44
|
+
/**
|
|
45
|
+
* Used to force mounting when more control is needed. Useful when
|
|
46
|
+
* controlling animation with React animation libraries.
|
|
47
|
+
*/
|
|
48
|
+
forceMount?: true;
|
|
49
|
+
}
|
|
50
|
+
declare const TabsContent: React.ForwardRefExoticComponent<TabsContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
declare const Root: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
52
|
+
declare const List: React.ForwardRefExoticComponent<TabsListProps & React.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
declare const Trigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
54
|
+
declare const Content: React.ForwardRefExoticComponent<TabsContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
|
|
56
|
+
export { Content, List, Root, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Trigger, createTabsScope };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import * as _radix_ui_react_context from './_internal/react-context';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as DismissableLayer from './_internal/react-dismissable-layer';
|
|
4
|
+
import { Primitive } from './_internal/react-primitive';
|
|
5
|
+
|
|
6
|
+
type SwipeDirection = 'up' | 'down' | 'left' | 'right';
|
|
7
|
+
declare const createToastScope: _radix_ui_react_context.CreateScope;
|
|
8
|
+
interface ToastProviderProps {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* An author-localized label for each toast. Used to help screen reader users
|
|
12
|
+
* associate the interruption with a toast.
|
|
13
|
+
* @defaultValue 'Notification'
|
|
14
|
+
*/
|
|
15
|
+
label?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Time in milliseconds that each toast should remain visible for.
|
|
18
|
+
* @defaultValue 5000
|
|
19
|
+
*/
|
|
20
|
+
duration?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Direction of pointer swipe that should close the toast.
|
|
23
|
+
* @defaultValue 'right'
|
|
24
|
+
*/
|
|
25
|
+
swipeDirection?: SwipeDirection;
|
|
26
|
+
/**
|
|
27
|
+
* Distance in pixels that the swipe must pass before a close is triggered.
|
|
28
|
+
* @defaultValue 50
|
|
29
|
+
*/
|
|
30
|
+
swipeThreshold?: number;
|
|
31
|
+
}
|
|
32
|
+
declare const ToastProvider: React.FC<ToastProviderProps>;
|
|
33
|
+
type PrimitiveOrderedListProps = React.ComponentPropsWithoutRef<typeof Primitive.ol>;
|
|
34
|
+
interface ToastViewportProps extends PrimitiveOrderedListProps {
|
|
35
|
+
/**
|
|
36
|
+
* The keys to use as the keyboard shortcut that will move focus to the toast viewport.
|
|
37
|
+
* @defaultValue ['F8']
|
|
38
|
+
*/
|
|
39
|
+
hotkey?: string[];
|
|
40
|
+
/**
|
|
41
|
+
* An author-localized label for the toast viewport to provide context for screen reader users
|
|
42
|
+
* when navigating page landmarks. The available `{hotkey}` placeholder will be replaced for you.
|
|
43
|
+
* @defaultValue 'Notifications ({hotkey})'
|
|
44
|
+
*/
|
|
45
|
+
label?: string;
|
|
46
|
+
}
|
|
47
|
+
declare const ToastViewport: React.ForwardRefExoticComponent<ToastViewportProps & React.RefAttributes<HTMLOListElement>>;
|
|
48
|
+
type ToastElement = ToastImplElement;
|
|
49
|
+
interface ToastProps extends Omit<ToastImplProps, keyof ToastImplPrivateProps> {
|
|
50
|
+
open?: boolean;
|
|
51
|
+
defaultOpen?: boolean;
|
|
52
|
+
onOpenChange?(open: boolean): void;
|
|
53
|
+
/**
|
|
54
|
+
* Used to force mounting when more control is needed. Useful when
|
|
55
|
+
* controlling animation with React animation libraries.
|
|
56
|
+
*/
|
|
57
|
+
forceMount?: true;
|
|
58
|
+
}
|
|
59
|
+
declare const Toast: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLLIElement>>;
|
|
60
|
+
type SwipeEvent = {
|
|
61
|
+
currentTarget: EventTarget & ToastElement;
|
|
62
|
+
} & Omit<CustomEvent<{
|
|
63
|
+
originalEvent: React.PointerEvent;
|
|
64
|
+
delta: {
|
|
65
|
+
x: number;
|
|
66
|
+
y: number;
|
|
67
|
+
};
|
|
68
|
+
}>, 'currentTarget'>;
|
|
69
|
+
type ToastImplElement = React.ComponentRef<typeof Primitive.li>;
|
|
70
|
+
type DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer.Root>;
|
|
71
|
+
type ToastImplPrivateProps = {
|
|
72
|
+
open: boolean;
|
|
73
|
+
onClose(): void;
|
|
74
|
+
};
|
|
75
|
+
type PrimitiveListItemProps = React.ComponentPropsWithoutRef<typeof Primitive.li>;
|
|
76
|
+
interface ToastImplProps extends ToastImplPrivateProps, PrimitiveListItemProps {
|
|
77
|
+
type?: 'foreground' | 'background';
|
|
78
|
+
/**
|
|
79
|
+
* Time in milliseconds that toast should remain visible for. Overrides value
|
|
80
|
+
* given to `ToastProvider`.
|
|
81
|
+
*/
|
|
82
|
+
duration?: number;
|
|
83
|
+
onEscapeKeyDown?: DismissableLayerProps['onEscapeKeyDown'];
|
|
84
|
+
onPause?(): void;
|
|
85
|
+
onResume?(): void;
|
|
86
|
+
onSwipeStart?(event: SwipeEvent): void;
|
|
87
|
+
onSwipeMove?(event: SwipeEvent): void;
|
|
88
|
+
onSwipeCancel?(event: SwipeEvent): void;
|
|
89
|
+
onSwipeEnd?(event: SwipeEvent): void;
|
|
90
|
+
}
|
|
91
|
+
type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
92
|
+
interface ToastTitleProps extends PrimitiveDivProps {
|
|
93
|
+
}
|
|
94
|
+
declare const ToastTitle: React.ForwardRefExoticComponent<ToastTitleProps & React.RefAttributes<HTMLDivElement>>;
|
|
95
|
+
interface ToastDescriptionProps extends PrimitiveDivProps {
|
|
96
|
+
}
|
|
97
|
+
declare const ToastDescription: React.ForwardRefExoticComponent<ToastDescriptionProps & React.RefAttributes<HTMLDivElement>>;
|
|
98
|
+
interface ToastActionProps extends ToastCloseProps {
|
|
99
|
+
/**
|
|
100
|
+
* A short description for an alternate way to carry out the action. For screen reader users
|
|
101
|
+
* who will not be able to navigate to the button easily/quickly.
|
|
102
|
+
* @example <ToastAction altText="Goto account settings to upgrade">Upgrade</ToastAction>
|
|
103
|
+
* @example <ToastAction altText="Undo (Alt+U)">Undo</ToastAction>
|
|
104
|
+
*/
|
|
105
|
+
altText: string;
|
|
106
|
+
}
|
|
107
|
+
declare const ToastAction: React.ForwardRefExoticComponent<ToastActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
108
|
+
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
109
|
+
interface ToastCloseProps extends PrimitiveButtonProps {
|
|
110
|
+
}
|
|
111
|
+
declare const ToastClose: React.ForwardRefExoticComponent<ToastCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
112
|
+
declare const Provider: React.FC<ToastProviderProps>;
|
|
113
|
+
declare const Viewport: React.ForwardRefExoticComponent<ToastViewportProps & React.RefAttributes<HTMLOListElement>>;
|
|
114
|
+
declare const Root: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLLIElement>>;
|
|
115
|
+
declare const Title: React.ForwardRefExoticComponent<ToastTitleProps & React.RefAttributes<HTMLDivElement>>;
|
|
116
|
+
declare const Description: React.ForwardRefExoticComponent<ToastDescriptionProps & React.RefAttributes<HTMLDivElement>>;
|
|
117
|
+
declare const Action: React.ForwardRefExoticComponent<ToastActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
118
|
+
declare const Close: React.ForwardRefExoticComponent<ToastCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
119
|
+
|
|
120
|
+
export { Action, Close, Description, Provider, Root, Title, Toast, ToastAction, type ToastActionProps, ToastClose, type ToastCloseProps, ToastDescription, type ToastDescriptionProps, type ToastProps, ToastProvider, type ToastProviderProps, ToastTitle, type ToastTitleProps, ToastViewport, type ToastViewportProps, Viewport, createToastScope };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as _radix_ui_react_context from './_internal/react-context';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Primitive } from './_internal/react-primitive';
|
|
4
|
+
import * as RovingFocusGroup from './react-roving-focus';
|
|
5
|
+
import { Toggle } from './react-toggle';
|
|
6
|
+
|
|
7
|
+
declare const createToggleGroupScope: _radix_ui_react_context.CreateScope;
|
|
8
|
+
interface ToggleGroupSingleProps extends ToggleGroupImplSingleProps {
|
|
9
|
+
type: 'single';
|
|
10
|
+
}
|
|
11
|
+
interface ToggleGroupMultipleProps extends ToggleGroupImplMultipleProps {
|
|
12
|
+
type: 'multiple';
|
|
13
|
+
}
|
|
14
|
+
declare const ToggleGroup: React.ForwardRefExoticComponent<(ToggleGroupSingleProps | ToggleGroupMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
interface ToggleGroupImplSingleProps extends ToggleGroupImplProps {
|
|
16
|
+
/**
|
|
17
|
+
* The controlled stateful value of the item that is pressed.
|
|
18
|
+
*/
|
|
19
|
+
value?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The value of the item that is pressed when initially rendered. Use
|
|
22
|
+
* `defaultValue` if you do not need to control the state of a toggle group.
|
|
23
|
+
*/
|
|
24
|
+
defaultValue?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The callback that fires when the value of the toggle group changes.
|
|
27
|
+
*/
|
|
28
|
+
onValueChange?(value: string): void;
|
|
29
|
+
}
|
|
30
|
+
interface ToggleGroupImplMultipleProps extends ToggleGroupImplProps {
|
|
31
|
+
/**
|
|
32
|
+
* The controlled stateful value of the items that are pressed.
|
|
33
|
+
*/
|
|
34
|
+
value?: string[];
|
|
35
|
+
/**
|
|
36
|
+
* The value of the items that are pressed when initially rendered. Use
|
|
37
|
+
* `defaultValue` if you do not need to control the state of a toggle group.
|
|
38
|
+
*/
|
|
39
|
+
defaultValue?: string[];
|
|
40
|
+
/**
|
|
41
|
+
* The callback that fires when the state of the toggle group changes.
|
|
42
|
+
*/
|
|
43
|
+
onValueChange?(value: string[]): void;
|
|
44
|
+
}
|
|
45
|
+
type RovingFocusGroupProps = React.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;
|
|
46
|
+
type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
47
|
+
interface ToggleGroupImplProps extends PrimitiveDivProps {
|
|
48
|
+
/**
|
|
49
|
+
* Whether the group is disabled from user interaction.
|
|
50
|
+
* @defaultValue false
|
|
51
|
+
*/
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Whether the group should maintain roving focus of its buttons.
|
|
55
|
+
* @defaultValue true
|
|
56
|
+
*/
|
|
57
|
+
rovingFocus?: boolean;
|
|
58
|
+
loop?: RovingFocusGroupProps['loop'];
|
|
59
|
+
orientation?: RovingFocusGroupProps['orientation'];
|
|
60
|
+
dir?: RovingFocusGroupProps['dir'];
|
|
61
|
+
}
|
|
62
|
+
interface ToggleGroupItemProps extends Omit<ToggleGroupItemImplProps, 'pressed'> {
|
|
63
|
+
}
|
|
64
|
+
declare const ToggleGroupItem: React.ForwardRefExoticComponent<ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
65
|
+
type ToggleProps = React.ComponentPropsWithoutRef<typeof Toggle>;
|
|
66
|
+
interface ToggleGroupItemImplProps extends Omit<ToggleProps, 'defaultPressed' | 'onPressedChange'> {
|
|
67
|
+
/**
|
|
68
|
+
* A string value for the toggle group item. All items within a toggle group should use a unique value.
|
|
69
|
+
*/
|
|
70
|
+
value: string;
|
|
71
|
+
}
|
|
72
|
+
declare const Root: React.ForwardRefExoticComponent<(ToggleGroupSingleProps | ToggleGroupMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
73
|
+
declare const Item: React.ForwardRefExoticComponent<ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
74
|
+
|
|
75
|
+
export { Item, Root, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupSingleProps, createToggleGroupScope };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Primitive } from './_internal/react-primitive';
|
|
3
|
+
|
|
4
|
+
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
5
|
+
interface ToggleProps extends PrimitiveButtonProps {
|
|
6
|
+
/**
|
|
7
|
+
* The controlled state of the toggle.
|
|
8
|
+
*/
|
|
9
|
+
pressed?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The state of the toggle when initially rendered. Use `defaultPressed`
|
|
12
|
+
* if you do not need to control the state of the toggle.
|
|
13
|
+
* @defaultValue false
|
|
14
|
+
*/
|
|
15
|
+
defaultPressed?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The callback that fires when the state of the toggle changes.
|
|
18
|
+
*/
|
|
19
|
+
onPressedChange?(pressed: boolean): void;
|
|
20
|
+
}
|
|
21
|
+
declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
declare const Root: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
|
|
24
|
+
export { Root, Toggle, type ToggleProps };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as _radix_ui_react_context from './_internal/react-context';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { DismissableLayer } from './_internal/react-dismissable-layer';
|
|
4
|
+
import * as PopperPrimitive from './_internal/react-popper';
|
|
5
|
+
import { Portal as Portal$1 } from './_internal/react-portal';
|
|
6
|
+
import { Primitive } from './_internal/react-primitive';
|
|
7
|
+
|
|
8
|
+
declare const createTooltipScope: _radix_ui_react_context.CreateScope;
|
|
9
|
+
interface TooltipProviderProps {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* The duration from when the pointer enters the trigger until the tooltip gets opened.
|
|
13
|
+
* @defaultValue 700
|
|
14
|
+
*/
|
|
15
|
+
delayDuration?: number;
|
|
16
|
+
/**
|
|
17
|
+
* How much time a user has to enter another trigger without incurring a delay again.
|
|
18
|
+
* @defaultValue 300
|
|
19
|
+
*/
|
|
20
|
+
skipDelayDuration?: number;
|
|
21
|
+
/**
|
|
22
|
+
* When `true`, trying to hover the content will result in the tooltip closing as the pointer leaves the trigger.
|
|
23
|
+
* @defaultValue false
|
|
24
|
+
*/
|
|
25
|
+
disableHoverableContent?: boolean;
|
|
26
|
+
}
|
|
27
|
+
declare const TooltipProvider: React.FC<TooltipProviderProps>;
|
|
28
|
+
interface TooltipProps {
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
open?: boolean;
|
|
31
|
+
defaultOpen?: boolean;
|
|
32
|
+
onOpenChange?: (open: boolean) => void;
|
|
33
|
+
/**
|
|
34
|
+
* The duration from when the pointer enters the trigger until the tooltip gets opened. This will
|
|
35
|
+
* override the prop with the same name passed to Provider.
|
|
36
|
+
* @defaultValue 700
|
|
37
|
+
*/
|
|
38
|
+
delayDuration?: number;
|
|
39
|
+
/**
|
|
40
|
+
* When `true`, trying to hover the content will result in the tooltip closing as the pointer leaves the trigger.
|
|
41
|
+
* @defaultValue false
|
|
42
|
+
*/
|
|
43
|
+
disableHoverableContent?: boolean;
|
|
44
|
+
}
|
|
45
|
+
declare const Tooltip: React.FC<TooltipProps>;
|
|
46
|
+
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
47
|
+
interface TooltipTriggerProps extends PrimitiveButtonProps {
|
|
48
|
+
}
|
|
49
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
50
|
+
type PortalProps = React.ComponentPropsWithoutRef<typeof Portal$1>;
|
|
51
|
+
interface TooltipPortalProps {
|
|
52
|
+
children?: React.ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Specify a container element to portal the content into.
|
|
55
|
+
*/
|
|
56
|
+
container?: PortalProps['container'];
|
|
57
|
+
/**
|
|
58
|
+
* Used to force mounting when more control is needed. Useful when
|
|
59
|
+
* controlling animation with React animation libraries.
|
|
60
|
+
*/
|
|
61
|
+
forceMount?: true;
|
|
62
|
+
}
|
|
63
|
+
declare const TooltipPortal: React.FC<TooltipPortalProps>;
|
|
64
|
+
interface TooltipContentProps extends TooltipContentImplProps {
|
|
65
|
+
/**
|
|
66
|
+
* Used to force mounting when more control is needed. Useful when
|
|
67
|
+
* controlling animation with React animation libraries.
|
|
68
|
+
*/
|
|
69
|
+
forceMount?: true;
|
|
70
|
+
}
|
|
71
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
72
|
+
type DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;
|
|
73
|
+
type PopperContentProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
|
|
74
|
+
interface TooltipContentImplProps extends Omit<PopperContentProps, 'onPlaced'> {
|
|
75
|
+
/**
|
|
76
|
+
* A more descriptive label for accessibility purpose
|
|
77
|
+
*/
|
|
78
|
+
'aria-label'?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Event handler called when the escape key is down.
|
|
81
|
+
* Can be prevented.
|
|
82
|
+
*/
|
|
83
|
+
onEscapeKeyDown?: DismissableLayerProps['onEscapeKeyDown'];
|
|
84
|
+
/**
|
|
85
|
+
* Event handler called when the a `pointerdown` event happens outside of the `Tooltip`.
|
|
86
|
+
* Can be prevented.
|
|
87
|
+
*/
|
|
88
|
+
onPointerDownOutside?: DismissableLayerProps['onPointerDownOutside'];
|
|
89
|
+
}
|
|
90
|
+
type PopperArrowProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
|
|
91
|
+
interface TooltipArrowProps extends PopperArrowProps {
|
|
92
|
+
}
|
|
93
|
+
declare const TooltipArrow: React.ForwardRefExoticComponent<TooltipArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
94
|
+
declare const Provider: React.FC<TooltipProviderProps>;
|
|
95
|
+
declare const Root: React.FC<TooltipProps>;
|
|
96
|
+
declare const Trigger: React.ForwardRefExoticComponent<TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
97
|
+
declare const Portal: React.FC<TooltipPortalProps>;
|
|
98
|
+
declare const Content: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
99
|
+
declare const Arrow: React.ForwardRefExoticComponent<TooltipArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
100
|
+
|
|
101
|
+
export { Arrow, Content, Portal, Provider, Root, Tooltip, TooltipArrow, type TooltipArrowProps, TooltipContent, type TooltipContentProps, TooltipPortal, type TooltipPortalProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps, Trigger, createTooltipScope };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Primitive } from './_internal/react-primitive';
|
|
3
|
+
|
|
4
|
+
declare const VISUALLY_HIDDEN_STYLES: Readonly<{
|
|
5
|
+
position: "absolute";
|
|
6
|
+
border: 0;
|
|
7
|
+
width: 1;
|
|
8
|
+
height: 1;
|
|
9
|
+
padding: 0;
|
|
10
|
+
margin: -1;
|
|
11
|
+
overflow: "hidden";
|
|
12
|
+
clip: "rect(0, 0, 0, 0)";
|
|
13
|
+
whiteSpace: "nowrap";
|
|
14
|
+
wordWrap: "normal";
|
|
15
|
+
}>;
|
|
16
|
+
type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
17
|
+
interface VisuallyHiddenProps extends PrimitiveSpanProps {
|
|
18
|
+
}
|
|
19
|
+
declare const VisuallyHidden: React.ForwardRefExoticComponent<VisuallyHiddenProps & React.RefAttributes<HTMLSpanElement>>;
|
|
20
|
+
declare const Root: React.ForwardRefExoticComponent<VisuallyHiddenProps & React.RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
|
|
22
|
+
export { Root, VISUALLY_HIDDEN_STYLES, VisuallyHidden, type VisuallyHiddenProps };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as h } from "react/jsx-runtime";
|
|
2
3
|
import { useCallback as f, useMemo as s } from "react";
|
|
3
4
|
import { IconPackage as g, IconLink as S, IconVideo as L, IconMessage as M, IconUsers as P, IconLayoutKanban as u, IconListCheck as E, IconFileText as $, IconLayoutDashboard as D, IconCalendarCheck as y, IconUmbrella as T, IconBook as O, IconAdjustmentsHorizontal as U, IconUserCircle as B, IconShieldCheck as K, IconClipboardList as N, IconUserPlus as w, IconSettings as G } from "@tabler/icons-react";
|
package/dist/shell/index.d.ts
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/**
|
|
3
|
+
* @module @devalok/shilp-sutra/shell
|
|
4
|
+
*
|
|
5
|
+
* Application shell components: sidebar, top bar, bottom nav, notifications, and command palette.
|
|
6
|
+
* All shell components require client-side React ("use client").
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* import { AppSidebar } from '@devalok/shilp-sutra/shell/sidebar'
|
|
10
|
+
* import { TopBar } from '@devalok/shilp-sutra/shell/top-bar'
|
|
11
|
+
*/
|
|
1
12
|
export { LinkProvider, useLink } from './link-context';
|
|
2
13
|
export { AppSidebar, type NavItem, type NavGroup, type SidebarUser, type AppSidebarProps, } from './sidebar';
|
|
3
14
|
export { TopBar, type TopBarUser, type TopBarProps, } from './top-bar';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shell/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shell/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAEtD,OAAO,EACL,UAAU,EACV,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,eAAe,GACrB,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,MAAM,EACN,KAAK,UAAU,EACf,KAAK,WAAW,GACjB,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,GACvB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EACL,kBAAkB,EAClB,KAAK,YAAY,EACjB,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EACL,uBAAuB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,GAClC,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EACL,iBAAiB,EACjB,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,GAC5B,MAAM,uBAAuB,CAAA"}
|
package/dist/shell/index.js
CHANGED
package/dist/shell/sidebar.d.ts
CHANGED
package/dist/shell/sidebar.js
CHANGED
package/dist/shell/top-bar.d.ts
CHANGED
package/dist/shell/top-bar.js
CHANGED