@npm_leadtech/legal-lib-components 0.3.40 → 0.3.42

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/build/index.js CHANGED
@@ -3485,6 +3485,36 @@ if (process.env.NODE_ENV !== 'production') {
3485
3485
  }
3486
3486
  });
3487
3487
 
3488
+ function styleInject(css, ref) {
3489
+ if ( ref === void 0 ) ref = {};
3490
+ var insertAt = ref.insertAt;
3491
+
3492
+ if (!css || typeof document === 'undefined') { return; }
3493
+
3494
+ var head = document.head || document.getElementsByTagName('head')[0];
3495
+ var style = document.createElement('style');
3496
+ style.type = 'text/css';
3497
+
3498
+ if (insertAt === 'top') {
3499
+ if (head.firstChild) {
3500
+ head.insertBefore(style, head.firstChild);
3501
+ } else {
3502
+ head.appendChild(style);
3503
+ }
3504
+ } else {
3505
+ head.appendChild(style);
3506
+ }
3507
+
3508
+ if (style.styleSheet) {
3509
+ style.styleSheet.cssText = css;
3510
+ } else {
3511
+ style.appendChild(document.createTextNode(css));
3512
+ }
3513
+ }
3514
+
3515
+ var css_248z = ".primary {\n background-color: blue;\n color: white; }\n";
3516
+ styleInject(css_248z);
3517
+
3488
3518
  var Button = (_ref) => {
3489
3519
  var {
3490
3520
  message = 'Hello world'