prime-ui-kit 0.2.5 → 0.3.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/README.md +161 -35
- package/dist/components/accordion/Accordion.d.ts +70 -0
- package/dist/components/accordion/Accordion.d.ts.map +1 -0
- package/dist/components/avatar/Avatar.d.ts +58 -0
- package/dist/components/avatar/Avatar.d.ts.map +1 -0
- package/dist/components/badge/Badge.d.ts +51 -0
- package/dist/components/badge/Badge.d.ts.map +1 -0
- package/dist/components/banner/Banner.d.ts +78 -0
- package/dist/components/banner/Banner.d.ts.map +1 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts +47 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/components/button/Button.d.ts +57 -0
- package/dist/components/button/Button.d.ts.map +1 -0
- package/dist/components/button-group/ButtonGroup.d.ts +34 -0
- package/dist/components/button-group/ButtonGroup.d.ts.map +1 -0
- package/dist/components/card/Card.d.ts +234 -0
- package/dist/components/card/Card.d.ts.map +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +42 -0
- package/dist/components/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/code-block/CodeBlock.d.ts +17 -0
- package/dist/components/code-block/CodeBlock.d.ts.map +1 -0
- package/dist/components/color-picker/ColorPicker.d.ts +76 -0
- package/dist/components/color-picker/ColorPicker.d.ts.map +1 -0
- package/dist/components/color-picker/ColorPickerRac.d.ts +76 -0
- package/dist/components/color-picker/ColorPickerRac.d.ts.map +1 -0
- package/dist/components/command-menu/CommandMenu.d.ts +74 -0
- package/dist/components/command-menu/CommandMenu.d.ts.map +1 -0
- package/dist/components/data-table/DataTable.d.ts +78 -0
- package/dist/components/data-table/DataTable.d.ts.map +1 -0
- package/dist/components/datepicker/Datepicker.d.ts +104 -0
- package/dist/components/datepicker/Datepicker.d.ts.map +1 -0
- package/dist/components/digit-input/DigitInput.d.ts +21 -0
- package/dist/components/digit-input/DigitInput.d.ts.map +1 -0
- package/dist/components/divider/Divider.d.ts +26 -0
- package/dist/components/divider/Divider.d.ts.map +1 -0
- package/dist/components/drawer/Drawer.d.ts +71 -0
- package/dist/components/drawer/Drawer.d.ts.map +1 -0
- package/dist/components/dropdown/Dropdown.d.ts +147 -0
- package/dist/components/dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/dropdown/dropdownGeometry.d.ts +10 -0
- package/dist/components/dropdown/dropdownGeometry.d.ts.map +1 -0
- package/dist/components/dropdown/menuKeyboard.d.ts +4 -0
- package/dist/components/dropdown/menuKeyboard.d.ts.map +1 -0
- package/dist/components/dropdown/useDropdownPosition.d.ts +18 -0
- package/dist/components/dropdown/useDropdownPosition.d.ts.map +1 -0
- package/dist/components/example-frame/ExampleFrame.d.ts +53 -0
- package/dist/components/example-frame/ExampleFrame.d.ts.map +1 -0
- package/dist/components/file-upload/FileUpload.d.ts +176 -0
- package/dist/components/file-upload/FileUpload.d.ts.map +1 -0
- package/dist/components/hint/Hint.d.ts +27 -0
- package/dist/components/hint/Hint.d.ts.map +1 -0
- package/dist/components/index.css +6101 -5759
- package/dist/components/index.css.map +4 -4
- package/dist/components/index.d.ts +95 -2679
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +8510 -7659
- package/dist/components/index.js.map +4 -4
- package/dist/components/input/Input.d.ts +73 -0
- package/dist/components/input/Input.d.ts.map +1 -0
- package/dist/components/kbd/Kbd.d.ts +15 -0
- package/dist/components/kbd/Kbd.d.ts.map +1 -0
- package/dist/components/label/Label.d.ts +29 -0
- package/dist/components/label/Label.d.ts.map +1 -0
- package/dist/components/link-button/LinkButton.d.ts +18 -0
- package/dist/components/link-button/LinkButton.d.ts.map +1 -0
- package/dist/components/modal/Modal.d.ts +58 -0
- package/dist/components/modal/Modal.d.ts.map +1 -0
- package/dist/components/notification/Notification.d.ts +42 -0
- package/dist/components/notification/Notification.d.ts.map +1 -0
- package/dist/components/notification/NotificationStore.d.ts +18 -0
- package/dist/components/notification/NotificationStore.d.ts.map +1 -0
- package/dist/components/page-content/PageContent.d.ts +51 -0
- package/dist/components/page-content/PageContent.d.ts.map +1 -0
- package/dist/components/pagination/Pagination.d.ts +19 -0
- package/dist/components/pagination/Pagination.d.ts.map +1 -0
- package/dist/components/popover/Popover.d.ts +48 -0
- package/dist/components/popover/Popover.d.ts.map +1 -0
- package/dist/components/popover/popoverGeometry.d.ts +6 -0
- package/dist/components/popover/popoverGeometry.d.ts.map +1 -0
- package/dist/components/popover/usePopoverPosition.d.ts +18 -0
- package/dist/components/popover/usePopoverPosition.d.ts.map +1 -0
- package/dist/components/progress-bar/ProgressBar.d.ts +14 -0
- package/dist/components/progress-bar/ProgressBar.d.ts.map +1 -0
- package/dist/components/progress-circle/ProgressCircle.d.ts +33 -0
- package/dist/components/progress-circle/ProgressCircle.d.ts.map +1 -0
- package/dist/components/radio/Radio.d.ts +40 -0
- package/dist/components/radio/Radio.d.ts.map +1 -0
- package/dist/components/scroll-container/ScrollContainer.d.ts +42 -0
- package/dist/components/scroll-container/ScrollContainer.d.ts.map +1 -0
- package/dist/components/segmented-control/SegmentedControl.d.ts +40 -0
- package/dist/components/segmented-control/SegmentedControl.d.ts.map +1 -0
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.d.ts +22 -0
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.d.ts.map +1 -0
- package/dist/components/select/Select.d.ts +84 -0
- package/dist/components/select/Select.d.ts.map +1 -0
- package/dist/components/select/selectListbox.d.ts +13 -0
- package/dist/components/select/selectListbox.d.ts.map +1 -0
- package/dist/components/slider/Slider.d.ts +23 -0
- package/dist/components/slider/Slider.d.ts.map +1 -0
- package/dist/components/stepper/HorizontalStepper.d.ts +41 -0
- package/dist/components/stepper/HorizontalStepper.d.ts.map +1 -0
- package/dist/components/stepper/Stepper.d.ts +77 -0
- package/dist/components/stepper/Stepper.d.ts.map +1 -0
- package/dist/components/stepper/VerticalStepper.d.ts +41 -0
- package/dist/components/stepper/VerticalStepper.d.ts.map +1 -0
- package/dist/components/stepper/stepperAlignContext.d.ts +11 -0
- package/dist/components/stepper/stepperAlignContext.d.ts.map +1 -0
- package/dist/components/switch/Switch.d.ts +48 -0
- package/dist/components/switch/Switch.d.ts.map +1 -0
- package/dist/components/tabs/Tabs.d.ts +69 -0
- package/dist/components/tabs/Tabs.d.ts.map +1 -0
- package/dist/components/tag/Tag.d.ts +29 -0
- package/dist/components/tag/Tag.d.ts.map +1 -0
- package/dist/components/textarea/Textarea.d.ts +43 -0
- package/dist/components/textarea/Textarea.d.ts.map +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +47 -0
- package/dist/components/tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/typography/Typography.d.ts +30 -0
- package/dist/components/typography/Typography.d.ts.map +1 -0
- package/dist/hooks/useControllableState.d.ts +8 -0
- package/dist/hooks/useControllableState.d.ts.map +1 -0
- package/dist/hooks/useEscapeKey.d.ts +7 -0
- package/dist/hooks/useEscapeKey.d.ts.map +1 -0
- package/dist/hooks/useFieldIds.d.ts +17 -0
- package/dist/hooks/useFieldIds.d.ts.map +1 -0
- package/dist/hooks/useFocusTrap.d.ts +16 -0
- package/dist/hooks/useFocusTrap.d.ts.map +1 -0
- package/dist/hooks/useMergedRefs.d.ts +3 -0
- package/dist/hooks/useMergedRefs.d.ts.map +1 -0
- package/dist/hooks/useOutsideClick.d.ts +16 -0
- package/dist/hooks/useOutsideClick.d.ts.map +1 -0
- package/dist/hooks/useOverlayModal.d.ts +7 -0
- package/dist/hooks/useOverlayModal.d.ts.map +1 -0
- package/dist/hooks/usePosition.d.ts +41 -0
- package/dist/hooks/usePosition.d.ts.map +1 -0
- package/dist/hooks/useResponsiveMonths.d.ts +18 -0
- package/dist/hooks/useResponsiveMonths.d.ts.map +1 -0
- package/dist/hooks/useScrollLock.d.ts +8 -0
- package/dist/hooks/useScrollLock.d.ts.map +1 -0
- package/dist/icons/Icon.d.ts +13 -0
- package/dist/icons/Icon.d.ts.map +1 -0
- package/dist/icons/index.d.ts +40 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/index.css +6101 -5759
- package/dist/index.css.map +4 -4
- package/dist/index.d.ts +4 -8
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8509 -7660
- package/dist/index.js.map +4 -4
- package/dist/internal/ControlSizeContext.d.ts +17 -0
- package/dist/internal/ControlSizeContext.d.ts.map +1 -0
- package/dist/internal/DividerContentContext.d.ts +4 -0
- package/dist/internal/DividerContentContext.d.ts.map +1 -0
- package/dist/internal/OverlayPortalLayerContext.d.ts +13 -0
- package/dist/internal/OverlayPortalLayerContext.d.ts.map +1 -0
- package/dist/internal/Portal.d.ts +8 -0
- package/dist/internal/Portal.d.ts.map +1 -0
- package/dist/internal/context.d.ts +11 -0
- package/dist/internal/context.d.ts.map +1 -0
- package/dist/internal/cx.d.ts +2 -0
- package/dist/internal/cx.d.ts.map +1 -0
- package/dist/internal/data-attributes.d.ts +6 -0
- package/dist/internal/data-attributes.d.ts.map +1 -0
- package/dist/internal/highlightTsxHtml.d.ts +3 -0
- package/dist/internal/highlightTsxHtml.d.ts.map +1 -0
- package/dist/internal/layoutPxFromPrimitives.d.ts +13 -0
- package/dist/internal/layoutPxFromPrimitives.d.ts.map +1 -0
- package/dist/internal/mergeRefs.d.ts +4 -0
- package/dist/internal/mergeRefs.d.ts.map +1 -0
- package/dist/internal/runtimeUnits.d.ts +3 -0
- package/dist/internal/runtimeUnits.d.ts.map +1 -0
- package/dist/internal/scrollAncestors.d.ts +3 -0
- package/dist/internal/scrollAncestors.d.ts.map +1 -0
- package/dist/internal/slot.d.ts +19 -0
- package/dist/internal/slot.d.ts.map +1 -0
- package/dist/internal/states.d.ts +87 -0
- package/dist/internal/states.d.ts.map +1 -0
- package/dist/layout/app-shell/AppShell.d.ts +54 -0
- package/dist/layout/app-shell/AppShell.d.ts.map +1 -0
- package/dist/layout/index.d.ts +7 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/sidebar/Sidebar.d.ts +241 -0
- package/dist/layout/sidebar/Sidebar.d.ts.map +1 -0
- package/dist/layout/sidebar/SidebarRoot.d.ts +51 -0
- package/dist/layout/sidebar/SidebarRoot.d.ts.map +1 -0
- package/dist/layout/sidebar/sidebar-context.d.ts +19 -0
- package/dist/layout/sidebar/sidebar-context.d.ts.map +1 -0
- package/dist/layout/sidebar/sidebarLayout.d.ts +12 -0
- package/dist/layout/sidebar/sidebarLayout.d.ts.map +1 -0
- package/dist/tokens/primitives.d.ts +390 -0
- package/dist/tokens/primitives.d.ts.map +1 -0
- package/dist/tokens/semantic.d.ts +732 -0
- package/dist/tokens/semantic.d.ts.map +1 -0
- package/dist/tokens/themes/dark.d.ts +143 -0
- package/dist/tokens/themes/dark.d.ts.map +1 -0
- package/dist/tokens/themes/light.d.ts +16 -0
- package/dist/tokens/themes/light.d.ts.map +1 -0
- package/package.json +9 -4
- package/src/components/accordion/COMPONENT.md +137 -0
- package/src/components/avatar/COMPONENT.md +100 -0
- package/src/components/badge/COMPONENT.md +78 -0
- package/src/components/banner/COMPONENT.md +118 -0
- package/src/components/breadcrumb/COMPONENT.md +94 -0
- package/src/components/button/COMPONENT.md +80 -0
- package/src/components/button-group/COMPONENT.md +83 -0
- package/src/components/card/COMPONENT.md +489 -0
- package/src/components/checkbox/COMPONENT.md +98 -0
- package/src/components/code-block/COMPONENT.md +58 -0
- package/src/components/color-picker/COMPONENT.md +149 -0
- package/src/components/command-menu/COMPONENT.md +167 -0
- package/src/components/data-table/COMPONENT.md +113 -0
- package/src/components/datepicker/COMPONENT.md +137 -0
- package/src/components/digit-input/COMPONENT.md +68 -0
- package/src/components/divider/COMPONENT.md +70 -0
- package/src/components/drawer/COMPONENT.md +149 -0
- package/src/components/dropdown/COMPONENT.md +192 -0
- package/src/components/file-upload/COMPONENT.md +200 -0
- package/src/components/hint/COMPONENT.md +67 -0
- package/src/components/input/COMPONENT.md +119 -0
- package/src/components/kbd/COMPONENT.md +59 -0
- package/src/components/label/COMPONENT.md +94 -0
- package/src/components/link-button/COMPONENT.md +60 -0
- package/src/components/modal/COMPONENT.md +105 -0
- package/src/components/notification/COMPONENT.md +120 -0
- package/src/components/pagination/COMPONENT.md +61 -0
- package/src/components/popover/COMPONENT.md +93 -0
- package/src/components/progress-bar/COMPONENT.md +59 -0
- package/src/components/progress-circle/COMPONENT.md +63 -0
- package/src/components/radio/COMPONENT.md +95 -0
- package/src/components/segmented-control/COMPONENT.md +86 -0
- package/src/components/segmented-progress-bar/COMPONENT.md +75 -0
- package/src/components/select/COMPONENT.md +175 -0
- package/src/components/slider/COMPONENT.md +62 -0
- package/src/components/stepper/COMPONENT.md +186 -0
- package/src/components/switch/COMPONENT.md +98 -0
- package/src/components/tabs/COMPONENT.md +114 -0
- package/src/components/tag/COMPONENT.md +67 -0
- package/src/components/textarea/COMPONENT.md +98 -0
- package/src/components/tooltip/COMPONENT.md +87 -0
- package/src/components/typography/COMPONENT.md +89 -0
- package/src/styles/theme-dark.css +43 -0
- package/src/styles/theme-light.css +43 -0
- package/src/styles/tokens.css +23 -4
- package/src/styles/tokens.test.ts +0 -27
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { InputSize } from "@/internal/states";
|
|
3
|
+
/** Размер «контрольной поверхности» (поля, кнопки, селект и т.д.) для каскада в дочерние `Icon`. */
|
|
4
|
+
export type ControlSurfaceSize = "xs" | InputSize;
|
|
5
|
+
/** Для Badge / Tag / Kbd: в ярусе только s–xl, `xs` с контекста маппится в `s`. */
|
|
6
|
+
export declare function controlSurfaceToInputSize(surface: ControlSurfaceSize): InputSize;
|
|
7
|
+
export type ControlSizeProviderProps = {
|
|
8
|
+
value: ControlSurfaceSize;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare function ControlSizeProvider({ value, children }: ControlSizeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare namespace ControlSizeProvider {
|
|
13
|
+
var displayName: string;
|
|
14
|
+
}
|
|
15
|
+
/** Для `Icon`: если `size` не передан явно, берётся из ближайшего контрола. */
|
|
16
|
+
export declare function useOptionalControlSize(): ControlSurfaceSize | undefined;
|
|
17
|
+
//# sourceMappingURL=ControlSizeContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ControlSizeContext.d.ts","sourceRoot":"","sources":["../../../src/internal/ControlSizeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,oGAAoG;AACpG,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,SAAS,CAAC;AAElD,mFAAmF;AACnF,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,kBAAkB,GAAG,SAAS,CAEhF;AAKD,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,wBAAwB,2CAEhF;yBAFe,mBAAmB;;;AAMnC,+EAA+E;AAC/E,wBAAgB,sBAAsB,IAAI,kBAAkB,GAAG,SAAS,CAEvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DividerContentContext.d.ts","sourceRoot":"","sources":["../../../src/internal/DividerContentContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,uGAAuG;AACvG,eAAO,MAAM,qBAAqB,wBAA6B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Слой для контента, порталируемого в `document.body` (Popover, Dropdown, Select, Tooltip).
|
|
4
|
+
* Страница — `page`; внутри `Drawer` / `Modal` — выше числовых уровней оболочки, см. `tokens/primitives` → `zIndex`.
|
|
5
|
+
*/
|
|
6
|
+
export type OverlayPortalLayer = "page" | "drawer" | "modal" | "drawerInModal";
|
|
7
|
+
export type OverlayPortalLayerProviderProps = {
|
|
8
|
+
value: OverlayPortalLayer;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare function OverlayPortalLayerProvider({ value, children }: OverlayPortalLayerProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function useOverlayPortalLayer(): OverlayPortalLayer;
|
|
13
|
+
//# sourceMappingURL=OverlayPortalLayerContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverlayPortalLayerContext.d.ts","sourceRoot":"","sources":["../../../src/internal/OverlayPortalLayerContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,eAAe,CAAC;AAI/E,MAAM,MAAM,+BAA+B,GAAG;IAC5C,KAAK,EAAE,kBAAkB,CAAC;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,+BAA+B,2CAM9F;AAED,wBAAgB,qBAAqB,IAAI,kBAAkB,CAE1D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type PortalProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
container?: HTMLElement | null;
|
|
5
|
+
};
|
|
6
|
+
export declare function Portal({ children, container }: PortalProps): React.ReactPortal | null;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=Portal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Portal.d.ts","sourceRoot":"","sources":["../../../src/internal/Portal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,WAAW,4BAY1D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Factory for creating typed React Context + a guard hook that throws
|
|
4
|
+
* a descriptive error when used outside the provider.
|
|
5
|
+
* Standardizes the composable-component pattern across prime-ui-kit.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* const [InputProvider, useInputContext] = createComponentContext<InputContextValue>("Input");
|
|
9
|
+
*/
|
|
10
|
+
export declare function createComponentContext<T>(displayName: string): readonly [React.Provider<T | null>, () => T];
|
|
11
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/internal/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,6CAI3B,CAAC,EAWlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cx.d.ts","sourceRoot":"","sources":["../../../src/internal/cx.ts"],"names":[],"mappings":"AAAA,wBAAgB,EAAE,CAAC,GAAG,UAAU,EAAE,KAAK,CAAC,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,MAAM,CAElF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type DataPrimitive = string | number | boolean | undefined;
|
|
2
|
+
type DataAttributesInput = Record<string, DataPrimitive>;
|
|
3
|
+
type DataAttributesOutput = Record<string, string | undefined>;
|
|
4
|
+
export declare function toDataAttributes(input: DataAttributesInput): DataAttributesOutput;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=data-attributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-attributes.d.ts","sourceRoot":"","sources":["../../../src/internal/data-attributes.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAE3D,KAAK,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AACzD,KAAK,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAE/D,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,mBAAmB,GAAG,oBAAoB,CAajF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlightTsxHtml.d.ts","sourceRoot":"","sources":["../../../src/internal/highlightTsxHtml.ts"],"names":[],"mappings":"AAAA,0GAA0G;AAiC1G,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAkGvD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Текущий вычисленный `font-size` корня (`html`) в px — для перевода rem из примитивов
|
|
3
|
+
* в пиксели floating UI / SVG без жёсткой привязки к 16.
|
|
4
|
+
*/
|
|
5
|
+
export declare function getRootFontSizePx(): number;
|
|
6
|
+
export declare function remToPx(rem: string, rootPx?: number): number;
|
|
7
|
+
/** Зазор панели от якоря: `spaces.layout.s`. */
|
|
8
|
+
export declare function getFloatingPanelOffsetPx(): number;
|
|
9
|
+
/** Зазор listbox от триггера Select: `spaces.layout.xs`. */
|
|
10
|
+
export declare function getFloatingSelectListboxOffsetPx(): number;
|
|
11
|
+
/** Внутренний отступ от края вьюпорта при расчёте позиции / max-height. */
|
|
12
|
+
export declare function getFloatingViewportPadPx(): number;
|
|
13
|
+
//# sourceMappingURL=layoutPxFromPrimitives.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layoutPxFromPrimitives.d.ts","sourceRoot":"","sources":["../../../src/internal/layoutPxFromPrimitives.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAO1C;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,GAAE,MAA4B,GAAG,MAAM,CAGjF;AAED,gDAAgD;AAChD,wBAAgB,wBAAwB,IAAI,MAAM,CAEjD;AAED,4DAA4D;AAC5D,wBAAgB,gCAAgC,IAAI,MAAM,CAEzD;AAED,2EAA2E;AAC3E,wBAAgB,wBAAwB,IAAI,MAAM,CAEjD"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
/** Composes multiple refs (callback or object) into one callback — same idea as Radix `composeRefs`. */
|
|
3
|
+
export declare function mergeRefs<T>(...refs: Array<React.Ref<T> | undefined>): React.RefCallback<T>;
|
|
4
|
+
//# sourceMappingURL=mergeRefs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeRefs.d.ts","sourceRoot":"","sources":["../../../src/internal/mergeRefs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,wGAAwG;AACxG,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAW3F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtimeUnits.d.ts","sourceRoot":"","sources":["../../../src/internal/runtimeUnits.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,OAAO,CAAC;AAClC,eAAO,MAAM,+BAA+B,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrollAncestors.d.ts","sourceRoot":"","sources":["../../../src/internal/scrollAncestors.ts"],"names":[],"mappings":"AAEA,6FAA6F;AAC7F,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,OAAO,GAAG,IAAI,GACnB,KAAK,CAAC,OAAO,GAAG,MAAM,GAAG,cAAc,CAAC,CAa1C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type AnyProps = Record<string, unknown>;
|
|
3
|
+
export type SlotProps = {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
} & AnyProps;
|
|
6
|
+
/**
|
|
7
|
+
* Merges its own props onto the single React child element.
|
|
8
|
+
* The basis of the `asChild` polymorphism pattern (same idea as Radix UI `Slot`).
|
|
9
|
+
*
|
|
10
|
+
* Merge rules:
|
|
11
|
+
* - `className` — space-joined (slot first, child second)
|
|
12
|
+
* - `style` — shallow-merged; child keys win
|
|
13
|
+
* - `on*` handlers — both fire; child handler runs first
|
|
14
|
+
* - All other props — child overrides slot
|
|
15
|
+
* - `ref` — merged via `mergeRefs`
|
|
16
|
+
*/
|
|
17
|
+
export declare const Slot: React.ForwardRefExoticComponent<Omit<SlotProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=slot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slot.d.ts","sourceRoot":"","sources":["../../../src/internal/slot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AA8CxC,MAAM,MAAM,SAAS,GAAG;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,GAAG,QAAQ,CAAC;AAElE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,IAAI,4FAkBf,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export declare const interactionStates: readonly ["default", "hover", "active", "focus", "focus-visible", "disabled"];
|
|
2
|
+
export declare const selectionStates: readonly ["selected", "checked", "indeterminate"];
|
|
3
|
+
export declare const validationStates: readonly ["valid", "invalid", "readonly", "required"];
|
|
4
|
+
export declare const asyncStates: readonly ["idle", "loading", "success", "error"];
|
|
5
|
+
export declare const disclosureStates: readonly ["open", "closed"];
|
|
6
|
+
export declare const componentVariants: {
|
|
7
|
+
readonly button: readonly ["primary", "neutral", "error"];
|
|
8
|
+
readonly input: readonly ["default", "error"];
|
|
9
|
+
readonly textarea: readonly ["default", "error"];
|
|
10
|
+
readonly checkbox: readonly ["default", "error"];
|
|
11
|
+
readonly radio: readonly ["default", "error"];
|
|
12
|
+
readonly switch: readonly ["default", "error"];
|
|
13
|
+
readonly select: readonly ["default", "error"];
|
|
14
|
+
readonly modal: readonly ["default"];
|
|
15
|
+
};
|
|
16
|
+
export declare const componentSizes: {
|
|
17
|
+
readonly buttonGroup: readonly ["s", "m", "l", "xl"];
|
|
18
|
+
readonly button: readonly ["s", "m", "l", "xl"];
|
|
19
|
+
readonly input: readonly ["s", "m", "l", "xl"];
|
|
20
|
+
readonly textarea: readonly ["s", "m", "l", "xl"];
|
|
21
|
+
readonly checkbox: readonly ["s", "m", "l", "xl"];
|
|
22
|
+
readonly radio: readonly ["s", "m", "l", "xl"];
|
|
23
|
+
readonly switch: readonly ["s", "m", "l", "xl"];
|
|
24
|
+
readonly select: readonly ["s", "m", "l", "xl"];
|
|
25
|
+
readonly fileUpload: readonly ["s", "m", "l", "xl"];
|
|
26
|
+
readonly linkButton: readonly ["s", "m", "l", "xl"];
|
|
27
|
+
readonly breadcrumb: readonly ["s", "m", "l", "xl"];
|
|
28
|
+
readonly divider: readonly ["s", "m", "l", "xl"];
|
|
29
|
+
readonly label: readonly ["s", "m", "l", "xl"];
|
|
30
|
+
readonly hint: readonly ["s", "m", "l", "xl"];
|
|
31
|
+
readonly banner: readonly ["s", "m", "l", "xl"];
|
|
32
|
+
readonly digitInput: readonly ["s", "m", "l", "xl"];
|
|
33
|
+
readonly kbd: readonly ["s", "m", "l", "xl"];
|
|
34
|
+
readonly slider: readonly ["s", "m", "l", "xl"];
|
|
35
|
+
readonly tabs: readonly ["s", "m", "l", "xl"];
|
|
36
|
+
readonly pagination: readonly ["s", "m", "l", "xl"];
|
|
37
|
+
readonly stepper: readonly ["s", "m", "l", "xl"];
|
|
38
|
+
readonly accordion: readonly ["s", "m", "l", "xl"];
|
|
39
|
+
readonly dropdown: readonly ["s", "m", "l", "xl"];
|
|
40
|
+
readonly progressBar: readonly ["s", "m", "l", "xl"];
|
|
41
|
+
readonly sidebar: readonly ["s", "m", "l", "xl"];
|
|
42
|
+
readonly drawer: readonly ["s", "m", "l", "xl"];
|
|
43
|
+
readonly dataTable: readonly ["s", "m", "l", "xl"];
|
|
44
|
+
};
|
|
45
|
+
export declare const buttonModes: readonly ["filled", "stroke", "lighter", "ghost", "fancy"];
|
|
46
|
+
export type InteractionState = (typeof interactionStates)[number];
|
|
47
|
+
export type SelectionState = (typeof selectionStates)[number];
|
|
48
|
+
export type ValidationState = (typeof validationStates)[number];
|
|
49
|
+
export type AsyncState = (typeof asyncStates)[number];
|
|
50
|
+
export type DisclosureState = (typeof disclosureStates)[number];
|
|
51
|
+
export type ButtonVariant = (typeof componentVariants.button)[number];
|
|
52
|
+
export type InputVariant = (typeof componentVariants.input)[number];
|
|
53
|
+
export type TextareaVariant = (typeof componentVariants.textarea)[number];
|
|
54
|
+
export type CheckboxVariant = (typeof componentVariants.checkbox)[number];
|
|
55
|
+
export type RadioVariant = (typeof componentVariants.radio)[number];
|
|
56
|
+
export type SwitchVariant = (typeof componentVariants.switch)[number];
|
|
57
|
+
export type SelectVariant = (typeof componentVariants.select)[number];
|
|
58
|
+
export type ModalVariant = (typeof componentVariants.modal)[number];
|
|
59
|
+
export type ButtonGroupSize = (typeof componentSizes.buttonGroup)[number];
|
|
60
|
+
export type ButtonSize = (typeof componentSizes.button)[number];
|
|
61
|
+
export type InputSize = (typeof componentSizes.input)[number];
|
|
62
|
+
export type TextareaSize = (typeof componentSizes.textarea)[number];
|
|
63
|
+
export type CheckboxSize = (typeof componentSizes.checkbox)[number];
|
|
64
|
+
export type RadioSize = (typeof componentSizes.radio)[number];
|
|
65
|
+
export type SwitchSize = (typeof componentSizes.switch)[number];
|
|
66
|
+
export type SelectSize = (typeof componentSizes.select)[number];
|
|
67
|
+
export type FileUploadSize = (typeof componentSizes.fileUpload)[number];
|
|
68
|
+
export type LinkButtonSize = (typeof componentSizes.linkButton)[number];
|
|
69
|
+
export type BreadcrumbSize = (typeof componentSizes.breadcrumb)[number];
|
|
70
|
+
export type DividerSize = (typeof componentSizes.divider)[number];
|
|
71
|
+
export type LabelSize = (typeof componentSizes.label)[number];
|
|
72
|
+
export type HintSize = (typeof componentSizes.hint)[number];
|
|
73
|
+
export type BannerSize = (typeof componentSizes.banner)[number];
|
|
74
|
+
export type DigitInputSize = (typeof componentSizes.digitInput)[number];
|
|
75
|
+
export type KbdSize = (typeof componentSizes.kbd)[number];
|
|
76
|
+
export type SliderSize = (typeof componentSizes.slider)[number];
|
|
77
|
+
export type TabsSize = (typeof componentSizes.tabs)[number];
|
|
78
|
+
export type PaginationSize = (typeof componentSizes.pagination)[number];
|
|
79
|
+
export type StepperSize = (typeof componentSizes.stepper)[number];
|
|
80
|
+
export type AccordionSize = (typeof componentSizes.accordion)[number];
|
|
81
|
+
export type DropdownSize = (typeof componentSizes.dropdown)[number];
|
|
82
|
+
export type ProgressBarSize = (typeof componentSizes.progressBar)[number];
|
|
83
|
+
export type SidebarSize = (typeof componentSizes.sidebar)[number];
|
|
84
|
+
export type DrawerSize = (typeof componentSizes.drawer)[number];
|
|
85
|
+
export type DataTableSize = (typeof componentSizes.dataTable)[number];
|
|
86
|
+
export type ButtonMode = (typeof buttonModes)[number];
|
|
87
|
+
//# sourceMappingURL=states.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"states.d.ts","sourceRoot":"","sources":["../../../src/internal/states.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,+EAOpB,CAAC;AAEX,eAAO,MAAM,eAAe,mDAAoD,CAAC;AAEjF,eAAO,MAAM,gBAAgB,uDAAwD,CAAC;AAEtF,eAAO,MAAM,WAAW,kDAAmD,CAAC;AAE5E,eAAO,MAAM,gBAAgB,6BAA8B,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;;;;CASpB,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BjB,CAAC;AAEX,eAAO,MAAM,WAAW,4DAA6D,CAAC;AAEtF,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAChE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AACtD,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,iBAAiB,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1E,M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MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,cAAc,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1E,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAClE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAChE,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AACtE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type AppShellRootProps = {
|
|
3
|
+
fillViewport?: boolean;
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
7
|
+
export type AppShellNavProps = {
|
|
8
|
+
className?: string;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
11
|
+
declare function AppShellNav({ className, children, ...rest }: AppShellNavProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare namespace AppShellNav {
|
|
13
|
+
var displayName: string;
|
|
14
|
+
}
|
|
15
|
+
export type AppShellMainProps = {
|
|
16
|
+
/** `plain` — только main; `surface` — карточка; `page` — поля страницы. */
|
|
17
|
+
variant?: "plain" | "surface" | "page";
|
|
18
|
+
className?: string;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
} & React.HTMLAttributes<HTMLElement>;
|
|
21
|
+
export type AppShellTemplateProps = {
|
|
22
|
+
fillViewport?: boolean;
|
|
23
|
+
className?: string;
|
|
24
|
+
/** Навигация: `Sidebar.Root` или `nav`. */
|
|
25
|
+
nav: React.ReactNode;
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
navProps?: Omit<AppShellNavProps, "children">;
|
|
28
|
+
mainProps?: Omit<AppShellMainProps, "children">;
|
|
29
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "ref">;
|
|
30
|
+
export declare const AppShell: {
|
|
31
|
+
Root: React.ForwardRefExoticComponent<{
|
|
32
|
+
fillViewport?: boolean;
|
|
33
|
+
className?: string;
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
Nav: typeof AppShellNav;
|
|
37
|
+
Main: React.ForwardRefExoticComponent<{
|
|
38
|
+
/** `plain` — только main; `surface` — карточка; `page` — поля страницы. */
|
|
39
|
+
variant?: "plain" | "surface" | "page";
|
|
40
|
+
className?: string;
|
|
41
|
+
children?: React.ReactNode;
|
|
42
|
+
} & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
43
|
+
Template: React.ForwardRefExoticComponent<{
|
|
44
|
+
fillViewport?: boolean;
|
|
45
|
+
className?: string;
|
|
46
|
+
/** Навигация: `Sidebar.Root` или `nav`. */
|
|
47
|
+
nav: React.ReactNode;
|
|
48
|
+
children?: React.ReactNode;
|
|
49
|
+
navProps?: Omit<AppShellNavProps, "children">;
|
|
50
|
+
mainProps?: Omit<AppShellMainProps, "children">;
|
|
51
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "ref"> & React.RefAttributes<HTMLElement>>;
|
|
52
|
+
};
|
|
53
|
+
export {};
|
|
54
|
+
//# sourceMappingURL=AppShell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../../src/layout/app-shell/AppShell.tsx"],"names":[],"mappings":"AAAA,OAAO,K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C;AAwBnE,eAAO,MAAM,QAAQ;;uBApGJ,OAAO;oBACV,MAAM;mBACP,KAAK,CAAC,SAAS;;;;QAmC1B,2EAA2E;kBACjE,OAAO,GAAG,SAAS,GAAG,MAAM;oBAC1B,MAAM;mBACP,KAAK,CAAC,SAAS;;;uBA6BX,OAAO;oBACV,MAAM;QAClB,2CAA2C;aACtC,KAAK,CAAC,SAAS;mBACT,KAAK,CAAC,SAAS;mBACf,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC;oBACjC,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC;;CA8BhD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type { AppShellMainProps, AppShellNavProps, AppShellRootProps, AppShellTemplateProps, } from "./app-shell/AppShell";
|
|
2
|
+
export { AppShell } from "./app-shell/AppShell";
|
|
3
|
+
export type { SidebarContentProps, SidebarFooterProps, SidebarGroupLabelProps, SidebarGroupProps, SidebarHeaderMainProps, SidebarHeaderProps, SidebarHeaderRowProps, SidebarIdentityButtonProps, SidebarMenuActionProps, SidebarMenuButtonProps, SidebarMenuIconProps, SidebarMenuItemProps, SidebarMenuLabelProps, SidebarMenuLinkProps, SidebarMenuProps, SidebarMenuRouterLinkProps, SidebarMenuTrailingProps, SidebarNavCategoryCountProps, SidebarNavCategoryLabelProps, SidebarNavCategoryPanelProps, SidebarNavCategoryProps, SidebarNavCategoryTriggerProps, SidebarNavDocTreeProps, SidebarNavPanelBodyProps, SidebarNavPanelHeadingProps, SidebarNavPanelProps, SidebarResponsive, SidebarRootProps, SidebarSize, SidebarTextProps, SidebarToggleButtonProps, } from "./sidebar/Sidebar";
|
|
4
|
+
export { Sidebar, useSidebarContext } from "./sidebar/Sidebar";
|
|
5
|
+
export type { SidebarLayoutMode } from "./sidebar/sidebarLayout";
|
|
6
|
+
export { SIDEBAR_LAYOUT_BREAKPOINT_MAX, SIDEBAR_MEDIA_QUERY_INLINE, SIDEBAR_MEDIA_QUERY_NARROW, SIDEBAR_MEDIA_QUERY_XS_HIDDEN, } from "./sidebar/sidebarLayout";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layout/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,YAAY,EACV,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,4BAA4B,EAC5B,4BAA4B,EAC5B,uBAAuB,EACvB,8BAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,YAAY,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { NavLink } from "react-router-dom";
|
|
3
|
+
import { Divider } from "@/components/divider/Divider";
|
|
4
|
+
import { ScrollContainer } from "@/components/scroll-container/ScrollContainer";
|
|
5
|
+
import type { SidebarSize } from "@/internal/states";
|
|
6
|
+
import { type SidebarRootProps } from "./SidebarRoot";
|
|
7
|
+
import { useSidebarContext } from "./sidebar-context";
|
|
8
|
+
import type { SidebarLayoutMode } from "./sidebarLayout";
|
|
9
|
+
export type { SidebarLayoutMode, SidebarRootProps, SidebarSize };
|
|
10
|
+
export { useSidebarContext };
|
|
11
|
+
/** @deprecated Используйте `responsive` из `Sidebar.Root`. */
|
|
12
|
+
export type SidebarResponsive = boolean;
|
|
13
|
+
export type SidebarNavPanelProps = React.ComponentPropsWithoutRef<"nav">;
|
|
14
|
+
declare function SidebarNavPanel({ className, id, ...rest }: SidebarNavPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare namespace SidebarNavPanel {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
18
|
+
export type SidebarHeaderProps = React.ComponentPropsWithoutRef<"header">;
|
|
19
|
+
declare function SidebarHeader({ className, ...rest }: SidebarHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare namespace SidebarHeader {
|
|
21
|
+
var displayName: string;
|
|
22
|
+
}
|
|
23
|
+
export type SidebarHeaderRowProps = React.ComponentPropsWithoutRef<"div">;
|
|
24
|
+
declare function SidebarHeaderRow({ className, ...rest }: SidebarHeaderRowProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare namespace SidebarHeaderRow {
|
|
26
|
+
var displayName: string;
|
|
27
|
+
}
|
|
28
|
+
export type SidebarHeaderMainProps = React.ComponentPropsWithoutRef<"div">;
|
|
29
|
+
declare function SidebarHeaderMain({ className, ...rest }: SidebarHeaderMainProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare namespace SidebarHeaderMain {
|
|
31
|
+
var displayName: string;
|
|
32
|
+
}
|
|
33
|
+
export type SidebarContentProps = Omit<React.ComponentPropsWithoutRef<typeof ScrollContainer>, "as">;
|
|
34
|
+
declare function SidebarContent({ className, axis, ...rest }: SidebarContentProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare namespace SidebarContent {
|
|
36
|
+
var displayName: string;
|
|
37
|
+
}
|
|
38
|
+
export type SidebarFooterProps = React.ComponentPropsWithoutRef<"footer"> & {
|
|
39
|
+
variant?: "plain" | "inset";
|
|
40
|
+
};
|
|
41
|
+
declare function SidebarFooter({ className, variant, ...rest }: SidebarFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
declare namespace SidebarFooter {
|
|
43
|
+
var displayName: string;
|
|
44
|
+
}
|
|
45
|
+
export type SidebarTextProps = React.ComponentPropsWithoutRef<"span">;
|
|
46
|
+
declare function SidebarText({ className, ...rest }: SidebarTextProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
declare namespace SidebarText {
|
|
48
|
+
var displayName: string;
|
|
49
|
+
}
|
|
50
|
+
export type SidebarToggleButtonProps = Omit<React.ComponentPropsWithoutRef<"button">, "children" | "aria-label"> & {
|
|
51
|
+
openLabel?: string;
|
|
52
|
+
closedLabel?: string;
|
|
53
|
+
placement?: "inline" | "edge";
|
|
54
|
+
};
|
|
55
|
+
export type SidebarIdentityButtonProps = Omit<React.ComponentPropsWithoutRef<"button">, "children"> & {
|
|
56
|
+
leading?: React.ReactNode;
|
|
57
|
+
title: React.ReactNode;
|
|
58
|
+
subtitle?: React.ReactNode;
|
|
59
|
+
trailing?: React.ReactNode;
|
|
60
|
+
};
|
|
61
|
+
export type SidebarGroupProps = React.ComponentPropsWithoutRef<"section"> & {
|
|
62
|
+
title?: React.ReactNode;
|
|
63
|
+
action?: React.ReactNode;
|
|
64
|
+
};
|
|
65
|
+
declare function SidebarGroup({ className, title, action, children, ...rest }: SidebarGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
declare namespace SidebarGroup {
|
|
67
|
+
var displayName: string;
|
|
68
|
+
}
|
|
69
|
+
export type SidebarGroupLabelProps = React.ComponentPropsWithoutRef<"div">;
|
|
70
|
+
declare function SidebarGroupLabel({ className, children, ...rest }: SidebarGroupLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
declare namespace SidebarGroupLabel {
|
|
72
|
+
var displayName: string;
|
|
73
|
+
}
|
|
74
|
+
export type SidebarSeparatorProps = React.ComponentPropsWithoutRef<typeof Divider.Root>;
|
|
75
|
+
declare function SidebarSeparator({ className, variant, ...rest }: SidebarSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
declare namespace SidebarSeparator {
|
|
77
|
+
var displayName: string;
|
|
78
|
+
}
|
|
79
|
+
export type SidebarMenuProps = React.ComponentPropsWithoutRef<"ul">;
|
|
80
|
+
declare function SidebarMenu({ className, ...rest }: SidebarMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
81
|
+
declare namespace SidebarMenu {
|
|
82
|
+
var displayName: string;
|
|
83
|
+
}
|
|
84
|
+
export type SidebarMenuItemProps = React.ComponentPropsWithoutRef<"li">;
|
|
85
|
+
declare function SidebarMenuItem({ className, ...rest }: SidebarMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
declare namespace SidebarMenuItem {
|
|
87
|
+
var displayName: string;
|
|
88
|
+
}
|
|
89
|
+
export type SidebarMenuIconProps = React.ComponentPropsWithoutRef<"span">;
|
|
90
|
+
declare function SidebarMenuIcon({ className, ...rest }: SidebarMenuIconProps): import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
declare namespace SidebarMenuIcon {
|
|
92
|
+
var displayName: string;
|
|
93
|
+
}
|
|
94
|
+
export type SidebarMenuLabelProps = React.ComponentPropsWithoutRef<"span">;
|
|
95
|
+
declare function SidebarMenuLabel({ className, ...rest }: SidebarMenuLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
96
|
+
declare namespace SidebarMenuLabel {
|
|
97
|
+
var displayName: string;
|
|
98
|
+
}
|
|
99
|
+
export type SidebarMenuTrailingProps = React.ComponentPropsWithoutRef<"span">;
|
|
100
|
+
declare function SidebarMenuTrailing({ className, ...rest }: SidebarMenuTrailingProps): import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
declare namespace SidebarMenuTrailing {
|
|
102
|
+
var displayName: string;
|
|
103
|
+
}
|
|
104
|
+
export type SidebarMenuActionProps = React.ComponentPropsWithoutRef<"button"> & {
|
|
105
|
+
children?: React.ReactNode;
|
|
106
|
+
};
|
|
107
|
+
export type SidebarMenuButtonProps = React.ComponentPropsWithoutRef<"button"> & {
|
|
108
|
+
active?: boolean;
|
|
109
|
+
asChild?: boolean;
|
|
110
|
+
tooltip?: React.ReactNode;
|
|
111
|
+
};
|
|
112
|
+
export type SidebarMenuLinkProps = React.ComponentPropsWithoutRef<"a"> & {
|
|
113
|
+
active?: boolean;
|
|
114
|
+
};
|
|
115
|
+
export type SidebarMenuRouterLinkProps = React.ComponentPropsWithoutRef<typeof NavLink> & {
|
|
116
|
+
tooltip?: React.ReactNode;
|
|
117
|
+
};
|
|
118
|
+
export type SidebarNavPanelBodyProps = React.ComponentPropsWithoutRef<typeof ScrollContainer>;
|
|
119
|
+
declare function SidebarNavPanelBody({ className, axis, ...rest }: SidebarNavPanelBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
120
|
+
declare namespace SidebarNavPanelBody {
|
|
121
|
+
var displayName: string;
|
|
122
|
+
}
|
|
123
|
+
export type SidebarNavDocTreeProps = React.ComponentPropsWithoutRef<"div">;
|
|
124
|
+
declare function SidebarNavDocTree({ className, ...rest }: SidebarNavDocTreeProps): import("react/jsx-runtime").JSX.Element;
|
|
125
|
+
declare namespace SidebarNavDocTree {
|
|
126
|
+
var displayName: string;
|
|
127
|
+
}
|
|
128
|
+
export type SidebarNavPanelHeadingProps = React.ComponentPropsWithoutRef<"h2">;
|
|
129
|
+
declare function SidebarNavPanelHeading({ className, ...rest }: SidebarNavPanelHeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
130
|
+
declare namespace SidebarNavPanelHeading {
|
|
131
|
+
var displayName: string;
|
|
132
|
+
}
|
|
133
|
+
export type SidebarNavCategoryProps = React.ComponentPropsWithoutRef<"div">;
|
|
134
|
+
declare function SidebarNavCategory({ className, ...rest }: SidebarNavCategoryProps): import("react/jsx-runtime").JSX.Element;
|
|
135
|
+
declare namespace SidebarNavCategory {
|
|
136
|
+
var displayName: string;
|
|
137
|
+
}
|
|
138
|
+
export type SidebarNavCategoryTriggerProps = React.ComponentPropsWithoutRef<"button">;
|
|
139
|
+
export type SidebarNavCategoryLabelProps = React.ComponentPropsWithoutRef<"span">;
|
|
140
|
+
declare function SidebarNavCategoryLabel({ className, ...rest }: SidebarNavCategoryLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
141
|
+
declare namespace SidebarNavCategoryLabel {
|
|
142
|
+
var displayName: string;
|
|
143
|
+
}
|
|
144
|
+
export type SidebarNavCategoryCountProps = React.ComponentPropsWithoutRef<"span">;
|
|
145
|
+
declare function SidebarNavCategoryCount({ className, ...rest }: SidebarNavCategoryCountProps): import("react/jsx-runtime").JSX.Element;
|
|
146
|
+
declare namespace SidebarNavCategoryCount {
|
|
147
|
+
var displayName: string;
|
|
148
|
+
}
|
|
149
|
+
export type SidebarNavCategoryPanelProps = React.ComponentPropsWithoutRef<"div">;
|
|
150
|
+
declare function SidebarNavCategoryPanel({ className, ...rest }: SidebarNavCategoryPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
151
|
+
declare namespace SidebarNavCategoryPanel {
|
|
152
|
+
var displayName: string;
|
|
153
|
+
}
|
|
154
|
+
export type SidebarMenuSlotButtonProps = SidebarMenuButtonProps;
|
|
155
|
+
export declare const Sidebar: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "children"> & {
|
|
156
|
+
children: React.ReactNode;
|
|
157
|
+
size?: SidebarSize;
|
|
158
|
+
side?: import("./sidebar-context").SidebarSide;
|
|
159
|
+
state?: SidebarLayoutMode;
|
|
160
|
+
defaultState?: SidebarLayoutMode;
|
|
161
|
+
onStateChange?: (state: SidebarLayoutMode) => void;
|
|
162
|
+
mode?: SidebarLayoutMode | import("./sidebarLayout").LegacySidebarLayoutMode;
|
|
163
|
+
defaultMode?: SidebarLayoutMode | import("./sidebarLayout").LegacySidebarLayoutMode;
|
|
164
|
+
onModeChange?: (state: SidebarLayoutMode) => void;
|
|
165
|
+
open?: boolean;
|
|
166
|
+
defaultOpen?: boolean;
|
|
167
|
+
onOpenChange?: (open: boolean) => void;
|
|
168
|
+
responsive?: boolean;
|
|
169
|
+
sidebarSlot?: "page-nav";
|
|
170
|
+
} & React.RefAttributes<HTMLElement>> & {
|
|
171
|
+
Root: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "children"> & {
|
|
172
|
+
children: React.ReactNode;
|
|
173
|
+
size?: SidebarSize;
|
|
174
|
+
side?: import("./sidebar-context").SidebarSide;
|
|
175
|
+
state?: SidebarLayoutMode;
|
|
176
|
+
defaultState?: SidebarLayoutMode;
|
|
177
|
+
onStateChange?: (state: SidebarLayoutMode) => void;
|
|
178
|
+
mode?: SidebarLayoutMode | import("./sidebarLayout").LegacySidebarLayoutMode;
|
|
179
|
+
defaultMode?: SidebarLayoutMode | import("./sidebarLayout").LegacySidebarLayoutMode;
|
|
180
|
+
onModeChange?: (state: SidebarLayoutMode) => void;
|
|
181
|
+
open?: boolean;
|
|
182
|
+
defaultOpen?: boolean;
|
|
183
|
+
onOpenChange?: (open: boolean) => void;
|
|
184
|
+
responsive?: boolean;
|
|
185
|
+
sidebarSlot?: "page-nav";
|
|
186
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
187
|
+
NavPanel: typeof SidebarNavPanel;
|
|
188
|
+
NavPanelBody: typeof SidebarNavPanelBody;
|
|
189
|
+
NavDocTree: typeof SidebarNavDocTree;
|
|
190
|
+
NavPanelHeading: typeof SidebarNavPanelHeading;
|
|
191
|
+
NavCategory: typeof SidebarNavCategory;
|
|
192
|
+
NavCategoryTrigger: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
193
|
+
NavCategoryLabel: typeof SidebarNavCategoryLabel;
|
|
194
|
+
NavCategoryCount: typeof SidebarNavCategoryCount;
|
|
195
|
+
NavCategoryPanel: typeof SidebarNavCategoryPanel;
|
|
196
|
+
Header: typeof SidebarHeader;
|
|
197
|
+
HeaderRow: typeof SidebarHeaderRow;
|
|
198
|
+
HeaderMain: typeof SidebarHeaderMain;
|
|
199
|
+
Content: typeof SidebarContent;
|
|
200
|
+
Footer: typeof SidebarFooter;
|
|
201
|
+
ToggleButton: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "children" | "aria-label"> & {
|
|
202
|
+
openLabel?: string;
|
|
203
|
+
closedLabel?: string;
|
|
204
|
+
placement?: "inline" | "edge";
|
|
205
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
206
|
+
IdentityButton: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "children"> & {
|
|
207
|
+
leading?: React.ReactNode;
|
|
208
|
+
title: React.ReactNode;
|
|
209
|
+
subtitle?: React.ReactNode;
|
|
210
|
+
trailing?: React.ReactNode;
|
|
211
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
212
|
+
Group: typeof SidebarGroup;
|
|
213
|
+
GroupLabel: typeof SidebarGroupLabel;
|
|
214
|
+
Separator: typeof SidebarSeparator;
|
|
215
|
+
Menu: typeof SidebarMenu;
|
|
216
|
+
MenuItem: typeof SidebarMenuItem;
|
|
217
|
+
MenuButton: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
218
|
+
active?: boolean;
|
|
219
|
+
asChild?: boolean;
|
|
220
|
+
tooltip?: React.ReactNode;
|
|
221
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
222
|
+
MenuLink: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
223
|
+
active?: boolean;
|
|
224
|
+
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
225
|
+
MenuRouterLink: React.ForwardRefExoticComponent<Omit<import("react-router").NavLinkProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & {
|
|
226
|
+
tooltip?: React.ReactNode;
|
|
227
|
+
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
228
|
+
MenuAction: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
229
|
+
children?: React.ReactNode;
|
|
230
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
231
|
+
MenuIcon: typeof SidebarMenuIcon;
|
|
232
|
+
MenuLabel: typeof SidebarMenuLabel;
|
|
233
|
+
MenuTrailing: typeof SidebarMenuTrailing;
|
|
234
|
+
MenuSlotButton: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
235
|
+
active?: boolean;
|
|
236
|
+
asChild?: boolean;
|
|
237
|
+
tooltip?: React.ReactNode;
|
|
238
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
239
|
+
Text: typeof SidebarText;
|
|
240
|
+
};
|
|
241
|
+
//# sourceMappingURL=Sidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../src/layout/sidebar/Sidebar.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC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