@trintel/zooy 1.0.1-beta.0

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 (210) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +471 -0
  3. package/dist/chunks/16-30f5E9no.js +1 -0
  4. package/dist/chunks/16-41wFkj7S.js +1 -0
  5. package/dist/chunks/16-4Ffg4DOO.js +1 -0
  6. package/dist/chunks/16-8pr5mbIO.js +28 -0
  7. package/dist/chunks/16-B56B50XT.js +1 -0
  8. package/dist/chunks/16-BFJN6B6d.js +39 -0
  9. package/dist/chunks/16-BTonF5Je.js +29 -0
  10. package/dist/chunks/16-BiShwKPX.js +28 -0
  11. package/dist/chunks/16-BwDdccyH.js +33 -0
  12. package/dist/chunks/16-C7Xs-wKv.js +1 -0
  13. package/dist/chunks/16-CDRTWf-C.js +21 -0
  14. package/dist/chunks/16-CSWwhDUY.js +21 -0
  15. package/dist/chunks/16-ChlL35BX.js +62 -0
  16. package/dist/chunks/16-CpNRIuiB.js +1 -0
  17. package/dist/chunks/16-CqC9427V.js +21 -0
  18. package/dist/chunks/16-Cubm18Em.js +1 -0
  19. package/dist/chunks/16-D3Ol0pdg.js +21 -0
  20. package/dist/chunks/16-DH311Of_.js +1 -0
  21. package/dist/chunks/16-Dlq3qxDh.js +1 -0
  22. package/dist/chunks/16-Drl9-5Gn.js +21 -0
  23. package/dist/chunks/16-Dt4v0bcc.js +1 -0
  24. package/dist/chunks/16-DylBiJnm.js +1 -0
  25. package/dist/chunks/20-CZPIOG-A.js +84 -0
  26. package/dist/chunks/20-gmyNFvDv.js +1 -0
  27. package/dist/chunks/button-DdJepOoE.js +271 -0
  28. package/dist/chunks/button-skeleton-COf2kCDL.js +48 -0
  29. package/dist/chunks/button-skeleton-rf3WDPTZ.js +21 -0
  30. package/dist/chunks/button-zHEPxpXa.js +66 -0
  31. package/dist/chunks/carbon-element-CbfPUYRT.js +1 -0
  32. package/dist/chunks/carbon-element-DzDuXiyl.js +25 -0
  33. package/dist/chunks/checkbox-B5mHvx0J.js +200 -0
  34. package/dist/chunks/checkbox-BRPCg-DN.js +40 -0
  35. package/dist/chunks/class-map-BfNAkUL_.js +5 -0
  36. package/dist/chunks/class-map-DEHG4tmw.js +32 -0
  37. package/dist/chunks/collection-helpers-BwUB2CEz.js +8 -0
  38. package/dist/chunks/collection-helpers-CYLIiyii.js +1 -0
  39. package/dist/chunks/content-switcher-item-DeGjVRQY.js +350 -0
  40. package/dist/chunks/content-switcher-item-DucclV1b.js +27 -0
  41. package/dist/chunks/defs-DMmigODC.js +1077 -0
  42. package/dist/chunks/defs-DPD20sPK.js +1 -0
  43. package/dist/chunks/directive-Dp4ZTz-F.js +5 -0
  44. package/dist/chunks/directive-kLG6oqUu.js +27 -0
  45. package/dist/chunks/dropdown-item-BgLQ1VLo.js +69 -0
  46. package/dist/chunks/dropdown-item-DPdwOION.js +620 -0
  47. package/dist/chunks/focus-B9JYe97T.js +20 -0
  48. package/dist/chunks/focus-rQSNiwy7.js +1 -0
  49. package/dist/chunks/form-D6Tce4-W.js +1 -0
  50. package/dist/chunks/form-DpI-v6DA.js +20 -0
  51. package/dist/chunks/host-listener-CN245INl.js +37 -0
  52. package/dist/chunks/host-listener-DD3oGxvg.js +16 -0
  53. package/dist/chunks/host-listener-gxrTpxgv.js +1 -0
  54. package/dist/chunks/host-listener-rUcT_LUW.js +1 -0
  55. package/dist/chunks/icon-loader-Dk_AU26w.js +7 -0
  56. package/dist/chunks/icon-loader-o_JYDmJX.js +1 -0
  57. package/dist/chunks/icon-loader-utils-BBjK16O-.js +5 -0
  58. package/dist/chunks/icon-loader-utils-BEOGXn0q.js +117 -0
  59. package/dist/chunks/if-defined-BdZRLDJ6.js +5 -0
  60. package/dist/chunks/if-defined-C0yJsxi2.js +10 -0
  61. package/dist/chunks/if-non-empty-CEHK-hqx.js +1 -0
  62. package/dist/chunks/if-non-empty-DTGflHtA.js +5 -0
  63. package/dist/chunks/index-16wphaSo.js +4 -0
  64. package/dist/chunks/index-27oFQaOS.js +37 -0
  65. package/dist/chunks/index-45EApaFs.js +205 -0
  66. package/dist/chunks/index-5jmZyISW.js +1 -0
  67. package/dist/chunks/index-B1vQ44Hl.js +363 -0
  68. package/dist/chunks/index-B3CDjjXh.js +214 -0
  69. package/dist/chunks/index-B3mXrMt1.js +24 -0
  70. package/dist/chunks/index-B7mGUQhz.js +79 -0
  71. package/dist/chunks/index-BBNaYDog.js +22 -0
  72. package/dist/chunks/index-BBt9OmO5.js +12 -0
  73. package/dist/chunks/index-BIaF1Dfx.js +107 -0
  74. package/dist/chunks/index-BJAuRs3y.js +75 -0
  75. package/dist/chunks/index-BJKftWYn.js +89 -0
  76. package/dist/chunks/index-BLjNrhkN.js +4 -0
  77. package/dist/chunks/index-BOTu9u-3.js +86 -0
  78. package/dist/chunks/index-BPVpH8ll.js +160 -0
  79. package/dist/chunks/index-BRuvyoCz.js +15 -0
  80. package/dist/chunks/index-BSgHSOVT.js +65 -0
  81. package/dist/chunks/index-BSh7UYcP.js +9 -0
  82. package/dist/chunks/index-BUxB7aWd.js +96 -0
  83. package/dist/chunks/index-BXIxcS00.js +22 -0
  84. package/dist/chunks/index-BXczHDk-.js +187 -0
  85. package/dist/chunks/index-BaVyBv2V.js +25 -0
  86. package/dist/chunks/index-BgbqX0uv.js +234 -0
  87. package/dist/chunks/index-BjQlt8g2.js +451 -0
  88. package/dist/chunks/index-BoNLj7PW.js +44 -0
  89. package/dist/chunks/index-BwIoRMDI.js +24 -0
  90. package/dist/chunks/index-Bwix1iwB.js +38 -0
  91. package/dist/chunks/index-BxVW3p3I.js +258 -0
  92. package/dist/chunks/index-ByKyGGzb.js +3 -0
  93. package/dist/chunks/index-ByTSSU1x.js +1 -0
  94. package/dist/chunks/index-C8LyfVmf.js +428 -0
  95. package/dist/chunks/index-CBbsFlsv.js +290 -0
  96. package/dist/chunks/index-CByffhPq.js +762 -0
  97. package/dist/chunks/index-CIbRjtWm.js +32 -0
  98. package/dist/chunks/index-CIzeMGQv.js +81 -0
  99. package/dist/chunks/index-CLGxSjLW.js +62 -0
  100. package/dist/chunks/index-CMF5Cawn.js +70 -0
  101. package/dist/chunks/index-CO-A2KY9.js +562 -0
  102. package/dist/chunks/index-CONgwvp0.js +12 -0
  103. package/dist/chunks/index-CT43RMOu.js +20 -0
  104. package/dist/chunks/index-CUgiXqyk.js +4 -0
  105. package/dist/chunks/index-C_K070Kn.js +284 -0
  106. package/dist/chunks/index-C_ttE2g9.js +16 -0
  107. package/dist/chunks/index-CcgnA1uu.js +29 -0
  108. package/dist/chunks/index-Cd7aoWrX.js +336 -0
  109. package/dist/chunks/index-Ce-pMzBC.js +19 -0
  110. package/dist/chunks/index-CgYZ66P_.js +187 -0
  111. package/dist/chunks/index-ChcHMeAS.js +35 -0
  112. package/dist/chunks/index-Cixdzvwd.js +682 -0
  113. package/dist/chunks/index-Clq0Fl19.js +15 -0
  114. package/dist/chunks/index-CtxTJnIm.js +58 -0
  115. package/dist/chunks/index-Cv1hWa_y.js +242 -0
  116. package/dist/chunks/index-CzTjJ8lP.js +432 -0
  117. package/dist/chunks/index-D0xRAPD5.js +75 -0
  118. package/dist/chunks/index-D25buhRm.js +79 -0
  119. package/dist/chunks/index-D4DqJG5_.js +16 -0
  120. package/dist/chunks/index-D5GGFPcS.js +251 -0
  121. package/dist/chunks/index-D5kiHJpX.js +413 -0
  122. package/dist/chunks/index-DEjRiv5B.js +1 -0
  123. package/dist/chunks/index-DFA4_spk.js +160 -0
  124. package/dist/chunks/index-DFZsXFsx.js +19 -0
  125. package/dist/chunks/index-DGauWNwV.js +156 -0
  126. package/dist/chunks/index-DIR0jr3f.js +127 -0
  127. package/dist/chunks/index-DNeagy5a.js +65 -0
  128. package/dist/chunks/index-DO0fmDR9.js +2 -0
  129. package/dist/chunks/index-DSitHBEh.js +36 -0
  130. package/dist/chunks/index-DW7ST0tB.js +1 -0
  131. package/dist/chunks/index-DWfFgEXE.js +110 -0
  132. package/dist/chunks/index-DX6WAtmo.js +874 -0
  133. package/dist/chunks/index-DaPfSuLu.js +393 -0
  134. package/dist/chunks/index-DbKlVm7y.js +74 -0
  135. package/dist/chunks/index-DdNZTQw1.js +48 -0
  136. package/dist/chunks/index-Dgi-m1K-.js +1 -0
  137. package/dist/chunks/index-Dh4uigJs.js +454 -0
  138. package/dist/chunks/index-DnYNK1mz.js +8 -0
  139. package/dist/chunks/index-DnierBep.js +510 -0
  140. package/dist/chunks/index-DnpSGM23.js +213 -0
  141. package/dist/chunks/index-DntY4deR.js +41 -0
  142. package/dist/chunks/index-Dp4A8k6C.js +103 -0
  143. package/dist/chunks/index-Dphpk5r2.js +1 -0
  144. package/dist/chunks/index-DrBrgF-v.js +49 -0
  145. package/dist/chunks/index-Dr_cqQ-_.js +77 -0
  146. package/dist/chunks/index-Dt-nBtrQ.js +26 -0
  147. package/dist/chunks/index-DurPWBYc.js +24 -0
  148. package/dist/chunks/index-DwTj7cFr.js +57 -0
  149. package/dist/chunks/index-DyZVAYLv.js +52 -0
  150. package/dist/chunks/index-Hh597Yu6.js +121 -0
  151. package/dist/chunks/index-LxkAuMAA.js +1 -0
  152. package/dist/chunks/index-OaQhvPR1.js +46 -0
  153. package/dist/chunks/index-UPr2EvBX.js +149 -0
  154. package/dist/chunks/index-WNXgzThF.js +2340 -0
  155. package/dist/chunks/index-WvrCPen2.js +367 -0
  156. package/dist/chunks/index-cTXIVcWI.js +45 -0
  157. package/dist/chunks/index-caLn8cu1.js +1603 -0
  158. package/dist/chunks/index-hLI0Bnyb.js +77 -0
  159. package/dist/chunks/index-jBse-XgU.js +35 -0
  160. package/dist/chunks/index-oTjafsfN.js +25 -0
  161. package/dist/chunks/index-qNmuI3RB.js +149 -0
  162. package/dist/chunks/index-qiqzy9MI.js +23 -0
  163. package/dist/chunks/index-rwBsdvh6.js +87 -0
  164. package/dist/chunks/index-siqJUhKa.js +1 -0
  165. package/dist/chunks/index-w-G9CFId.js +1 -0
  166. package/dist/chunks/index-x6SeA7x7.js +405 -0
  167. package/dist/chunks/loading-icon-DJQIjg97.js +23 -0
  168. package/dist/chunks/loading-icon-DhJR6LyV.js +16 -0
  169. package/dist/chunks/main-DUusfqrI.js +18 -0
  170. package/dist/chunks/main-Dp7wHHgP.js +2882 -0
  171. package/dist/chunks/on-BPhwbVf3.js +10 -0
  172. package/dist/chunks/on-XRofyGQh.js +1 -0
  173. package/dist/chunks/property-DCYiZTFF.js +5 -0
  174. package/dist/chunks/property-pT1z5CCa.js +36 -0
  175. package/dist/chunks/query-CbRg6ZGy.js +23 -0
  176. package/dist/chunks/query-Dh8joWcT.js +9 -0
  177. package/dist/chunks/radio-group-manager-DBAEmhDM.js +1 -0
  178. package/dist/chunks/radio-group-manager-Du5wSOS1.js +102 -0
  179. package/dist/chunks/register-BK21_Wkj.js +11035 -0
  180. package/dist/chunks/register-BMNs2hNG.js +2157 -0
  181. package/dist/chunks/register-Cc9zkA5F.js +1 -0
  182. package/dist/chunks/register-JwwMwdRf.js +1273 -0
  183. package/dist/chunks/search-C3raqgOD.js +30 -0
  184. package/dist/chunks/search-CIhxkVjj.js +239 -0
  185. package/dist/chunks/select-item-4aISXm0r.js +76 -0
  186. package/dist/chunks/select-item-DjoxYopL.js +356 -0
  187. package/dist/chunks/settings-BPOpwVkr.js +594 -0
  188. package/dist/chunks/settings-CK2vhfPu.js +78 -0
  189. package/dist/chunks/shared-enums-BJDDuJr7.js +1 -0
  190. package/dist/chunks/shared-enums-DALKjQ7e.js +7 -0
  191. package/dist/chunks/state-Bpmgn27B.js +12 -0
  192. package/dist/chunks/state-FnSmMH94.js +5 -0
  193. package/dist/chunks/text-input-BygzMjjc.js +371 -0
  194. package/dist/chunks/text-input-cjcnMXO-.js +68 -0
  195. package/dist/chunks/tooltip-content-BjdZJ_Ui.js +134 -0
  196. package/dist/chunks/tooltip-content-DHyDYyOH.js +3 -0
  197. package/dist/chunks/tslib.es6-B07k2eac.js +1 -0
  198. package/dist/chunks/tslib.es6-C5gLNDSD.js +160 -0
  199. package/dist/chunks/unsafe-html-C_MKAcuC.js +5 -0
  200. package/dist/chunks/unsafe-html-D49sIpJ5.js +27 -0
  201. package/dist/chunks/validity-BMLNCMmP.js +1 -0
  202. package/dist/chunks/validity-CTz7ivUd.js +59 -0
  203. package/dist/zooy.cjs.js +1 -0
  204. package/dist/zooy.es.js +4 -0
  205. package/package.json +57 -0
  206. package/src/sass/carbon-icons.scss +46 -0
  207. package/src/sass/main.scss +7 -0
  208. package/src/sass/panels.scss +642 -0
  209. package/src/sass/reset.scss +43 -0
  210. package/src/sass/split.scss +131 -0
