@adam-milo/ui 1.0.31 → 1.0.33

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 (160) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +7 -3
  3. package/dist/index10.cjs +1 -1
  4. package/dist/index10.js +1 -1
  5. package/dist/index11.cjs +1 -1
  6. package/dist/index11.js +1 -1
  7. package/dist/index12.cjs +1 -1
  8. package/dist/index12.js +1 -1
  9. package/dist/index13.cjs +1 -1
  10. package/dist/index13.js +1 -1
  11. package/dist/index14.cjs +1 -1
  12. package/dist/index14.js +1 -1
  13. package/dist/index15.cjs +1 -1
  14. package/dist/index15.js +1 -1
  15. package/dist/index16.cjs +1 -1
  16. package/dist/index16.js +1 -1
  17. package/dist/index17.cjs +1 -1
  18. package/dist/index17.js +1 -1
  19. package/dist/index18.cjs +1 -1
  20. package/dist/index18.js +1 -1
  21. package/dist/index19.cjs +1 -1
  22. package/dist/index19.js +28 -27
  23. package/dist/index2.cjs +1 -1
  24. package/dist/index2.js +1 -1
  25. package/dist/index20.cjs +1 -1
  26. package/dist/index20.js +25 -35
  27. package/dist/index21.cjs +1 -1
  28. package/dist/index21.js +51 -12
  29. package/dist/index22.cjs +1 -0
  30. package/dist/index22.js +55 -0
  31. package/dist/index23.cjs +1 -1
  32. package/dist/index23.js +12 -20
  33. package/dist/index25.cjs +1 -1
  34. package/dist/index25.js +298 -13
  35. package/dist/index26.cjs +1 -0
  36. package/dist/index26.js +16 -0
  37. package/dist/index3.cjs +1 -1
  38. package/dist/index3.js +2 -2
  39. package/dist/index4.cjs +1 -1
  40. package/dist/index4.js +1 -1
  41. package/dist/index44.cjs +1 -1
  42. package/dist/index44.js +18 -3
  43. package/dist/index5.cjs +1 -1
  44. package/dist/index5.js +1 -1
  45. package/dist/index6.cjs +1 -1
  46. package/dist/index6.js +2 -2
  47. package/dist/index7.cjs +1 -1
  48. package/dist/index7.js +1 -1
  49. package/dist/index8.cjs +1 -1
  50. package/dist/index8.js +1 -1
  51. package/dist/index9.cjs +1 -1
  52. package/dist/index9.js +14 -14
  53. package/dist/src/components/layout/divider/Divider.component.d.ts +39 -0
  54. package/dist/src/components/layout/divider/Divider.component.d.ts.map +1 -0
  55. package/dist/src/components/typography/heading/Heading.component.d.ts +91 -0
  56. package/dist/src/components/typography/heading/Heading.component.d.ts.map +1 -0
  57. package/dist/src/index.d.ts +4 -0
  58. package/dist/src/index.d.ts.map +1 -1
  59. package/dist/style.css +1 -1
  60. package/package.json +2 -1
  61. package/dist/index24.cjs +0 -1
  62. package/dist/index24.js +0 -301
  63. package/dist/index28.cjs +0 -1
  64. package/dist/index28.js +0 -1193
  65. package/dist/index42.cjs +0 -1
  66. package/dist/index42.js +0 -21
  67. package/dist/index45.cjs +0 -1
  68. package/dist/index45.js +0 -11
  69. package/dist/index46.cjs +0 -1
  70. package/dist/index46.js +0 -70
  71. package/dist/index47.cjs +0 -1
  72. package/dist/index47.js +0 -39
  73. package/dist/index48.cjs +0 -1
  74. package/dist/index48.js +0 -64
  75. package/dist/index49.cjs +0 -1
  76. package/dist/index49.js +0 -10
  77. package/dist/index50.cjs +0 -1
  78. package/dist/index50.js +0 -212
  79. package/dist/index51.cjs +0 -1
  80. package/dist/index51.js +0 -29
  81. package/dist/index52.cjs +0 -1
  82. package/dist/index52.js +0 -208
  83. package/dist/index53.cjs +0 -1
  84. package/dist/index53.js +0 -14
  85. package/dist/index54.cjs +0 -1
  86. package/dist/index54.js +0 -293
  87. package/dist/index55.cjs +0 -1
  88. package/dist/index55.js +0 -18
  89. package/dist/index56.cjs +0 -1
  90. package/dist/index56.js +0 -43
  91. package/dist/index57.cjs +0 -1
  92. package/dist/index57.js +0 -89
  93. package/dist/index58.cjs +0 -1
  94. package/dist/index58.js +0 -14
  95. package/dist/index59.cjs +0 -1
  96. package/dist/index59.js +0 -71
  97. package/dist/index60.cjs +0 -1
  98. package/dist/index60.js +0 -6
  99. package/dist/index61.cjs +0 -1
  100. package/dist/index61.js +0 -14
  101. package/dist/index62.cjs +0 -1
  102. package/dist/index62.js +0 -34
  103. package/dist/index63.cjs +0 -1
  104. package/dist/index63.js +0 -122
  105. package/dist/index64.cjs +0 -1
  106. package/dist/index64.js +0 -11
  107. package/dist/index65.cjs +0 -1
  108. package/dist/index65.js +0 -17
  109. package/dist/index66.cjs +0 -1
  110. package/dist/index66.js +0 -297
  111. package/dist/index67.cjs +0 -1
  112. package/dist/index67.js +0 -25
  113. package/dist/index68.cjs +0 -1
  114. package/dist/index68.js +0 -39
  115. package/dist/index69.cjs +0 -1
  116. package/dist/index69.js +0 -625
  117. package/dist/index70.cjs +0 -1
  118. package/dist/index70.js +0 -39
  119. package/dist/index71.cjs +0 -1
  120. package/dist/index71.js +0 -38
  121. package/dist/index72.cjs +0 -1
  122. package/dist/index72.js +0 -7
  123. package/dist/index73.cjs +0 -1
  124. package/dist/index73.js +0 -10
  125. package/dist/index74.cjs +0 -1
  126. package/dist/index74.js +0 -5
  127. package/dist/index75.cjs +0 -1
  128. package/dist/index75.js +0 -35
  129. package/dist/index76.cjs +0 -1
  130. package/dist/index76.js +0 -180
  131. package/dist/index77.cjs +0 -1
  132. package/dist/index77.js +0 -21
  133. package/dist/index78.cjs +0 -1
  134. package/dist/index78.js +0 -721
  135. package/dist/index79.cjs +0 -1
  136. package/dist/index79.js +0 -154
  137. package/dist/index80.cjs +0 -1
  138. package/dist/index80.js +0 -173
  139. package/dist/index81.cjs +0 -1
  140. package/dist/index81.js +0 -47
  141. package/dist/index82.cjs +0 -1
  142. package/dist/index82.js +0 -13
  143. package/dist/index83.cjs +0 -1
  144. package/dist/index83.js +0 -19
  145. package/dist/index84.cjs +0 -1
  146. package/dist/index84.js +0 -102
  147. package/dist/index85.cjs +0 -1
  148. package/dist/index85.js +0 -88
  149. package/dist/index86.cjs +0 -1
  150. package/dist/index86.js +0 -11
  151. package/dist/index87.cjs +0 -1
  152. package/dist/index87.js +0 -29
  153. package/dist/index88.cjs +0 -1
  154. package/dist/index88.js +0 -37
  155. package/dist/index89.cjs +0 -1
  156. package/dist/index89.js +0 -16
  157. package/dist/index90.cjs +0 -1
  158. package/dist/index90.js +0 -48
  159. package/dist/index91.cjs +0 -1
  160. package/dist/index91.js +0 -9
package/dist/index87.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/index88.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/index88.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
- };
package/dist/index89.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./index90.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/index89.js DELETED
@@ -1,16 +0,0 @@
1
- import * as React from "react";
2
- import { stylesheetSingleton } from "./index90.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/index90.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index91.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/index90.js DELETED
@@ -1,48 +0,0 @@
1
- import { getNonce } from "./index91.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/index91.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/index91.js DELETED
@@ -1,9 +0,0 @@
1
- var getNonce = function() {
2
- if (typeof __webpack_nonce__ !== "undefined") {
3
- return __webpack_nonce__;
4
- }
5
- return void 0;
6
- };
7
- export {
8
- getNonce
9
- };