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,51 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SidebarSize } from "@/internal/states";
|
|
3
|
+
import { type SidebarSide } from "./sidebar-context";
|
|
4
|
+
import { type LegacySidebarLayoutMode, type SidebarLayoutMode } from "./sidebarLayout";
|
|
5
|
+
export type { SidebarLayoutMode, SidebarSide };
|
|
6
|
+
export type SidebarRootProps = Omit<React.ComponentPropsWithoutRef<"aside">, "children"> & {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
size?: SidebarSize;
|
|
9
|
+
side?: SidebarSide;
|
|
10
|
+
state?: SidebarLayoutMode;
|
|
11
|
+
defaultState?: SidebarLayoutMode;
|
|
12
|
+
onStateChange?: (state: SidebarLayoutMode) => void;
|
|
13
|
+
/** @deprecated */
|
|
14
|
+
mode?: SidebarLayoutMode | LegacySidebarLayoutMode;
|
|
15
|
+
/** @deprecated */
|
|
16
|
+
defaultMode?: SidebarLayoutMode | LegacySidebarLayoutMode;
|
|
17
|
+
/** @deprecated */
|
|
18
|
+
onModeChange?: (state: SidebarLayoutMode) => void;
|
|
19
|
+
/** @deprecated */
|
|
20
|
+
open?: boolean;
|
|
21
|
+
/** @deprecated */
|
|
22
|
+
defaultOpen?: boolean;
|
|
23
|
+
/** @deprecated */
|
|
24
|
+
onOpenChange?: (open: boolean) => void;
|
|
25
|
+
responsive?: boolean;
|
|
26
|
+
sidebarSlot?: "page-nav";
|
|
27
|
+
};
|
|
28
|
+
declare const SidebarRoot: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "children"> & {
|
|
29
|
+
children: React.ReactNode;
|
|
30
|
+
size?: SidebarSize;
|
|
31
|
+
side?: SidebarSide;
|
|
32
|
+
state?: SidebarLayoutMode;
|
|
33
|
+
defaultState?: SidebarLayoutMode;
|
|
34
|
+
onStateChange?: (state: SidebarLayoutMode) => void;
|
|
35
|
+
/** @deprecated */
|
|
36
|
+
mode?: SidebarLayoutMode | LegacySidebarLayoutMode;
|
|
37
|
+
/** @deprecated */
|
|
38
|
+
defaultMode?: SidebarLayoutMode | LegacySidebarLayoutMode;
|
|
39
|
+
/** @deprecated */
|
|
40
|
+
onModeChange?: (state: SidebarLayoutMode) => void;
|
|
41
|
+
/** @deprecated */
|
|
42
|
+
open?: boolean;
|
|
43
|
+
/** @deprecated */
|
|
44
|
+
defaultOpen?: boolean;
|
|
45
|
+
/** @deprecated */
|
|
46
|
+
onOpenChange?: (open: boolean) => void;
|
|
47
|
+
responsive?: boolean;
|
|
48
|
+
sidebarSlot?: "page-nav";
|
|
49
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
50
|
+
export { SidebarRoot };
|
|
51
|
+
//# sourceMappingURL=SidebarRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarRoot.d.ts","sourceRoot":"","sources":["../../../../src/layout/sidebar/SidebarRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EACL,KAAK,uBAAuB,EAG5B,KAAK,iBAAiB,EACvB,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,GAAG;IACzF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACnD,kBAAkB;IAClB,IAAI,CAAC,EAAE,iBAAiB,GAAG,uBAAuB,CAAC;IACnD,kBAAkB;IAClB,WAAW,CAAC,EAAE,iBAAiB,GAAG,uBAAuB,CAAC;IAC1D,kBAAkB;IAClB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAClD,kBAAkB;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,kBAAkB;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB;IAClB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,UAAU,CAAC;CAC1B,CAAC;AAiBF,QAAA,MAAM,WAAW;cArCL,KAAK,CAAC,SAAS;WAClB,WAAW;WACX,WAAW;YACV,iBAAiB;mBACV,iBAAiB;oBAChB,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI;IAClD,kBAAkB;WACX,iBAAiB,GAAG,uBAAuB;IAClD,kBAAkB;kBACJ,iBAAiB,GAAG,uBAAuB;IACzD,kBAAkB;mBACH,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI;IACjD,kBAAkB;WACX,OAAO;IACd,kBAAkB;kBACJ,OAAO;IACrB,kBAAkB;mBACH,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI;iBACzB,OAAO;kBACN,UAAU;qCAgSxB,CAAC;AAIH,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SidebarSize } from "@/internal/states";
|
|
2
|
+
import type { SidebarLayoutMode } from "./sidebarLayout";
|
|
3
|
+
export type SidebarSide = "left" | "right";
|
|
4
|
+
export type SidebarContextValue = {
|
|
5
|
+
size: SidebarSize;
|
|
6
|
+
side: SidebarSide;
|
|
7
|
+
state: SidebarLayoutMode;
|
|
8
|
+
setState: (mode: SidebarLayoutMode) => void;
|
|
9
|
+
mode: SidebarLayoutMode;
|
|
10
|
+
setMode: (mode: SidebarLayoutMode) => void;
|
|
11
|
+
open: boolean;
|
|
12
|
+
setOpen: (next: boolean) => void;
|
|
13
|
+
toggleOpen: () => void;
|
|
14
|
+
isMobile: boolean;
|
|
15
|
+
navPanelId: string;
|
|
16
|
+
};
|
|
17
|
+
declare const SidebarProvider: import("react").Provider<SidebarContextValue | null>, useSidebarContext: () => SidebarContextValue;
|
|
18
|
+
export { SidebarProvider, useSidebarContext };
|
|
19
|
+
//# sourceMappingURL=sidebar-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-context.d.ts","sourceRoot":"","sources":["../../../../src/layout/sidebar/sidebar-context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;AAE3C,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,iBAAiB,CAAC;IACzB,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC5C,IAAI,EAAE,iBAAiB,CAAC;IACxB,OAAO,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC3C,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,QAAA,MAAO,eAAe,wDAAE,iBAAiB,2BAA0D,CAAC;AAEpG,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Единая точка для JS/CSS: mobile < 768px, desktop/tablet >= 768px.
|
|
3
|
+
*/
|
|
4
|
+
export type SidebarLayoutMode = "hidden" | "compact" | "expanded";
|
|
5
|
+
/** @deprecated use `SidebarLayoutMode` */
|
|
6
|
+
export type LegacySidebarLayoutMode = "hidden" | "compact" | "expand";
|
|
7
|
+
export declare const SIDEBAR_LAYOUT_BREAKPOINT_MAX = "47.999rem";
|
|
8
|
+
export declare const SIDEBAR_MEDIA_QUERY_NARROW = "(max-width: 47.999rem)";
|
|
9
|
+
export declare const SIDEBAR_MEDIA_QUERY_INLINE = "(min-width: 48rem)";
|
|
10
|
+
export declare const SIDEBAR_MEDIA_QUERY_XS_HIDDEN = "(max-width: 29.999rem)";
|
|
11
|
+
export declare function normalizeSidebarMode(mode: SidebarLayoutMode | LegacySidebarLayoutMode): SidebarLayoutMode;
|
|
12
|
+
//# sourceMappingURL=sidebarLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebarLayout.d.ts","sourceRoot":"","sources":["../../../../src/layout/sidebar/sidebarLayout.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;AAElE,0CAA0C;AAC1C,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEtE,eAAO,MAAM,6BAA6B,cAAc,CAAC;AAEzD,eAAO,MAAM,0BAA0B,2BAAkD,CAAC;AAE1F,eAAO,MAAM,0BAA0B,uBAAuB,CAAC;AAE/D,eAAO,MAAM,6BAA6B,2BAA2B,CAAC;AAEtE,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,iBAAiB,GAAG,uBAAuB,GAChD,iBAAiB,CAEnB"}
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
export declare const primitiveTokens: {
|
|
2
|
+
/** Цвета: white/black, нейтраль `gray`, палитры 50–950. */
|
|
3
|
+
readonly color: {
|
|
4
|
+
readonly white: "#f8f7f4";
|
|
5
|
+
readonly black: "#0f1115";
|
|
6
|
+
/** Скрим модалок/оверлеев (значения вынесены из семантики). */
|
|
7
|
+
readonly overlay: {
|
|
8
|
+
readonly scrimLight: "rgba(15, 17, 21, 0.58)";
|
|
9
|
+
readonly scrimDark: "rgba(8, 10, 14, 0.78)";
|
|
10
|
+
};
|
|
11
|
+
/** Нейтраль: шкала 50–950 + `0` (бумага), альфы для оверлеев. */
|
|
12
|
+
readonly gray: {
|
|
13
|
+
readonly 0: "#f8f7f4";
|
|
14
|
+
readonly 50: "#f3f4f7";
|
|
15
|
+
readonly 100: "#eceef2";
|
|
16
|
+
readonly 200: "#dde1e8";
|
|
17
|
+
readonly 300: "#c7ced9";
|
|
18
|
+
readonly 400: "#9ba6b6";
|
|
19
|
+
readonly 500: "#707c8e";
|
|
20
|
+
readonly 600: "#566174";
|
|
21
|
+
readonly 700: "#3f495a";
|
|
22
|
+
readonly 800: "#2b3342";
|
|
23
|
+
readonly 900: "#1b2230";
|
|
24
|
+
readonly 950: "#121823";
|
|
25
|
+
readonly alpha10: "rgba(112, 124, 142, 0.10)";
|
|
26
|
+
readonly alpha16: "rgba(112, 124, 142, 0.16)";
|
|
27
|
+
readonly alpha24: "rgba(112, 124, 142, 0.24)";
|
|
28
|
+
};
|
|
29
|
+
/** Палитра red: шкала 50–950 (ориентир — Tailwind v3). */
|
|
30
|
+
readonly red: {
|
|
31
|
+
readonly 50: "#fef2f2";
|
|
32
|
+
readonly 100: "#fee2e2";
|
|
33
|
+
readonly 200: "#fecaca";
|
|
34
|
+
readonly 300: "#fca5a5";
|
|
35
|
+
readonly 400: "#f87171";
|
|
36
|
+
readonly 500: "#ef4444";
|
|
37
|
+
readonly 600: "#dc2626";
|
|
38
|
+
readonly 700: "#b91c1c";
|
|
39
|
+
readonly 800: "#991b1b";
|
|
40
|
+
readonly 900: "#7f1d1d";
|
|
41
|
+
readonly 950: "#450a0a";
|
|
42
|
+
};
|
|
43
|
+
/** Палитра blue: шкала 50–950 (ориентир — Tailwind v3). */
|
|
44
|
+
readonly blue: {
|
|
45
|
+
readonly 50: "#eff6ff";
|
|
46
|
+
readonly 100: "#dbeafe";
|
|
47
|
+
readonly 200: "#bfdbfe";
|
|
48
|
+
readonly 300: "#93c5fd";
|
|
49
|
+
readonly 400: "#60a5fa";
|
|
50
|
+
readonly 500: "#3b82f6";
|
|
51
|
+
readonly 600: "#2563eb";
|
|
52
|
+
readonly 700: "#1d4ed8";
|
|
53
|
+
readonly 800: "#1e40af";
|
|
54
|
+
readonly 900: "#1e3a8a";
|
|
55
|
+
readonly 950: "#172554";
|
|
56
|
+
};
|
|
57
|
+
/** Палитра green: шкала 50–950 (ориентир — Tailwind v3). */
|
|
58
|
+
readonly green: {
|
|
59
|
+
readonly 50: "#f0fdf4";
|
|
60
|
+
readonly 100: "#dcfce7";
|
|
61
|
+
readonly 200: "#bbf7d0";
|
|
62
|
+
readonly 300: "#86efac";
|
|
63
|
+
readonly 400: "#4ade80";
|
|
64
|
+
readonly 500: "#22c55e";
|
|
65
|
+
readonly 600: "#16a34a";
|
|
66
|
+
readonly 700: "#15803d";
|
|
67
|
+
readonly 800: "#166534";
|
|
68
|
+
readonly 900: "#14532d";
|
|
69
|
+
readonly 950: "#052e16";
|
|
70
|
+
};
|
|
71
|
+
/** Палитра orange: шкала 50–950 (ориентир — Tailwind v3). */
|
|
72
|
+
readonly orange: {
|
|
73
|
+
readonly 50: "#fff7ed";
|
|
74
|
+
readonly 100: "#ffedd5";
|
|
75
|
+
readonly 200: "#fed7aa";
|
|
76
|
+
readonly 300: "#fdba74";
|
|
77
|
+
readonly 400: "#fb923c";
|
|
78
|
+
readonly 500: "#f97316";
|
|
79
|
+
readonly 600: "#ea580c";
|
|
80
|
+
readonly 700: "#c2410c";
|
|
81
|
+
readonly 800: "#9a3412";
|
|
82
|
+
readonly 900: "#7c2d12";
|
|
83
|
+
readonly 950: "#431407";
|
|
84
|
+
};
|
|
85
|
+
/** Палитра yellow: шкала 50–950 (ориентир — Tailwind v3). */
|
|
86
|
+
readonly yellow: {
|
|
87
|
+
readonly 50: "#fefce8";
|
|
88
|
+
readonly 100: "#fef9c3";
|
|
89
|
+
readonly 200: "#fef08a";
|
|
90
|
+
readonly 300: "#fde047";
|
|
91
|
+
readonly 400: "#facc15";
|
|
92
|
+
readonly 500: "#eab308";
|
|
93
|
+
readonly 600: "#ca8a04";
|
|
94
|
+
readonly 700: "#a16207";
|
|
95
|
+
readonly 800: "#854d0e";
|
|
96
|
+
readonly 900: "#713f12";
|
|
97
|
+
readonly 950: "#422006";
|
|
98
|
+
};
|
|
99
|
+
/** Палитра purple: шкала 50–950 (ориентир — Tailwind v3). */
|
|
100
|
+
readonly purple: {
|
|
101
|
+
readonly 50: "#faf5ff";
|
|
102
|
+
readonly 100: "#f3e8ff";
|
|
103
|
+
readonly 200: "#e9d5ff";
|
|
104
|
+
readonly 300: "#d8b4fe";
|
|
105
|
+
readonly 400: "#c084fc";
|
|
106
|
+
readonly 500: "#a855f7";
|
|
107
|
+
readonly 600: "#9333ea";
|
|
108
|
+
readonly 700: "#7e22ce";
|
|
109
|
+
readonly 800: "#6b21a8";
|
|
110
|
+
readonly 900: "#581c87";
|
|
111
|
+
readonly 950: "#3b0764";
|
|
112
|
+
};
|
|
113
|
+
/** Палитра sky: шкала 50–950 (ориентир — Tailwind v3). */
|
|
114
|
+
readonly sky: {
|
|
115
|
+
readonly 50: "#f0f9ff";
|
|
116
|
+
readonly 100: "#e0f2fe";
|
|
117
|
+
readonly 200: "#bae6fd";
|
|
118
|
+
readonly 300: "#7dd3fc";
|
|
119
|
+
readonly 400: "#38bdf8";
|
|
120
|
+
readonly 500: "#0ea5e9";
|
|
121
|
+
readonly 600: "#0284c7";
|
|
122
|
+
readonly 700: "#0369a1";
|
|
123
|
+
readonly 800: "#075985";
|
|
124
|
+
readonly 900: "#0c4a6e";
|
|
125
|
+
readonly 950: "#082f49";
|
|
126
|
+
};
|
|
127
|
+
/** Палитра pink: шкала 50–950 (ориентир — Tailwind v3). */
|
|
128
|
+
readonly pink: {
|
|
129
|
+
readonly 50: "#fdf2f8";
|
|
130
|
+
readonly 100: "#fce7f3";
|
|
131
|
+
readonly 200: "#fbcfe8";
|
|
132
|
+
readonly 300: "#f9a8d4";
|
|
133
|
+
readonly 400: "#f472b6";
|
|
134
|
+
readonly 500: "#ec4899";
|
|
135
|
+
readonly 600: "#db2777";
|
|
136
|
+
readonly 700: "#be185d";
|
|
137
|
+
readonly 800: "#9d174d";
|
|
138
|
+
readonly 900: "#831843";
|
|
139
|
+
readonly 950: "#500724";
|
|
140
|
+
};
|
|
141
|
+
/** Палитра teal: шкала 50–950 (ориентир — Tailwind v3). */
|
|
142
|
+
readonly teal: {
|
|
143
|
+
readonly 50: "#f0fdfa";
|
|
144
|
+
readonly 100: "#ccfbf1";
|
|
145
|
+
readonly 200: "#99f6e4";
|
|
146
|
+
readonly 300: "#5eead4";
|
|
147
|
+
readonly 400: "#2dd4bf";
|
|
148
|
+
readonly 500: "#14b8a6";
|
|
149
|
+
readonly 600: "#0d9488";
|
|
150
|
+
readonly 700: "#0f766e";
|
|
151
|
+
readonly 800: "#115e59";
|
|
152
|
+
readonly 900: "#134e4a";
|
|
153
|
+
readonly 950: "#042f2e";
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
/** Высота ряда / блока: ось `xs`→`6xl`, шаг **+0.25rem**; в семантике контролы — xs…xl. */
|
|
157
|
+
readonly size: {
|
|
158
|
+
readonly xs: "1.75rem";
|
|
159
|
+
readonly s: "2rem";
|
|
160
|
+
readonly m: "2.25rem";
|
|
161
|
+
readonly l: "2.5rem";
|
|
162
|
+
readonly xl: "2.75rem";
|
|
163
|
+
readonly "2xl": "3rem";
|
|
164
|
+
readonly "3xl": "3.25rem";
|
|
165
|
+
readonly "4xl": "3.5rem";
|
|
166
|
+
readonly "5xl": "3.75rem";
|
|
167
|
+
readonly "6xl": "4rem";
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Кольцевой прогресс: диаметр в rem (как в макете) и толщина штриха в px.
|
|
171
|
+
* TS читает те же значения, что и визуальная шкала компонента.
|
|
172
|
+
*/
|
|
173
|
+
readonly progressCircle: {
|
|
174
|
+
readonly s: {
|
|
175
|
+
readonly diameter: "2.5625rem";
|
|
176
|
+
readonly strokeWidth: "3";
|
|
177
|
+
};
|
|
178
|
+
readonly m: {
|
|
179
|
+
readonly diameter: "3.375rem";
|
|
180
|
+
readonly strokeWidth: "4";
|
|
181
|
+
};
|
|
182
|
+
readonly l: {
|
|
183
|
+
readonly diameter: "4.25rem";
|
|
184
|
+
readonly strokeWidth: "5";
|
|
185
|
+
};
|
|
186
|
+
readonly xl: {
|
|
187
|
+
readonly diameter: "5.125rem";
|
|
188
|
+
readonly strokeWidth: "6";
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
/** Отступы: `layout` — сетка макета; `control` — ритм внутри контролов. */
|
|
192
|
+
readonly spaces: {
|
|
193
|
+
/** Сетка макета: шаг **0.25rem (4px)**, ось `xs`→`6xl` + `0`; `spacing.x*` — шаги по 4px. */
|
|
194
|
+
readonly layout: {
|
|
195
|
+
readonly 0: "0";
|
|
196
|
+
readonly xs: "0.25rem";
|
|
197
|
+
readonly s: "0.5rem";
|
|
198
|
+
readonly m: "0.75rem";
|
|
199
|
+
readonly l: "1rem";
|
|
200
|
+
readonly xl: "1.25rem";
|
|
201
|
+
readonly "2xl": "1.5rem";
|
|
202
|
+
readonly "3xl": "2rem";
|
|
203
|
+
readonly "4xl": "2.5rem";
|
|
204
|
+
readonly "5xl": "3rem";
|
|
205
|
+
readonly "6xl": "3.5rem";
|
|
206
|
+
};
|
|
207
|
+
/** Контролы: горизонтальный ритм (`spacing`) и отступ кнопки (`button`). */
|
|
208
|
+
readonly control: {
|
|
209
|
+
/** Gap и inputPaddingX: ось `xs`→`6xl`, шаг **+0.125rem**. */
|
|
210
|
+
readonly spacing: {
|
|
211
|
+
readonly xs: "0.375rem";
|
|
212
|
+
readonly s: "0.5rem";
|
|
213
|
+
readonly m: "0.625rem";
|
|
214
|
+
readonly l: "0.75rem";
|
|
215
|
+
readonly xl: "0.875rem";
|
|
216
|
+
readonly "2xl": "1rem";
|
|
217
|
+
readonly "3xl": "1.125rem";
|
|
218
|
+
readonly "4xl": "1.25rem";
|
|
219
|
+
readonly "5xl": "1.375rem";
|
|
220
|
+
readonly "6xl": "1.5rem";
|
|
221
|
+
};
|
|
222
|
+
/** Padding кнопки: на **+0.125rem** больше соответствующего `spacing.*`. */
|
|
223
|
+
readonly button: {
|
|
224
|
+
readonly xs: "0.5rem";
|
|
225
|
+
readonly s: "0.625rem";
|
|
226
|
+
readonly m: "0.75rem";
|
|
227
|
+
readonly l: "0.875rem";
|
|
228
|
+
readonly xl: "1rem";
|
|
229
|
+
readonly "2xl": "1.125rem";
|
|
230
|
+
readonly "3xl": "1.25rem";
|
|
231
|
+
readonly "4xl": "1.375rem";
|
|
232
|
+
readonly "5xl": "1.5rem";
|
|
233
|
+
readonly "6xl": "1.625rem";
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
/** Скругления: ось `xs`→`6xl` + `circle`; контролы — xs…xl, крупные поверхности — 3xl…6xl. */
|
|
238
|
+
readonly radius: {
|
|
239
|
+
readonly 0: "0";
|
|
240
|
+
readonly xs: "8px";
|
|
241
|
+
readonly s: "10px";
|
|
242
|
+
readonly m: "11px";
|
|
243
|
+
readonly l: "12px";
|
|
244
|
+
readonly xl: "13px";
|
|
245
|
+
readonly "2xl": "16px";
|
|
246
|
+
readonly "3xl": "20px";
|
|
247
|
+
readonly "4xl": "24px";
|
|
248
|
+
readonly "5xl": "32px";
|
|
249
|
+
readonly "6xl": "40px";
|
|
250
|
+
readonly round: "9999px";
|
|
251
|
+
};
|
|
252
|
+
/** Иконки и маркеры: ось `xs`→`6xl`, шаг **+0.125rem**. */
|
|
253
|
+
readonly icon: {
|
|
254
|
+
readonly xs: "0.75rem";
|
|
255
|
+
readonly s: "0.875rem";
|
|
256
|
+
readonly m: "1rem";
|
|
257
|
+
readonly l: "1.125rem";
|
|
258
|
+
readonly xl: "1.25rem";
|
|
259
|
+
readonly "2xl": "1.375rem";
|
|
260
|
+
readonly "3xl": "1.5rem";
|
|
261
|
+
readonly "4xl": "1.625rem";
|
|
262
|
+
readonly "5xl": "1.75rem";
|
|
263
|
+
readonly "6xl": "1.875rem";
|
|
264
|
+
};
|
|
265
|
+
/** Типографика: семейства, кегль, интерлиньяж, вес, трекинг. */
|
|
266
|
+
readonly font: {
|
|
267
|
+
/** Гарнитуры: базовая и моноширинная. */
|
|
268
|
+
readonly family: {
|
|
269
|
+
readonly base: "\"Roboto Flex\", \"Roboto\", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif";
|
|
270
|
+
readonly mono: "\"Roboto Mono\", ui-monospace, SFMono-Regular, Menlo, monospace";
|
|
271
|
+
};
|
|
272
|
+
/**
|
|
273
|
+
* Кегль: ось `3xs`→`6xl` (+0.125rem), плюс **7xl–9xl** под [MD3 type scale](https://m3.material.io/styles/typography/type-scale-tokens)
|
|
274
|
+
* (Display) и **labelMicro** (11px — Label Small).
|
|
275
|
+
*/
|
|
276
|
+
readonly size: {
|
|
277
|
+
readonly "3xs": "0.625rem";
|
|
278
|
+
readonly "2xs": "0.75rem";
|
|
279
|
+
readonly xs: "0.875rem";
|
|
280
|
+
readonly s: "1rem";
|
|
281
|
+
readonly m: "1.125rem";
|
|
282
|
+
readonly l: "1.25rem";
|
|
283
|
+
readonly xl: "1.375rem";
|
|
284
|
+
readonly "2xl": "1.5rem";
|
|
285
|
+
readonly "3xl": "1.625rem";
|
|
286
|
+
readonly "4xl": "1.75rem";
|
|
287
|
+
readonly "5xl": "1.875rem";
|
|
288
|
+
readonly "6xl": "2rem";
|
|
289
|
+
readonly "7xl": "2.25rem";
|
|
290
|
+
readonly "8xl": "2.8125rem";
|
|
291
|
+
readonly "9xl": "3.5625rem";
|
|
292
|
+
readonly labelMicro: "0.6875rem";
|
|
293
|
+
};
|
|
294
|
+
/** Межстрочный интервал под шкалу `font.size.*`. */
|
|
295
|
+
readonly lineHeight: {
|
|
296
|
+
readonly "3xs": "0.875rem";
|
|
297
|
+
readonly "2xs": "1rem";
|
|
298
|
+
readonly xs: "1.125rem";
|
|
299
|
+
readonly s: "1.25rem";
|
|
300
|
+
readonly m: "1.375rem";
|
|
301
|
+
readonly l: "1.5rem";
|
|
302
|
+
readonly xl: "1.625rem";
|
|
303
|
+
readonly "2xl": "1.75rem";
|
|
304
|
+
readonly "3xl": "1.875rem";
|
|
305
|
+
readonly "4xl": "2rem";
|
|
306
|
+
readonly "5xl": "2.125rem";
|
|
307
|
+
readonly "6xl": "2.25rem";
|
|
308
|
+
readonly "7xl": "2.5rem";
|
|
309
|
+
readonly "8xl": "3.125rem";
|
|
310
|
+
readonly "9xl": "4rem";
|
|
311
|
+
readonly labelMicro: "1rem";
|
|
312
|
+
};
|
|
313
|
+
/** Начертания (числовые веса шрифта). */
|
|
314
|
+
readonly weight: {
|
|
315
|
+
readonly regular: "400";
|
|
316
|
+
readonly medium: "500";
|
|
317
|
+
readonly semibold: "600";
|
|
318
|
+
readonly bold: "700";
|
|
319
|
+
};
|
|
320
|
+
/** Межбуквенный интервал (em). */
|
|
321
|
+
readonly letterSpacing: {
|
|
322
|
+
readonly tighter: "-0.02em";
|
|
323
|
+
readonly tight: "-0.01em";
|
|
324
|
+
readonly normal: "0";
|
|
325
|
+
readonly wide: "0.04em";
|
|
326
|
+
readonly wider: "0.06em";
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
/** Тени: ось `xs`→`6xl`, усиление с размером. */
|
|
330
|
+
readonly shadow: {
|
|
331
|
+
readonly xs: "0 2px 4px rgba(15, 17, 21, 0.08)";
|
|
332
|
+
readonly s: "0 4px 8px rgba(15, 17, 21, 0.1)";
|
|
333
|
+
readonly m: "0 8px 16px rgba(15, 17, 21, 0.14)";
|
|
334
|
+
readonly l: "0 16px 32px rgba(15, 17, 21, 0.2)";
|
|
335
|
+
readonly xl: "0 24px 48px rgba(15, 17, 21, 0.24)";
|
|
336
|
+
readonly "2xl": "0 32px 64px rgba(15, 17, 21, 0.26)";
|
|
337
|
+
readonly "3xl": "0 40px 80px rgba(15, 17, 21, 0.28)";
|
|
338
|
+
readonly "4xl": "0 48px 96px rgba(15, 17, 21, 0.3)";
|
|
339
|
+
readonly "5xl": "0 56px 112px rgba(15, 17, 21, 0.32)";
|
|
340
|
+
readonly "6xl": "0 64px 128px rgba(15, 17, 21, 0.34)";
|
|
341
|
+
};
|
|
342
|
+
/** Движение: длительности и кривые easing. */
|
|
343
|
+
readonly motion: {
|
|
344
|
+
/** Длительности по смыслу (не ось размеров). */
|
|
345
|
+
readonly duration: {
|
|
346
|
+
readonly fast: "200ms";
|
|
347
|
+
readonly medium: "350ms";
|
|
348
|
+
readonly slow: "500ms";
|
|
349
|
+
};
|
|
350
|
+
/** Кривые сглаживания. */
|
|
351
|
+
readonly easing: {
|
|
352
|
+
readonly standard: "cubic-bezier(0.2, 0, 0, 1)";
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
/**
|
|
356
|
+
* Z-index: именованные роли слоёв (не ось размеров). Интервалы с запасом.
|
|
357
|
+
*
|
|
358
|
+
* Глобальная страница: base → sticky → popover → dropdown → tooltip.
|
|
359
|
+
* Блокирующие оболочки: drawer (ниже) → modal (выше). Порталы на `body` внутри drawer/modal
|
|
360
|
+
* используют отдельные уровни (`*InDrawer`, `*InModal`, `*InDrawerInModal`), см. `OverlayPortalLayerContext`.
|
|
361
|
+
*
|
|
362
|
+
* Drawer внутри modal: оболочка `drawerNestedShell` выше `modal`; порталы внутри — ещё выше.
|
|
363
|
+
* Тосты — поверх всех перечисленных слоёв.
|
|
364
|
+
*/
|
|
365
|
+
readonly zIndex: {
|
|
366
|
+
readonly base: "10";
|
|
367
|
+
readonly sticky: "100";
|
|
368
|
+
readonly popover: "1000";
|
|
369
|
+
readonly dropdown: "1200";
|
|
370
|
+
readonly tooltip: "1600";
|
|
371
|
+
/** `Drawer`, mobile fullscreen `Sidebar` — ниже модалки. */
|
|
372
|
+
readonly drawer: "2000";
|
|
373
|
+
/** `Modal` (оверлей + диалог), CommandMenu — поверх drawer. */
|
|
374
|
+
readonly modal: "3000";
|
|
375
|
+
readonly popoverInDrawer: "2100";
|
|
376
|
+
readonly dropdownInDrawer: "2200";
|
|
377
|
+
readonly tooltipInDrawer: "2300";
|
|
378
|
+
readonly popoverInModal: "3100";
|
|
379
|
+
readonly dropdownInModal: "3200";
|
|
380
|
+
readonly tooltipInModal: "3300";
|
|
381
|
+
/** Оверлей и панель `Drawer`, открытого поверх `Modal`. */
|
|
382
|
+
readonly drawerNestedShell: "3400";
|
|
383
|
+
readonly popoverInDrawerInModal: "3500";
|
|
384
|
+
readonly dropdownInDrawerInModal: "3600";
|
|
385
|
+
readonly tooltipInDrawerInModal: "3700";
|
|
386
|
+
/** Выше модалок и вложенных порталов — очередь тостов. */
|
|
387
|
+
readonly toast: "10000";
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
//# sourceMappingURL=primitives.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../tokens/primitives.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;IAC1B,2DAA2D;;;;QAIzD,+DAA+D;;;;;QAK/D,iEAAiE;;;;;;;;;;;;;;;;;;QAkBjE,0DAA0D;;;;;;;;;;;;;;QAc1D,2DAA2D;;;;;;;;;;;;;;QAc3D,4DAA4D;;;;;;;;;;;;;;QAc5D,6DAA6D;;;;;;;;;;;;;;QAc7D,6DAA6D;;;;;;;;;;;;;;QAc7D,6DAA6D;;;;;;;;;;;;;;QAc7D,0DAA0D;;;;;;;;;;;;;;QAc1D,2DAA2D;;;;;;;;;;;;;;QAc3D,2DAA2D;;;;;;;;;;;;;;;IAe7D,2FAA2F;;;;;;;;;;;;;IAa3F;;;OAGG;;;;;;;;;;;;;;;;;;;IAOH,2EAA2E;;QAEzE,6FAA6F;;;;;;;;;;;;;;QAc7F,4EAA4E;;YAE1E,8DAA8D;;;;;;;;;;;;;YAa9D,4EAA4E;;;;;;;;;;;;;;;IAehF,8FAA8F;;;;;;;;;;;;;;;IAe9F,2DAA2D;;;;;;;;;;;;;IAa3D,gEAAgE;;QAE9D,yCAAyC;;;;;QAKzC;;;WAGG;;;;;;;;;;;;;;;;;;;QAmBH,oDAAoD;;;;;;;;;;;;;;;;;;;QAmBpD,yCAAyC;;;;;;;QAOzC,kCAAkC;;;;;;;;;IASpC,iDAAiD;;;;;;;;;;;;;IAajD,8CAA8C;;QAE5C,gDAAgD;;;;;;QAMhD,0BAA0B;;;;;IAK5B;;;;;;;;;OASG;;;;;;;QAOD,4DAA4D;;QAE5D,+DAA+D;;;;;;;;QAQ/D,2DAA2D;;;;;QAK3D,0DAA0D;;;CAGpD,CAAC"}
|