willba-component-library 0.0.50 → 0.0.52
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 +27 -30
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +41 -44
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +13072 -13075
- package/lib/index.umd.js.map +1 -1
- package/package.json +2 -3
- package/rollup.config.mjs +0 -7
- package/src/index.ts +0 -2
- package/tsconfig.json +0 -2
package/lib/index.esm.js
CHANGED
|
@@ -1,36 +1,6 @@
|
|
|
1
1
|
import * as React__default from 'react';
|
|
2
2
|
import React__default__default, { useState, createContext, useContext, useRef, useEffect, forwardRef } from 'react';
|
|
3
3
|
|
|
4
|
-
function styleInject(css, ref) {
|
|
5
|
-
if ( ref === void 0 ) ref = {};
|
|
6
|
-
var insertAt = ref.insertAt;
|
|
7
|
-
|
|
8
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
9
|
-
|
|
10
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
11
|
-
var style = document.createElement('style');
|
|
12
|
-
style.type = 'text/css';
|
|
13
|
-
|
|
14
|
-
if (insertAt === 'top') {
|
|
15
|
-
if (head.firstChild) {
|
|
16
|
-
head.insertBefore(style, head.firstChild);
|
|
17
|
-
} else {
|
|
18
|
-
head.appendChild(style);
|
|
19
|
-
}
|
|
20
|
-
} else {
|
|
21
|
-
head.appendChild(style);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
if (style.styleSheet) {
|
|
25
|
-
style.styleSheet.cssText = css;
|
|
26
|
-
} else {
|
|
27
|
-
style.appendChild(document.createTextNode(css));
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
var css_248z$a = "/* montserrat-100normal - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: normal;\n font-display: swap;\n font-weight: 100;\n src:\n local('Montserrat Thin '),\n local('Montserrat-Thin'),\n url('./files/montserrat-latin-100.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-100.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-100italic - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: italic;\n font-display: swap;\n font-weight: 100;\n src:\n local('Montserrat Thin italic'),\n local('Montserrat-Thinitalic'),\n url('./files/montserrat-latin-100italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-100italic.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-200normal - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: normal;\n font-display: swap;\n font-weight: 200;\n src:\n local('Montserrat Extra Light '),\n local('Montserrat-Extra Light'),\n url('./files/montserrat-latin-200.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-200.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-200italic - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: italic;\n font-display: swap;\n font-weight: 200;\n src:\n local('Montserrat Extra Light italic'),\n local('Montserrat-Extra Lightitalic'),\n url('./files/montserrat-latin-200italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-200italic.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-300normal - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: normal;\n font-display: swap;\n font-weight: 300;\n src:\n local('Montserrat Light '),\n local('Montserrat-Light'),\n url('./files/montserrat-latin-300.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-300.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-300italic - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: italic;\n font-display: swap;\n font-weight: 300;\n src:\n local('Montserrat Light italic'),\n local('Montserrat-Lightitalic'),\n url('./files/montserrat-latin-300italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-300italic.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-400normal - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src:\n local('Montserrat Regular '),\n local('Montserrat-Regular'),\n url('./files/montserrat-latin-400.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-400.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-400italic - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: italic;\n font-display: swap;\n font-weight: 400;\n src:\n local('Montserrat Regular italic'),\n local('Montserrat-Regularitalic'),\n url('./files/montserrat-latin-400italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-400italic.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-500normal - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: normal;\n font-display: swap;\n font-weight: 500;\n src:\n local('Montserrat Medium '),\n local('Montserrat-Medium'),\n url('./files/montserrat-latin-500.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-500.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-500italic - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: italic;\n font-display: swap;\n font-weight: 500;\n src:\n local('Montserrat Medium italic'),\n local('Montserrat-Mediumitalic'),\n url('./files/montserrat-latin-500italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-500italic.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-600normal - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: normal;\n font-display: swap;\n font-weight: 600;\n src:\n local('Montserrat SemiBold '),\n local('Montserrat-SemiBold'),\n url('./files/montserrat-latin-600.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-600.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-600italic - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: italic;\n font-display: swap;\n font-weight: 600;\n src:\n local('Montserrat SemiBold italic'),\n local('Montserrat-SemiBolditalic'),\n url('./files/montserrat-latin-600italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-600italic.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-700normal - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: normal;\n font-display: swap;\n font-weight: 700;\n src:\n local('Montserrat Bold '),\n local('Montserrat-Bold'),\n url('./files/montserrat-latin-700.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-700.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-700italic - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: italic;\n font-display: swap;\n font-weight: 700;\n src:\n local('Montserrat Bold italic'),\n local('Montserrat-Bolditalic'),\n url('./files/montserrat-latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-700italic.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-800normal - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: normal;\n font-display: swap;\n font-weight: 800;\n src:\n local('Montserrat ExtraBold '),\n local('Montserrat-ExtraBold'),\n url('./files/montserrat-latin-800.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-800.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-800italic - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: italic;\n font-display: swap;\n font-weight: 800;\n src:\n local('Montserrat ExtraBold italic'),\n local('Montserrat-ExtraBolditalic'),\n url('./files/montserrat-latin-800italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-800italic.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-900normal - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: normal;\n font-display: swap;\n font-weight: 900;\n src:\n local('Montserrat Black '),\n local('Montserrat-Black'),\n url('./files/montserrat-latin-900.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-900.woff') format('woff'); /* Modern Browsers */\n}\n\n/* montserrat-900italic - latin */\n@font-face {\n font-family: 'Montserrat';\n font-style: italic;\n font-display: swap;\n font-weight: 900;\n src:\n local('Montserrat Black italic'),\n local('Montserrat-Blackitalic'),\n url('./files/montserrat-latin-900italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('./files/montserrat-latin-900italic.woff') format('woff'); /* Modern Browsers */\n}\n\n";
|
|
32
|
-
styleInject(css_248z$a);
|
|
33
|
-
|
|
34
4
|
function getDefaultExportFromCjs (x) {
|
|
35
5
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
36
6
|
}
|
|
@@ -97,6 +67,33 @@ var classnames = {exports: {}};
|
|
|
97
67
|
var classnamesExports = classnames.exports;
|
|
98
68
|
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
99
69
|
|
|
70
|
+
function styleInject(css, ref) {
|
|
71
|
+
if ( ref === void 0 ) ref = {};
|
|
72
|
+
var insertAt = ref.insertAt;
|
|
73
|
+
|
|
74
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
75
|
+
|
|
76
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
77
|
+
var style = document.createElement('style');
|
|
78
|
+
style.type = 'text/css';
|
|
79
|
+
|
|
80
|
+
if (insertAt === 'top') {
|
|
81
|
+
if (head.firstChild) {
|
|
82
|
+
head.insertBefore(style, head.firstChild);
|
|
83
|
+
} else {
|
|
84
|
+
head.appendChild(style);
|
|
85
|
+
}
|
|
86
|
+
} else {
|
|
87
|
+
head.appendChild(style);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (style.styleSheet) {
|
|
91
|
+
style.styleSheet.cssText = css;
|
|
92
|
+
} else {
|
|
93
|
+
style.appendChild(document.createTextNode(css));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
100
97
|
var css_248z$9 = ".storybook-button {\r\n font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;\r\n font-weight: 700;\r\n border: 0;\r\n border-radius: 3em;\r\n cursor: pointer;\r\n display: inline-block;\r\n line-height: 1;\r\n}\r\n.storybook-button--primary {\r\n color: white;\r\n background-color: #1ea7fd;\r\n}\r\n.storybook-button--secondary {\r\n color: #333;\r\n background-color: transparent;\r\n box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;\r\n}\r\n.storybook-button--small {\r\n font-size: 12px;\r\n padding: 10px 16px;\r\n}\r\n.storybook-button--medium {\r\n font-size: 14px;\r\n padding: 11px 20px;\r\n}\r\n.storybook-button--large {\r\n font-size: 16px;\r\n padding: 12px 24px;\r\n}";
|
|
101
98
|
styleInject(css_248z$9);
|
|
102
99
|
|