@amboss/design-system 4.2.3-canary.0 → 4.2.4
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/build/cjs/components/ChatResponse/ChatResponse.js +1 -1
- package/build/cjs/components/CheckboxCard/CheckboxCard.js +1 -1
- package/build/cjs/components/Content/ContentBox/ContentBox.js +1 -1
- package/build/cjs/components/Content/ContentCheckbox/ContentCheckbox.js +1 -1
- package/build/cjs/components/Content/ContentHeading/ContentHeading.d.ts +11 -3
- package/build/cjs/components/Content/ContentHeading/ContentHeading.js +1 -1
- package/build/cjs/components/Content/ContentList/ContentList.js +1 -1
- package/build/cjs/components/Content/DosageButton/DosageButton.js +1 -1
- package/build/cjs/components/Form/Checkbox/Checkbox.js +1 -1
- package/build/cjs/components/Form/Combobox/MultiSelect.js +1 -1
- package/build/cjs/components/Form/Combobox/SingleSelect.js +1 -1
- package/build/cjs/components/Form/Radio/Radio.js +1 -1
- package/build/cjs/components/Form/RadioButton/RadioButton.js +1 -1
- package/build/cjs/components/Form/RangeInput/RangeInput.js +1 -1
- package/build/cjs/components/Form/SegmentedControl/SegmentedControlOption.js +1 -1
- package/build/cjs/components/Form/Select/SelectWithCustomTrigger.js +1 -1
- package/build/cjs/components/Image/Image.js +1 -1
- package/build/cjs/components/Internal/LayoutFloat/LayoutFloat.d.ts +5 -3
- package/build/cjs/components/Internal/LayoutFloat/LayoutFloat.js +1 -1
- package/build/cjs/components/Internal/LayoutFloat/LayoutFloatDragHandle.d.ts +31 -0
- package/build/cjs/components/Internal/LayoutFloat/LayoutFloatDragHandle.js +1 -0
- package/build/cjs/components/Internal/LayoutFloat/LayoutFloatDragHandleGuard.d.ts +10 -0
- package/build/cjs/components/Internal/LayoutFloat/LayoutFloatDragHandleGuard.js +1 -0
- package/build/cjs/components/Internal/LayoutFloat/LayoutFloatDragProvider.d.ts +10 -0
- package/build/cjs/components/Internal/LayoutFloat/LayoutFloatDragProvider.js +1 -0
- package/build/cjs/components/Internal/LayoutFloat/useLayoutFloatDrag.d.ts +16 -0
- package/build/cjs/components/Internal/LayoutFloat/useLayoutFloatDrag.js +1 -0
- package/build/cjs/components/Internal/LayoutFloat/useLayoutFloatDragHandleContext.d.ts +22 -0
- package/build/cjs/components/Internal/LayoutFloat/useLayoutFloatDragHandleContext.js +1 -0
- package/build/cjs/components/Internal/Panel/Panel.d.ts +4 -0
- package/build/cjs/components/Internal/Panel/Panel.js +1 -1
- package/build/cjs/components/Internal/Sandwich/Sandwich.js +1 -1
- package/build/cjs/components/Internal/Sandwich/SandwichHeader.d.ts +1 -0
- package/build/cjs/components/Internal/Sandwich/SandwichHeader.js +1 -1
- package/build/cjs/components/Layout/-types.d.ts +96 -48
- package/build/cjs/components/Layout/Content/Content.d.ts +6 -2
- package/build/cjs/components/Layout/Content/Content.js +1 -1
- package/build/cjs/components/Layout/Content/ContentDocked.d.ts +12 -0
- package/build/cjs/components/Layout/Content/ContentDocked.js +1 -0
- package/build/cjs/components/Layout/Layout.js +1 -1
- package/build/cjs/components/Layout/RightPanel/RightPanel.d.ts +10 -8
- package/build/cjs/components/Layout/RightPanel/RightPanel.js +1 -1
- package/build/cjs/components/Layout/RightPanel/RightPanelDocked.d.ts +19 -0
- package/build/cjs/components/Layout/RightPanel/RightPanelDocked.js +1 -0
- package/build/cjs/components/Layout/RightPanel/RightPanelHeader.d.ts +14 -10
- package/build/cjs/components/Layout/RightPanel/RightPanelHeader.js +1 -1
- package/build/cjs/components/Layout/RightPanel/RightPanelSheet.d.ts +18 -0
- package/build/cjs/components/Layout/RightPanel/RightPanelSheet.js +1 -0
- package/build/cjs/components/Layout/Split/MobileSplitView/ContentSplitBase.d.ts +13 -0
- package/build/cjs/components/Layout/Split/MobileSplitView/ContentSplitBase.js +1 -0
- package/build/cjs/components/Layout/Split/MobileSplitView/MobileSplitView.d.ts +11 -0
- package/build/cjs/components/Layout/Split/MobileSplitView/MobileSplitView.js +1 -0
- package/build/cjs/components/Layout/Split/MobileSplitView/StyledMobileSplitSlideLayer.d.ts +20 -0
- package/build/cjs/components/Layout/Split/MobileSplitView/StyledMobileSplitSlideLayer.js +1 -0
- package/build/cjs/components/Layout/Split/MobileSplitView/useMobileSplitStack.d.ts +20 -0
- package/build/cjs/components/Layout/Split/MobileSplitView/useMobileSplitStack.js +1 -0
- package/build/cjs/components/Layout/Split/MobileSplitView/useMobileSplitView.d.ts +27 -0
- package/build/cjs/components/Layout/Split/MobileSplitView/useMobileSplitView.js +1 -0
- package/build/cjs/components/Layout/Split/Split.d.ts +5 -4
- package/build/cjs/components/Layout/Split/Split.js +1 -1
- package/build/cjs/components/Layout/Split/SplitDocked.d.ts +9 -0
- package/build/cjs/components/Layout/Split/SplitDocked.js +1 -0
- package/build/cjs/components/Layout/index.d.ts +1 -0
- package/build/cjs/components/Layout/index.js +1 -1
- package/build/cjs/components/Layout/reducer.js +1 -1
- package/build/cjs/components/Layout/registry.d.ts +9 -1
- package/build/cjs/components/Layout/registry.js +1 -1
- package/build/cjs/components/Layout/useFloatablePortalTargets.js +1 -1
- package/build/cjs/components/Layout/useLayout.js +1 -1
- package/build/cjs/components/Layout/usePanelDockedSlide.js +1 -1
- package/build/cjs/components/Portal/Portal.js +1 -1
- package/build/cjs/components/PromptInput/PromptTextArea.js +1 -1
- package/build/cjs/components/PromptInput/useAutocompleteListPosition.js +1 -1
- package/build/cjs/components/RadioCard/RadioCard.js +1 -1
- package/build/cjs/components/SearchResult/SearchResult.d.ts +3 -0
- package/build/cjs/components/SearchResult/SearchResult.js +1 -1
- package/build/cjs/components/Sheet/Sheet.js +1 -1
- package/build/cjs/components/Toggletip/BasePopover.js +1 -1
- package/build/cjs/components/Tooltip/BaseTooltip.d.ts +7 -4
- package/build/cjs/components/Tooltip/Tooltip.d.ts +1 -1
- package/build/cjs/components/Tooltip/Tooltip.js +1 -1
- package/build/cjs/components/Tooltip/TooltipContent.js +1 -1
- package/build/cjs/components/Typography/Text/Text.d.ts +1 -1
- package/build/cjs/components/Typography/Text/Text.js +1 -1
- package/build/cjs/components/Utilities/Expandable/Expandable.js +1 -1
- package/build/cjs/components/Utilities/FloatingPosition/useFloatingPosition.js +1 -1
- package/build/cjs/components/VirtualScrollList/VirtualScrollList.js +1 -1
- package/build/cjs/shared/popupMenu/usePopupMenu.js +1 -1
- package/build/cjs/shared/useAutoPosition.js +1 -1
- package/build/cjs/shared/useBreakpoints.js +1 -1
- package/build/cjs/shared/useDragTransform.d.ts +39 -0
- package/build/cjs/shared/useDragTransform.js +1 -0
- package/build/cjs/web-tokens/_sizes.json +61 -51
- package/build/cjs/web-tokens/layout-vars.d.ts +2 -0
- package/build/cjs/web-tokens/layout-vars.js +1 -1
- package/build/cjs/web-tokens/layout-vars.ts +2 -0
- package/build/cjs/web-tokens/visualConfig.d.ts +9 -0
- package/build/cjs/web-tokens/visualConfig.js +1 -1
- package/build/esm/components/ChatResponse/ChatResponse.js +1 -1
- package/build/esm/components/CheckboxCard/CheckboxCard.js +1 -1
- package/build/esm/components/Content/ContentBox/ContentBox.js +1 -1
- package/build/esm/components/Content/ContentCheckbox/ContentCheckbox.js +1 -1
- package/build/esm/components/Content/ContentHeading/ContentHeading.d.ts +11 -3
- package/build/esm/components/Content/ContentHeading/ContentHeading.js +1 -1
- package/build/esm/components/Content/ContentList/ContentList.js +1 -1
- package/build/esm/components/Content/DosageButton/DosageButton.js +1 -1
- package/build/esm/components/Form/Checkbox/Checkbox.js +1 -1
- package/build/esm/components/Form/Combobox/MultiSelect.js +1 -1
- package/build/esm/components/Form/Combobox/SingleSelect.js +1 -1
- package/build/esm/components/Form/Radio/Radio.js +1 -1
- package/build/esm/components/Form/RadioButton/RadioButton.js +1 -1
- package/build/esm/components/Form/RangeInput/RangeInput.js +1 -1
- package/build/esm/components/Form/SegmentedControl/SegmentedControlOption.js +1 -1
- package/build/esm/components/Form/Select/SelectWithCustomTrigger.js +1 -1
- package/build/esm/components/Image/Image.js +1 -1
- package/build/esm/components/Internal/LayoutFloat/LayoutFloat.d.ts +5 -3
- package/build/esm/components/Internal/LayoutFloat/LayoutFloat.js +1 -1
- package/build/esm/components/Internal/LayoutFloat/LayoutFloatDragHandle.d.ts +31 -0
- package/build/esm/components/Internal/LayoutFloat/LayoutFloatDragHandle.js +1 -0
- package/build/esm/components/Internal/LayoutFloat/LayoutFloatDragHandleGuard.d.ts +10 -0
- package/build/esm/components/Internal/LayoutFloat/LayoutFloatDragHandleGuard.js +1 -0
- package/build/esm/components/Internal/LayoutFloat/LayoutFloatDragProvider.d.ts +10 -0
- package/build/esm/components/Internal/LayoutFloat/LayoutFloatDragProvider.js +1 -0
- package/build/esm/components/Internal/LayoutFloat/useLayoutFloatDrag.d.ts +16 -0
- package/build/esm/components/Internal/LayoutFloat/useLayoutFloatDrag.js +1 -0
- package/build/esm/components/Internal/LayoutFloat/useLayoutFloatDragHandleContext.d.ts +22 -0
- package/build/esm/components/Internal/LayoutFloat/useLayoutFloatDragHandleContext.js +1 -0
- package/build/esm/components/Internal/Panel/Panel.d.ts +4 -0
- package/build/esm/components/Internal/Panel/Panel.js +1 -1
- package/build/esm/components/Internal/Sandwich/Sandwich.js +1 -1
- package/build/esm/components/Internal/Sandwich/SandwichHeader.d.ts +1 -0
- package/build/esm/components/Internal/Sandwich/SandwichHeader.js +1 -1
- package/build/esm/components/Layout/-types.d.ts +96 -48
- package/build/esm/components/Layout/Content/Content.d.ts +6 -2
- package/build/esm/components/Layout/Content/Content.js +1 -1
- package/build/esm/components/Layout/Content/ContentDocked.d.ts +12 -0
- package/build/esm/components/Layout/Content/ContentDocked.js +1 -0
- package/build/esm/components/Layout/Layout.js +1 -1
- package/build/esm/components/Layout/RightPanel/RightPanel.d.ts +10 -8
- package/build/esm/components/Layout/RightPanel/RightPanel.js +1 -1
- package/build/esm/components/Layout/RightPanel/RightPanelDocked.d.ts +19 -0
- package/build/esm/components/Layout/RightPanel/RightPanelDocked.js +1 -0
- package/build/esm/components/Layout/RightPanel/RightPanelHeader.d.ts +14 -10
- package/build/esm/components/Layout/RightPanel/RightPanelHeader.js +1 -1
- package/build/esm/components/Layout/RightPanel/RightPanelSheet.d.ts +18 -0
- package/build/esm/components/Layout/RightPanel/RightPanelSheet.js +1 -0
- package/build/esm/components/Layout/Split/MobileSplitView/ContentSplitBase.d.ts +13 -0
- package/build/esm/components/Layout/Split/MobileSplitView/ContentSplitBase.js +1 -0
- package/build/esm/components/Layout/Split/MobileSplitView/MobileSplitView.d.ts +11 -0
- package/build/esm/components/Layout/Split/MobileSplitView/MobileSplitView.js +1 -0
- package/build/esm/components/Layout/Split/MobileSplitView/StyledMobileSplitSlideLayer.d.ts +20 -0
- package/build/esm/components/Layout/Split/MobileSplitView/StyledMobileSplitSlideLayer.js +1 -0
- package/build/esm/components/Layout/Split/MobileSplitView/useMobileSplitStack.d.ts +20 -0
- package/build/esm/components/Layout/Split/MobileSplitView/useMobileSplitStack.js +1 -0
- package/build/esm/components/Layout/Split/MobileSplitView/useMobileSplitView.d.ts +27 -0
- package/build/esm/components/Layout/Split/MobileSplitView/useMobileSplitView.js +1 -0
- package/build/esm/components/Layout/Split/Split.d.ts +5 -4
- package/build/esm/components/Layout/Split/Split.js +1 -1
- package/build/esm/components/Layout/Split/SplitDocked.d.ts +9 -0
- package/build/esm/components/Layout/Split/SplitDocked.js +1 -0
- package/build/esm/components/Layout/index.d.ts +1 -0
- package/build/esm/components/Layout/index.js +1 -1
- package/build/esm/components/Layout/reducer.js +1 -1
- package/build/esm/components/Layout/registry.d.ts +9 -1
- package/build/esm/components/Layout/registry.js +1 -1
- package/build/esm/components/Layout/useFloatablePortalTargets.js +1 -1
- package/build/esm/components/Layout/useLayout.js +1 -1
- package/build/esm/components/Layout/usePanelDockedSlide.js +1 -1
- package/build/esm/components/Portal/Portal.js +1 -1
- package/build/esm/components/PromptInput/PromptTextArea.js +1 -1
- package/build/esm/components/PromptInput/useAutocompleteListPosition.js +1 -1
- package/build/esm/components/RadioCard/RadioCard.js +1 -1
- package/build/esm/components/SearchResult/SearchResult.d.ts +3 -0
- package/build/esm/components/SearchResult/SearchResult.js +1 -1
- package/build/esm/components/Sheet/Sheet.js +1 -1
- package/build/esm/components/Toggletip/BasePopover.js +1 -1
- package/build/esm/components/Tooltip/BaseTooltip.d.ts +7 -4
- package/build/esm/components/Tooltip/Tooltip.d.ts +1 -1
- package/build/esm/components/Tooltip/Tooltip.js +1 -1
- package/build/esm/components/Tooltip/TooltipContent.js +1 -1
- package/build/esm/components/Typography/Text/Text.d.ts +1 -1
- package/build/esm/components/Typography/Text/Text.js +1 -1
- package/build/esm/components/Utilities/Expandable/Expandable.js +1 -1
- package/build/esm/components/Utilities/FloatingPosition/useFloatingPosition.js +1 -1
- package/build/esm/components/VirtualScrollList/VirtualScrollList.js +1 -1
- package/build/esm/shared/popupMenu/usePopupMenu.js +1 -1
- package/build/esm/shared/useAutoPosition.js +1 -1
- package/build/esm/shared/useBreakpoints.js +1 -1
- package/build/esm/shared/useDragTransform.d.ts +39 -0
- package/build/esm/shared/useDragTransform.js +1 -0
- package/build/esm/web-tokens/_sizes.json +61 -51
- package/build/esm/web-tokens/layout-vars.d.ts +2 -0
- package/build/esm/web-tokens/layout-vars.js +1 -1
- package/build/esm/web-tokens/layout-vars.ts +2 -0
- package/build/esm/web-tokens/visualConfig.d.ts +9 -0
- package/build/esm/web-tokens/visualConfig.js +1 -1
- package/build/scss/_layout.scss +4 -0
- package/build/scss/_variables.scss +1 -0
- package/package.json +1 -3
- package/build/cjs/shared/useIsomorphicLayoutEffect.d.ts +0 -9
- package/build/cjs/shared/useIsomorphicLayoutEffect.js +0 -1
- package/build/esm/shared/useIsomorphicLayoutEffect.d.ts +0 -9
- package/build/esm/shared/useIsomorphicLayoutEffect.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"useAutoPosition",{enumerable:!0,get:function(){return useAutoPosition}});const _react=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"useAutoPosition",{enumerable:!0,get:function(){return useAutoPosition}});const _react=require("react"),_useWindow=require("./useWindow"),_useDocument=require("./useDocument"),useAutoPosition=({anchorRef,contentRef,isActive,forceVerticalPosition})=>{let[verticalPosition,setVerticalPosition]=(0,_react.useState)("down"),[horizontalPosition,setHorizontalPosition]=(0,_react.useState)("left"),document=(0,_useDocument.useDocument)(),window=(0,_useWindow.useWindow)();return(0,_react.useLayoutEffect)(()=>{if(contentRef)if(isActive){let maxHeight=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),rect=contentRef.current.getBoundingClientRect(),anchorHeight=anchorRef.current.getBoundingClientRect().height,anchorX=anchorRef.current.getBoundingClientRect().x,screenWidth=window.innerWidth,isUp=rect.top+rect.height>maxHeight,isDown=rect.top-anchorHeight<rect.height;forceVerticalPosition?setVerticalPosition(forceVerticalPosition):isUp?setVerticalPosition("up"):isDown&&setVerticalPosition("down"),anchorX>screenWidth/2?setHorizontalPosition("left"):anchorX<screenWidth/2&&setHorizontalPosition("right")}else setVerticalPosition("down"),setHorizontalPosition("left")},[anchorRef,contentRef,document.documentElement.clientHeight,isActive,window.innerHeight,window.innerWidth,forceVerticalPosition]),[verticalPosition,horizontalPosition]};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"useBreakpoints",{enumerable:!0,get:function(){return useBreakpoints}});const _interop_require_default=require("@swc/helpers/_/_interop_require_default"),_react=require("react"),_breakpointsjson=/*#__PURE__*/_interop_require_default._(require("../web-tokens/_breakpoints.json")),_useWindow=require("./useWindow")
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"useBreakpoints",{enumerable:!0,get:function(){return useBreakpoints}});const _interop_require_default=require("@swc/helpers/_/_interop_require_default"),_react=require("react"),_breakpointsjson=/*#__PURE__*/_interop_require_default._(require("../web-tokens/_breakpoints.json")),_useWindow=require("./useWindow");function useBreakpoints(){let window=(0,_useWindow.useWindow)(),[width,setWidth]=(0,_react.useState)(()=>window?window.innerWidth:_breakpointsjson.default.xl.value);return(0,_react.useEffect)(()=>{if(!window)return;let handleResize=()=>{setWidth(window.innerWidth)};return handleResize(),window.addEventListener("resize",handleResize),()=>window.removeEventListener("resize",handleResize)},[window]),(0,_react.useMemo)(()=>({isSmallMobile:width<_breakpointsjson.default.s.value,isMobile:width<_breakpointsjson.default.m.value,isTablet:width>=_breakpointsjson.default.m.value&&width<_breakpointsjson.default.l.value,isDesktop:width>=_breakpointsjson.default.l.value,isLargeDesktop:width>=_breakpointsjson.default.xl.value}),[width])}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { RefObject } from "react";
|
|
2
|
+
import type { MoveEndEvent, MoveMoveEvent, MoveStartEvent } from "@react-aria/interactions";
|
|
3
|
+
export type Position = {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
};
|
|
7
|
+
export type UseDragTransformOptions<T extends HTMLElement> = {
|
|
8
|
+
/** Ref of the element to move */
|
|
9
|
+
ref: RefObject<T>;
|
|
10
|
+
/** Minimum distance to keep between the element and the viewport edges */
|
|
11
|
+
edgeOffset?: number;
|
|
12
|
+
/** Distance (px) the element moves per arrow-key press while the handle is
|
|
13
|
+
* focused. react-aria emits 1px keyboard deltas; this scales them. */
|
|
14
|
+
keyboardStep?: number;
|
|
15
|
+
/** Cursor shown on the element while a drag is in progress. Default `grabbing`. */
|
|
16
|
+
draggingCursor?: string;
|
|
17
|
+
/** Called once a drag ends, with the element's persisted translate offset */
|
|
18
|
+
onDragEnd?: (translate: Position) => void;
|
|
19
|
+
};
|
|
20
|
+
/** Pass these to a react-aria `useMove` call to drive the transform. */
|
|
21
|
+
export type DragMoveHandlers = {
|
|
22
|
+
onMoveStart: (event: MoveStartEvent) => void;
|
|
23
|
+
onMove: (event: MoveMoveEvent) => void;
|
|
24
|
+
onMoveEnd: (event: MoveEndEvent) => void;
|
|
25
|
+
};
|
|
26
|
+
export type UseDragTransformResult = DragMoveHandlers & {
|
|
27
|
+
isDragging: boolean;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Applies a clamped `translate3d` to an element from movement deltas, keeping it
|
|
31
|
+
* within `edgeOffset` px of the viewport edges. Input-agnostic: it consumes
|
|
32
|
+
* react-aria `useMove` events (pointer, touch, and keyboard), so the caller owns
|
|
33
|
+
* where `moveProps` is spread while this owns the geometry. Works with any
|
|
34
|
+
* existing positioning (fixed, absolute, floating-ui) because it only layers a
|
|
35
|
+
* translate delta on top of the element's own rendered position. The transform
|
|
36
|
+
* is written directly to the element per move
|
|
37
|
+
* to avoid a re-render per pixel; React state only tracks `isDragging`.
|
|
38
|
+
*/
|
|
39
|
+
export declare function useDragTransform<T extends HTMLElement>({ ref, edgeOffset, keyboardStep, draggingCursor, onDragEnd, }: UseDragTransformOptions<T>): UseDragTransformResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"useDragTransform",{enumerable:!0,get:function(){return useDragTransform}});const _react=require("react"),_useWindow=require("./useWindow"),clamp=({value,min,max})=>max<min?min:Math.min(Math.max(value,min),max),computeClampedTopLeft=({proposedTopLeft,elementSize,viewportSize,edgeOffset})=>({x:clamp({value:proposedTopLeft.x,min:edgeOffset,max:viewportSize.width-elementSize.width-edgeOffset}),y:clamp({value:proposedTopLeft.y,min:edgeOffset,max:viewportSize.height-elementSize.height-edgeOffset})}),INITIAL_TRANSLATE={x:0,y:0};function useDragTransform({ref,edgeOffset=0,keyboardStep=10,draggingCursor="grabbing",onDragEnd}){let currentWindow=(0,_useWindow.useWindow)(),[isDragging,setIsDragging]=(0,_react.useState)(!1),appliedTranslateRef=(0,_react.useRef)(INITIAL_TRANSLATE),accumulatedDeltaRef=(0,_react.useRef)(INITIAL_TRANSLATE),rectAtDragStartRef=(0,_react.useRef)(null),previousElementCursorRef=(0,_react.useRef)(""),previousElementUserSelectRef=(0,_react.useRef)(""),resolveTranslate=(0,_react.useCallback)(()=>{let rectAtDragStart=rectAtDragStartRef.current;if(!rectAtDragStart||!currentWindow)return appliedTranslateRef.current;let clampedTopLeft=computeClampedTopLeft({proposedTopLeft:{x:rectAtDragStart.left+accumulatedDeltaRef.current.x,y:rectAtDragStart.top+accumulatedDeltaRef.current.y},elementSize:{width:rectAtDragStart.width,height:rectAtDragStart.height},viewportSize:{width:currentWindow.innerWidth,height:currentWindow.innerHeight},edgeOffset});return{x:appliedTranslateRef.current.x+(clampedTopLeft.x-rectAtDragStart.left),y:appliedTranslateRef.current.y+(clampedTopLeft.y-rectAtDragStart.top)}},[currentWindow,edgeOffset]),onMoveStart=(0,_react.useCallback)(()=>{let element=ref.current;element&&(rectAtDragStartRef.current=element.getBoundingClientRect(),accumulatedDeltaRef.current=INITIAL_TRANSLATE,previousElementCursorRef.current=element.style.cursor,previousElementUserSelectRef.current=element.style.userSelect,element.style.cursor=draggingCursor,element.style.userSelect="none",setIsDragging(!0))},[ref,draggingCursor]),onMove=(0,_react.useCallback)(event=>{let element=ref.current;if(!element||!rectAtDragStartRef.current)return;let factor="keyboard"===event.pointerType?keyboardStep:1;accumulatedDeltaRef.current={x:accumulatedDeltaRef.current.x+event.deltaX*factor,y:accumulatedDeltaRef.current.y+event.deltaY*factor};let{x,y}=resolveTranslate();element.style.transform=`translate3d(${x}px, ${y}px, 0)`},[ref,keyboardStep,resolveTranslate]),onMoveEnd=(0,_react.useCallback)(()=>{rectAtDragStartRef.current&&(appliedTranslateRef.current=resolveTranslate()),rectAtDragStartRef.current=null;let element=ref.current;element&&(element.style.cursor=previousElementCursorRef.current,element.style.userSelect=previousElementUserSelectRef.current),setIsDragging(!1),onDragEnd?.(appliedTranslateRef.current)},[ref,resolveTranslate,onDragEnd]);return(0,_react.useEffect)(()=>()=>{let element=ref.current;rectAtDragStartRef.current&&element&&(element.style.cursor=previousElementCursorRef.current,element.style.userSelect=previousElementUserSelectRef.current)},[ref]),(0,_react.useEffect)(()=>{if(!currentWindow)return;let reconcileFrame=0,reconcileTranslateToViewport=()=>{let element=ref.current,applied=appliedTranslateRef.current,isIdle=!rectAtDragStartRef.current,hasOffset=0!==applied.x||0!==applied.y;if(!element||!isIdle||!hasOffset)return;let rect=element.getBoundingClientRect(),clampedTopLeft=computeClampedTopLeft({proposedTopLeft:{x:rect.left,y:rect.top},elementSize:{width:rect.width,height:rect.height},viewportSize:{width:currentWindow.innerWidth,height:currentWindow.innerHeight},edgeOffset}),nextTranslate={x:applied.x+(clampedTopLeft.x-rect.left),y:applied.y+(clampedTopLeft.y-rect.top)};(nextTranslate.x!==applied.x||nextTranslate.y!==applied.y)&&(appliedTranslateRef.current=nextTranslate,element.style.transform=`translate3d(${nextTranslate.x}px, ${nextTranslate.y}px, 0)`)},handleResize=()=>{currentWindow.cancelAnimationFrame(reconcileFrame),reconcileFrame=currentWindow.requestAnimationFrame(reconcileTranslateToViewport)};return currentWindow.addEventListener("resize",handleResize),()=>{currentWindow.cancelAnimationFrame(reconcileFrame),currentWindow.removeEventListener("resize",handleResize)}},[currentWindow,edgeOffset,ref]),{isDragging,onMoveStart,onMove,onMoveEnd}}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"value": "1024px",
|
|
38
38
|
"original": 1024,
|
|
39
39
|
"variableName": "$size-dimension-content-max-width",
|
|
40
|
-
"isUsed":
|
|
40
|
+
"isUsed": false
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"category": "size",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"value": "16px",
|
|
48
48
|
"original": 16,
|
|
49
49
|
"variableName": "$size-dimension-divider-m",
|
|
50
|
-
"isUsed":
|
|
50
|
+
"isUsed": false
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"category": "size",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"value": "24px",
|
|
58
58
|
"original": 24,
|
|
59
59
|
"variableName": "$size-dimension-divider-l",
|
|
60
|
-
"isUsed":
|
|
60
|
+
"isUsed": false
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"category": "size",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"value": "32px",
|
|
68
68
|
"original": 32,
|
|
69
69
|
"variableName": "$size-dimension-divider-xl",
|
|
70
|
-
"isUsed":
|
|
70
|
+
"isUsed": false
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"category": "size",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"value": "16px",
|
|
78
78
|
"original": 16,
|
|
79
79
|
"variableName": "$size-dimension-checkbox-s",
|
|
80
|
-
"isUsed":
|
|
80
|
+
"isUsed": false
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"category": "size",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"value": "24px",
|
|
88
88
|
"original": 24,
|
|
89
89
|
"variableName": "$size-dimension-checkbox-m",
|
|
90
|
-
"isUsed":
|
|
90
|
+
"isUsed": false
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"category": "size",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"value": "16px",
|
|
98
98
|
"original": 16,
|
|
99
99
|
"variableName": "$size-dimension-radio-s",
|
|
100
|
-
"isUsed":
|
|
100
|
+
"isUsed": false
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"category": "size",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"value": "24px",
|
|
108
108
|
"original": 24,
|
|
109
109
|
"variableName": "$size-dimension-radio-m",
|
|
110
|
-
"isUsed":
|
|
110
|
+
"isUsed": false
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"category": "size",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"value": "6px",
|
|
118
118
|
"original": 6,
|
|
119
119
|
"variableName": "$size-dimension-radio-point-s",
|
|
120
|
-
"isUsed":
|
|
120
|
+
"isUsed": false
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"category": "size",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"value": "10px",
|
|
128
128
|
"original": 10,
|
|
129
129
|
"variableName": "$size-dimension-radio-point-m",
|
|
130
|
-
"isUsed":
|
|
130
|
+
"isUsed": false
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"category": "size",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"value": "16px",
|
|
138
138
|
"original": 16,
|
|
139
139
|
"variableName": "$size-dimension-toggle-height-s",
|
|
140
|
-
"isUsed":
|
|
140
|
+
"isUsed": false
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"category": "size",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"value": "24px",
|
|
148
148
|
"original": 24,
|
|
149
149
|
"variableName": "$size-dimension-toggle-height-m",
|
|
150
|
-
"isUsed":
|
|
150
|
+
"isUsed": false
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"category": "size",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"value": "28px",
|
|
158
158
|
"original": 28,
|
|
159
159
|
"variableName": "$size-dimension-toggle-width-s",
|
|
160
|
-
"isUsed":
|
|
160
|
+
"isUsed": false
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"category": "size",
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
"value": "40px",
|
|
168
168
|
"original": 40,
|
|
169
169
|
"variableName": "$size-dimension-toggle-width-m",
|
|
170
|
-
"isUsed":
|
|
170
|
+
"isUsed": false
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
"category": "size",
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"value": "36px",
|
|
178
178
|
"original": 36,
|
|
179
179
|
"variableName": "$size-dimension-textarea-min-height-m",
|
|
180
|
-
"isUsed":
|
|
180
|
+
"isUsed": false
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
"category": "size",
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
"value": "8px",
|
|
188
188
|
"original": 8,
|
|
189
189
|
"variableName": "$size-dimension-toggle-point-s",
|
|
190
|
-
"isUsed":
|
|
190
|
+
"isUsed": false
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
"category": "size",
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
"value": "16px",
|
|
198
198
|
"original": 16,
|
|
199
199
|
"variableName": "$size-dimension-toggle-point-m",
|
|
200
|
-
"isUsed":
|
|
200
|
+
"isUsed": false
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
"category": "size",
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
"value": "32px",
|
|
208
208
|
"original": 32,
|
|
209
209
|
"variableName": "$size-dimension-toggle-button-height-m",
|
|
210
|
-
"isUsed":
|
|
210
|
+
"isUsed": false
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
"category": "size",
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
"value": "120px",
|
|
218
218
|
"original": 120,
|
|
219
219
|
"variableName": "$size-dimension-dropdown-menu-width",
|
|
220
|
-
"isUsed":
|
|
220
|
+
"isUsed": false
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
"category": "size",
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
"value": "560px",
|
|
228
228
|
"original": 560,
|
|
229
229
|
"variableName": "$size-dimension-modal-width-m",
|
|
230
|
-
"isUsed":
|
|
230
|
+
"isUsed": false
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
"category": "size",
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
"value": "720px",
|
|
238
238
|
"original": 720,
|
|
239
239
|
"variableName": "$size-dimension-modal-width-l",
|
|
240
|
-
"isUsed":
|
|
240
|
+
"isUsed": false
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"category": "size",
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
"value": "800px",
|
|
248
248
|
"original": 800,
|
|
249
249
|
"variableName": "$size-dimension-modal-max-height-l",
|
|
250
|
-
"isUsed":
|
|
250
|
+
"isUsed": false
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
"category": "size",
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
"value": "40px",
|
|
258
258
|
"original": 40,
|
|
259
259
|
"variableName": "$size-dimension-modal-margin-l",
|
|
260
|
-
"isUsed":
|
|
260
|
+
"isUsed": false
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
"category": "size",
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
"value": "1280px",
|
|
268
268
|
"original": 1280,
|
|
269
269
|
"variableName": "$size-dimension-modal-full-screen-content-width",
|
|
270
|
-
"isUsed":
|
|
270
|
+
"isUsed": false
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
273
|
"category": "size",
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
"value": "1px",
|
|
278
278
|
"original": 1,
|
|
279
279
|
"variableName": "$size-dimension-media-viewer-bar-separator-width",
|
|
280
|
-
"isUsed":
|
|
280
|
+
"isUsed": false
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
283
|
"category": "size",
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
"value": "12px",
|
|
288
288
|
"original": 12,
|
|
289
289
|
"variableName": "$size-dimension-legend-key-width",
|
|
290
|
-
"isUsed":
|
|
290
|
+
"isUsed": false
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
293
|
"category": "size",
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
"value": "0px",
|
|
298
298
|
"original": 0,
|
|
299
299
|
"variableName": "$size-letter-spacing-none",
|
|
300
|
-
"isUsed":
|
|
300
|
+
"isUsed": false
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
303
|
"category": "size",
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
"value": "0.5px",
|
|
308
308
|
"original": 0.5,
|
|
309
309
|
"variableName": "$size-letter-spacing-s",
|
|
310
|
-
"isUsed":
|
|
310
|
+
"isUsed": false
|
|
311
311
|
},
|
|
312
312
|
{
|
|
313
313
|
"category": "size",
|
|
@@ -317,7 +317,17 @@
|
|
|
317
317
|
"value": "1px",
|
|
318
318
|
"original": 1,
|
|
319
319
|
"variableName": "$size-letter-spacing-m",
|
|
320
|
-
"isUsed":
|
|
320
|
+
"isUsed": false
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"category": "size",
|
|
324
|
+
"type": "font",
|
|
325
|
+
"name": "font xxs",
|
|
326
|
+
"subitemName": "xxs",
|
|
327
|
+
"value": "10px",
|
|
328
|
+
"original": 10,
|
|
329
|
+
"variableName": "$size-font-xxs",
|
|
330
|
+
"isUsed": false
|
|
321
331
|
},
|
|
322
332
|
{
|
|
323
333
|
"category": "size",
|
|
@@ -327,7 +337,7 @@
|
|
|
327
337
|
"value": "12px",
|
|
328
338
|
"original": 12,
|
|
329
339
|
"variableName": "$size-font-xs",
|
|
330
|
-
"isUsed":
|
|
340
|
+
"isUsed": false
|
|
331
341
|
},
|
|
332
342
|
{
|
|
333
343
|
"category": "size",
|
|
@@ -337,7 +347,7 @@
|
|
|
337
347
|
"value": "14px",
|
|
338
348
|
"original": 14,
|
|
339
349
|
"variableName": "$size-font-s",
|
|
340
|
-
"isUsed":
|
|
350
|
+
"isUsed": false
|
|
341
351
|
},
|
|
342
352
|
{
|
|
343
353
|
"category": "size",
|
|
@@ -347,7 +357,7 @@
|
|
|
347
357
|
"value": "16px",
|
|
348
358
|
"original": 16,
|
|
349
359
|
"variableName": "$size-font-m",
|
|
350
|
-
"isUsed":
|
|
360
|
+
"isUsed": false
|
|
351
361
|
},
|
|
352
362
|
{
|
|
353
363
|
"category": "size",
|
|
@@ -357,7 +367,7 @@
|
|
|
357
367
|
"value": "18px",
|
|
358
368
|
"original": 18,
|
|
359
369
|
"variableName": "$size-font-l",
|
|
360
|
-
"isUsed":
|
|
370
|
+
"isUsed": false
|
|
361
371
|
},
|
|
362
372
|
{
|
|
363
373
|
"category": "size",
|
|
@@ -367,7 +377,7 @@
|
|
|
367
377
|
"value": "20px",
|
|
368
378
|
"original": 20,
|
|
369
379
|
"variableName": "$size-font-xl",
|
|
370
|
-
"isUsed":
|
|
380
|
+
"isUsed": false
|
|
371
381
|
},
|
|
372
382
|
{
|
|
373
383
|
"category": "size",
|
|
@@ -377,7 +387,7 @@
|
|
|
377
387
|
"value": "24px",
|
|
378
388
|
"original": 24,
|
|
379
389
|
"variableName": "$size-font-xxl",
|
|
380
|
-
"isUsed":
|
|
390
|
+
"isUsed": false
|
|
381
391
|
},
|
|
382
392
|
{
|
|
383
393
|
"category": "size",
|
|
@@ -387,7 +397,7 @@
|
|
|
387
397
|
"value": "26px",
|
|
388
398
|
"original": 26,
|
|
389
399
|
"variableName": "$size-font-xxxl",
|
|
390
|
-
"isUsed":
|
|
400
|
+
"isUsed": false
|
|
391
401
|
},
|
|
392
402
|
{
|
|
393
403
|
"category": "size",
|
|
@@ -407,7 +417,7 @@
|
|
|
407
417
|
"value": "2px",
|
|
408
418
|
"original": 2,
|
|
409
419
|
"variableName": "$size-spacing-xxxs",
|
|
410
|
-
"isUsed":
|
|
420
|
+
"isUsed": false
|
|
411
421
|
},
|
|
412
422
|
{
|
|
413
423
|
"category": "size",
|
|
@@ -487,7 +497,7 @@
|
|
|
487
497
|
"value": "0px",
|
|
488
498
|
"original": 0,
|
|
489
499
|
"variableName": "$size-border-radius-none",
|
|
490
|
-
"isUsed":
|
|
500
|
+
"isUsed": false
|
|
491
501
|
},
|
|
492
502
|
{
|
|
493
503
|
"category": "size",
|
|
@@ -497,7 +507,7 @@
|
|
|
497
507
|
"value": "4px",
|
|
498
508
|
"original": 4,
|
|
499
509
|
"variableName": "$size-border-radius-xs",
|
|
500
|
-
"isUsed":
|
|
510
|
+
"isUsed": false
|
|
501
511
|
},
|
|
502
512
|
{
|
|
503
513
|
"category": "size",
|
|
@@ -507,7 +517,7 @@
|
|
|
507
517
|
"value": "8px",
|
|
508
518
|
"original": 8,
|
|
509
519
|
"variableName": "$size-border-radius-s",
|
|
510
|
-
"isUsed":
|
|
520
|
+
"isUsed": false
|
|
511
521
|
},
|
|
512
522
|
{
|
|
513
523
|
"category": "size",
|
|
@@ -517,7 +527,7 @@
|
|
|
517
527
|
"value": "12px",
|
|
518
528
|
"original": 12,
|
|
519
529
|
"variableName": "$size-border-radius-m",
|
|
520
|
-
"isUsed":
|
|
530
|
+
"isUsed": false
|
|
521
531
|
},
|
|
522
532
|
{
|
|
523
533
|
"category": "size",
|
|
@@ -527,7 +537,7 @@
|
|
|
527
537
|
"value": "16px",
|
|
528
538
|
"original": 16,
|
|
529
539
|
"variableName": "$size-border-radius-l",
|
|
530
|
-
"isUsed":
|
|
540
|
+
"isUsed": false
|
|
531
541
|
},
|
|
532
542
|
{
|
|
533
543
|
"category": "size",
|
|
@@ -537,7 +547,7 @@
|
|
|
537
547
|
"value": "24px",
|
|
538
548
|
"original": 24,
|
|
539
549
|
"variableName": "$size-border-radius-xl",
|
|
540
|
-
"isUsed":
|
|
550
|
+
"isUsed": false
|
|
541
551
|
},
|
|
542
552
|
{
|
|
543
553
|
"category": "size",
|
|
@@ -547,7 +557,7 @@
|
|
|
547
557
|
"value": "9999px",
|
|
548
558
|
"original": 9999,
|
|
549
559
|
"variableName": "$size-border-radius-full",
|
|
550
|
-
"isUsed":
|
|
560
|
+
"isUsed": false
|
|
551
561
|
},
|
|
552
562
|
{
|
|
553
563
|
"category": "size",
|
|
@@ -557,7 +567,7 @@
|
|
|
557
567
|
"value": 1.1428571429,
|
|
558
568
|
"original": 1.1428571429,
|
|
559
569
|
"variableName": "$size-line-height-xs",
|
|
560
|
-
"isUsed":
|
|
570
|
+
"isUsed": false
|
|
561
571
|
},
|
|
562
572
|
{
|
|
563
573
|
"category": "size",
|
|
@@ -567,7 +577,7 @@
|
|
|
567
577
|
"value": 1.25,
|
|
568
578
|
"original": 1.25,
|
|
569
579
|
"variableName": "$size-line-height-s",
|
|
570
|
-
"isUsed":
|
|
580
|
+
"isUsed": false
|
|
571
581
|
},
|
|
572
582
|
{
|
|
573
583
|
"category": "size",
|
|
@@ -577,7 +587,7 @@
|
|
|
577
587
|
"value": 1.3333333,
|
|
578
588
|
"original": 1.3333333,
|
|
579
589
|
"variableName": "$size-line-height-m",
|
|
580
|
-
"isUsed":
|
|
590
|
+
"isUsed": false
|
|
581
591
|
},
|
|
582
592
|
{
|
|
583
593
|
"category": "size",
|
|
@@ -587,7 +597,7 @@
|
|
|
587
597
|
"value": 1.4285714286,
|
|
588
598
|
"original": 1.4285714286,
|
|
589
599
|
"variableName": "$size-line-height-l",
|
|
590
|
-
"isUsed":
|
|
600
|
+
"isUsed": false
|
|
591
601
|
},
|
|
592
602
|
{
|
|
593
603
|
"category": "size",
|
|
@@ -597,7 +607,7 @@
|
|
|
597
607
|
"value": 1.5,
|
|
598
608
|
"original": 1.5,
|
|
599
609
|
"variableName": "$size-line-height-xl",
|
|
600
|
-
"isUsed":
|
|
610
|
+
"isUsed": false
|
|
601
611
|
},
|
|
602
612
|
{
|
|
603
613
|
"category": "size",
|
|
@@ -607,7 +617,7 @@
|
|
|
607
617
|
"value": 1.625,
|
|
608
618
|
"original": 1.625,
|
|
609
619
|
"variableName": "$size-line-height-xxl",
|
|
610
|
-
"isUsed":
|
|
620
|
+
"isUsed": false
|
|
611
621
|
},
|
|
612
622
|
{
|
|
613
623
|
"category": "size",
|
|
@@ -617,6 +627,6 @@
|
|
|
617
627
|
"value": 1.714286,
|
|
618
628
|
"original": 1.714286,
|
|
619
629
|
"variableName": "$size-line-height-xxxl",
|
|
620
|
-
"isUsed":
|
|
630
|
+
"isUsed": false
|
|
621
631
|
}
|
|
622
632
|
]
|
|
@@ -2,6 +2,8 @@ export declare const LAYOUT_VARS: {
|
|
|
2
2
|
readonly contentWidth: "--ds-layout-content-width";
|
|
3
3
|
readonly rightPanelWidth: "--ds-layout-rightPanel-width";
|
|
4
4
|
readonly subnavOffset: "--ds-layout-subnav-offset";
|
|
5
|
+
readonly floatWidth: "--ds-layout-float-width";
|
|
6
|
+
readonly floatHeight: "--ds-layout-float-height";
|
|
5
7
|
};
|
|
6
8
|
export type LayoutVarKey = keyof typeof LAYOUT_VARS;
|
|
7
9
|
export type LayoutVarName = (typeof LAYOUT_VARS)[LayoutVarKey];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"LAYOUT_VARS",{enumerable:!0,get:function(){return LAYOUT_VARS}});const LAYOUT_VARS={contentWidth:"--ds-layout-content-width",rightPanelWidth:"--ds-layout-rightPanel-width",subnavOffset:"--ds-layout-subnav-offset"};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"LAYOUT_VARS",{enumerable:!0,get:function(){return LAYOUT_VARS}});const LAYOUT_VARS={contentWidth:"--ds-layout-content-width",rightPanelWidth:"--ds-layout-rightPanel-width",subnavOffset:"--ds-layout-subnav-offset",floatWidth:"--ds-layout-float-width",floatHeight:"--ds-layout-float-height"};
|
|
@@ -5,6 +5,8 @@ export const LAYOUT_VARS = {
|
|
|
5
5
|
contentWidth: "--ds-layout-content-width",
|
|
6
6
|
rightPanelWidth: "--ds-layout-rightPanel-width",
|
|
7
7
|
subnavOffset: "--ds-layout-subnav-offset",
|
|
8
|
+
floatWidth: "--ds-layout-float-width",
|
|
9
|
+
floatHeight: "--ds-layout-float-height",
|
|
8
10
|
} as const;
|
|
9
11
|
|
|
10
12
|
export type LayoutVarKey = keyof typeof LAYOUT_VARS;
|
|
@@ -81,6 +81,7 @@ type Variables = {
|
|
|
81
81
|
"m": string;
|
|
82
82
|
};
|
|
83
83
|
"font": {
|
|
84
|
+
"xxs": string;
|
|
84
85
|
"xs": string;
|
|
85
86
|
"s": string;
|
|
86
87
|
"m": string;
|
|
@@ -213,6 +214,14 @@ type Variables = {
|
|
|
213
214
|
"default": string;
|
|
214
215
|
};
|
|
215
216
|
};
|
|
217
|
+
"float": {
|
|
218
|
+
"width": {
|
|
219
|
+
"default": string;
|
|
220
|
+
};
|
|
221
|
+
"height": {
|
|
222
|
+
"default": string;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
216
225
|
};
|
|
217
226
|
"opacity": {
|
|
218
227
|
"hidden": number;
|