@atlaskit/atlassian-navigation 2.0.3 → 2.1.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.
Files changed (128) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/common/constants.js +10 -1
  3. package/dist/cjs/components/AtlassianNavigation/index.js +61 -5
  4. package/dist/cjs/components/AtlassianNavigation/skeleton.js +67 -10
  5. package/dist/cjs/components/BadgeContainer/index.js +12 -4
  6. package/dist/cjs/components/Create/index.js +24 -12
  7. package/dist/cjs/components/Create/skeleton.js +21 -6
  8. package/dist/cjs/components/Create/styles.js +1 -25
  9. package/dist/cjs/components/IconButton/skeleton.js +31 -5
  10. package/dist/cjs/components/IconButton/styles.js +2 -32
  11. package/dist/cjs/components/PrimaryButton/index.js +35 -1
  12. package/dist/cjs/components/PrimaryButton/skeleton.js +15 -5
  13. package/dist/cjs/components/PrimaryButton/styles.js +2 -58
  14. package/dist/cjs/components/PrimaryDropdownButton/index.js +6 -3
  15. package/dist/cjs/components/PrimaryItemsContainer/index.js +26 -4
  16. package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +8 -3
  17. package/dist/cjs/components/ProductHome/custom-product-home.js +104 -6
  18. package/dist/cjs/components/ProductHome/product-home.js +104 -6
  19. package/dist/cjs/components/ProductHome/skeleton.js +117 -6
  20. package/dist/cjs/components/Search/index.js +50 -6
  21. package/dist/cjs/components/Search/skeleton.js +29 -7
  22. package/dist/cjs/components/SkeletonCreateButton/index.js +23 -5
  23. package/dist/cjs/components/SkeletonIconButton/index.js +30 -5
  24. package/dist/cjs/components/SkeletonPrimaryButton/index.js +79 -3
  25. package/dist/cjs/theme/defaultTheme.js +40 -40
  26. package/dist/cjs/version.json +1 -1
  27. package/dist/es2019/common/constants.js +4 -0
  28. package/dist/es2019/components/AtlassianNavigation/index.js +61 -6
  29. package/dist/es2019/components/AtlassianNavigation/skeleton.js +67 -11
  30. package/dist/es2019/components/BadgeContainer/index.js +12 -4
  31. package/dist/es2019/components/Create/index.js +29 -13
  32. package/dist/es2019/components/Create/skeleton.js +20 -6
  33. package/dist/es2019/components/Create/styles.js +0 -15
  34. package/dist/es2019/components/IconButton/skeleton.js +23 -5
  35. package/dist/es2019/components/IconButton/styles.js +1 -23
  36. package/dist/es2019/components/PrimaryButton/index.js +35 -3
  37. package/dist/es2019/components/PrimaryButton/skeleton.js +14 -5
  38. package/dist/es2019/components/PrimaryButton/styles.js +1 -46
  39. package/dist/es2019/components/PrimaryDropdownButton/index.js +7 -3
  40. package/dist/es2019/components/PrimaryItemsContainer/index.js +25 -4
  41. package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +7 -3
  42. package/dist/es2019/components/ProductHome/custom-product-home.js +119 -6
  43. package/dist/es2019/components/ProductHome/product-home.js +119 -6
  44. package/dist/es2019/components/ProductHome/skeleton.js +129 -6
  45. package/dist/es2019/components/Search/index.js +47 -6
  46. package/dist/es2019/components/Search/skeleton.js +30 -7
  47. package/dist/es2019/components/SkeletonCreateButton/index.js +23 -3
  48. package/dist/es2019/components/SkeletonIconButton/index.js +30 -3
  49. package/dist/es2019/components/SkeletonPrimaryButton/index.js +74 -3
  50. package/dist/es2019/theme/defaultTheme.js +40 -40
  51. package/dist/es2019/version.json +1 -1
  52. package/dist/esm/common/constants.js +4 -0
  53. package/dist/esm/components/AtlassianNavigation/index.js +61 -6
  54. package/dist/esm/components/AtlassianNavigation/skeleton.js +67 -11
  55. package/dist/esm/components/BadgeContainer/index.js +12 -4
  56. package/dist/esm/components/Create/index.js +25 -13
  57. package/dist/esm/components/Create/skeleton.js +19 -6
  58. package/dist/esm/components/Create/styles.js +0 -15
  59. package/dist/esm/components/IconButton/skeleton.js +29 -5
  60. package/dist/esm/components/IconButton/styles.js +0 -22
  61. package/dist/esm/components/PrimaryButton/index.js +35 -3
  62. package/dist/esm/components/PrimaryButton/skeleton.js +14 -5
  63. package/dist/esm/components/PrimaryButton/styles.js +0 -44
  64. package/dist/esm/components/PrimaryDropdownButton/index.js +7 -3
  65. package/dist/esm/components/PrimaryItemsContainer/index.js +25 -4
  66. package/dist/esm/components/PrimaryItemsContainer/skeleton.js +7 -3
  67. package/dist/esm/components/ProductHome/custom-product-home.js +102 -6
  68. package/dist/esm/components/ProductHome/product-home.js +102 -6
  69. package/dist/esm/components/ProductHome/skeleton.js +117 -6
  70. package/dist/esm/components/Search/index.js +48 -6
  71. package/dist/esm/components/Search/skeleton.js +27 -7
  72. package/dist/esm/components/SkeletonCreateButton/index.js +23 -3
  73. package/dist/esm/components/SkeletonIconButton/index.js +30 -3
  74. package/dist/esm/components/SkeletonPrimaryButton/index.js +80 -3
  75. package/dist/esm/theme/defaultTheme.js +40 -40
  76. package/dist/esm/version.json +1 -1
  77. package/dist/types/common/constants.d.ts +3 -0
  78. package/dist/types/common/styles.d.ts +143 -143
  79. package/dist/types/components/AtlassianNavigation/skeleton.d.ts +1 -1
  80. package/dist/types/components/AtlassianNavigation/types.d.ts +1 -0
  81. package/dist/types/components/Create/index.d.ts +1 -1
  82. package/dist/types/components/Create/styles.d.ts +0 -923
  83. package/dist/types/components/Create/types.d.ts +5 -1
  84. package/dist/types/components/IconButton/skeleton.d.ts +1 -1
  85. package/dist/types/components/IconButton/styles.d.ts +0 -915
  86. package/dist/types/components/PrimaryButton/index.d.ts +1 -1
  87. package/dist/types/components/PrimaryButton/skeleton.d.ts +1 -0
  88. package/dist/types/components/PrimaryButton/styles.d.ts +0 -917
  89. package/dist/types/components/PrimaryDropdownButton/index.d.ts +1 -1
  90. package/docs/05-create.tsx +8 -0
  91. package/docs/99-migrating-from-navigation-next.tsx +31 -32
  92. package/package.json +8 -4
  93. package/dist/cjs/components/AtlassianNavigation/styles.js +0 -82
  94. package/dist/cjs/components/BadgeContainer/styles.js +0 -17
  95. package/dist/cjs/components/PrimaryDropdownButton/styles.js +0 -13
  96. package/dist/cjs/components/PrimaryItemsContainer/styles.js +0 -42
  97. package/dist/cjs/components/ProductHome/styles.js +0 -152
  98. package/dist/cjs/components/Search/styles.js +0 -70
  99. package/dist/cjs/components/SkeletonCreateButton/styles.js +0 -39
  100. package/dist/cjs/components/SkeletonIconButton/styles.js +0 -46
  101. package/dist/cjs/components/SkeletonPrimaryButton/styles.js +0 -74
  102. package/dist/es2019/components/AtlassianNavigation/styles.js +0 -60
  103. package/dist/es2019/components/BadgeContainer/styles.js +0 -9
  104. package/dist/es2019/components/PrimaryDropdownButton/styles.js +0 -6
  105. package/dist/es2019/components/PrimaryItemsContainer/styles.js +0 -30
  106. package/dist/es2019/components/ProductHome/styles.js +0 -117
  107. package/dist/es2019/components/Search/styles.js +0 -43
  108. package/dist/es2019/components/SkeletonCreateButton/styles.js +0 -25
  109. package/dist/es2019/components/SkeletonIconButton/styles.js +0 -32
  110. package/dist/es2019/components/SkeletonPrimaryButton/styles.js +0 -60
  111. package/dist/esm/components/AtlassianNavigation/styles.js +0 -64
  112. package/dist/esm/components/BadgeContainer/styles.js +0 -9
  113. package/dist/esm/components/PrimaryDropdownButton/styles.js +0 -6
  114. package/dist/esm/components/PrimaryItemsContainer/styles.js +0 -29
  115. package/dist/esm/components/ProductHome/styles.js +0 -114
  116. package/dist/esm/components/Search/styles.js +0 -47
  117. package/dist/esm/components/SkeletonCreateButton/styles.js +0 -28
  118. package/dist/esm/components/SkeletonIconButton/styles.js +0 -35
  119. package/dist/esm/components/SkeletonPrimaryButton/styles.js +0 -63
  120. package/dist/types/components/AtlassianNavigation/styles.d.ts +0 -22
  121. package/dist/types/components/BadgeContainer/styles.d.ts +0 -9
  122. package/dist/types/components/PrimaryDropdownButton/styles.d.ts +0 -5
  123. package/dist/types/components/PrimaryItemsContainer/styles.d.ts +0 -9
  124. package/dist/types/components/ProductHome/styles.d.ts +0 -2791
  125. package/dist/types/components/Search/styles.d.ts +0 -1842
  126. package/dist/types/components/SkeletonCreateButton/styles.d.ts +0 -4
  127. package/dist/types/components/SkeletonIconButton/styles.d.ts +0 -4
  128. package/dist/types/components/SkeletonPrimaryButton/styles.d.ts +0 -4
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const PrimaryDropdownButton: import("react").ForwardRefExoticComponent<Pick<import("../..").PrimaryButtonProps, "color" | "content" | "height" | "width" | "hidden" | "name" | "value" | "children" | "cite" | "data" | "form" | "label" | "span" | "style" | "summary" | "title" | "pattern" | "start" | "size" | "default" | "wrap" | "open" | "tooltip" | "multiple" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "target" | "type" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "data-testid" | "data-has-overlay" | "iconBefore" | "isDisabled" | "isSelected" | "spacing" | "shouldFitContainer" | "testId" | "component" | "analyticsContext" | "isLoading" | "theme" | "isHighlighted"> & {
2
+ export declare const PrimaryDropdownButton: import("react").ForwardRefExoticComponent<Pick<import("../..").PrimaryButtonProps, "color" | "content" | "height" | "width" | "hidden" | "name" | "value" | "children" | "cite" | "data" | "form" | "label" | "span" | "style" | "summary" | "title" | "pattern" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "data-testid" | "data-has-overlay" | "iconBefore" | "isDisabled" | "isSelected" | "spacing" | "shouldFitContainer" | "testId" | "component" | "analyticsContext" | "tooltip" | "isLoading" | "theme" | "isHighlighted"> & {
3
3
  isHighlighted?: boolean | undefined;
4
4
  testId?: string | undefined;
5
5
  tooltip?: import("react").ReactNode;
@@ -20,6 +20,14 @@ import { Create } from '@atlaskit/atlassian-navigation';
20
20
  />
21
21
  )}
