@dreamcommerce/aurora 3.0.0-274 → 3.0.0-276

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.
@@ -29,20 +29,8 @@ var MessageBox = /*#__PURE__*/React__default['default'].forwardRef(function (_re
29
29
  noRadius = _ref$noRadius === void 0 ? false : _ref$noRadius;
30
30
  var Icon = message_box_constants.MESSAGE_BOX_ICONS[variant];
31
31
  var iconColor = message_box_constants.MESSAGE_BOX_ICON_COLORS[variant];
32
- var localRef = React.useRef(null);
33
- React.useImperativeHandle(ref, function () {
34
- return localRef.current;
35
- });
36
- React.useEffect(function () {
37
- var element = localRef.current;
38
- if (!element) return;
39
- var links = element.querySelectorAll('a[target="_blank"]');
40
- links.forEach(function (link) {
41
- link.classList.add('message_box-link-icon');
42
- });
43
- }, []);
44
32
  return /*#__PURE__*/React__default['default'].createElement("div", {
45
- ref: localRef,
33
+ ref: ref,
46
34
  className: cn.cn(message_box_variants.messageBoxVariants({
47
35
  variant: variant
48
36
  }), {
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -10,7 +10,10 @@ var MultiSelectUtils = /*#__PURE__*/_rollupPluginBabelHelpers.createClass(functi
10
10
  });
11
11
  _MultiSelectUtils = MultiSelectUtils;
12
12
  _rollupPluginBabelHelpers.defineProperty(MultiSelectUtils, "isOptionVisible", function (option, search) {
13
- return option.text.toLocaleLowerCase().includes(search.toLocaleLowerCase());
13
+ var normalizePolish = function normalizePolish(str) {
14
+ return str.normalize('NFD').replace(/[\u0300-\u036f]/g, '').replace(/[\u0141-\u0142]/g, 'l').toLowerCase();
15
+ };
16
+ return normalizePolish(option.text).includes(normalizePolish(search));
14
17
  });
15
18
  _rollupPluginBabelHelpers.defineProperty(MultiSelectUtils, "isHeaderVisible", function (search, options, index) {
16
19
  var visible = false;
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -10,7 +10,10 @@ var SelectUtils = /*#__PURE__*/_rollupPluginBabelHelpers.createClass(function Se
10
10
  });
11
11
  _SelectUtils = SelectUtils;
12
12
  _rollupPluginBabelHelpers.defineProperty(SelectUtils, "localSearchIsOptionVisible", function (option, search) {
13
- return option.text.toLocaleLowerCase().includes(search.toLocaleLowerCase());
13
+ var normalizePolish = function normalizePolish(str) {
14
+ return str.normalize('NFD').replace(/[\u0300-\u036f]/g, '').replace(/[\u0141-\u0142]/g, 'l').toLowerCase();
15
+ };
16
+ return normalizePolish(option.text).includes(normalizePolish(search));
14
17
  });
15
18
  _rollupPluginBabelHelpers.defineProperty(SelectUtils, "localSearchIsHeaderVisible", function (search, options, index) {
16
19
  var visible = false;
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,4 +1,4 @@
1
- import React, { useRef, useImperativeHandle, useEffect } from 'react';
1
+ import React from 'react';
2
2
  import { cn } from '../../utilities/cn.js';
3
3
  import { Typography } from '../typography/typography.js';
4
4
  import { MESSAGE_BOX_ICONS, MESSAGE_BOX_ICON_COLORS, MESSAGE_BOX_VARIANTS } from './message_box_constants.js';
@@ -21,20 +21,8 @@ var MessageBox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
21
21
  noRadius = _ref$noRadius === void 0 ? false : _ref$noRadius;
22
22
  var Icon = MESSAGE_BOX_ICONS[variant];
23
23
  var iconColor = MESSAGE_BOX_ICON_COLORS[variant];
24
- var localRef = useRef(null);
25
- useImperativeHandle(ref, function () {
26
- return localRef.current;
27
- });
28
- useEffect(function () {
29
- var element = localRef.current;
30
- if (!element) return;
31
- var links = element.querySelectorAll('a[target="_blank"]');
32
- links.forEach(function (link) {
33
- link.classList.add('message_box-link-icon');
34
- });
35
- }, []);
36
24
  return /*#__PURE__*/React.createElement("div", {
37
- ref: localRef,
25
+ ref: ref,
38
26
  className: cn(messageBoxVariants({
39
27
  variant: variant
40
28
  }), {
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -6,7 +6,10 @@ var MultiSelectUtils = /*#__PURE__*/_createClass(function MultiSelectUtils() {
6
6
  });
7
7
  _MultiSelectUtils = MultiSelectUtils;
8
8
  _defineProperty(MultiSelectUtils, "isOptionVisible", function (option, search) {
9
- return option.text.toLocaleLowerCase().includes(search.toLocaleLowerCase());
9
+ var normalizePolish = function normalizePolish(str) {
10
+ return str.normalize('NFD').replace(/[\u0300-\u036f]/g, '').replace(/[\u0141-\u0142]/g, 'l').toLowerCase();
11
+ };
12
+ return normalizePolish(option.text).includes(normalizePolish(search));
10
13
  });
11
14
  _defineProperty(MultiSelectUtils, "isHeaderVisible", function (search, options, index) {
12
15
  var visible = false;
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -6,7 +6,10 @@ var SelectUtils = /*#__PURE__*/_createClass(function SelectUtils() {
6
6
  });
7
7
  _SelectUtils = SelectUtils;
8
8
  _defineProperty(SelectUtils, "localSearchIsOptionVisible", function (option, search) {
9
- return option.text.toLocaleLowerCase().includes(search.toLocaleLowerCase());
9
+ var normalizePolish = function normalizePolish(str) {
10
+ return str.normalize('NFD').replace(/[\u0300-\u036f]/g, '').replace(/[\u0141-\u0142]/g, 'l').toLowerCase();
11
+ };
12
+ return normalizePolish(option.text).includes(normalizePolish(search));
10
13
  });
11
14
  _defineProperty(SelectUtils, "localSearchIsHeaderVisible", function (search, options, index) {
12
15
  var visible = false;
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}