@@ -0,0 +1 @@
1
+ "use strict";var y=function(i,n){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])},y(i,n)};function _(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");y(i,n);function t(){this.constructor=i}i.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}exports.__assign=function(){return exports.__assign=Object.assign||function(n){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},exports.__assign.apply(this,arguments)};function p(i,n,t,r){var a=arguments.length,e=a<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,t):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(i,n,t,r);else for(var u=i.length-1;u>=0;u--)(c=i[u])&&(e=(a<3?c(e):a>3?c(n,t,e):c(n,t))||e);return a>3&&e&&Object.defineProperty(n,t,e),e}function h(i,n,t,r){function a(e){return e instanceof t?e:new t(function(c){c(e)})}return new(t||(t=Promise))(function(e,c){function u(l){try{o(r.next(l))}catch(s){c(s)}}function f(l){try{o(r.throw(l))}catch(s){c(s)}}function o(l){l.done?e(l.value):a(l.value).then(u,f)}o((r=r.apply(i,n||[])).next())})}function d(i,n){var t={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},r,a,e,c=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return c.next=u(0),c.throw=u(1),c.return=u(2),typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(o){return function(l){return f([o,l])}}function f(o){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=0,o[0]&&(t=0)),t;)try{if(r=1,a&&(e=o[0]&2?a.return:o[0]?a.throw||((e=a.return)&&e.call(a),0):a.next)&&!(e=e.call(a,o[1])).done)return e;switch(a=0,e&&(o=[o[0]&2,e.value]),o[0]){case 0:case 1:e=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,a=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(e=t.trys,!(e=e.length>0&&e[e.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!e||o[1]>e[0]&&o[1]<e[3])){t.label=o[1];break}if(o[0]===6&&t.label<e[1]){t.label=e[1],e=o;break}if(e&&t.label<e[2]){t.label=e[2],t.ops.push(o);break}e[2]&&t.ops.pop(),t.trys.pop();continue}o=n.call(i,t)}catch(l){o=[6,l],a=0}finally{r=e=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function b(i){var n=typeof Symbol=="function"&&Symbol.iterator,t=n&&i[n],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(i,n){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),a,e=[],c;try{for(;(n===void 0||n-- >0)&&!(a=r.next()).done;)e.push(a.value)}catch(u){c={error:u}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return e}function w(i,n,t){if(t||arguments.length===2)for(var r=0,a=n.length,e;r<a;r++)(e||!(r in n))&&(e||(e=Array.prototype.slice.call(n,0,r)),e[r]=n[r]);return i.concat(e||Array.prototype.slice.call(n))}exports.__awaiter=h;exports.__decorate=p;exports.__extends=_;exports.__generator=d;exports.__read=v;exports.__spreadArray=w;exports.__values=b;
@@ -0,0 +1,160 @@
1
+ var y = function(a, n) {
2
+ return y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
3
+ t.__proto__ = r;
4
+ } || function(t, r) {
5
+ for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
6
+ }, y(a, n);
7
+ };
8
+ function h(a, n) {
9
+ if (typeof n != "function" && n !== null)
10
+ throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
11
+ y(a, n);
12
+ function t() {
13
+ this.constructor = a;
14
+ }
15
+ a.prototype = n === null ? Object.create(n) : (t.prototype = n.prototype, new t());
16
+ }
17
+ var p = function() {
18
+ return p = Object.assign || function(n) {
19
+ for (var t, r = 1, i = arguments.length; r < i; r++) {
20
+ t = arguments[r];
21
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && (n[e] = t[e]);
22
+ }
23
+ return n;
24
+ }, p.apply(this, arguments);
25
+ };
26
+ function _(a, n, t, r) {
27
+ var i = arguments.length, e = i < 3 ? n : r === null ? r = Object.getOwnPropertyDescriptor(n, t) : r, c;
28
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(a, n, t, r);
29
+ else for (var l = a.length - 1; l >= 0; l--) (c = a[l]) && (e = (i < 3 ? c(e) : i > 3 ? c(n, t, e) : c(n, t)) || e);
30
+ return i > 3 && e && Object.defineProperty(n, t, e), e;
31
+ }
32
+ function b(a, n, t, r) {
33
+ function i(e) {
34
+ return e instanceof t ? e : new t(function(c) {
35
+ c(e);
36
+ });
37
+ }
38
+ return new (t || (t = Promise))(function(e, c) {
39
+ function l(u) {
40
+ try {
41
+ o(r.next(u));
42
+ } catch (s) {
43
+ c(s);
44
+ }
45
+ }
46
+ function f(u) {
47
+ try {
48
+ o(r.throw(u));
49
+ } catch (s) {
50
+ c(s);
51
+ }
52
+ }
53
+ function o(u) {
54
+ u.done ? e(u.value) : i(u.value).then(l, f);
55
+ }
56
+ o((r = r.apply(a, n || [])).next());
57
+ });
58
+ }
59
+ function d(a, n) {
60
+ var t = { label: 0, sent: function() {
61
+ if (e[0] & 1) throw e[1];
62
+ return e[1];
63
+ }, trys: [], ops: [] }, r, i, e, c = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
64
+ return c.next = l(0), c.throw = l(1), c.return = l(2), typeof Symbol == "function" && (c[Symbol.iterator] = function() {
65
+ return this;
66
+ }), c;
67
+ function l(o) {
68
+ return function(u) {
69
+ return f([o, u]);
70
+ };
71
+ }
72
+ function f(o) {
73
+ if (r) throw new TypeError("Generator is already executing.");
74
+ for (; c && (c = 0, o[0] && (t = 0)), t; ) try {
75
+ if (r = 1, i && (e = o[0] & 2 ? i.return : o[0] ? i.throw || ((e = i.return) && e.call(i), 0) : i.next) && !(e = e.call(i, o[1])).done) return e;
76
+ switch (i = 0, e && (o = [o[0] & 2, e.value]), o[0]) {
77
+ case 0:
78
+ case 1:
79
+ e = o;
80
+ break;
81
+ case 4:
82
+ return t.label++, { value: o[1], done: !1 };
83
+ case 5:
84
+ t.label++, i = o[1], o = [0];
85
+ continue;
86
+ case 7:
87
+ o = t.ops.pop(), t.trys.pop();
88
+ continue;
89
+ default:
90
+ if (e = t.trys, !(e = e.length > 0 && e[e.length - 1]) && (o[0] === 6 || o[0] === 2)) {
91
+ t = 0;
92
+ continue;
93
+ }
94
+ if (o[0] === 3 && (!e || o[1] > e[0] && o[1] < e[3])) {
95
+ t.label = o[1];
96
+ break;
97
+ }
98
+ if (o[0] === 6 && t.label < e[1]) {
99
+ t.label = e[1], e = o;
100
+ break;
101
+ }
102
+ if (e && t.label < e[2]) {
103
+ t.label = e[2], t.ops.push(o);
104
+ break;
105
+ }
106
+ e[2] && t.ops.pop(), t.trys.pop();
107
+ continue;
108
+ }
109
+ o = n.call(a, t);
110
+ } catch (u) {
111
+ o = [6, u], i = 0;
112
+ } finally {
113
+ r = e = 0;
114
+ }
115
+ if (o[0] & 5) throw o[1];
116
+ return { value: o[0] ? o[1] : void 0, done: !0 };
117
+ }
118
+ }
119
+ function v(a) {
120
+ var n = typeof Symbol == "function" && Symbol.iterator, t = n && a[n], r = 0;
121
+ if (t) return t.call(a);
122
+ if (a && typeof a.length == "number") return {
123
+ next: function() {
124
+ return a && r >= a.length && (a = void 0), { value: a && a[r++], done: !a };
125
+ }
126
+ };
127
+ throw new TypeError(n ? "Object is not iterable." : "Symbol.iterator is not defined.");
128
+ }
129
+ function w(a, n) {
130
+ var t = typeof Symbol == "function" && a[Symbol.iterator];
131
+ if (!t) return a;
132
+ var r = t.call(a), i, e = [], c;
133
+ try {
134
+ for (; (n === void 0 || n-- > 0) && !(i = r.next()).done; ) e.push(i.value);
135
+ } catch (l) {
136
+ c = { error: l };
137
+ } finally {
138
+ try {
139
+ i && !i.done && (t = r.return) && t.call(r);
140
+ } finally {
141
+ if (c) throw c.error;
142
+ }
143
+ }
144
+ return e;
145
+ }
146
+ function g(a, n, t) {
147
+ if (t || arguments.length === 2) for (var r = 0, i = n.length, e; r < i; r++)
148
+ (e || !(r in n)) && (e || (e = Array.prototype.slice.call(n, 0, r)), e[r] = n[r]);
149
+ return a.concat(e || Array.prototype.slice.call(n));
150
+ }
151
+ export {
152
+ _,
153
+ g as a,
154
+ w as b,
155
+ h as c,
156
+ p as d,
157
+ v as e,
158
+ b as f,
159
+ d as g
160
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";const s=require("./settings-CK2vhfPu.js"),r=require("./directive-Dp4ZTz-F.js");/**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */class e extends r.i{constructor(t){if(super(t),this.it=s.E,t.type!==r.t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===s.E||t==null)return this._t=void 0,this.it=t;if(t===s.T)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;const n=r.e(e);exports.e=e;exports.o=n;
@@ -0,0 +1,27 @@
1
+ import { E as r, T as s } from "./settings-BPOpwVkr.js";
2
+ import { e as n, i as o, t as c } from "./directive-kLG6oqUu.js";
3
+ /**
4
+ * @license
5
+ * Copyright 2017 Google LLC
6
+ * SPDX-License-Identifier: BSD-3-Clause
7
+ */
8
+ class e extends o {
9
+ constructor(t) {
10
+ if (super(t), this.it = r, t.type !== c.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
11
+ }
12
+ render(t) {
13
+ if (t === r || t == null) return this._t = void 0, this.it = t;
14
+ if (t === s) return t;
15
+ if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
16
+ if (t === this.it) return this._t;
17
+ this.it = t;
18
+ const i = [t];
19
+ return i.raw = i, this._t = { _$litType$: this.constructor.resultType, strings: i, values: [] };
20
+ }
21
+ }
22
+ e.directiveName = "unsafeHTML", e.resultType = 1;
23
+ const l = n(e);
24
+ export {
25
+ e,
26
+ l as o
27
+ };
@@ -0,0 +1 @@
1
+ "use strict";var t;(function(e){e.NO_ERROR="",e.ERROR_REQUIRED="required"})(t||(t={}));const l=e=>{class s extends e{_getValidityMessage(i){return{[t.NO_ERROR]:"",[t.ERROR_REQUIRED]:this.requiredValidityMessage}[i]}_testValidity(){const{required:i,value:a}=this;return i&&!a?t.ERROR_REQUIRED:t.NO_ERROR}checkValidity(){const i=this._testValidity();return i!==t.NO_ERROR?(this.dispatchEvent(new CustomEvent("invalid",{bubbles:!1,cancelable:!0,composed:!1}))&&(this.invalid=!0,this.validityMessage=this._getValidityMessage(i)),!1):(this.invalid=!1,this.validityMessage="",!0)}setCustomValidity(i){this.invalid=!!i,this.validityMessage=i}}return s};exports.ValidityMixin=l;
@@ -0,0 +1,59 @@
1
+ var t;
2
+ (function(e) {
3
+ e.NO_ERROR = "", e.ERROR_REQUIRED = "required";
4
+ })(t || (t = {}));
5
+ const l = (e) => {
6
+ class s extends e {
7
+ // Not using TypeScript `protected` due to: microsoft/TypeScript#17744
8
+ // Using `string` instead of `VALIDATION_STATUS` until we can require TypeScript 3.8
9
+ /**
10
+ * @param state The form validation status.
11
+ * @returns The form validation error messages associated with the given status.
12
+ * @protected
13
+ */
14
+ _getValidityMessage(i) {
15
+ return {
16
+ [t.NO_ERROR]: "",
17
+ [t.ERROR_REQUIRED]: this.requiredValidityMessage
18
+ }[i];
19
+ }
20
+ // Not using TypeScript `protected` due to: microsoft/TypeScript#17744
21
+ // Using `string` instead of `VALIDATION_STATUS` until we can require TypeScript 3.8
22
+ /**
23
+ * Checks if the value meets the constraints.
24
+ *
25
+ * @returns `VALIDATION_STATUS.NO_ERROR` if the value meets the constraints. Some other values otherwise.
26
+ * @protected
27
+ */
28
+ _testValidity() {
29
+ const { required: i, value: a } = this;
30
+ return i && !a ? t.ERROR_REQUIRED : t.NO_ERROR;
31
+ }
32
+ /**
33
+ * Checks if the value meets the constraints.
34
+ * Fires cancelable `invalid` event if it doesn't.
35
+ *
36
+ * @returns `true` if the value meets the constraints. `false` otherwise.
37
+ */
38
+ checkValidity() {
39
+ const i = this._testValidity();
40
+ return i !== t.NO_ERROR ? (this.dispatchEvent(new CustomEvent("invalid", {
41
+ bubbles: !1,
42
+ cancelable: !0,
43
+ composed: !1
44
+ })) && (this.invalid = !0, this.validityMessage = this._getValidityMessage(i)), !1) : (this.invalid = !1, this.validityMessage = "", !0);
45
+ }
46
+ /**
47
+ * Sets the given custom validity message.
48
+ *
49
+ * @param validityMessage The custom validity message
50
+ */
51
+ setCustomValidity(i) {
52
+ this.invalid = !!i, this.validityMessage = i;
53
+ }
54
+ }
55
+ return s;
56
+ };
57
+ export {
58
+ l as V
59
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./chunks/main-DUusfqrI.js");module.exports=e.zooy;
@@ -0,0 +1,4 @@
1
+ import { z as f } from "./chunks/main-Dp7wHHgP.js";
2
+ export {
3
+ f as default
4
+ };
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "@trintel/zooy",
3
+ "description": "UI Building Blocks",
4
+ "version": "1.0.1-beta.0",
5
+ "main": "./dist/zooy.cjs.js",
6
+ "module": "./dist/zooy.es.js",
7
+ "type": "module",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/zooy.es.js",
11
+ "require": "./dist/zooy.cjs.js"
12
+ },
13
+ "./sass": "./src/sass/main.scss"
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "src/sass"
18
+ ],
19
+ "author": {
20
+ "name": "Jan Badenhorst",
21
+ "email": "janhendrik.badenhorst@gmail.com"
22
+ },
23
+ "contributors": [
24
+ "Andries Niemandt <andries.niemandt91@gmail.com> (https://github.com/andriesniemandt)"
25
+ ],
26
+ "scripts": {
27
+ "clean": "rm -rf dist",
28
+ "build_css": "sass --load-path=node_modules --style=compressed src/sass/main.scss src/css/main.css",
29
+ "build": "npm run clean && vite build",
30
+ "dev_watch_sass": "sass --watch --load-path=node_modules --style=compressed src/sass/main.scss src/css/main.css",
31
+ "lint": "eslint src/**/*.js",
32
+ "lint:fix": "eslint src/**/*.js --fix",
33
+ "dev": "vite",
34
+ "prepare": "husky"
35
+ },
36
+ "license": "Apache-2.0",
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "git+https://github.com/trinity-telecomms/zooy.git"
40
+ },
41
+ "dependencies": {
42
+ "@carbon/icons": "^11.70.0",
43
+ "@carbon/web-components": "^2.41.0",
44
+ "@ibm/plex": "^6.4.1",
45
+ "badu": "^8.6.0",
46
+ "material-components-web": "^14.0.0",
47
+ "timeago.js": "^4.0.2"
48
+ },
49
+ "devDependencies": {
50
+ "eslint": "^9.38.0",
51
+ "esm": "^3.2.25",
52
+ "husky": "^9.1.7",
53
+ "ramda": "^0.32.0",
54
+ "sass": "^1.93.2",
55
+ "vite": "^7.1.12"
56
+ }
57
+ }
@@ -0,0 +1,46 @@
1
+ // ============================================================================
2
+ // Carbon Design System Icon Toggle Support
3
+ // ============================================================================
4
+ // Provides CSS-based icon swapping for toggle buttons when using the
5
+ // django-zooy carbon_icon template tag with toggle_to parameter.
6
+ //
7
+ // Example usage in Django template:
8
+ // {% carbon_icon "favorite" 16 slot="icon" toggle_to="favorite--filled" %}
9
+ //
10
+ // This renders two icons wrapped in .icon-toggle-wrapper, and this CSS
11
+ // controls which icon is visible based on the is-selected attribute.
12
+ // ============================================================================
13
+
14
+ cds-icon-button {
15
+ // Icon toggle wrapper - makes container invisible to layout
16
+ .icon-toggle-wrapper {
17
+ display: contents;
18
+ }
19
+
20
+ // Icon swap visibility controls (only for toggle_to mode)
21
+ .off-icon {
22
+ display: inline;
23
+ }
24
+
25
+ .on-icon {
26
+ display: none;
27
+ }
28
+
29
+ // When button is selected, swap icon visibility
30
+ // Note: The attribute is 'isselected' (no hyphen) in the actual DOM
31
+ &[isselected] {
32
+ // Icon-swap mode: toggle visibility
33
+ .off-icon {
34
+ display: none;
35
+ }
36
+
37
+ .on-icon {
38
+ display: inline;
39
+ }
40
+
41
+ // Optional: Color swap on selection (opt-in via data-toggle-color)
42
+ &[data-toggle-color] svg {
43
+ fill: var(--cds-icon-primary, #0f62fe);
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,7 @@
1
+ // All @use imports must come first (Sass requirement)
2
+
3
+ // Zooy styles
4
+ @use "split";
5
+ @use "carbon-icons";
6
+
7
+