22
22
 
23
+ ${(
24
+ <Example
25
+ title="Create as a link"
26
+ Component={require('../examples/create-with-link.tsx').default}
27
+ source={require('!!raw-loader!../examples/create-with-link.tsx')}
28
+ />
29
+ )}
30
+
23
31
  ${(
24
32
  <Props
25
33
  heading="Props"
@@ -1,53 +1,52 @@
1
1
  import { code, md } from '@atlaskit/docs';
2
2
 
3
3
  export default md`
4
- Previously [navigation next](/packages/design-system/navigation-next) was used both as the component that powers navigation,
5
- and for the page layout.
6
- There are three migration steps that are currently in the works.
4
+ \`@atlaskit/navigation-next\` was deprecated due to:
7
5
 
8
- ## Step one (available now)
6
+ - Large bundle size
7
+ - Poor runtime performance
8
+ - Lack of flexibility with layout
9
+ - Lack of consumer control of how and where to render the page content
9
10
 
10
- Replacing the top level vertical navigation in navigation next with the horizontal Atlassian navigation.
11
- You can find a [live example in the navigation next docs](/examples/design-system/navigation-next/experimental-app-navigation).
11
+ It has been superseded by a composed navigation experience consisting of \`@atlaskit/page-layout\` to layout your application, \`@atlaskit/atlassian-navigation\` for the horizontal nav bar at the top of the screen, and \`@atlaskit/side-navigation\` for the side nav. **All Atlassian products should be using these packages instead — support is no longer provided for** \`@atlaskit/navigation-next\`.
12
12
 
13
- 1. Replace \`globalNavigation\` with the horizontal navigation component from this library
14
- 1. Add \`experimental_horizontalGlobalNav\` prop
15
- 1. 🥓🥓 get new horizontal navigation experience
13
+ This page intends to serve as a high level conceptual introduction to these packages. Detailed documentation for each can be found below:
16
14
 
17
- Assuming \`AtlassianNavigition\` is a new component composed from this library:
15
+ - [Page layout](https://atlaskit.atlassian.com/packages/design-system/page-layout)
16
+ - [Atlassian navigation](https://atlaskit.atlassian.com/packages/navigation/atlassian-navigation)
17
+ - [Side navigation](https://atlaskit.atlassian.com/packages/navigation/side-navigation)
18
+ - [Worked example of all packages used together](https://atlaskit.atlassian.com/examples/design-system/page-layout/integration-example)
18
19
 
19
- ${code`
20
+ ## Laying out your application
21
+
22
+ Where \`@atlaskit/navigation-next\` used to rely on the rigid and unperformant \`LayoutManager\`, we now have a light-weight and flexible solution in \`@atlaskit/page-layout\` ([docs](https://atlaskit.atlassian.com/packages/design-system/page-layout)). \`@atlaskit/page-layout\` can be used to wrap your entire app and help split the viewport into sections where you can render components in slots such as \`Banner\`, \`TopNavigation\`, \`Main\`, \`LeftSidebar\`, and more. It also provides valuable accessibility improvements to your application with support for [skip links](https://atlaskit.atlassian.com/packages/design-system/page-layout/docs/skip-links).
23
+
24
+ ## Standardised top navigation
25
+
26
+ The role that used to be played by the deprecated \`@atlaskit/global-navigation\` is now played by \`@atlaskit/atlassian-navigation\` ([docs](https://atlaskit.atlassian.com/packages/navigation/atlassian-navigation)). This provides a well-structured, cohesive and performant navigation experience that is used across all Atlassian products.
27
+
28
+ \`@atlaskit/atlassian-navigation\` slots into the \`TopNavigation\` section in \`PageLayout\`.
29
+
30
+ If you're still using \`@atlaskit/navigation-next\`, it is also possible to incrementally adopt \`@atlaskit/atlassian-navigation\` by using the \`experimental_horizontalGlobalNav\` prop.
31
+
32
+ ${code`
20
33
  import { LayoutManagerWithViewController } from '@atlaskit/navigation-next';
34
+ import { AtlassianNavigation } from '@atlaskit/atlassian-navigation';
21
35
 
22
36
  <LayoutManagerWithViewController
23
37
  - globalNavigation={DefaultGlobalNavigation}
24
38
  + globalNavigation={AtlassianNavigation}
25
39
  + experimental_horizontalGlobalNav
26
40
  />
27
- `}
28
-
29
- ## Step two (in development)
41
+ `}
30
42
 
31
- Okay so we've replaced the top level vertical navigation with a new top level horizontal navigation.
32
- Now we are going to replace the side navigation from navigation next with a new lighter weight equivlent package -
33
- \`@atlaskit/side-navigation\` -
34
- but keep using the page layout behaviour from Navigation next.
43
+ However, it is **strongly recommended** that you adopt the full suite of navigation components together as ongoing support for \`@atlaskit/navigation-next\` will not be provided.
35
44
 
36
- Side navigation is still under development -
37
- but as we defined above the migration strategy will follow a similar pattern of slowing breaking down parts of Navigation next into smaller pieces.
45
+ ## Contextual, product-specific navigation
38
46
 
39
- ## Step three (in planning)
47
+ Previously contextual navigation was handled by passing in content to the \`productNavigation\` prop in \`@atlaskit/navigation-next\`'s \`LayoutManager\`. Now, it belongs in the dedicated \`@atlaskit/side-navigation\` package ([docs](https://atlaskit.atlassian.com/packages/navigation/side-navigation)).
40
48
 
41
- Now we have the entire page layout to replace.
42
- After doing this we can completely remove navigation next from your product.
43
- We will introduce a new component \`@atlaskit/page-layout\` which will be responsible for positioning the header,
44
- side navigation,
45
- help fly out menu,
46
- page banner,
47
- and page content.
49
+ ## Need help?
48
50
 
49
- This migration will be a little tricker because it completely removes the navigation next from your product,
50
- and replaces it with a composed page layout,
51
- horizontal nav,
52
- and side nav.
51
+ Reach out to !disturbed in #help-design-system.
53
52
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.0.3",
3
+ "version": "2.1.1",
4
4
  "description": "A horizontal navigation component for Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -23,13 +23,13 @@
23
23
  }
24
24
  },
25
25
  "dependencies": {
26
- "@atlaskit/analytics-namespaced-context": "^6.3.0",
27
- "@atlaskit/button": "^16.0.0",
26
+ "@atlaskit/analytics-namespaced-context": "^6.4.0",
27
+ "@atlaskit/button": "^16.2.0",
28
28
  "@atlaskit/icon": "^21.10.0",
29
29
  "@atlaskit/logo": "*",
30
30
  "@atlaskit/popup": "^1.3.0",
31
31
  "@atlaskit/theme": "^12.1.0",
32
- "@atlaskit/tokens": "^0.5.0",
32
+ "@atlaskit/tokens": "^0.7.0",
33
33
  "@atlaskit/tooltip": "^17.5.0",
34
34
  "@atlaskit/width-detector": "^3.0.0",
35
35
  "@babel/runtime": "^7.0.0",
@@ -68,6 +68,10 @@
68
68
  "@repo/internal": {
69
69
  "ui-components": "lite-mode",
70
70
  "analytics": "analytics-next",
71
+ "styling": [
72
+ "emotion",
73
+ "static"
74
+ ],
71
75
  "theming": "tokens",
72
76
  "deprecation": "no-deprecated-imports"
73
77
  }
@@ -1,82 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.rightCSS = exports.leftCSS = exports.containerCSS = void 0;
9
-
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- var _colors = require("@atlaskit/theme/colors");
13
-
14
- var _constants = require("@atlaskit/theme/constants");
15
-
16
- var _constants2 = require("../../common/constants");
17
-
18
- var _theme = require("../../theme");
19
-
20
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
21
-
22
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23
-
24
- var gridSize = (0, _constants.gridSize)();
25
-
26
- var containerCSS = function containerCSS(_ref) {
27
- var navigation = _ref.mode.navigation;
28
- return _objectSpread({
29
- alignItems: 'center',
30
- boxSizing: 'border-box',
31
- display: 'flex',
32
- flexShrink: 0,
33
- justifyContent: 'space-between',
34
- paddingLeft: gridSize * 1.5,
35
- paddingRight: gridSize * 1.5,
36
- height: _constants2.HORIZONTAL_GLOBAL_NAV_HEIGHT,
37
- position: 'relative',
38
- '[data-theme="light"] &, [data-theme="dark"] &': {
39
- // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
40
- borderBottom: "1px solid ".concat("var(--ds-border-neutral, #091E4224)"),
41
- // TODO: (DSP-2087) Remove the below once tokens have launched
42
- '&::after': {
43
- content: 'none'
44
- }
45
- },
46
- // TODO: (DSP-2087) Remove the below once tokens have launched
47
- '&::after': {
48
- content: '""',
49
- position: 'absolute',
50
- left: 0,
51
- right: 0,
52
- top: '100%',
53
- height: gridSize / 2,
54
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
55
- background: "linear-gradient(180deg, ".concat(_colors.N40A, " 0, ").concat(_colors.N40A, " 1px, ").concat(_colors.N30A, " 1px, ").concat((0, _theme.hexToRGBA)( // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
56
- _colors.N900, 0), " 4px)")
57
- }
58
- }, navigation);
59
- };
60
-
61
- exports.containerCSS = containerCSS;
62
- var leftCSS = {
63
- alignItems: 'center',
64
- display: 'flex',
65
- flexGrow: 1,
66
- minWidth: 0,
67
- height: 'inherit',
68
- '& > *': {
69
- flexShrink: 0
70
- }
71
- };
72
- exports.leftCSS = leftCSS;
73
- var rightCSS = {
74
- alignItems: 'center',
75
- display: 'flex',
76
- flexShrink: 0,
77
- '& > *': {
78
- flexShrink: 0,
79
- marginRight: gridSize / 2
80
- }
81
- };
82
- exports.rightCSS = rightCSS;
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.containerCSS = exports.badgeContainerCSS = void 0;
7
- var badgeContainerCSS = {
8
- pointerEvents: 'none',
9
- position: 'absolute',
10
- top: '-4px',
11
- right: '-2px'
12
- };
13
- exports.badgeContainerCSS = badgeContainerCSS;
14
- var containerCSS = {
15
- position: 'relative'
16
- };
17
- exports.containerCSS = containerCSS;
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.chevronIconCSS = void 0;
7
- var chevronIconCSS = {
8
- marginLeft: '-8px',
9
- marginRight: '-8px',
10
- // opacity 51% matches the N80 when on white, and will be nice for other themes too
11
- opacity: 0.51
12
- };
13
- exports.chevronIconCSS = chevronIconCSS;
@@ -1,42 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.widthObserverContainerStyle = exports.primaryButtonSkeletonCSS = exports.containerCSS = void 0;
7
-
8
- var _constants = require("@atlaskit/theme/constants");
9
-
10
- var margin = "0 ".concat((0, _constants.gridSize)() / 2, "px");
11
-
12
- var containerCSS = function containerCSS(_ref) {
13
- var navigation = _ref.mode.navigation;
14
- return {
15
- alignItems: 'stretch',
16
- display: 'flex',
17
- flexGrow: 1,
18
- flexShrink: 0,
19
- flexBasis: 0,
20
- height: '100%',
21
- position: 'relative',
22
- '& > *': {
23
- flexShrink: 0,
24
- margin: margin
25
- }
26
- };
27
- };
28
-
29
- exports.containerCSS = containerCSS;
30
- var widthObserverContainerStyle = {
31
- flexShrink: 1,
32
- minWidth: '1px',
33
- margin: '0px',
34
- width: '100%',
35
- position: 'relative'
36
- };
37
- exports.widthObserverContainerStyle = widthObserverContainerStyle;
38
- var primaryButtonSkeletonCSS = {
39
- marginLeft: "".concat((0, _constants.gridSize)() * 1.5, "px"),
40
- marginRight: "".concat((0, _constants.gridSize)() * 1.5, "px")
41
- };
42
- exports.primaryButtonSkeletonCSS = primaryButtonSkeletonCSS;
@@ -1,152 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.siteTitleSkeletonCSS = exports.siteTitleCSS = exports.productLogoSkeletonCSS = exports.productLogoCSS = exports.productIconSkeletonCSS = exports.productIconCSS = exports.productHomeButtonSkeletonCSS = exports.productHomeButtonCSS = exports.customProductLogoCSS = exports.customProductIconCSS = void 0;
9
-
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- var _constants = require("@atlaskit/theme/constants");
13
-
14
- var _constants2 = require("../../common/constants");
15
-
16
- var _styles = require("../../common/styles");
17
-
18
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
19
-
20
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
21
-
22
- var gridSize = (0, _constants.gridSize)();
23
-
24
- var productHomeButtonCSS = function productHomeButtonCSS(_ref) {
25
- var _ref2;
26
-
27
- var primaryButton = _ref.mode.primaryButton;
28
- return _ref2 = {
29
- alignItems: 'center',
30
- padding: gridSize / 2,
31
- borderRadius: 3,
32
- border: 0,
33
- background: 'none',
34
- display: 'flex',
35
- cursor: 'pointer',
36
- color: 'inherit',
37
- '&:first-of-type': {
38
- marginLeft: 0
39
- },
40
- '&::-moz-focus-inner': {
41
- border: 0
42
- },
43
- '&:hover': primaryButton.hover,
44
- '&:focus': _objectSpread(_objectSpread({}, primaryButton.focus), {}, {
45
- outline: 0
46
- }),
47
- '&:active': primaryButton.active,
48
- 'div&': {
49
- pointerEvents: 'none'
50
- }
51
- }, (0, _defineProperty2.default)(_ref2, "@media (max-width: ".concat(_constants2.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
52
- margin: "0 ".concat(gridSize, "px")
53
- }), (0, _defineProperty2.default)(_ref2, "@media (min-width: ".concat(_constants2.PRODUCT_HOME_BREAKPOINT, "px)"), {
54
- margin: "0 ".concat(gridSize * 2, "px")
55
- }), _ref2;
56
- };
57
-
58
- exports.productHomeButtonCSS = productHomeButtonCSS;
59
- var productHomeButtonSkeletonCSS = productHomeButtonCSS;
60
- exports.productHomeButtonSkeletonCSS = productHomeButtonSkeletonCSS;
61
- var iconHeight = 28;
62
- var heightCSS = {
63
- maxHeight: "".concat(iconHeight, "px")
64
- };
65
- var productIconCSS = (0, _defineProperty2.default)({
66
- // Ensure anything passed into
67
- // productHome is aligned correctly
68
- display: 'flex',
69
- '& > *': {
70
- maxHeight: 24
71
- }
72
- }, "@media (min-width: ".concat(_constants2.PRODUCT_HOME_BREAKPOINT, "px)"), {
73
- display: 'none'
74
- });
75
- exports.productIconCSS = productIconCSS;
76
-
77
- var productIconSkeletonCSS = function productIconSkeletonCSS(theme) {
78
- return _objectSpread(_objectSpread({
79
- borderRadius: '50%',
80
- width: "".concat(iconHeight, "px"),
81
- height: "".concat(iconHeight, "px")
82
- }, productIconCSS), (0, _styles.skeletonCSS)(theme));
83
- };
84
-
85
- exports.productIconSkeletonCSS = productIconSkeletonCSS;
86
-
87
- var customProductIconCSS = _objectSpread(_objectSpread({}, heightCSS), productIconCSS);
88
-
89
- exports.customProductIconCSS = customProductIconCSS;
90
-
91
- var productLogoCSS = function productLogoCSS(logoMaxWidth) {
92
- return (0, _defineProperty2.default)({
93
- // Ensure anything passed into
94
- // productHome is aligned correctly
95
- display: 'flex',
96
- maxWidth: logoMaxWidth,
97
- '& > *': {
98
- maxHeight: 24
99
- }
100
- }, "@media (max-width: ".concat(_constants2.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
101
- display: 'none'
102
- });
103
- };
104
-
105
- exports.productLogoCSS = productLogoCSS;
106
-
107
- var siteTitleCSS = function siteTitleCSS(_ref4) {
108
- var _ref4$mode = _ref4.mode,
109
- color = _ref4$mode.navigation.color,
110
- borderRight = _ref4$mode.productHome.borderRight;
111
- return {
112
- marginLeft: "".concat(gridSize * 0.5, "px"),
113
- display: 'flex',
114
- alignItems: 'center',
115
- paddingRight: gridSize * 2,
116
- marginRight: gridSize / 2,
117
- borderRight: borderRight
118
- };
119
- };
120
-
121
- exports.siteTitleCSS = siteTitleCSS;
122
-
123
- var siteTitleSkeletonCSS = function siteTitleSkeletonCSS(theme) {
124
- return _objectSpread(_objectSpread(_objectSpread({}, siteTitleCSS(theme)), (0, _styles.skeletonCSS)(theme)), {}, {
125
- width: gridSize * 5,
126
- backgroundColor: 'transparent',
127
- '&:after': {
128
- content: '""',
129
- width: '100%',
130
- height: iconHeight / 2,
131
- backgroundColor: theme.mode.skeleton.backgroundColor,
132
- borderRadius: 4
133
- }
134
- });
135
- };
136
-
137
- exports.siteTitleSkeletonCSS = siteTitleSkeletonCSS;
138
-
139
- var productLogoSkeletonCSS = function productLogoSkeletonCSS(theme) {
140
- return _objectSpread(_objectSpread(_objectSpread({
141
- width: '120px',
142
- height: 24
143
- }, heightCSS), productLogoCSS(120)), (0, _styles.skeletonCSS)(theme));
144
- };
145
-
146
- exports.productLogoSkeletonCSS = productLogoSkeletonCSS;
147
-
148
- var customProductLogoCSS = function customProductLogoCSS(logoMaxWidth) {
149
- return _objectSpread(_objectSpread({}, heightCSS), productLogoCSS(logoMaxWidth));
150
- };
151
-
152
- exports.customProductLogoCSS = customProductLogoCSS;
@@ -1,70 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.searchInputSkeletonCSS = exports.searchInputIconCSS = exports.searchInputContainerCSS = exports.searchInputCSS = exports.searchIconSkeletonCSS = exports.searchIconCSS = void 0;
9
-
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- var _constants = require("@atlaskit/theme/constants");
13
-
14
- var _styles = require("../../common/styles");
15
-
16
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
17
-
18
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
19
-
20
- var gridSize = (0, _constants.gridSize)();
21
- var searchCommonCSS = {
22
- borderRadius: 6,
23
- boxSizing: 'border-box',
24
- height: "".concat(gridSize * 4, "px"),
25
- padding: "0 ".concat(gridSize, "px 0 40px"),
26
- width: '220px'
27
- };
28
- var searchIconCSS = _styles.actionSectionMobileCSS;
29
- exports.searchIconCSS = searchIconCSS;
30
- var searchIconSkeletonCSS = searchIconCSS;
31
- exports.searchIconSkeletonCSS = searchIconSkeletonCSS;
32
-
33
- var searchInputContainerCSS = _objectSpread({
34
- marginLeft: '20px',
35
- marginRight: "".concat(gridSize, "px"),
36
- position: 'relative'
37
- }, _styles.actionSectionDesktopCSS);
38
-
39
- exports.searchInputContainerCSS = searchInputContainerCSS;
40
-
41
- var searchInputCSS = function searchInputCSS(_ref) {
42
- var search = _ref.mode.search;
43
- return _objectSpread(_objectSpread(_objectSpread({}, searchCommonCSS), {}, {
44
- border: '2px solid',
45
- fontSize: "".concat((0, _constants.fontSize)(), "px"),
46
- outline: 'none',
47
- '::placeholder': {
48
- color: 'inherit'
49
- }
50
- }, search.default), {}, {
51
- ':focus': search.focus
52
- });
53
- };
54
-
55
- exports.searchInputCSS = searchInputCSS;
56
- var searchInputIconCSS = {
57
- height: '20px',
58
- left: '10px',
59
- position: 'absolute',
60
- pointerEvents: 'none',
61
- top: '5px',
62
- width: '20px'
63
- };
64
- exports.searchInputIconCSS = searchInputIconCSS;
65
-
66
- var searchInputSkeletonCSS = function searchInputSkeletonCSS(theme) {
67
- return _objectSpread(_objectSpread({}, searchCommonCSS), (0, _styles.skeletonCSS)(theme));
68
- };
69
-
70
- exports.searchInputSkeletonCSS = searchInputSkeletonCSS;
@@ -1,39 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = void 0;
9
-
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
13
-
14
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15
-
16
- var _default = function _default(_ref) {
17
- var defaultStyles = _ref.mode.create.default;
18
- return _objectSpread(_objectSpread({}, defaultStyles), {}, {
19
- border: 0,
20
- fontWeight: 500,
21
- fontSize: 14,
22
- height: 32,
23
- borderRadius: 3,
24
- alignSelf: 'center',
25
- padding: '0 12px',
26
- pointerEvents: 'none',
27
- lineHeight: 1,
28
- ':focus, :active, :hover': {
29
- border: 0,
30
- outline: 0,
31
- appearance: 'none'
32
- },
33
- '&&': {
34
- marginLeft: 12
35
- }
36
- });
37
- };
38
-
39
- exports.default = _default;
@@ -1,46 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = void 0;
9
-
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
13
-
14
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15
-
16
- var _default = function _default(_ref) {
17
- var defaultStyles = _ref.mode.iconButton.default;
18
- return _objectSpread(_objectSpread({}, defaultStyles), {}, {
19
- border: 0,
20
- margin: 0,
21
- marginRight: 4,
22
- padding: '4px 6px',
23
- borderRadius: '100%',
24
- pointerEvents: 'none',
25
- ':focus, :active, :hover': {
26
- border: 0,
27
- outline: 0,
28
- appearance: 'none'
29
- },
30
- // targeting the AppSwitcher on the right
31
- '&:only-of-type': {
32
- marginRight: 0
33
- },
34
- '& > span': {
35
- lineHeight: 'normal'
36
- },
37
- '& > img': {
38
- borderRadius: '100%',
39
- height: 24,
40
- width: 24,
41
- verticalAlign: 'middle'
42
- }
43
- });
44
- };
45
-
46
- exports.default = _default;