@bbl-digital/snorre 2.2.155 → 2.2.156

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/dist/bundle.js CHANGED
@@ -23912,7 +23912,11 @@
23912
23912
 
23913
23913
  /** @jsxImportSource @emotion/react */
23914
23914
 
23915
- const Option = props => {
23915
+ const Option = ({
23916
+ trackingEvent,
23917
+ trackingName,
23918
+ ...props
23919
+ }) => {
23916
23920
  const onChange = () => {
23917
23921
  if (props.onChange && !props.disabled) {
23918
23922
  props.onChange({
@@ -23926,6 +23930,8 @@
23926
23930
  nostyle: true,
23927
23931
  css: optionButton$1,
23928
23932
  onClick: onChange,
23933
+ trackingEvent: trackingEvent,
23934
+ trackingName: trackingName,
23929
23935
  children: React__default['default'].Children.map(props.children, child => {
23930
23936
  return child;
23931
23937
  })
@@ -4,7 +4,11 @@ import { Button, ListItem } from '../..';
4
4
  import { optionButton } from './styles';
5
5
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
6
6
 
7
- const Option = props => {
7
+ const Option = ({
8
+ trackingEvent,
9
+ trackingName,
10
+ ...props
11
+ }) => {
8
12
  const onChange = () => {
9
13
  if (props.onChange && !props.disabled) {
10
14
  props.onChange({
@@ -18,6 +22,8 @@ const Option = props => {
18
22
  nostyle: true,
19
23
  css: optionButton,
20
24
  onClick: onChange,
25
+ trackingEvent: trackingEvent,
26
+ trackingName: trackingName,
21
27
  children: React.Children.map(props.children, child => {
22
28
  return child;
23
29
  })
@@ -11,6 +11,10 @@ interface IProps {
11
11
  key?: string | number | undefined;
12
12
  /** Option children */
13
13
  children?: React.ReactNode;
14
+ /** Add a data-tracking-event attribute. */
15
+ trackingEvent?: string;
16
+ /** Add a data-tracking-name attribute. */
17
+ trackingName?: string;
14
18
  }
15
19
  declare const Option: React.FC<IProps>;
16
20
  export default Option;
@@ -1 +1 @@
1
- {"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Select/Option.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,UAAU,MAAM;IACd,wBAAwB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,CAAA;IAC1B,eAAe;IACf,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,sBAAsB;IACtB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;IACjC,sBAAsB;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAiB5B,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Select/Option.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,UAAU,MAAM;IACd,wBAAwB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,CAAA;IAC1B,eAAe;IACf,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,sBAAsB;IACtB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;IACjC,sBAAsB;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CA4B5B,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -4,7 +4,11 @@ import { Button, ListItem } from '../..';
4
4
  import { optionButton } from './styles';
5
5
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
6
6
 
7
- const Option = props => {
7
+ const Option = ({
8
+ trackingEvent,
9
+ trackingName,
10
+ ...props
11
+ }) => {
8
12
  const onChange = () => {
9
13
  if (props.onChange && !props.disabled) {
10
14
  props.onChange({
@@ -18,6 +22,8 @@ const Option = props => {
18
22
  nostyle: true,
19
23
  css: optionButton,
20
24
  onClick: onChange,
25
+ trackingEvent: trackingEvent,
26
+ trackingName: trackingName,
21
27
  children: React.Children.map(props.children, child => {
22
28
  return child;
23
29
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbl-digital/snorre",
3
- "version": "2.2.155",
3
+ "version": "2.2.156",
4
4
  "description": "Design library for BBL Digital",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",