@bolttech/molecules-dropdown 0.3.0 → 0.3.2

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.
Files changed (2) hide show
  1. package/index.cjs +31 -32
  2. package/package.json +3 -3
package/index.cjs CHANGED
@@ -99,7 +99,7 @@ var check = function (it) {
99
99
  };
100
100
 
101
101
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
102
- var global$e =
102
+ var global$f =
103
103
  // eslint-disable-next-line es/no-global-this -- safe
104
104
  check(typeof globalThis == 'object' && globalThis) ||
105
105
  check(typeof window == 'object' && window) ||
@@ -107,28 +107,28 @@ var global$e =
107
107
  check(typeof self == 'object' && self) ||
108
108
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
109
109
  // eslint-disable-next-line no-new-func -- fallback
110
- (function () { return this; })() || Function('return this')();
110
+ (function () { return this; })() || commonjsGlobal || Function('return this')();
111
111
 
112
112
  var shared$4 = {exports: {}};
113
113
 
114
- var global$d = global$e;
114
+ var global$e = global$f;
115
115
 
116
116
  // eslint-disable-next-line es/no-object-defineproperty -- safe
117
117
  var defineProperty$5 = Object.defineProperty;
118
118
 
119
119
  var defineGlobalProperty$3 = function (key, value) {
120
120
  try {
121
- defineProperty$5(global$d, key, { value: value, configurable: true, writable: true });
121
+ defineProperty$5(global$e, key, { value: value, configurable: true, writable: true });
122
122
  } catch (error) {
123
- global$d[key] = value;
123
+ global$e[key] = value;
124
124
  } return value;
125
125
  };
126
126
 
127
- var global$c = global$e;
127
+ var global$d = global$f;
128
128
  var defineGlobalProperty$2 = defineGlobalProperty$3;
129
129
 
130
130
  var SHARED = '__core-js_shared__';
131
- var store$3 = global$c[SHARED] || defineGlobalProperty$2(SHARED, {});
131
+ var store$3 = global$d[SHARED] || defineGlobalProperty$2(SHARED, {});
132
132
 
133
133
  var sharedStore = store$3;
134
134
 
@@ -137,10 +137,10 @@ var store$2 = sharedStore;
137
137
  (shared$4.exports = function (key, value) {
138
138
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
139
139
  })('versions', []).push({
140
- version: '3.29.1',
140
+ version: '3.30.2',
141
141
  mode: 'global',
142
142
  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
143
- license: 'https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE',
143
+ license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE',
144
144
  source: 'https://github.com/zloirock/core-js'
145
145
  });
146
146
 
@@ -178,11 +178,11 @@ var uid$2 = function (key) {
178
178
 
179
179
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
180
180
 
181
- var global$b = global$e;
181
+ var global$c = global$f;
182
182
  var userAgent = engineUserAgent;
183
183
 
184
- var process = global$b.process;
185
- var Deno = global$b.Deno;
184
+ var process = global$c.process;
185
+ var Deno = global$c.Deno;
186
186
  var versions = process && process.versions || Deno && Deno.version;
187
187
  var v8 = versions && versions.v8;
188
188
  var match, version;
@@ -210,13 +210,18 @@ var engineV8Version = version;
210
210
 
211
211
  var V8_VERSION = engineV8Version;
212
212
  var fails$e = fails$h;
213
+ var global$b = global$f;
214
+
215
+ var $String$5 = global$b.String;
213
216
 
214
217
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
215
218
  var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
216
219
  var symbol = Symbol();
217
220
  // Chrome 38 Symbol has incorrect toString conversion
218
221
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
219
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
222
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
223
+ // of course, fail.
224
+ return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
220
225
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
221
226
  !Symbol.sham && V8_VERSION && V8_VERSION < 41;
222
227
  });
@@ -229,7 +234,7 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
229
234
  && !Symbol.sham
230
235
  && typeof Symbol.iterator == 'symbol';
231
236
 
232
- var global$a = global$e;
237
+ var global$a = global$f;
233
238
  var shared$3 = shared$4.exports;
234
239
  var hasOwn$8 = hasOwnProperty_1;
235
240
  var uid$1 = uid$2;
