@equinor/eds-core-react 0.15.0-dev.20211116v2 → 0.15.0-dev.20211118

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.
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('focus-visible');
6
5
  var React = require('react');
7
6
  var styled = require('styled-components');
8
7
  var edsTokens = require('@equinor/eds-tokens');
9
8
  var R = require('ramda');
10
9
  var jsxRuntime = require('react/jsx-runtime');
11
10
  var edsIcons = require('@equinor/eds-icons');
11
+ require('focus-visible');
12
12
  var ReactDom = require('react-dom');
13
13
  var reactPopper = require('react-popper');
14
14
  var downshift = require('downshift');
@@ -8536,7 +8536,7 @@ const Input$1 = styled__default['default'](BaseInput).withConfig({
8536
8536
  track
8537
8537
  }
8538
8538
  }
8539
- }) => styled.css(["&[data-focus-visible-added]:focus + span{outline-offset:", ";}&:checked + span > span{background-color:", ";}&:checked + span > span:last-child{transform:translate(180%,-50%);background-color:", ";}@media (hover:hover) and (pointer:fine){&:hover + span{background-color:", ";}}"], states.focus.outline.offset, disabled ? states.disabled.background : track.states.active.background, handle.background, disabled ? 'transparent' : states.hover.background));
8539
+ }) => styled.css(["&[data-focus-visible-added]:focus + span{", "}&:checked + span > span{background-color:", ";}&:checked + span > span:last-child{transform:translate(180%,-50%);background-color:", ";}@media (hover:hover) and (pointer:fine){&:hover + span{background-color:", ";}}"], outlineTemplate(states.focus.outline), disabled ? states.disabled.background : track.states.active.background, handle.background, disabled ? 'transparent' : states.hover.background));
8540
8540
  const Track$1 = styled__default['default'].span.withConfig({
8541
8541
  displayName: "SwitchSmall__Track",
8542
8542
  componentId: "sc-1a99mis-1"
@@ -2,6 +2,7 @@ import { forwardRef } from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
  import { BaseInput, GridWrapper, BaseInputWrapper } from './Switch.styles.js';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
5
+ import { outlineTemplate } from '../../utils/templates/focus.js';
5
6
 
6
7
  const Input = styled(BaseInput).withConfig({
7
8
  displayName: "SwitchSmall__Input",
@@ -15,7 +16,7 @@ const Input = styled(BaseInput).withConfig({
15
16
  track
16
17
  }
17
18
  }
18
- }) => css(["&[data-focus-visible-added]:focus + span{outline-offset:", ";}&:checked + span > span{background-color:", ";}&:checked + span > span:last-child{transform:translate(180%,-50%);background-color:", ";}@media (hover:hover) and (pointer:fine){&:hover + span{background-color:", ";}}"], states.focus.outline.offset, disabled ? states.disabled.background : track.states.active.background, handle.background, disabled ? 'transparent' : states.hover.background));
19
+ }) => css(["&[data-focus-visible-added]:focus + span{", "}&:checked + span > span{background-color:", ";}&:checked + span > span:last-child{transform:translate(180%,-50%);background-color:", ";}@media (hover:hover) and (pointer:fine){&:hover + span{background-color:", ";}}"], outlineTemplate(states.focus.outline), disabled ? states.disabled.background : track.states.active.background, handle.background, disabled ? 'transparent' : states.hover.background));
19
20
  const Track = styled.span.withConfig({
20
21
  displayName: "SwitchSmall__Track",
21
22
  componentId: "sc-1a99mis-1"
package/dist/esm/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import 'focus-visible';
2
1
  export { Table } from './components/Table/index.js';
3
2
  export { Icon } from './components/Icon/index.js';
4
3
  export { List } from './components/List/index.js';
@@ -1,3 +1,4 @@
1
+ import 'focus-visible';
1
2
  import { css } from 'styled-components';
2
3
  import { tokens } from '@equinor/eds-tokens';
3
4
  import { shorthand } from './common.js';
@@ -1,4 +1,3 @@
1
- import 'focus-visible';
2
1
  export * from './components/Button';
3
2
  export * from './components/Typography';
4
3
  export * from './components/Table';
@@ -1,2 +1,3 @@
1
+ import 'focus-visible';
1
2
  import { Outline } from '@equinor/eds-tokens';
2
3
  export declare const outlineTemplate: (outline: Outline) => import("styled-components").FlattenSimpleInterpolation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/eds-core-react",
3
- "version": "0.15.0-dev.20211116v2",
3
+ "version": "0.15.0-dev.20211118",
4
4
  "description": "The React implementation of the Equinor Design System",
5
5
  "sideEffects": false,
6
6
  "main": "dist/core-react.cjs.js",
@@ -91,6 +91,7 @@
91
91
  "pnpm": ">=4",
92
92
  "node": ">=10.0.0"
93
93
  },
94
+ "browserslist": "defaults, not IE 11",
94
95
  "scripts": {
95
96
  "build": "rollup -c && tsc -p tsconfig.json",
96
97
  "test": "tsc -p tsconfig.json && jest",