pge-front-common 4.0.4 → 4.0.5

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/lib/index.esm.js CHANGED
@@ -4,6 +4,36 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
4
4
  import * as ReactDOM from 'react-dom';
5
5
  import ReactDOM__default from 'react-dom';
6
6
 
7
+ function styleInject(css, ref) {
8
+ if ( ref === void 0 ) ref = {};
9
+ var insertAt = ref.insertAt;
10
+
11
+ if (!css || typeof document === 'undefined') { return; }
12
+
13
+ var head = document.head || document.getElementsByTagName('head')[0];
14
+ var style = document.createElement('style');
15
+ style.type = 'text/css';
16
+
17
+ if (insertAt === 'top') {
18
+ if (head.firstChild) {
19
+ head.insertBefore(style, head.firstChild);
20
+ } else {
21
+ head.appendChild(style);
22
+ }
23
+ } else {
24
+ head.appendChild(style);
25
+ }
26
+
27
+ if (style.styleSheet) {
28
+ style.styleSheet.cssText = css;
29
+ } else {
30
+ style.appendChild(document.createTextNode(css));
31
+ }
32
+ }
33
+
34
+ var css_248z$1 = ":root {\r\n --color-primary: #005a92;\r\n --color-hover: #005a92;\r\n --color-icon: #4a4a4b;\r\n --color-success: #198754;\r\n --color-warning: #cb8700;\r\n --color-alert: #cb0a0a;\r\n --color-information: #1a95b0;\r\n --color-border: #d9d9d9;\r\n --color-light-grey: #c3c3c3;\r\n --color-grey: #a0a0a0;\r\n --color-base-white: #ffffff;\r\n --color-base-black: #303030;\r\n}\r\n";
35
+ styleInject(css_248z$1);
36
+
7
37
  /*! *****************************************************************************
8
38
  Copyright (c) Microsoft Corporation.
9
39
 
@@ -59,33 +89,6 @@ function __makeTemplateObject(cooked, raw) {
59
89
  return cooked;
60
90
  }
61
91
 
62
- function styleInject(css, ref) {
63
- if ( ref === void 0 ) ref = {};
64
- var insertAt = ref.insertAt;
65
-
66
- if (typeof document === 'undefined') { return; }
67
-
68
- var head = document.head || document.getElementsByTagName('head')[0];
69
- var style = document.createElement('style');
70
- style.type = 'text/css';
71
-
72
- if (insertAt === 'top') {
73
- if (head.firstChild) {
74
- head.insertBefore(style, head.firstChild);
75
- } else {
76
- head.appendChild(style);
77
- }
78
- } else {
79
- head.appendChild(style);
80
- }
81
-
82
- if (style.styleSheet) {
83
- style.styleSheet.cssText = css;
84
- } else {
85
- style.appendChild(document.createTextNode(css));
86
- }
87
- }
88
-
89
92
  var css_248z = "/* src/styles/button.css */\r\n.button {\r\n all: unset;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n gap: 4px;\r\n cursor: pointer;\r\n padding: 12px 16px;\r\n border-radius: 8px;\r\n}\r\n\r\n.button.primary {\r\n width: fit-content;\r\n height: fit-content;\r\n border: 1px solid var(--color-primary);\r\n background: var(--color-primary);\r\n color: var(--color-base-white);\r\n font-weight: 700;\r\n}\r\n\r\n.button.secondary {\r\n width: fit-content;\r\n height: fit-content;\r\n border: 1px solid var(--color-primary);\r\n background: transparent;\r\n color: var(--color-primary);\r\n font-weight: 700;\r\n}\r\n\r\n.button:disabled {\r\n cursor: not-allowed;\r\n}\r\n";
90
93
  styleInject(css_248z);
91
94