@@ -318,7 +323,7 @@ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$c(function () {
318
323
 
319
324
  var objectDefineProperty = {};
320
325
 
321
- var global$9 = global$e;
326
+ var global$9 = global$f;
322
327
  var isObject$4 = isObject$6;
323
328
 
324
329
  var document$1 = global$9.document;
@@ -349,7 +354,7 @@ var functionCall = NATIVE_BIND$1 ? call$a.bind(call$a) : function () {
349
354
  return call$a.apply(call$a, arguments);
350
355
  };
351
356
 
352
- var global$8 = global$e;
357
+ var global$8 = global$f;
353
358
  var isCallable$f = isCallable$h;
354
359
 
355
360
  var aFunction = function (argument) {
@@ -776,7 +781,7 @@ var addToUnscopables$1 = function (key) {
776
781
 
777
782
  var iterators = {};
778
783
 
779
- var global$7 = global$e;
784
+ var global$7 = global$f;
780
785
  var isCallable$b = isCallable$h;
781
786
 
782
787
  var WeakMap$1 = global$7.WeakMap;
@@ -804,7 +809,7 @@ var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value
804
809
  };
805
810
 
806
811
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
807
- var global$6 = global$e;
812
+ var global$6 = global$f;
808
813
  var isObject$1 = isObject$6;
809
814
  var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
810
815
  var hasOwn$6 = hasOwnProperty_1;
@@ -1107,7 +1112,7 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
1107
1112
 
1108
1113
  var isForced_1 = isForced$1;
1109
1114
 
1110
- var global$5 = global$e;
1115
+ var global$5 = global$f;
1111
1116
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1112
1117
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
1113
1118
  var defineBuiltIn$3 = defineBuiltIn$4;
@@ -1524,7 +1529,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1524
1529
 
1525
1530
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1526
1531
 
1527
- var global$4 = global$e;
1532
+ var global$4 = global$f;
1528
1533
  var DOMIterables = domIterables;
1529
1534
  var DOMTokenListPrototype = domTokenListPrototype;
1530
1535
  var ArrayIteratorMethods = es_array_iterator;
@@ -1722,7 +1727,7 @@ var regexpFlags$1 = function () {
1722
1727
  };
1723
1728
 
1724
1729
  var fails$5 = fails$h;
1725
- var global$3 = global$e;
1730
+ var global$3 = global$f;
1726
1731
 
1727
1732
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1728
1733
  var $RegExp$2 = global$3.RegExp;
@@ -1753,7 +1758,7 @@ var regexpStickyHelpers = {
1753
1758
  };
1754
1759
 
1755
1760
  var fails$4 = fails$h;
1756
- var global$2 = global$e;
1761
+ var global$2 = global$f;
1757
1762
 
1758
1763
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1759
1764
  var $RegExp$1 = global$2.RegExp;
@@ -1764,7 +1769,7 @@ var regexpUnsupportedDotAll = fails$4(function () {
1764
1769
  });
1765
1770
 
1766
1771
  var fails$3 = fails$h;
1767
- var global$1 = global$e;
1772
+ var global$1 = global$f;
1768
1773
 
1769
1774
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1770
1775
  var $RegExp = global$1.RegExp;
@@ -2252,7 +2257,7 @@ const ClickableElement = /*#__PURE__*/styled__default["default"].div.withConfig(
2252
2257
  const ContainerDropdown = /*#__PURE__*/styled__default["default"].section.withConfig({
2253
2258
  displayName: "molecules-dropdownstyles__ContainerDropdown",
2254
2259
  componentId: "sc-3wugi4-1"
2255
- })(["display:flex;padding-top:", ";padding-bottom:", ";padding-right:", ";padding-left:", ";gap:", ";background-color:", ";border:", ";border-radius:", ";box-shadow:", ";input{display:inline-block;text-overflow:ellipsis;white-space:nowrap;width:100%;overflow-x:hidden;}.fieldLabel{color:", ";font-family:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}.requiredLabel{color:", ";font-family:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}label.material-symbols-sharp{color:", ";}&:focus-within{background-color:", ";border:", ";", "}", " ", ""], ({
2260
+ })(["display:flex;padding-top:", ";padding-bottom:", ";padding-right:", ";padding-left:", ";gap:", ";background-color:", ";border:", ";border-radius:", ";box-shadow:", ";input{display:inline-block;text-overflow:ellipsis;white-space:nowrap;width:100%;overflow-x:hidden;}.fieldLabel{color:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}.requiredLabel{color:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}label.material-symbols-sharp{color:", ";}&:focus-within{background-color:", ";border:", ";", "}", " ", ""], ({
2256
2261
  theme
2257
2262
  }) => theme.components.dropdown.paddingVertical, ({
2258
2263
  theme
@@ -2282,8 +2287,6 @@ const ContainerDropdown = /*#__PURE__*/styled__default["default"].section.withCo
2282
2287
  hasValue
2283
2288
  }) => theme.components.dropdown[variant].text.color.fieldLabel[hasValue ? 'filled' : 'default'], ({
2284
2289
  theme
2285
- }) => theme.components.dropdown.fieldLabel.fontFamily, ({
2286
- theme
2287
2290
  }) => theme.components.dropdown.fieldLabel.fontWeight, ({
2288
2291
  theme
2289
2292
  }) => theme.components.dropdown.fieldLabel.lineHeight, ({
@@ -2296,8 +2299,6 @@ const ContainerDropdown = /*#__PURE__*/styled__default["default"].section.withCo
2296
2299
  hasValue
2297
2300
  }) => theme.components.dropdown[variant].text.color.required[hasValue ? 'filled' : 'default'], ({
2298
2301
  theme
2299
- }) => theme.components.dropdown.required.fontFamily, ({
2300
- theme
2301
2302
  }) => theme.components.dropdown.required.fontWeight, ({
2302
2303
  theme
2303
2304
  }) => theme.components.dropdown.required.lineHeight, ({
@@ -2374,7 +2375,7 @@ const ContainerDropdown = /*#__PURE__*/styled__default["default"].section.withCo
2374
2375
  const SectionContainer = /*#__PURE__*/styled__default["default"].section.withConfig({
2375
2376
  displayName: "molecules-dropdownstyles__SectionContainer",
2376
2377
  componentId: "sc-3wugi4-2"
2377
- })(["position:relative;.errorMessage{padding-right:", ";padding-left:", ";label{color:", ";font-family:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}}"], ({
2378
+ })(["position:relative;.errorMessage{padding-right:", ";padding-left:", ";label{color:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}}"], ({
2378
2379
  theme
2379
2380
  }) => theme.components.dropdown.paddingHorizontal, ({
2380
2381
  theme
@@ -2383,8 +2384,6 @@ const SectionContainer = /*#__PURE__*/styled__default["default"].section.withCon
2383
2384
  variant
2384
2385
  }) => theme.components.dropdown[variant].text.color.errorMessage.error, ({
2385
2386
  theme
2386
- }) => theme.components.dropdown.error.fontFamily, ({
2387
- theme
2388
2387
  }) => theme.components.dropdown.error.fontWeight, ({
2389
2388
  theme
2390
2389
  }) => theme.components.dropdown.error.lineHeight, ({
@@ -2432,7 +2431,7 @@ const ReusableDropdownComponent = ({
2432
2431
  placeholder
2433
2432
  }) => {
2434
2433
  // we have to type cast because of jest. when testing it sets the type of useTheme to DefaultTheme
2435
- const theme = styled.useTheme();
2434
+ const theme = /*#__PURE__*/styled.useTheme();
2436
2435
  const sizeIcon = Number(theme.components.dropdown.icon.size.replace(/[^\d.-]+/g, ''));
2437
2436
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
2438
2437
  children: [jsxRuntime.jsxs(ContainerDropdown, Object.assign({
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@bolttech/molecules-dropdown",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "dependencies": {
5
5
  "@bolttech/atoms-icon": "0.1.8",
6
6
  "@bolttech/atoms-input": "0.0.1",
7
- "@bolttech/atoms-select": "0.3.0",
8
- "@edirect/frontend-foundations": "0.0.49",
7
+ "@bolttech/atoms-select": "0.4.1",
8
+ "@edirect/frontend-foundations": "0.0.51",
9
9
  "jest-styled-components": "7.1.1",
10
10
  "react": "18.2.0",
11
11
  "styled-components": "5.3.6"