@companix/uikit 0.0.3 → 0.0.4

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 (165) hide show
  1. package/dist/Button/Button.scss +128 -0
  2. package/dist/ButtonGroup/ButtonGroup.scss +18 -0
  3. package/dist/Checkbox/Checkbox.scss +115 -0
  4. package/dist/DateInput/DateInput.scss +11 -0
  5. package/dist/DatePicker/Calendar.scss +125 -0
  6. package/dist/DatePicker/DatePicker.scss +0 -0
  7. package/dist/Dialog/Dialog.scss +25 -0
  8. package/dist/Dialog/Popup.scss +55 -0
  9. package/dist/DialogAlert/Alert.scss +52 -0
  10. package/dist/Drawer/Drawer.scss +112 -0
  11. package/dist/Form/Form.scss +70 -0
  12. package/dist/Form/Input.scss +24 -0
  13. package/dist/Icon/icon.scss +18 -0
  14. package/dist/OptionItem/Option.scss +89 -0
  15. package/dist/Popover/Popover.scss +80 -0
  16. package/dist/Radio/Radio.scss +148 -0
  17. package/dist/Scrollable/Scrollable.scss +50 -0
  18. package/dist/Select/Select.scss +80 -0
  19. package/dist/SelectTags/SelectTags.scss +66 -0
  20. package/dist/Spinner/Spinner.scss +14 -0
  21. package/dist/Stepper/StepperInput.scss +35 -0
  22. package/dist/Switch/Switch.scss +102 -0
  23. package/dist/Tabs/Tabs.scss +58 -0
  24. package/dist/TextArea/TextArea.scss +34 -0
  25. package/dist/Toaster/Toaster.scss +151 -0
  26. package/dist/Tooltip/Tooltip.scss +28 -0
  27. package/dist/bundle.es.js +56 -59
  28. package/dist/bundle.es10.js +35 -84
  29. package/dist/bundle.es11.js +30 -72
  30. package/dist/bundle.es12.js +14 -34
  31. package/dist/bundle.es13.js +7 -30
  32. package/dist/bundle.es14.js +33 -16
  33. package/dist/bundle.es15.js +24 -8
  34. package/dist/bundle.es16.js +15 -27
  35. package/dist/bundle.es17.js +22 -25
  36. package/dist/bundle.es18.js +13 -21
  37. package/dist/bundle.es19.js +38 -22
  38. package/dist/bundle.es2.js +45 -0
  39. package/dist/bundle.es20.js +16 -13
  40. package/dist/bundle.es21.js +34 -39
  41. package/dist/bundle.es22.js +20 -15
  42. package/dist/bundle.es23.js +38 -32
  43. package/dist/bundle.es24.js +110 -20
  44. package/dist/bundle.es25.js +106 -34
  45. package/dist/bundle.es26.js +34 -110
  46. package/dist/bundle.es27.js +11 -113
  47. package/dist/bundle.es28.js +23 -34
  48. package/dist/bundle.es29.js +35 -10
  49. package/dist/bundle.es3.js +10 -42
  50. package/dist/bundle.es30.js +20 -21
  51. package/dist/bundle.es31.js +81 -36
  52. package/dist/bundle.es32.js +20 -0
  53. package/dist/bundle.es33.js +16 -0
  54. package/dist/bundle.es34.js +24 -0
  55. package/dist/bundle.es35.js +5 -41
  56. package/dist/bundle.es36.js +18 -437
  57. package/dist/bundle.es37.js +14 -22
  58. package/dist/bundle.es38.js +68 -22
  59. package/dist/bundle.es39.js +68 -81
  60. package/dist/bundle.es4.js +85 -12
  61. package/dist/bundle.es40.js +31 -17
  62. package/dist/bundle.es41.js +67 -13
  63. package/dist/bundle.es43.js +75 -5
  64. package/dist/bundle.es44.js +46 -18
  65. package/dist/bundle.es45.js +42 -13
  66. package/dist/bundle.es5.js +82 -83
  67. package/dist/bundle.es6.js +74 -81
  68. package/dist/bundle.es7.js +26 -78
  69. package/dist/bundle.es8.js +80 -22
  70. package/dist/bundle.es9.js +71 -43
  71. package/dist/css-properties.scss +120 -0
  72. package/dist/{types/index.d.ts → index.d.ts} +0 -1
  73. package/dist/index.scss +25 -0
  74. package/dist/mixins.scss +100 -0
  75. package/dist/theme.scss +101 -0
  76. package/package.json +1 -1
  77. package/dist/bundle.es46.js +0 -72
  78. package/dist/bundle.es47.js +0 -70
  79. package/dist/bundle.es48.js +0 -34
  80. package/dist/bundle.es49.js +0 -70
  81. package/dist/bundle.es51.js +0 -78
  82. package/dist/bundle.es52.js +0 -51
  83. package/dist/bundle.es53.js +0 -45
  84. package/dist/bundle.es54.js +0 -40
  85. package/dist/bundle.es55.js +0 -36
  86. package/dist/bundle.es56.js +0 -9
  87. package/dist/bundle.es57.js +0 -9
  88. package/dist/bundle.es58.js +0 -7
  89. package/dist/bundle.es59.js +0 -9
  90. package/dist/bundle.es60.js +0 -8
  91. package/dist/bundle.es61.js +0 -19
  92. package/dist/bundle.es62.js +0 -15
  93. package/dist/bundle.es63.js +0 -22
  94. package/dist/bundle.es64.js +0 -45
  95. package/dist/bundle.es65.js +0 -28
  96. package/dist/bundle.es66.js +0 -34
  97. package/dist/bundle.es67.js +0 -6
  98. package/dist/bundle.es68.js +0 -12
  99. package/dist/bundle.es69.js +0 -47
  100. package/dist/bundle.es70.js +0 -11
  101. package/dist/bundle.es71.js +0 -18
  102. package/dist/bundle.es72.js +0 -32
  103. package/dist/bundle.es73.js +0 -35
  104. package/dist/bundle.es74.js +0 -6
  105. package/dist/bundle.es75.js +0 -7
  106. package/dist/bundle.es76.js +0 -7
  107. package/dist/bundle.es77.js +0 -11
  108. package/dist/bundle.es78.js +0 -17
  109. package/dist/bundle.es79.js +0 -7
  110. package/dist/bundle.es80.js +0 -17
  111. package/dist/bundle.es81.js +0 -25
  112. package/dist/uikit.css +0 -1
  113. /package/dist/{types/Button → Button}/index.d.ts +0 -0
  114. /package/dist/{types/ButtonGroup → ButtonGroup}/index.d.ts +0 -0
  115. /package/dist/{types/Checkbox → Checkbox}/index.d.ts +0 -0
  116. /package/dist/{types/Countdown → Countdown}/index.d.ts +0 -0
  117. /package/dist/{types/DateInput → DateInput}/index.d.ts +0 -0
  118. /package/dist/{types/DatePicker → DatePicker}/Calendar.d.ts +0 -0
  119. /package/dist/{types/DatePicker → DatePicker}/CalendarHeader.d.ts +0 -0
  120. /package/dist/{types/DatePicker → DatePicker}/index.d.ts +0 -0
  121. /package/dist/{types/Dialog → Dialog}/index.d.ts +0 -0
  122. /package/dist/{types/DialogAlert → DialogAlert}/Alert.d.ts +0 -0
  123. /package/dist/{types/DialogAlert → DialogAlert}/Viewport.d.ts +0 -0
  124. /package/dist/{types/DialogAlert → DialogAlert}/index.d.ts +0 -0
  125. /package/dist/{types/Drawer → Drawer}/index.d.ts +0 -0
  126. /package/dist/{types/File → File}/index.d.ts +0 -0
  127. /package/dist/{types/Form → Form}/index.d.ts +0 -0
  128. /package/dist/{types/Icon → Icon}/index.d.ts +0 -0
  129. /package/dist/{types/LoadButton → LoadButton}/index.d.ts +0 -0
  130. /package/dist/{types/NumberInput → NumberInput}/index.d.ts +0 -0
  131. /package/dist/{types/OptionItem → OptionItem}/OptionItem.d.ts +0 -0
  132. /package/dist/{types/OptionItem → OptionItem}/OptionsList.d.ts +0 -0
  133. /package/dist/{types/Popover → Popover}/index.d.ts +0 -0
  134. /package/dist/{types/Radio → Radio}/index.d.ts +0 -0
  135. /package/dist/{types/Scrollable → Scrollable}/ImitateScroll.d.ts +0 -0
  136. /package/dist/{types/Scrollable → Scrollable}/index.d.ts +0 -0
  137. /package/dist/{types/Select → Select}/SelectInput.d.ts +0 -0
  138. /package/dist/{types/Select → Select}/index.d.ts +0 -0
  139. /package/dist/{types/SelectTags → SelectTags}/index.d.ts +0 -0
  140. /package/dist/{types/Spinner → Spinner}/index.d.ts +0 -0
  141. /package/dist/{types/Stepper → Stepper}/index.d.ts +0 -0
  142. /package/dist/{types/Switch → Switch}/index.d.ts +0 -0
  143. /package/dist/{types/Tabs → Tabs}/index.d.ts +0 -0
  144. /package/dist/{types/TextArea → TextArea}/index.d.ts +0 -0
  145. /package/dist/{types/Toaster → Toaster}/RemoveListener.d.ts +0 -0
  146. /package/dist/{types/Toaster → Toaster}/Toast.d.ts +0 -0
  147. /package/dist/{types/Toaster → Toaster}/Viewport.d.ts +0 -0
  148. /package/dist/{types/Toaster → Toaster}/index.d.ts +0 -0
  149. /package/dist/{types/Tooltip → Tooltip}/index.d.ts +0 -0
  150. /package/dist/{types/__hooks → __hooks}/use-frooze-closing.d.ts +0 -0
  151. /package/dist/{types/__hooks → __hooks}/use-loading.d.ts +0 -0
  152. /package/dist/{types/__hooks → __hooks}/use-local-storage.d.ts +0 -0
  153. /package/dist/{types/__hooks → __hooks}/use-popover-position.d.ts +0 -0
  154. /package/dist/{types/__hooks → __hooks}/use-previos.d.ts +0 -0
  155. /package/dist/{types/__hooks → __hooks}/use-resize.d.ts +0 -0
  156. /package/dist/{types/__hooks → __hooks}/use-scrollbox.d.ts +0 -0
  157. /package/dist/{types/__hooks → __hooks}/use-stepper-input.d.ts +0 -0
  158. /package/dist/{types/__hooks → __hooks}/use-update.d.ts +0 -0
  159. /package/dist/{types/__hooks → __hooks}/useCalendar.d.ts +0 -0
  160. /package/dist/{types/__hooks → __hooks}/useCalendarOptions-copy.d.ts +0 -0
  161. /package/dist/{types/__hooks → __hooks}/useCalendarOptions.d.ts +0 -0
  162. /package/dist/{types/__libs → __libs}/calendar.d.ts +0 -0
  163. /package/dist/{types/__utils → __utils}/utils.d.ts +0 -0
  164. /package/dist/{bundle.es50.js → bundle.es42.js} +0 -0
  165. /package/dist/{types/types.d.ts → types.d.ts} +0 -0
