Socket
Socket
Sign inDemoInstall

@atlaskit/primitives

Package Overview
Dependencies
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/primitives - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

6

CHANGELOG.md
# @atlaskit/primitives
## 0.2.1
### Patch Changes
- [`5b886634089`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5b886634089) - [ux] Change Box to be the default export from `@atlaskit/primitives/box`. Fix the negative value of `margin-inline` in Inline `separator` not being applied properly.
## 0.2.0

@@ -4,0 +10,0 @@

16

dist/cjs/components/box.js

@@ -8,3 +8,3 @@ "use strict";

});
exports.Box = void 0;
exports.default = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

@@ -18,2 +18,13 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
// TODO: Fill in the component {description} and ensure links point to the correct {packageName} location.
// Remove links that the component does not have (such as usage). If there are no links remove them all.
/**
* __Box__
*
* A box {description}.
*
* - [Examples](https://atlassian.design/components/{packageName}/examples)
* - [Code](https://atlassian.design/components/{packageName}/code)
* - [Usage](https://atlassian.design/components/{packageName}/usage)
*/
var Box = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {

@@ -89,2 +100,3 @@ var as = _ref.as,

});
exports.Box = Box;
var _default = Box;
exports.default = _default;

2

dist/cjs/components/inline.partial.js

@@ -91,3 +91,3 @@ "use strict";

marginBlock: "var(--ds-space-0, 0px)",
marginInline: "-".concat("var(--ds-space-025, 2px)"),
marginInline: "calc(-1 * ".concat("var(--ds-space-025, 2px)", ")"),
pointerEvents: 'none',

@@ -94,0 +94,0 @@ userSelect: 'none'

@@ -10,3 +10,3 @@ "use strict";

get: function get() {
return _box.Box;
return _box.default;
}

@@ -26,4 +26,4 @@ });

});
var _box = require("./components/box");
var _box = _interopRequireDefault(require("./components/box"));
var _inline = _interopRequireDefault(require("./components/inline.partial"));
var _stack = _interopRequireDefault(require("./components/stack.partial"));
{
"name": "@atlaskit/primitives",
"version": "0.2.0",
"version": "0.2.1",
"sideEffects": false
}
import _extends from "@babel/runtime/helpers/extends";
import React, { forwardRef } from 'react';
import { BaseBox } from './internal/base-box.partial';
// TODO: Fill in the component {description} and ensure links point to the correct {packageName} location.
// Remove links that the component does not have (such as usage). If there are no links remove them all.
/**
* __Box__
*
* A box {description}.
*
* - [Examples](https://atlassian.design/components/{packageName}/examples)
* - [Code](https://atlassian.design/components/{packageName}/code)
* - [Usage](https://atlassian.design/components/{packageName}/usage)
*/
const Box = /*#__PURE__*/forwardRef(({

@@ -75,2 +86,2 @@ as,

});
export { Box };
export default Box;

@@ -108,3 +108,3 @@ /** @jsx jsx */

marginBlock: "var(--ds-space-0, 0px)",
marginInline: `-${"var(--ds-space-025, 2px)"}`,
marginInline: `calc(-1 * ${"var(--ds-space-025, 2px)"})`,
pointerEvents: 'none',

@@ -111,0 +111,0 @@ userSelect: 'none'

@@ -1,3 +0,3 @@

export { Box } from './components/box';
export { default as Box } from './components/box';
export { default as Inline } from './components/inline.partial';
export { default as Stack } from './components/stack.partial';
{
"name": "@atlaskit/primitives",
"version": "0.2.0",
"version": "0.2.1",
"sideEffects": false
}

@@ -7,2 +7,13 @@ import _extends from "@babel/runtime/helpers/extends";

import { BaseBox } from './internal/base-box.partial';
// TODO: Fill in the component {description} and ensure links point to the correct {packageName} location.
// Remove links that the component does not have (such as usage). If there are no links remove them all.
/**
* __Box__
*
* A box {description}.
*
* - [Examples](https://atlassian.design/components/{packageName}/examples)
* - [Code](https://atlassian.design/components/{packageName}/code)
* - [Usage](https://atlassian.design/components/{packageName}/usage)
*/
var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {

@@ -78,2 +89,2 @@ var as = _ref.as,

});
export { Box };
export default Box;

@@ -83,3 +83,3 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";

marginBlock: "var(--ds-space-0, 0px)",
marginInline: "-".concat("var(--ds-space-025, 2px)"),
marginInline: "calc(-1 * ".concat("var(--ds-space-025, 2px)", ")"),
pointerEvents: 'none',

@@ -86,0 +86,0 @@ userSelect: 'none'

@@ -1,3 +0,3 @@

export { Box } from './components/box';
export { default as Box } from './components/box';
export { default as Inline } from './components/inline.partial';
export { default as Stack } from './components/stack.partial';
{
"name": "@atlaskit/primitives",
"version": "0.2.0",
"version": "0.2.1",
"sideEffects": false
}

@@ -9,3 +9,12 @@ import { ElementType, FC, ReactElement } from 'react';

declare type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'div'>(props: BoxProps<T>) => ReactElement | null) & FC<BoxProps<T>>;
/**
* __Box__
*
* A box {description}.
*
* - [Examples](https://atlassian.design/components/{packageName}/examples)
* - [Code](https://atlassian.design/components/{packageName}/code)
* - [Usage](https://atlassian.design/components/{packageName}/usage)
*/
declare const Box: BoxComponent;
export { Box };
export default Box;

@@ -139,3 +139,3 @@ /** @jsx jsx */

/**
* Defines display type and layout. Defaults to `flex`.
* Defines display type and layout. Defaults to `block`.
*/

@@ -142,0 +142,0 @@ display?: Display;

@@ -1,3 +0,3 @@

export { Box, type BoxProps } from './components/box';
export { default as Box, type BoxProps } from './components/box';
export { default as Inline, type InlineProps, } from './components/inline.partial';
export { default as Stack, type StackProps } from './components/stack.partial';
{
"name": "@atlaskit/primitives",
"version": "0.2.0",
"version": "0.2.1",
"description": "Primitives are token-backed low-level building blocks.",

@@ -5,0 +5,0 @@ "author": "Atlassian Pty Ltd",

@@ -230,3 +230,3 @@ <!-- API Report Version: 2.3 -->

// @public (undocumented)
// @public
export const Box: BoxComponent;

@@ -233,0 +233,0 @@

@@ -214,3 +214,3 @@ ## API Report File for "@atlaskit/primitives"

// @public (undocumented)
// @public
export const Box: BoxComponent;

@@ -217,0 +217,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc