@adam-milo/ui 1.0.30 → 1.0.32
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/dist/index.cjs +1 -1
- package/dist/index.js +6 -2
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +1 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +1 -1
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +1 -1
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +1 -1
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +28 -27
- package/dist/index2.cjs +1 -1
- package/dist/index2.js +1 -1
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +43 -12
- package/dist/index21.cjs +1 -0
- package/dist/index21.js +55 -0
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +12 -20
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +298 -13
- package/dist/index25.cjs +1 -0
- package/dist/index25.js +16 -0
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +2 -2
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +18 -3
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +1 -1
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +2 -2
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +1 -1
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +1 -1
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +14 -14
- package/dist/src/components/layout/divider/Divider.component.d.ts +39 -0
- package/dist/src/components/layout/divider/Divider.component.d.ts.map +1 -0
- package/dist/src/components/layout/grid/Grid.component.d.ts +53 -0
- package/dist/src/components/layout/grid/Grid.component.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -1
- package/dist/index23.cjs +0 -1
- package/dist/index23.js +0 -301
- package/dist/index27.cjs +0 -1
- package/dist/index27.js +0 -1193
- package/dist/index40.cjs +0 -1
- package/dist/index40.js +0 -21
- package/dist/index43.cjs +0 -1
- package/dist/index43.js +0 -11
- package/dist/index44.cjs +0 -1
- package/dist/index44.js +0 -70
- package/dist/index45.cjs +0 -1
- package/dist/index45.js +0 -39
- package/dist/index46.cjs +0 -1
- package/dist/index46.js +0 -64
- package/dist/index47.cjs +0 -1
- package/dist/index47.js +0 -10
- package/dist/index48.cjs +0 -1
- package/dist/index48.js +0 -212
- package/dist/index49.cjs +0 -1
- package/dist/index49.js +0 -29
- package/dist/index50.cjs +0 -1
- package/dist/index50.js +0 -208
- package/dist/index51.cjs +0 -1
- package/dist/index51.js +0 -14
- package/dist/index52.cjs +0 -1
- package/dist/index52.js +0 -293
- package/dist/index53.cjs +0 -1
- package/dist/index53.js +0 -18
- package/dist/index54.cjs +0 -1
- package/dist/index54.js +0 -43
- package/dist/index55.cjs +0 -1
- package/dist/index55.js +0 -89
- package/dist/index56.cjs +0 -1
- package/dist/index56.js +0 -14
- package/dist/index57.cjs +0 -1
- package/dist/index57.js +0 -71
- package/dist/index58.cjs +0 -1
- package/dist/index58.js +0 -6
- package/dist/index59.cjs +0 -1
- package/dist/index59.js +0 -14
- package/dist/index60.cjs +0 -1
- package/dist/index60.js +0 -34
- package/dist/index61.cjs +0 -1
- package/dist/index61.js +0 -122
- package/dist/index62.cjs +0 -1
- package/dist/index62.js +0 -11
- package/dist/index63.cjs +0 -1
- package/dist/index63.js +0 -17
- package/dist/index64.cjs +0 -1
- package/dist/index64.js +0 -297
- package/dist/index65.cjs +0 -1
- package/dist/index65.js +0 -25
- package/dist/index66.cjs +0 -1
- package/dist/index66.js +0 -39
- package/dist/index67.cjs +0 -1
- package/dist/index67.js +0 -625
- package/dist/index68.cjs +0 -1
- package/dist/index68.js +0 -39
- package/dist/index69.cjs +0 -1
- package/dist/index69.js +0 -38
- package/dist/index70.cjs +0 -1
- package/dist/index70.js +0 -7
- package/dist/index71.cjs +0 -1
- package/dist/index71.js +0 -10
- package/dist/index72.cjs +0 -1
- package/dist/index72.js +0 -5
- package/dist/index73.cjs +0 -1
- package/dist/index73.js +0 -35
- package/dist/index74.cjs +0 -1
- package/dist/index74.js +0 -180
- package/dist/index75.cjs +0 -1
- package/dist/index75.js +0 -21
- package/dist/index76.cjs +0 -1
- package/dist/index76.js +0 -721
- package/dist/index77.cjs +0 -1
- package/dist/index77.js +0 -154
- package/dist/index78.cjs +0 -1
- package/dist/index78.js +0 -173
- package/dist/index79.cjs +0 -1
- package/dist/index79.js +0 -88
- package/dist/index80.cjs +0 -1
- package/dist/index80.js +0 -47
- package/dist/index81.cjs +0 -1
- package/dist/index81.js +0 -13
- package/dist/index82.cjs +0 -1
- package/dist/index82.js +0 -19
- package/dist/index83.cjs +0 -1
- package/dist/index83.js +0 -102
- package/dist/index84.cjs +0 -1
- package/dist/index84.js +0 -11
- package/dist/index85.cjs +0 -1
- package/dist/index85.js +0 -29
- package/dist/index86.cjs +0 -1
- package/dist/index86.js +0 -16
- package/dist/index87.cjs +0 -1
- package/dist/index87.js +0 -48
- package/dist/index88.cjs +0 -1
- package/dist/index88.js +0 -9
- package/dist/index89.cjs +0 -1
- package/dist/index89.js +0 -37
package/dist/index85.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
function useCallbackRef(initialValue, callback) {
|
|
3
|
-
var ref = useState(function() {
|
|
4
|
-
return {
|
|
5
|
-
// value
|
|
6
|
-
value: initialValue,
|
|
7
|
-
// last callback
|
|
8
|
-
callback,
|
|
9
|
-
// "memoized" public interface
|
|
10
|
-
facade: {
|
|
11
|
-
get current() {
|
|
12
|
-
return ref.value;
|
|
13
|
-
},
|
|
14
|
-
set current(value) {
|
|
15
|
-
var last = ref.value;
|
|
16
|
-
if (last !== value) {
|
|
17
|
-
ref.value = value;
|
|
18
|
-
ref.callback(value, last);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
})[0];
|
|
24
|
-
ref.callback = callback;
|
|
25
|
-
return ref.facade;
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
useCallbackRef
|
|
29
|
-
};
|
package/dist/index86.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./index87.cjs");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const r=n(e);exports.styleHookSingleton=function(){var e=t.stylesheetSingleton();return function(t,n){r.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}};
|
package/dist/index86.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { stylesheetSingleton } from "./index87.js";
|
|
3
|
-
var styleHookSingleton = function() {
|
|
4
|
-
var sheet = stylesheetSingleton();
|
|
5
|
-
return function(styles, isDynamic) {
|
|
6
|
-
React.useEffect(function() {
|
|
7
|
-
sheet.add(styles);
|
|
8
|
-
return function() {
|
|
9
|
-
sheet.remove();
|
|
10
|
-
};
|
|
11
|
-
}, [styles && isDynamic]);
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
styleHookSingleton
|
|
16
|
-
};
|
package/dist/index87.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index88.cjs");exports.stylesheetSingleton=function(){var t=0,n=null;return{add:function(o){var r,u;0==t&&(n=function(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var n=e.getNonce();return n&&t.setAttribute("nonce",n),t}())&&(u=o,(r=n).styleSheet?r.styleSheet.cssText=u:r.appendChild(document.createTextNode(u)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(n)),t++},remove:function(){! --t&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}};
|
package/dist/index87.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { getNonce } from "./index88.js";
|
|
2
|
-
function makeStyleTag() {
|
|
3
|
-
if (!document)
|
|
4
|
-
return null;
|
|
5
|
-
var tag = document.createElement("style");
|
|
6
|
-
tag.type = "text/css";
|
|
7
|
-
var nonce = getNonce();
|
|
8
|
-
if (nonce) {
|
|
9
|
-
tag.setAttribute("nonce", nonce);
|
|
10
|
-
}
|
|
11
|
-
return tag;
|
|
12
|
-
}
|
|
13
|
-
function injectStyles(tag, css) {
|
|
14
|
-
if (tag.styleSheet) {
|
|
15
|
-
tag.styleSheet.cssText = css;
|
|
16
|
-
} else {
|
|
17
|
-
tag.appendChild(document.createTextNode(css));
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
function insertStyleTag(tag) {
|
|
21
|
-
var head = document.head || document.getElementsByTagName("head")[0];
|
|
22
|
-
head.appendChild(tag);
|
|
23
|
-
}
|
|
24
|
-
var stylesheetSingleton = function() {
|
|
25
|
-
var counter = 0;
|
|
26
|
-
var stylesheet = null;
|
|
27
|
-
return {
|
|
28
|
-
add: function(style) {
|
|
29
|
-
if (counter == 0) {
|
|
30
|
-
if (stylesheet = makeStyleTag()) {
|
|
31
|
-
injectStyles(stylesheet, style);
|
|
32
|
-
insertStyleTag(stylesheet);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
counter++;
|
|
36
|
-
},
|
|
37
|
-
remove: function() {
|
|
38
|
-
counter--;
|
|
39
|
-
if (!counter && stylesheet) {
|
|
40
|
-
stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);
|
|
41
|
-
stylesheet = null;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
export {
|
|
47
|
-
stylesheetSingleton
|
|
48
|
-
};
|
package/dist/index88.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.getNonce=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__};
|
package/dist/index88.js
DELETED
package/dist/index89.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var t={left:0,top:0,right:0,gap:0},n=function(t){return parseInt(t||"",10)||0};exports.getGapWidth=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return t;var i=function(t){var e=window.getComputedStyle(document.body),i=e["padding"===t?"paddingLeft":"marginLeft"],d=e["padding"===t?"paddingTop":"marginTop"],r=e["padding"===t?"paddingRight":"marginRight"];return[n(i),n(d),n(r)]}(e),d=document.documentElement.clientWidth,r=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,r-d+i[2]-i[0])}},exports.zeroGap=t;
|
package/dist/index89.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var zeroGap = {
|
|
2
|
-
left: 0,
|
|
3
|
-
top: 0,
|
|
4
|
-
right: 0,
|
|
5
|
-
gap: 0
|
|
6
|
-
};
|
|
7
|
-
var parse = function(x) {
|
|
8
|
-
return parseInt(x || "", 10) || 0;
|
|
9
|
-
};
|
|
10
|
-
var getOffset = function(gapMode) {
|
|
11
|
-
var cs = window.getComputedStyle(document.body);
|
|
12
|
-
var left = cs[gapMode === "padding" ? "paddingLeft" : "marginLeft"];
|
|
13
|
-
var top = cs[gapMode === "padding" ? "paddingTop" : "marginTop"];
|
|
14
|
-
var right = cs[gapMode === "padding" ? "paddingRight" : "marginRight"];
|
|
15
|
-
return [parse(left), parse(top), parse(right)];
|
|
16
|
-
};
|
|
17
|
-
var getGapWidth = function(gapMode) {
|
|
18
|
-
if (gapMode === void 0) {
|
|
19
|
-
gapMode = "margin";
|
|
20
|
-
}
|
|
21
|
-
if (typeof window === "undefined") {
|
|
22
|
-
return zeroGap;
|
|
23
|
-
}
|
|
24
|
-
var offsets = getOffset(gapMode);
|
|
25
|
-
var documentWidth = document.documentElement.clientWidth;
|
|
26
|
-
var windowWidth = window.innerWidth;
|
|
27
|
-
return {
|
|
28
|
-
left: offsets[0],
|
|
29
|
-
top: offsets[1],
|
|
30
|
-
right: offsets[2],
|
|
31
|
-
gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0])
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
getGapWidth,
|
|
36
|
-
zeroGap
|
|
37
|
-
};
|