@@ -1,35 +0,0 @@
1
- let r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
2
- function o() {
3
- if (typeof window > "u") return;
4
- function t(e) {
5
- return "propertyName" in e;
6
- }
7
- let d = (e) => {
8
- if (!t(e) || !e.target) return;
9
- let n = r.get(e.target);
10
- n || (n = /* @__PURE__ */ new Set(), r.set(e.target, n), e.target.addEventListener("transitioncancel", i, {
11
- once: !0
12
- })), n.add(e.propertyName);
13
- }, i = (e) => {
14
- if (!t(e) || !e.target) return;
15
- let n = r.get(e.target);
16
- if (n && (n.delete(e.propertyName), n.size === 0 && (e.target.removeEventListener("transitioncancel", i), r.delete(e.target)), r.size === 0)) {
17
- for (let s of a) s();
18
- a.clear();
19
- }
20
- };
21
- document.body.addEventListener("transitionrun", d), document.body.addEventListener("transitionend", i);
22
- }
23
- typeof document < "u" && (document.readyState !== "loading" ? o() : document.addEventListener("DOMContentLoaded", o));
24
- function c() {
25
- for (const [t] of r)
26
- "isConnected" in t && !t.isConnected && r.delete(t);
27
- }
28
- function f(t) {
29
- requestAnimationFrame(() => {
30
- c(), r.size === 0 ? t() : a.add(t);
31
- });
32
- }
33
- export {
34
- f as runAfterTransition
35
- };
@@ -1,6 +0,0 @@
1
- function a(t, e) {
2
- return e.get ? e.get.call(t) : e.value;
3
- }
4
- export {
5
- a as _
6
- };
@@ -1,7 +0,0 @@
1
- function o(t, e, n) {
2
- if (!e.has(t)) throw new TypeError("attempted to " + n + " private field on non-instance");
3
- return e.get(t);
4
- }
5
- export {
6
- o as _
7
- };
@@ -1,7 +0,0 @@
1
- function a(e, t) {
2
- if (t.has(e))
3
- throw new TypeError("Cannot initialize the same private elements twice on an object");
4
- }
5
- export {
6
- a as _
7
- };
@@ -1,11 +0,0 @@
1
- function l(a, e, t) {
2
- if (e.set) e.set.call(a, t);
3
- else {
4
- if (!e.writable)
5
- throw new TypeError("attempted to set read only private field");
6
- e.value = t;
7
- }
8
- }
9
- export {
10
- l as _
11
- };
@@ -1,17 +0,0 @@
1
- import "react";
2
- let n = /* @__PURE__ */ new Map();
3
- typeof FinalizationRegistry < "u" && new FinalizationRegistry((e) => {
4
- n.delete(e);
5
- });
6
- function o(e, t) {
7
- if (e === t) return e;
8
- let f = n.get(e);
9
- if (f)
10
- return f.forEach((r) => r.current = t), t;
11
- let a = n.get(t);
12
- return a ? (a.forEach((r) => r.current = e), e) : t;
13
- }
14
- export {
15
- n as idsUpdaterMap,
16
- o as mergeIds
17
- };
@@ -1,7 +0,0 @@
1
- let e = !1;
2
- function f() {
3
- return e;
4
- }
5
- export {
6
- f as shadowDOM
7
- };
@@ -1,17 +0,0 @@
1
- function a(r) {
2
- var n, f, t = "";
3
- if (typeof r == "string" || typeof r == "number") t += r;
4
- else if (typeof r == "object") if (Array.isArray(r)) {
5
- var o = r.length;
6
- for (n = 0; n < o; n++) r[n] && (f = a(r[n])) && (t && (t += " "), t += f);
7
- } else for (f in r) r[f] && (t && (t += " "), t += f);
8
- return t;
9
- }
10
- function i() {
11
- for (var r, n, f = 0, t = "", o = arguments.length; f < o; f++) (r = arguments[f]) && (n = a(r)) && (t && (t += " "), t += n);
12
- return t;
13
- }
14
- export {
15
- i as clsx,
16
- i as default
17
- };
@@ -1,25 +0,0 @@
1
- import { getOwnerWindow as d } from "./bundle.es62.js";
2
- const c = typeof Element < "u" && "checkVisibility" in Element.prototype;
3
- function p(i) {
4
- const t = d(i);
5
- if (!(i instanceof t.HTMLElement) && !(i instanceof t.SVGElement)) return !1;
6
- let { display: o, visibility: e } = i.style, a = o !== "none" && e !== "hidden" && e !== "collapse";
7
- if (a) {
8
- const { getComputedStyle: r } = i.ownerDocument.defaultView;
9
- let { display: n, visibility: s } = r(i);
10
- a = n !== "none" && s !== "hidden" && s !== "collapse";
11
- }
12
- return a;
13
- }
14
- function u(i, t) {
15
- return !i.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
16
- !i.hasAttribute("data-react-aria-prevent-focus") && (i.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? i.hasAttribute("open") : !0);
17
- }
18
- function f(i, t) {
19
- return c ? i.checkVisibility({
20
- visibilityProperty: !0
21
- }) && !i.closest("[data-react-aria-prevent-focus]") : i.nodeName !== "#comment" && p(i) && u(i, t) && (!i.parentElement || f(i.parentElement, i));
22
- }
23
- export {
24
- f as isElementVisible
25
- };
package/dist/uikit.css DELETED
@@ -1 +0,0 @@
1
- @keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{display:inline-block;border-style:solid;border-color:currentColor;border-right-color:transparent;border-radius:50%;animation:.75s linear infinite spinner-border}.scrollable::-webkit-scrollbar{width:var(--scrollbar-width);height:var(--scrollbar-width)}.scrollable::-webkit-scrollbar-thumb{background-clip:padding-box;border:var(--thumb-padding) solid transparent;border-radius:999px;background-color:var(--thumb-color)}.scrollable::-webkit-scrollbar-corner{background-color:transparent}.scrollable-hover-interaction::-webkit-scrollbar-thumb,.scrollable-hover-interaction::-webkit-scrollbar-track{visibility:hidden}.scrollable-hover-interaction:hover::-webkit-scrollbar-thumb,.scrollable-hover-interaction:hover::-webkit-scrollbar-track{visibility:visible}.scrollable-border-position::-webkit-scrollbar-thumb{border-radius:0;border-right-width:0px;border-bottom-width:0px;border-left-width:calc(var(--thumb-padding) * 2);border-top-width:calc(var(--thumb-padding) * 2)}.hidden-scroll::-webkit-scrollbar{display:none}.hidden-scroll::-webkit-scrollbar-thumb{display:none}.hidden-scroll::-webkit-scrollbar-track{display:none}.hidden-scroll::-webkit-scrollbar-corner{display:none}.number-input-container{display:flex;gap:4px}.number-stepper{display:flex;flex-direction:column;height:30px;min-height:30px;line-height:30px;border:1px solid var(--border-color);box-shadow:0 1px 2px #00000078;border-radius:4px}.number-stepper-splitter{height:1px;background-color:var(--border-color)}.number-stepper-slot{border-radius:0;height:13.5px}.number-stepper-slot[data-slot=decrement]{border-bottom-left-radius:3px;border-bottom-right-radius:3px}.number-stepper-slot[data-slot=increment]{border-top-left-radius:3px;border-top-right-radius:3px}.button-group{display:flex}.button-group[data-fill]{width:100%}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes