Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atlaskit/primitives

Package Overview
Dependencies
Maintainers
0
Versions
180
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 8.2.1 to 9.0.0

11

CHANGELOG.md
# @atlaskit/primitives
## 9.0.0
### Major Changes
- [#114987](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114987)
[`d4d420c947747`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d4d420c947747) -
[ux] Pressable and Anchor primitives no longer support surface color detection to improve
performance. These primitives don't contain nested layouts so this is not needed. Although this is
a breaking change, the impact of this change is minimal as no usage of surface detection in these
primitives has been observed.
## 8.2.1

@@ -4,0 +15,0 @@

10

dist/cjs/components/anchor.js

@@ -22,3 +22,2 @@ "use strict";

var _xcss = require("../xcss/xcss");
var _surfaceProvider = require("./internal/surface-provider");
var _excluded = ["href", "children", "backgroundColor", "padding", "paddingBlock", "paddingBlockStart", "paddingBlockEnd", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "onClick", "interactionName", "componentName", "analyticsContext", "aria-label", "aria-labelledby", "style", "target", "testId", "xcss"],

@@ -108,3 +107,3 @@ _excluded2 = ["className"];

packageName: "@atlaskit/primitives",
packageVersion: "8.2.1",
packageVersion: "9.0.0",
analyticsData: analyticsContext,

@@ -134,3 +133,3 @@ actionSubject: 'link'

var Component = isRouterLink ? RouterLink : 'a';
var node = (0, _react2.jsx)(Component
return (0, _react2.jsx)(Component
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766

@@ -155,4 +154,2 @@ , (0, _extends2.default)({

// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
(0, _styleMaps.isSurfaceColorToken)(backgroundColor) && _styleMaps.surfaceColorStylesMap[backgroundColor],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
padding && _styleMaps.paddingStylesMap.padding[padding],

@@ -178,5 +175,2 @@ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766

}, OPENS_NEW_WINDOW_LABEL));
return backgroundColor ? (0, _react2.jsx)(_surfaceProvider.SurfaceContext.Provider, {
value: backgroundColor
}, node) : node;
};

@@ -183,0 +177,0 @@

81

dist/cjs/components/pressable.js

@@ -17,3 +17,2 @@ "use strict";

var _xcss = require("../xcss/xcss");
var _surfaceProvider = require("./internal/surface-provider");
var _excluded = ["children", "backgroundColor", "padding", "paddingBlock", "paddingBlockStart", "paddingBlockEnd", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "isDisabled", "type", "onClick", "interactionName", "componentName", "analyticsContext", "style", "testId", "xcss"],

@@ -100,3 +99,3 @@ _excluded2 = ["className"];

packageName: "@atlaskit/primitives",
packageVersion: "8.2.1",
packageVersion: "9.0.0",
analyticsData: analyticsContext,

@@ -111,44 +110,40 @@ actionSubject: 'button'

var resolvedStyles = (0, _xcss.parseXcss)(xcss);
var node =
// eslint-disable-next-line @atlaskit/design-system/no-html-button
(0, _react2.jsx)("button", (0, _extends2.default)({
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
style: style,
ref: ref
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
,
className: resolvedStyles.static
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
}, safeHtmlAttributes, {
// eslint-disable-next-line react/button-has-type
type: type,
onClick: onClick,
disabled: isDisabled,
css: [baseStyles, focusRingStyles, isDisabled ? disabledStyles : enabledStyles,
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
backgroundColor && _styleMaps.backgroundColorStylesMap[backgroundColor],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
(0, _styleMaps.isSurfaceColorToken)(backgroundColor) && _styleMaps.surfaceColorStylesMap[backgroundColor],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
padding && _styleMaps.paddingStylesMap.padding[padding],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlock && _styleMaps.paddingStylesMap.paddingBlock[paddingBlock],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlockStart && _styleMaps.paddingStylesMap.paddingBlockStart[paddingBlockStart],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlockEnd && _styleMaps.paddingStylesMap.paddingBlockEnd[paddingBlockEnd],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInline && _styleMaps.paddingStylesMap.paddingInline[paddingInline],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInlineStart && _styleMaps.paddingStylesMap.paddingInlineStart[paddingInlineStart],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInlineEnd && _styleMaps.paddingStylesMap.paddingInlineEnd[paddingInlineEnd],
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
resolvedStyles.emotion],
"data-testid": testId
}), children);
return backgroundColor ? (0, _react2.jsx)(_surfaceProvider.SurfaceContext.Provider, {
value: backgroundColor
}, node) : node;
return (
// eslint-disable-next-line @atlaskit/design-system/no-html-button
(0, _react2.jsx)("button", (0, _extends2.default)({
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
style: style,
ref: ref
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
,
className: resolvedStyles.static
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
}, safeHtmlAttributes, {
// eslint-disable-next-line react/button-has-type
type: type,
onClick: onClick,
disabled: isDisabled,
css: [baseStyles, focusRingStyles, isDisabled ? disabledStyles : enabledStyles,
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
backgroundColor && _styleMaps.backgroundColorStylesMap[backgroundColor],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
padding && _styleMaps.paddingStylesMap.padding[padding],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlock && _styleMaps.paddingStylesMap.paddingBlock[paddingBlock],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlockStart && _styleMaps.paddingStylesMap.paddingBlockStart[paddingBlockStart],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlockEnd && _styleMaps.paddingStylesMap.paddingBlockEnd[paddingBlockEnd],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInline && _styleMaps.paddingStylesMap.paddingInline[paddingInline],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInlineStart && _styleMaps.paddingStylesMap.paddingInlineStart[paddingInlineStart],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInlineEnd && _styleMaps.paddingStylesMap.paddingInlineEnd[paddingInlineEnd],
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
resolvedStyles.emotion],
"data-testid": testId
}), children)
);
});
var _default = exports.default = Pressable;

@@ -17,5 +17,4 @@ import _extends from "@babel/runtime/helpers/extends";

import VisuallyHidden from '@atlaskit/visually-hidden';
import { backgroundColorStylesMap, borderColorMap, borderWidthMap, isSurfaceColorToken, paddingStylesMap, positiveSpaceMap, surfaceColorStylesMap } from '../xcss/style-maps.partial';
import { backgroundColorStylesMap, borderColorMap, borderWidthMap, paddingStylesMap, positiveSpaceMap } from '../xcss/style-maps.partial';
import { parseXcss } from '../xcss/xcss';
import { SurfaceContext } from './internal/surface-provider';
// TODO: duplicates FocusRing styles from `@atlaskit/focus-ring`.

@@ -98,3 +97,3 @@ const focusRingStyles = css({

packageName: "@atlaskit/primitives",
packageVersion: "8.2.1",
packageVersion: "9.0.0",
analyticsData: analyticsContext,

@@ -126,3 +125,3 @@ actionSubject: 'link'

const Component = isRouterLink ? RouterLink : 'a';
const node = jsx(Component
return jsx(Component
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766

@@ -147,4 +146,2 @@ , _extends({

// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
isSurfaceColorToken(backgroundColor) && surfaceColorStylesMap[backgroundColor],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
padding && paddingStylesMap.padding[padding],

@@ -170,5 +167,2 @@ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766

}, OPENS_NEW_WINDOW_LABEL));
return backgroundColor ? jsx(SurfaceContext.Provider, {
value: backgroundColor
}, node) : node;
};

@@ -175,0 +169,0 @@

@@ -13,5 +13,4 @@ import _extends from "@babel/runtime/helpers/extends";

import InteractionContext from '@atlaskit/interaction-context';
import { backgroundColorStylesMap, borderColorMap, borderWidthMap, isSurfaceColorToken, paddingStylesMap, positiveSpaceMap, surfaceColorStylesMap } from '../xcss/style-maps.partial';
import { backgroundColorStylesMap, borderColorMap, borderWidthMap, paddingStylesMap, positiveSpaceMap } from '../xcss/style-maps.partial';
import { parseXcss } from '../xcss/xcss';
import { SurfaceContext } from './internal/surface-provider';
// This duplicates FocusRing styles from `@atlaskit/focus-ring`.

@@ -90,3 +89,3 @@ const focusRingStyles = css({

packageName: "@atlaskit/primitives",
packageVersion: "8.2.1",
packageVersion: "9.0.0",
analyticsData: analyticsContext,

@@ -103,44 +102,40 @@ actionSubject: 'button'

const resolvedStyles = parseXcss(xcss);
const node =
// eslint-disable-next-line @atlaskit/design-system/no-html-button
jsx("button", _extends({
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
style: style,
ref: ref
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
,
className: resolvedStyles.static
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
}, safeHtmlAttributes, {
// eslint-disable-next-line react/button-has-type
type: type,
onClick: onClick,
disabled: isDisabled,
css: [baseStyles, focusRingStyles, isDisabled ? disabledStyles : enabledStyles,
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
backgroundColor && backgroundColorStylesMap[backgroundColor],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
isSurfaceColorToken(backgroundColor) && surfaceColorStylesMap[backgroundColor],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
padding && paddingStylesMap.padding[padding],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlock && paddingStylesMap.paddingBlock[paddingBlock],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlockStart && paddingStylesMap.paddingBlockStart[paddingBlockStart],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlockEnd && paddingStylesMap.paddingBlockEnd[paddingBlockEnd],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInline && paddingStylesMap.paddingInline[paddingInline],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInlineStart && paddingStylesMap.paddingInlineStart[paddingInlineStart],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInlineEnd && paddingStylesMap.paddingInlineEnd[paddingInlineEnd],
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
resolvedStyles.emotion],
"data-testid": testId
}), children);
return backgroundColor ? jsx(SurfaceContext.Provider, {
value: backgroundColor
}, node) : node;
return (
// eslint-disable-next-line @atlaskit/design-system/no-html-button
jsx("button", _extends({
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
style: style,
ref: ref
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
,
className: resolvedStyles.static
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
}, safeHtmlAttributes, {
// eslint-disable-next-line react/button-has-type
type: type,
onClick: onClick,
disabled: isDisabled,
css: [baseStyles, focusRingStyles, isDisabled ? disabledStyles : enabledStyles,
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
backgroundColor && backgroundColorStylesMap[backgroundColor],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
padding && paddingStylesMap.padding[padding],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlock && paddingStylesMap.paddingBlock[paddingBlock],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlockStart && paddingStylesMap.paddingBlockStart[paddingBlockStart],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlockEnd && paddingStylesMap.paddingBlockEnd[paddingBlockEnd],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInline && paddingStylesMap.paddingInline[paddingInline],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInlineStart && paddingStylesMap.paddingInlineStart[paddingInlineStart],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInlineEnd && paddingStylesMap.paddingInlineEnd[paddingInlineEnd],
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
resolvedStyles.emotion],
"data-testid": testId
}), children)
);
});
export default Pressable;

@@ -21,5 +21,4 @@ import _extends from "@babel/runtime/helpers/extends";

import VisuallyHidden from '@atlaskit/visually-hidden';
import { backgroundColorStylesMap, borderColorMap, borderWidthMap, isSurfaceColorToken, paddingStylesMap, positiveSpaceMap, surfaceColorStylesMap } from '../xcss/style-maps.partial';
import { backgroundColorStylesMap, borderColorMap, borderWidthMap, paddingStylesMap, positiveSpaceMap } from '../xcss/style-maps.partial';
import { parseXcss } from '../xcss/xcss';
import { SurfaceContext } from './internal/surface-provider';
// TODO: duplicates FocusRing styles from `@atlaskit/focus-ring`.

@@ -102,3 +101,3 @@ var focusRingStyles = css({

packageName: "@atlaskit/primitives",
packageVersion: "8.2.1",
packageVersion: "9.0.0",
analyticsData: analyticsContext,

@@ -128,3 +127,3 @@ actionSubject: 'link'

var Component = isRouterLink ? RouterLink : 'a';
var node = jsx(Component
return jsx(Component
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766

@@ -149,4 +148,2 @@ , _extends({

// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
isSurfaceColorToken(backgroundColor) && surfaceColorStylesMap[backgroundColor],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
padding && paddingStylesMap.padding[padding],

@@ -172,5 +169,2 @@ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766

}, OPENS_NEW_WINDOW_LABEL));
return backgroundColor ? jsx(SurfaceContext.Provider, {
value: backgroundColor
}, node) : node;
};

@@ -177,0 +171,0 @@

@@ -16,5 +16,4 @@ import _extends from "@babel/runtime/helpers/extends";

import InteractionContext from '@atlaskit/interaction-context';
import { backgroundColorStylesMap, borderColorMap, borderWidthMap, isSurfaceColorToken, paddingStylesMap, positiveSpaceMap, surfaceColorStylesMap } from '../xcss/style-maps.partial';
import { backgroundColorStylesMap, borderColorMap, borderWidthMap, paddingStylesMap, positiveSpaceMap } from '../xcss/style-maps.partial';
import { parseXcss } from '../xcss/xcss';
import { SurfaceContext } from './internal/surface-provider';
// This duplicates FocusRing styles from `@atlaskit/focus-ring`.

@@ -94,3 +93,3 @@ var focusRingStyles = css({

packageName: "@atlaskit/primitives",
packageVersion: "8.2.1",
packageVersion: "9.0.0",
analyticsData: analyticsContext,

@@ -105,44 +104,40 @@ actionSubject: 'button'

var resolvedStyles = parseXcss(xcss);
var node =
// eslint-disable-next-line @atlaskit/design-system/no-html-button
jsx("button", _extends({
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
style: style,
ref: ref
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
,
className: resolvedStyles.static
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
}, safeHtmlAttributes, {
// eslint-disable-next-line react/button-has-type
type: type,
onClick: onClick,
disabled: isDisabled,
css: [baseStyles, focusRingStyles, isDisabled ? disabledStyles : enabledStyles,
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
backgroundColor && backgroundColorStylesMap[backgroundColor],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
isSurfaceColorToken(backgroundColor) && surfaceColorStylesMap[backgroundColor],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
padding && paddingStylesMap.padding[padding],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlock && paddingStylesMap.paddingBlock[paddingBlock],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlockStart && paddingStylesMap.paddingBlockStart[paddingBlockStart],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlockEnd && paddingStylesMap.paddingBlockEnd[paddingBlockEnd],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInline && paddingStylesMap.paddingInline[paddingInline],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInlineStart && paddingStylesMap.paddingInlineStart[paddingInlineStart],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInlineEnd && paddingStylesMap.paddingInlineEnd[paddingInlineEnd],
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
resolvedStyles.emotion],
"data-testid": testId
}), children);
return backgroundColor ? jsx(SurfaceContext.Provider, {
value: backgroundColor
}, node) : node;
return (
// eslint-disable-next-line @atlaskit/design-system/no-html-button
jsx("button", _extends({
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
style: style,
ref: ref
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
,
className: resolvedStyles.static
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
}, safeHtmlAttributes, {
// eslint-disable-next-line react/button-has-type
type: type,
onClick: onClick,
disabled: isDisabled,
css: [baseStyles, focusRingStyles, isDisabled ? disabledStyles : enabledStyles,
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
backgroundColor && backgroundColorStylesMap[backgroundColor],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
padding && paddingStylesMap.padding[padding],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlock && paddingStylesMap.paddingBlock[paddingBlock],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlockStart && paddingStylesMap.paddingBlockStart[paddingBlockStart],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingBlockEnd && paddingStylesMap.paddingBlockEnd[paddingBlockEnd],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInline && paddingStylesMap.paddingInline[paddingInline],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInlineStart && paddingStylesMap.paddingInlineStart[paddingInlineStart],
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
paddingInlineEnd && paddingStylesMap.paddingInlineEnd[paddingInlineEnd],
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
resolvedStyles.emotion],
"data-testid": testId
}), children)
);
});
export default Pressable;
{
"name": "@atlaskit/primitives",
"version": "8.2.1",
"version": "9.0.0",
"description": "Primitives are token-backed low-level building blocks.",

@@ -5,0 +5,0 @@ "publishConfig": {

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