@amboss/design-system 4.6.6-canary.0 → 4.6.6
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/Internal/PanelHeader/PanelHeader.d.ts +1 -4
- package/build/cjs/components/Internal/PanelHeader/PanelHeader.js +1 -1
- package/build/cjs/components/Internal/Sandwich/-types.d.ts +0 -5
- package/build/cjs/components/Internal/Sandwich/Sandwich.d.ts +1 -1
- package/build/cjs/components/Internal/Sandwich/Sandwich.js +1 -1
- package/build/cjs/components/Layout/-types.d.ts +7 -52
- package/build/cjs/components/Layout/Layout.d.ts +0 -4
- package/build/cjs/components/Layout/Layout.js +1 -1
- package/build/cjs/components/Layout/LeftPanel/LeftPanel.js +1 -1
- package/build/cjs/components/Layout/LeftPanel/LeftPanelDocked.d.ts +5 -15
- package/build/cjs/components/Layout/LeftPanel/LeftPanelDocked.js +1 -1
- package/build/cjs/components/Layout/LeftPanel/LeftPanelDrawer.js +1 -1
- package/build/cjs/components/Layout/LeftPanel/LeftPanelFooter.js +1 -1
- package/build/cjs/components/Layout/LeftPanel/LeftPanelHeader.js +1 -1
- package/build/cjs/components/Layout/PanelSlideBody.d.ts +18 -0
- package/build/cjs/components/Layout/PanelSlideBody.js +1 -0
- package/build/cjs/components/Layout/rules.js +1 -1
- package/build/cjs/components/Layout/useLayoutRules.js +1 -1
- package/build/cjs/components/Layout/usePanelDockedSlide.d.ts +5 -10
- package/build/cjs/components/Layout/usePanelDockedSlide.js +1 -1
- package/build/cjs/shared/mixins/index.d.ts +0 -1
- package/build/cjs/shared/mixins/index.js +1 -1
- package/build/cjs/web-tokens/_sizes.json +54 -64
- package/build/cjs/web-tokens/visualConfig.d.ts +0 -7
- package/build/cjs/web-tokens/visualConfig.js +1 -1
- package/build/esm/components/Internal/PanelHeader/PanelHeader.d.ts +1 -4
- package/build/esm/components/Internal/PanelHeader/PanelHeader.js +1 -1
- package/build/esm/components/Internal/Sandwich/-types.d.ts +0 -5
- package/build/esm/components/Internal/Sandwich/Sandwich.d.ts +1 -1
- package/build/esm/components/Internal/Sandwich/Sandwich.js +1 -1
- package/build/esm/components/Layout/-types.d.ts +7 -52
- package/build/esm/components/Layout/Layout.d.ts +0 -4
- package/build/esm/components/Layout/Layout.js +1 -1
- package/build/esm/components/Layout/LeftPanel/LeftPanel.js +1 -1
- package/build/esm/components/Layout/LeftPanel/LeftPanelDocked.d.ts +5 -15
- package/build/esm/components/Layout/LeftPanel/LeftPanelDocked.js +1 -1
- package/build/esm/components/Layout/LeftPanel/LeftPanelDrawer.js +1 -1
- package/build/esm/components/Layout/LeftPanel/LeftPanelFooter.js +1 -1
- package/build/esm/components/Layout/LeftPanel/LeftPanelHeader.js +1 -1
- package/build/esm/components/Layout/PanelSlideBody.d.ts +18 -0
- package/build/esm/components/Layout/PanelSlideBody.js +1 -0
- package/build/esm/components/Layout/rules.js +1 -1
- package/build/esm/components/Layout/useLayoutRules.js +1 -1
- package/build/esm/components/Layout/usePanelDockedSlide.d.ts +5 -10
- package/build/esm/components/Layout/usePanelDockedSlide.js +1 -1
- package/build/esm/shared/mixins/index.d.ts +0 -1
- package/build/esm/shared/mixins/index.js +1 -1
- package/build/esm/web-tokens/_sizes.json +54 -64
- package/build/esm/web-tokens/visualConfig.d.ts +0 -7
- package/build/esm/web-tokens/visualConfig.js +1 -1
- package/build/scss/_variables.scss +0 -3
- package/package.json +5 -3
- package/build/cjs/components/Layout/LeftNavBar/LeftNavBar.d.ts +0 -17
- package/build/cjs/components/Layout/LeftNavBar/LeftNavBar.js +0 -1
- package/build/cjs/components/Layout/LeftNavBar/LeftNavBarFooter.d.ts +0 -7
- package/build/cjs/components/Layout/LeftNavBar/LeftNavBarFooter.js +0 -1
- package/build/cjs/components/Layout/LeftPanel/LeftBarLayers.d.ts +0 -36
- package/build/cjs/components/Layout/LeftPanel/LeftBarLayers.js +0 -1
- package/build/cjs/components/Layout/LeftPanel/LeftBarToggle.d.ts +0 -15
- package/build/cjs/components/Layout/LeftPanel/LeftBarToggle.js +0 -1
- package/build/cjs/components/Layout/LeftPanel/LeftPanelOffcanvas.d.ts +0 -29
- package/build/cjs/components/Layout/LeftPanel/LeftPanelOffcanvas.js +0 -1
- package/build/cjs/components/Layout/LeftPanel/useLeftBarContext.d.ts +0 -11
- package/build/cjs/components/Layout/LeftPanel/useLeftBarContext.js +0 -1
- package/build/cjs/components/Layout/LeftPanel/useLeftPanelCollapseContext.d.ts +0 -11
- package/build/cjs/components/Layout/LeftPanel/useLeftPanelCollapseContext.js +0 -1
- package/build/cjs/components/Layout/useLeftPanelId.d.ts +0 -6
- package/build/cjs/components/Layout/useLeftPanelId.js +0 -1
- package/build/cjs/shared/mixins/getLeftPanelFadeStyles.d.ts +0 -19
- package/build/cjs/shared/mixins/getLeftPanelFadeStyles.js +0 -1
- package/build/esm/components/Layout/LeftNavBar/LeftNavBar.d.ts +0 -17
- package/build/esm/components/Layout/LeftNavBar/LeftNavBar.js +0 -1
- package/build/esm/components/Layout/LeftNavBar/LeftNavBarFooter.d.ts +0 -7
- package/build/esm/components/Layout/LeftNavBar/LeftNavBarFooter.js +0 -1
- package/build/esm/components/Layout/LeftPanel/LeftBarLayers.d.ts +0 -36
- package/build/esm/components/Layout/LeftPanel/LeftBarLayers.js +0 -1
- package/build/esm/components/Layout/LeftPanel/LeftBarToggle.d.ts +0 -15
- package/build/esm/components/Layout/LeftPanel/LeftBarToggle.js +0 -1
- package/build/esm/components/Layout/LeftPanel/LeftPanelOffcanvas.d.ts +0 -29
- package/build/esm/components/Layout/LeftPanel/LeftPanelOffcanvas.js +0 -1
- package/build/esm/components/Layout/LeftPanel/useLeftBarContext.d.ts +0 -11
- package/build/esm/components/Layout/LeftPanel/useLeftBarContext.js +0 -1
- package/build/esm/components/Layout/LeftPanel/useLeftPanelCollapseContext.d.ts +0 -11
- package/build/esm/components/Layout/LeftPanel/useLeftPanelCollapseContext.js +0 -1
- package/build/esm/components/Layout/useLeftPanelId.d.ts +0 -6
- package/build/esm/components/Layout/useLeftPanelId.js +0 -1
- package/build/esm/shared/mixins/getLeftPanelFadeStyles.d.ts +0 -19
- package/build/esm/shared/mixins/getLeftPanelFadeStyles.js +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/** Edge the body is pinned to while the column slides - the panel's docked
|
|
3
|
+
* edge (`right` for the left panel, `left` for the right panel). */
|
|
4
|
+
export type PanelSlideAnchor = "left" | "right";
|
|
5
|
+
export type PanelSlideBodyProps = {
|
|
6
|
+
/** Body width (px) while sliding; `null` at rest (fills the column). Comes
|
|
7
|
+
* from {@link usePanelDockedSlide}. */
|
|
8
|
+
pinnedWidth: number | null;
|
|
9
|
+
/** The edge the panel docks against. */
|
|
10
|
+
anchor: PanelSlideAnchor;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The clipped, edge-anchored body a docked side panel's content lives in so
|
|
15
|
+
* its open/close width animation reads as a drawer slide. Pair with
|
|
16
|
+
* {@link usePanelDockedSlide}, which supplies `pinnedWidth`.
|
|
17
|
+
*/
|
|
18
|
+
export declare const PanelSlideBody: React.FC<PanelSlideBodyProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import React from"react";import styled from"@emotion/styled";import{PAGE_BOTTOM_BAR_INSET}from"./-constants";let StyledPanelSlideClip=styled("div",{target:"e1mhh3wi0",label:"StyledPanelSlideClip"})({position:"relative",width:"100%",height:`calc(100% - ${PAGE_BOTTOM_BAR_INSET})`,overflow:"hidden"}),StyledPanelSlideBody=styled("div",{shouldForwardProp:prop=>"pinnedWidth"!==prop&&"anchor"!==prop,target:"e1mhh3wi1",label:"StyledPanelSlideBody"})(({pinnedWidth,anchor})=>({width:"100%",height:"100%",...null!=pinnedWidth&&{position:"absolute",top:0,[anchor]:0,width:`${pinnedWidth}px`}}));export const PanelSlideBody=({pinnedWidth,anchor,children})=>React.createElement(StyledPanelSlideClip,null,React.createElement(StyledPanelSlideBody,{pinnedWidth:pinnedWidth,anchor:anchor},children));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export const DEFAULT_LAYOUT_RULES={maxDockedPanels:{xs:1,m:2,l:3},rightPanel:{priority:1,condition:({isLowPrio,isMobile,layout})=>{isLowPrio&&!isMobile&&layout.rightPanel.setVariant("float")}},splitview:{priority:2,condition:({isLowPrio,isMobile,layout})=>{isLowPrio&&!isMobile&&layout.splitview.hide()}},leftPanel:{priority:3,condition:({isLowPrio,isMobile,layout})=>{let variant=isMobile||isLowPrio?"drawer":"sidebar";variant!==layout.leftPanel.state.variant&&(layout.leftPanel.setVariant(variant),"drawer"!==variant||isMobile||layout.leftPanel.hide())}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useEffect,useRef}from"react";import{useBreakpoints}from"../../shared/useBreakpoints";import{PANEL_ORDER,Slot,TOGGLABLE_SLOTS}from"./-constants";let DEFAULT_PRIORITY={[Slot.rightPanel]:1,[Slot.splitview]:2,[Slot.leftPanel]:3},maxDockedFor=(maxDockedPanels,breakpoints)=>{let{xs,m=xs,l=m}=maxDockedPanels;return breakpoints.isMobile?xs:breakpoints.isTablet?m:l},isDockedPanel=({state,declared,slot})=>!!declared[slot]&&!!state[slot].visible&&(slot===Slot.rightPanel?"float"!==state.rightPanel.variant:slot!==Slot.leftPanel||"
|
|
1
|
+
import{useEffect,useRef}from"react";import{useBreakpoints}from"../../shared/useBreakpoints";import{PANEL_ORDER,Slot,TOGGLABLE_SLOTS}from"./-constants";let DEFAULT_PRIORITY={[Slot.rightPanel]:1,[Slot.splitview]:2,[Slot.leftPanel]:3},maxDockedFor=(maxDockedPanels,breakpoints)=>{let{xs,m=xs,l=m}=maxDockedPanels;return breakpoints.isMobile?xs:breakpoints.isTablet?m:l},isDockedPanel=({state,declared,slot})=>!!declared[slot]&&!!state[slot].visible&&(slot===Slot.rightPanel?"float"!==state.rightPanel.variant:slot!==Slot.leftPanel||"drawer"!==state.leftPanel.variant),resolveLowPrioSlots=({rules,state,declared,breakpoints})=>{let freeSlots=Math.max(0,maxDockedFor(rules.maxDockedPanels,breakpoints)-1),priorityFor=slot=>rules[slot]?.priority??DEFAULT_PRIORITY[slot],outranks=(slot,other)=>{let byPriority=priorityFor(slot)-priorityFor(other);return 0!==byPriority?byPriority<0:PANEL_ORDER.indexOf(slot)<PANEL_ORDER.indexOf(other)},countStrongerDocked=slot=>TOGGLABLE_SLOTS.filter(other=>other!==slot&&isDockedPanel({state,declared,slot:other})&&outranks(other,slot)).length;return TOGGLABLE_SLOTS.filter(slot=>countStrongerDocked(slot)>=freeSlots)};export function useLayoutRules({layout,declared,rules,additionalData}){let layoutRef=useRef(layout);layoutRef.current=layout;let{isMobile,isTablet,isDesktop}=useBreakpoints(),{state}=layout;useEffect(()=>{if(!rules)return;let lowPrioSlots=resolveLowPrioSlots({rules,state,declared,breakpoints:{isMobile,isTablet,isDesktop}});TOGGLABLE_SLOTS.forEach(slot=>{let condition=rules[slot]?.condition;condition&&condition({...additionalData,isLowPrio:lowPrioSlots.includes(slot),isMobile,isTablet,isDesktop,layout:layoutRef.current})})},[rules,additionalData,state,declared,isMobile,isTablet,isDesktop])}
|
|
@@ -14,12 +14,6 @@ export type PanelDockedSlideOptions = {
|
|
|
14
14
|
/** Forwarded to the declaration: lock the column's width when the window
|
|
15
15
|
* resizes. Doesn't affect the slide, which resizes the column outright. */
|
|
16
16
|
lockWidthOnWindowResize?: boolean;
|
|
17
|
-
/** Width the column rests at while hidden, instead of collapsing to nothing.
|
|
18
|
-
* Set it and the column never unmounts: closing narrows it to this, opening
|
|
19
|
-
* widens it back, so one box carries both states (a nav left bar that widens
|
|
20
|
-
* into the panel). The column stops being collapsible - there is no zero to
|
|
21
|
-
* collapse to - and this becomes its `minSize` while it is hidden. */
|
|
22
|
-
collapsedSize?: Size;
|
|
23
17
|
};
|
|
24
18
|
export type PanelDockedSlide = {
|
|
25
19
|
/** Whether the panel's content should render at all (entering, open, or
|
|
@@ -32,9 +26,10 @@ export type PanelDockedSlide = {
|
|
|
32
26
|
/**
|
|
33
27
|
* Animates a docked side panel's open/close as a width slide on its
|
|
34
28
|
* `react-resizable-panels` column, pushing neighbouring content smoothly
|
|
35
|
-
* instead of snapping. Slot-generic - works for either side panel
|
|
36
|
-
*
|
|
37
|
-
*
|
|
29
|
+
* instead of snapping. Slot-generic - works for either side panel; render the
|
|
30
|
+
* returned state with {@link PanelSlideBody}. Falls back to an instant
|
|
31
|
+
* open/close when the panel isn't collapsible, no handle is available, or
|
|
32
|
+
* reduced motion is requested. The mobile modal-drawer lifecycle lives in
|
|
38
33
|
* {@link useExitAnimation} and the Drawer's styled components.
|
|
39
34
|
*/
|
|
40
|
-
export declare function usePanelDockedSlide({ slot, defaultSize, minSize, maxSize, collapsible, resizable, lockWidthOnWindowResize,
|
|
35
|
+
export declare function usePanelDockedSlide({ slot, defaultSize, minSize, maxSize, collapsible, resizable, lockWidthOnWindowResize, }: PanelDockedSlideOptions): PanelDockedSlide;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useLayoutEffect,useState}from"react";import{useTheme}from"@emotion/react";import{useWindow}from"../../shared/useWindow";import{prefersReducedMotion}from"../../shared/prefersReducedMotion";import{useDeclarePanel,usePanelAnimationControl,usePanelPresence}from"./registry";import{useLayout}from"./useLayout";let parseDurationMs=duration=>{let trimmed=duration.trim();return trimmed.endsWith("ms")?parseFloat(trimmed):trimmed.endsWith("s")?1e3*parseFloat(trimmed):parseFloat(trimmed)||0},resolveSizePx=(size,groupWidthPx)=>{if("number"==typeof size)return size;if("string"!=typeof size)return null;let parsed=parseFloat(size);return Number.isFinite(parsed)?size.trim().endsWith("px")?parsed:null!=groupWidthPx?parsed/100*groupWidthPx:null:null},groupColumnsOf=element=>{let columns=element.closest("[data-group]")?.querySelectorAll("[data-panel]");return columns?Array.from(columns):[element]},isHandleReady=handle=>{try{return handle.isCollapsed(),!0}catch{return!1}}
|
|
1
|
+
import{useLayoutEffect,useState}from"react";import{useTheme}from"@emotion/react";import{useWindow}from"../../shared/useWindow";import{prefersReducedMotion}from"../../shared/prefersReducedMotion";import{useDeclarePanel,usePanelAnimationControl,usePanelPresence}from"./registry";import{useLayout}from"./useLayout";let parseDurationMs=duration=>{let trimmed=duration.trim();return trimmed.endsWith("ms")?parseFloat(trimmed):trimmed.endsWith("s")?1e3*parseFloat(trimmed):parseFloat(trimmed)||0},resolveSizePx=(size,groupWidthPx)=>{if("number"==typeof size)return size;if("string"!=typeof size)return null;let parsed=parseFloat(size);return Number.isFinite(parsed)?size.trim().endsWith("px")?parsed:null!=groupWidthPx?parsed/100*groupWidthPx:null:null},groupColumnsOf=element=>{let columns=element.closest("[data-group]")?.querySelectorAll("[data-panel]");return columns?Array.from(columns):[element]},isHandleReady=handle=>{try{return handle.isCollapsed(),!0}catch{return!1}};export function usePanelDockedSlide({slot,defaultSize,minSize,maxSize,collapsible,resizable,lockWidthOnWindowResize}){let{isVisible,state}=useLayout()[slot],theme=useTheme(),window=useWindow(),animation=usePanelAnimationControl(),reducedMotion=prefersReducedMotion(window),[isMounted,setIsMounted]=useState(isVisible),[phase,setPhase]=useState("idle"),[pinnedWidth,setPinnedWidth]=useState(null),[prevVisible,setPrevVisible]=useState(isVisible);return isVisible!==prevVisible&&(setPrevVisible(isVisible),setPhase(isVisible?"entering":"exiting"),isVisible&&setIsMounted(!0)),useDeclarePanel(slot,{defaultSize:"entering"===phase&&collapsible&&!reducedMotion?0:defaultSize,minSize,maxSize,collapsible,resizable,lockWidthOnWindowResize}),usePanelPresence(slot,isMounted),useLayoutEffect(()=>{if("idle"===phase)return;let cancelled=!1,frame=0,settleTimer=0,animatedColumns=[];animation?.setResizeSuppressed(slot,!0);let{duration,timingFunction}=theme.variables.animation.navSlide.open,durationMs=parseDurationMs(duration),setColumnTransitions=enabled=>{animatedColumns.forEach(column=>{enabled?column.style.setProperty("transition",`flex-grow ${duration} ${timingFunction}`):column.style.removeProperty("transition")})},targetSize=state.size??defaultSize??minSize,openColumn=(handle,targetPx)=>{handle.isCollapsed()&&handle.expand(),handle.resize(targetPx??targetSize??minSize??"20%")},settle=handle=>{if(setColumnTransitions(!1),animation?.setResizeSuppressed(slot,!1),"entering"===phase&&handle)try{handle.getSize().inPixels<1&&openColumn(handle,null)}catch{}setPinnedWidth(null),"exiting"===phase&&setIsMounted(!1),setPhase("idle")},runSlide=(handle,element)=>{animatedColumns=groupColumnsOf(element);let targetPx=resolveSizePx(targetSize,element.closest("[data-group]")?.getBoundingClientRect().width??null);setPinnedWidth("entering"===phase?targetPx:handle.getSize().inPixels),setColumnTransitions(!0),element.getBoundingClientRect();try{"entering"===phase?openColumn(handle,targetPx):handle.collapse()}catch{settle(handle);return}settleTimer=window.setTimeout(()=>settle(handle),durationMs+80)},waitForColumn=attempt=>{if(cancelled)return;let handle=animation?.getHandle(slot)??null,element=animation?.getElement(slot)??null;return handle&&element&&isHandleReady(handle)?void runSlide(handle,element):"exiting"===phase||!animation||attempt>=30?void settle(handle):void(frame=window.requestAnimationFrame(()=>waitForColumn(attempt+1)))};return!collapsible||reducedMotion?settle(animation?.getHandle(slot)??null):waitForColumn(0),()=>{cancelled=!0,window.cancelAnimationFrame(frame),window.clearTimeout(settleTimer),setColumnTransitions(!1),animation?.setResizeSuppressed(slot,!1)}},[phase,slot,collapsible,animation,window,theme]),{isMounted,pinnedWidth}}
|
|
@@ -6,5 +6,4 @@ export { getBaseButtonStyles } from "./Button/getBaseButtonStyles";
|
|
|
6
6
|
export { getPressedStyles } from "./Button/getPressedStyles";
|
|
7
7
|
export { getPillStyles } from "./Button/getPillStyles";
|
|
8
8
|
export { getFocusStyles } from "./getFocusStyles";
|
|
9
|
-
export { getLeftPanelFadeStyles } from "./getLeftPanelFadeStyles";
|
|
10
9
|
export { getPrimaryVariantStyles, getSecondaryVariantStyles, getTertiaryVariantStyles, } from "./Button/getVariantStyles";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{getInputTextPlaceholder}from"./TextInput/getInputTextPlaceholder";export{getInputTextStyles}from"./TextInput/getInputTextStyles";export{getDisabledStyles}from"./Button/getDisabledStyles";export{getButtonAppearanceReset}from"./Button/getButtonAppearanceReset";export{getBaseButtonStyles}from"./Button/getBaseButtonStyles";export{getPressedStyles}from"./Button/getPressedStyles";export{getPillStyles}from"./Button/getPillStyles";export{getFocusStyles}from"./getFocusStyles";export{
|
|
1
|
+
export{getInputTextPlaceholder}from"./TextInput/getInputTextPlaceholder";export{getInputTextStyles}from"./TextInput/getInputTextStyles";export{getDisabledStyles}from"./Button/getDisabledStyles";export{getButtonAppearanceReset}from"./Button/getButtonAppearanceReset";export{getBaseButtonStyles}from"./Button/getBaseButtonStyles";export{getPressedStyles}from"./Button/getPressedStyles";export{getPillStyles}from"./Button/getPillStyles";export{getFocusStyles}from"./getFocusStyles";export{getPrimaryVariantStyles,getSecondaryVariantStyles,getTertiaryVariantStyles}from"./Button/getVariantStyles";
|
|
@@ -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-kbd-min-width",
|
|
100
|
-
"isUsed":
|
|
100
|
+
"isUsed": false
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"category": "size",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"value": "16px",
|
|
108
108
|
"original": 16,
|
|
109
109
|
"variableName": "$size-dimension-radio-s",
|
|
110
|
-
"isUsed":
|
|
110
|
+
"isUsed": false
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"category": "size",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"value": "24px",
|
|
118
118
|
"original": 24,
|
|
119
119
|
"variableName": "$size-dimension-radio-m",
|
|
120
|
-
"isUsed":
|
|
120
|
+
"isUsed": false
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"category": "size",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"value": "6px",
|
|
128
128
|
"original": 6,
|
|
129
129
|
"variableName": "$size-dimension-radio-point-s",
|
|
130
|
-
"isUsed":
|
|
130
|
+
"isUsed": false
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"category": "size",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"value": "10px",
|
|
138
138
|
"original": 10,
|
|
139
139
|
"variableName": "$size-dimension-radio-point-m",
|
|
140
|
-
"isUsed":
|
|
140
|
+
"isUsed": false
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"category": "size",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"value": "16px",
|
|
148
148
|
"original": 16,
|
|
149
149
|
"variableName": "$size-dimension-toggle-height-s",
|
|
150
|
-
"isUsed":
|
|
150
|
+
"isUsed": false
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"category": "size",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"value": "24px",
|
|
158
158
|
"original": 24,
|
|
159
159
|
"variableName": "$size-dimension-toggle-height-m",
|
|
160
|
-
"isUsed":
|
|
160
|
+
"isUsed": false
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"category": "size",
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
"value": "28px",
|
|
168
168
|
"original": 28,
|
|
169
169
|
"variableName": "$size-dimension-toggle-width-s",
|
|
170
|
-
"isUsed":
|
|
170
|
+
"isUsed": false
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
"category": "size",
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"value": "40px",
|
|
178
178
|
"original": 40,
|
|
179
179
|
"variableName": "$size-dimension-toggle-width-m",
|
|
180
|
-
"isUsed":
|
|
180
|
+
"isUsed": false
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
"category": "size",
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
"value": "36px",
|
|
188
188
|
"original": 36,
|
|
189
189
|
"variableName": "$size-dimension-textarea-min-height-m",
|
|
190
|
-
"isUsed":
|
|
190
|
+
"isUsed": false
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
"category": "size",
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
"value": "8px",
|
|
198
198
|
"original": 8,
|
|
199
199
|
"variableName": "$size-dimension-toggle-point-s",
|
|
200
|
-
"isUsed":
|
|
200
|
+
"isUsed": false
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
"category": "size",
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
"value": "16px",
|
|
208
208
|
"original": 16,
|
|
209
209
|
"variableName": "$size-dimension-toggle-point-m",
|
|
210
|
-
"isUsed":
|
|
210
|
+
"isUsed": false
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
"category": "size",
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
"value": "32px",
|
|
218
218
|
"original": 32,
|
|
219
219
|
"variableName": "$size-dimension-toggle-button-height-m",
|
|
220
|
-
"isUsed":
|
|
220
|
+
"isUsed": false
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
"category": "size",
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
"value": "120px",
|
|
228
228
|
"original": 120,
|
|
229
229
|
"variableName": "$size-dimension-dropdown-menu-width",
|
|
230
|
-
"isUsed":
|
|
230
|
+
"isUsed": false
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
"category": "size",
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
"value": "320px",
|
|
238
238
|
"original": 320,
|
|
239
239
|
"variableName": "$size-dimension-prompt-button-group-popover-min-width",
|
|
240
|
-
"isUsed":
|
|
240
|
+
"isUsed": false
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"category": "size",
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
"value": "560px",
|
|
248
248
|
"original": 560,
|
|
249
249
|
"variableName": "$size-dimension-modal-width-m",
|
|
250
|
-
"isUsed":
|
|
250
|
+
"isUsed": false
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
"category": "size",
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
"value": "720px",
|
|
258
258
|
"original": 720,
|
|
259
259
|
"variableName": "$size-dimension-modal-width-l",
|
|
260
|
-
"isUsed":
|
|
260
|
+
"isUsed": false
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
"category": "size",
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
"value": "800px",
|
|
268
268
|
"original": 800,
|
|
269
269
|
"variableName": "$size-dimension-modal-max-height-l",
|
|
270
|
-
"isUsed":
|
|
270
|
+
"isUsed": false
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
273
|
"category": "size",
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
"value": "40px",
|
|
278
278
|
"original": 40,
|
|
279
279
|
"variableName": "$size-dimension-modal-margin-l",
|
|
280
|
-
"isUsed":
|
|
280
|
+
"isUsed": false
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
283
|
"category": "size",
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
"value": "1280px",
|
|
288
288
|
"original": 1280,
|
|
289
289
|
"variableName": "$size-dimension-modal-full-screen-content-width",
|
|
290
|
-
"isUsed":
|
|
290
|
+
"isUsed": false
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
293
|
"category": "size",
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
"value": "1px",
|
|
298
298
|
"original": 1,
|
|
299
299
|
"variableName": "$size-dimension-media-viewer-bar-separator-width",
|
|
300
|
-
"isUsed":
|
|
300
|
+
"isUsed": false
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
303
|
"category": "size",
|
|
@@ -307,17 +307,7 @@
|
|
|
307
307
|
"value": "12px",
|
|
308
308
|
"original": 12,
|
|
309
309
|
"variableName": "$size-dimension-legend-key-width",
|
|
310
|
-
"isUsed":
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
"category": "size",
|
|
314
|
-
"type": "dimension",
|
|
315
|
-
"name": "dimension left-nav-bar",
|
|
316
|
-
"subitemName": "left-nav-bar width",
|
|
317
|
-
"value": "56px",
|
|
318
|
-
"original": 56,
|
|
319
|
-
"variableName": "$size-dimension-left-nav-bar-width",
|
|
320
|
-
"isUsed": true
|
|
310
|
+
"isUsed": false
|
|
321
311
|
},
|
|
322
312
|
{
|
|
323
313
|
"category": "size",
|
|
@@ -327,7 +317,7 @@
|
|
|
327
317
|
"value": "0px",
|
|
328
318
|
"original": 0,
|
|
329
319
|
"variableName": "$size-letter-spacing-none",
|
|
330
|
-
"isUsed":
|
|
320
|
+
"isUsed": false
|
|
331
321
|
},
|
|
332
322
|
{
|
|
333
323
|
"category": "size",
|
|
@@ -337,7 +327,7 @@
|
|
|
337
327
|
"value": "0.5px",
|
|
338
328
|
"original": 0.5,
|
|
339
329
|
"variableName": "$size-letter-spacing-s",
|
|
340
|
-
"isUsed":
|
|
330
|
+
"isUsed": false
|
|
341
331
|
},
|
|
342
332
|
{
|
|
343
333
|
"category": "size",
|
|
@@ -347,7 +337,7 @@
|
|
|
347
337
|
"value": "1px",
|
|
348
338
|
"original": 1,
|
|
349
339
|
"variableName": "$size-letter-spacing-m",
|
|
350
|
-
"isUsed":
|
|
340
|
+
"isUsed": false
|
|
351
341
|
},
|
|
352
342
|
{
|
|
353
343
|
"category": "size",
|
|
@@ -357,7 +347,7 @@
|
|
|
357
347
|
"value": "10px",
|
|
358
348
|
"original": 10,
|
|
359
349
|
"variableName": "$size-font-xxs",
|
|
360
|
-
"isUsed":
|
|
350
|
+
"isUsed": false
|
|
361
351
|
},
|
|
362
352
|
{
|
|
363
353
|
"category": "size",
|
|
@@ -367,7 +357,7 @@
|
|
|
367
357
|
"value": "12px",
|
|
368
358
|
"original": 12,
|
|
369
359
|
"variableName": "$size-font-xs",
|
|
370
|
-
"isUsed":
|
|
360
|
+
"isUsed": false
|
|
371
361
|
},
|
|
372
362
|
{
|
|
373
363
|
"category": "size",
|
|
@@ -377,7 +367,7 @@
|
|
|
377
367
|
"value": "14px",
|
|
378
368
|
"original": 14,
|
|
379
369
|
"variableName": "$size-font-s",
|
|
380
|
-
"isUsed":
|
|
370
|
+
"isUsed": false
|
|
381
371
|
},
|
|
382
372
|
{
|
|
383
373
|
"category": "size",
|
|
@@ -387,7 +377,7 @@
|
|
|
387
377
|
"value": "16px",
|
|
388
378
|
"original": 16,
|
|
389
379
|
"variableName": "$size-font-m",
|
|
390
|
-
"isUsed":
|
|
380
|
+
"isUsed": false
|
|
391
381
|
},
|
|
392
382
|
{
|
|
393
383
|
"category": "size",
|
|
@@ -397,7 +387,7 @@
|
|
|
397
387
|
"value": "18px",
|
|
398
388
|
"original": 18,
|
|
399
389
|
"variableName": "$size-font-l",
|
|
400
|
-
"isUsed":
|
|
390
|
+
"isUsed": false
|
|
401
391
|
},
|
|
402
392
|
{
|
|
403
393
|
"category": "size",
|
|
@@ -407,7 +397,7 @@
|
|
|
407
397
|
"value": "20px",
|
|
408
398
|
"original": 20,
|
|
409
399
|
"variableName": "$size-font-xl",
|
|
410
|
-
"isUsed":
|
|
400
|
+
"isUsed": false
|
|
411
401
|
},
|
|
412
402
|
{
|
|
413
403
|
"category": "size",
|
|
@@ -417,7 +407,7 @@
|
|
|
417
407
|
"value": "24px",
|
|
418
408
|
"original": 24,
|
|
419
409
|
"variableName": "$size-font-xxl",
|
|
420
|
-
"isUsed":
|
|
410
|
+
"isUsed": false
|
|
421
411
|
},
|
|
422
412
|
{
|
|
423
413
|
"category": "size",
|
|
@@ -427,7 +417,7 @@
|
|
|
427
417
|
"value": "26px",
|
|
428
418
|
"original": 26,
|
|
429
419
|
"variableName": "$size-font-xxxl",
|
|
430
|
-
"isUsed":
|
|
420
|
+
"isUsed": false
|
|
431
421
|
},
|
|
432
422
|
{
|
|
433
423
|
"category": "size",
|
|
@@ -447,7 +437,7 @@
|
|
|
447
437
|
"value": "2px",
|
|
448
438
|
"original": 2,
|
|
449
439
|
"variableName": "$size-spacing-xxxs",
|
|
450
|
-
"isUsed":
|
|
440
|
+
"isUsed": false
|
|
451
441
|
},
|
|
452
442
|
{
|
|
453
443
|
"category": "size",
|
|
@@ -527,7 +517,7 @@
|
|
|
527
517
|
"value": "0px",
|
|
528
518
|
"original": 0,
|
|
529
519
|
"variableName": "$size-border-radius-none",
|
|
530
|
-
"isUsed":
|
|
520
|
+
"isUsed": false
|
|
531
521
|
},
|
|
532
522
|
{
|
|
533
523
|
"category": "size",
|
|
@@ -537,7 +527,7 @@
|
|
|
537
527
|
"value": "4px",
|
|
538
528
|
"original": 4,
|
|
539
529
|
"variableName": "$size-border-radius-xs",
|
|
540
|
-
"isUsed":
|
|
530
|
+
"isUsed": false
|
|
541
531
|
},
|
|
542
532
|
{
|
|
543
533
|
"category": "size",
|
|
@@ -547,7 +537,7 @@
|
|
|
547
537
|
"value": "8px",
|
|
548
538
|
"original": 8,
|
|
549
539
|
"variableName": "$size-border-radius-s",
|
|
550
|
-
"isUsed":
|
|
540
|
+
"isUsed": false
|
|
551
541
|
},
|
|
552
542
|
{
|
|
553
543
|
"category": "size",
|
|
@@ -557,7 +547,7 @@
|
|
|
557
547
|
"value": "12px",
|
|
558
548
|
"original": 12,
|
|
559
549
|
"variableName": "$size-border-radius-m",
|
|
560
|
-
"isUsed":
|
|
550
|
+
"isUsed": false
|
|
561
551
|
},
|
|
562
552
|
{
|
|
563
553
|
"category": "size",
|
|
@@ -567,7 +557,7 @@
|
|
|
567
557
|
"value": "16px",
|
|
568
558
|
"original": 16,
|
|
569
559
|
"variableName": "$size-border-radius-l",
|
|
570
|
-
"isUsed":
|
|
560
|
+
"isUsed": false
|
|
571
561
|
},
|
|
572
562
|
{
|
|
573
563
|
"category": "size",
|
|
@@ -577,7 +567,7 @@
|
|
|
577
567
|
"value": "24px",
|
|
578
568
|
"original": 24,
|
|
579
569
|
"variableName": "$size-border-radius-xl",
|
|
580
|
-
"isUsed":
|
|
570
|
+
"isUsed": false
|
|
581
571
|
},
|
|
582
572
|
{
|
|
583
573
|
"category": "size",
|
|
@@ -587,7 +577,7 @@
|
|
|
587
577
|
"value": "9999px",
|
|
588
578
|
"original": 9999,
|
|
589
579
|
"variableName": "$size-border-radius-full",
|
|
590
|
-
"isUsed":
|
|
580
|
+
"isUsed": false
|
|
591
581
|
},
|
|
592
582
|
{
|
|
593
583
|
"category": "size",
|
|
@@ -597,7 +587,7 @@
|
|
|
597
587
|
"value": 1.1428571429,
|
|
598
588
|
"original": 1.1428571429,
|
|
599
589
|
"variableName": "$size-line-height-xs",
|
|
600
|
-
"isUsed":
|
|
590
|
+
"isUsed": false
|
|
601
591
|
},
|
|
602
592
|
{
|
|
603
593
|
"category": "size",
|
|
@@ -607,7 +597,7 @@
|
|
|
607
597
|
"value": 1.25,
|
|
608
598
|
"original": 1.25,
|
|
609
599
|
"variableName": "$size-line-height-s",
|
|
610
|
-
"isUsed":
|
|
600
|
+
"isUsed": false
|
|
611
601
|
},
|
|
612
602
|
{
|
|
613
603
|
"category": "size",
|
|
@@ -617,7 +607,7 @@
|
|
|
617
607
|
"value": 1.3333333,
|
|
618
608
|
"original": 1.3333333,
|
|
619
609
|
"variableName": "$size-line-height-m",
|
|
620
|
-
"isUsed":
|
|
610
|
+
"isUsed": false
|
|
621
611
|
},
|
|
622
612
|
{
|
|
623
613
|
"category": "size",
|
|
@@ -627,7 +617,7 @@
|
|
|
627
617
|
"value": 1.4285714286,
|
|
628
618
|
"original": 1.4285714286,
|
|
629
619
|
"variableName": "$size-line-height-l",
|
|
630
|
-
"isUsed":
|
|
620
|
+
"isUsed": false
|
|
631
621
|
},
|
|
632
622
|
{
|
|
633
623
|
"category": "size",
|
|
@@ -637,7 +627,7 @@
|
|
|
637
627
|
"value": 1.5,
|
|
638
628
|
"original": 1.5,
|
|
639
629
|
"variableName": "$size-line-height-xl",
|
|
640
|
-
"isUsed":
|
|
630
|
+
"isUsed": false
|
|
641
631
|
},
|
|
642
632
|
{
|
|
643
633
|
"category": "size",
|
|
@@ -647,7 +637,7 @@
|
|
|
647
637
|
"value": 1.625,
|
|
648
638
|
"original": 1.625,
|
|
649
639
|
"variableName": "$size-line-height-xxl",
|
|
650
|
-
"isUsed":
|
|
640
|
+
"isUsed": false
|
|
651
641
|
},
|
|
652
642
|
{
|
|
653
643
|
"category": "size",
|
|
@@ -657,6 +647,6 @@
|
|
|
657
647
|
"value": 1.714286,
|
|
658
648
|
"original": 1.714286,
|
|
659
649
|
"variableName": "$size-line-height-xxxl",
|
|
660
|
-
"isUsed":
|
|
650
|
+
"isUsed": false
|
|
661
651
|
}
|
|
662
652
|
]
|
|
@@ -80,9 +80,6 @@ type Variables = {
|
|
|
80
80
|
"legendKey": {
|
|
81
81
|
"width": string;
|
|
82
82
|
};
|
|
83
|
-
"leftNavBar": {
|
|
84
|
-
"width": string;
|
|
85
|
-
};
|
|
86
83
|
};
|
|
87
84
|
"letterSpacing": {
|
|
88
85
|
"none": string;
|
|
@@ -176,10 +173,6 @@ type Variables = {
|
|
|
176
173
|
"duration": string;
|
|
177
174
|
"timingFunction": string;
|
|
178
175
|
};
|
|
179
|
-
"collapse": {
|
|
180
|
-
"duration": string;
|
|
181
|
-
"timingFunction": string;
|
|
182
|
-
};
|
|
183
176
|
};
|
|
184
177
|
"promptInput": {
|
|
185
178
|
"focus": {
|