@esportsplus/ui 0.2.5 → 0.2.9

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 (108) hide show
  1. package/build/components/accordion/index.d.ts +15 -0
  2. package/build/components/accordion/index.js +27 -0
  3. package/build/components/aurora/index.d.ts +8 -0
  4. package/build/components/aurora/index.js +12 -0
  5. package/build/components/clipboard/index.d.ts +4 -0
  6. package/build/components/clipboard/index.js +2 -0
  7. package/build/components/clipboard/write.d.ts +2 -0
  8. package/build/components/clipboard/write.js +9 -0
  9. package/build/components/ellipsis/index.d.ts +2 -0
  10. package/build/components/ellipsis/index.js +8 -0
  11. package/build/components/field/description.d.ts +1 -1
  12. package/build/components/field/error.d.ts +1 -1
  13. package/build/components/field/select.js +4 -2
  14. package/build/components/field/title.d.ts +1 -1
  15. package/build/components/form/action.js +1 -2
  16. package/build/components/form/types.d.ts +0 -1
  17. package/build/components/json/index.d.ts +4 -0
  18. package/build/components/json/index.js +2 -0
  19. package/build/components/scrollbar/index.d.ts +3 -3
  20. package/build/components/scrollbar/index.js +3 -5
  21. package/build/components/site/index.d.ts +2 -3
  22. package/build/components/site/index.js +6 -5
  23. package/build/components/tooltip/index.d.ts +0 -7
  24. package/build/components/tooltip/index.js +2 -13
  25. package/build/index.d.ts +5 -2
  26. package/build/index.js +5 -2
  27. package/components/styles.css +14 -14
  28. package/components/variables.css +18 -19
  29. package/package.json +4 -4
  30. package/src/components/accordion/index.ts +34 -0
  31. package/src/components/accordion/scss/variables.scss +6 -1
  32. package/src/components/anchor/scss/variables.scss +0 -1
  33. package/src/components/aurora/index.ts +22 -0
  34. package/src/components/aurora/scss/index.scss +60 -0
  35. package/src/components/banner/scss/index.scss +1 -1
  36. package/src/components/banner/scss/variables.scss +4 -0
  37. package/src/components/button/scss/index.scss +25 -3
  38. package/src/components/button/scss/variables.scss +3 -6
  39. package/src/components/card/scss/variables.scss +0 -1
  40. package/src/components/clipboard/index.ts +4 -0
  41. package/src/components/clipboard/write.ts +9 -0
  42. package/src/components/container/scss/index.scss +2 -4
  43. package/src/components/container/scss/variables.scss +2 -2
  44. package/src/components/ellipsis/index.ts +10 -0
  45. package/src/components/ellipsis/scss/index.scss +19 -63
  46. package/src/components/ellipsis/scss/variables.scss +3 -1
  47. package/src/components/field/scss/index.scss +2 -2
  48. package/src/components/field/scss/variables.scss +0 -1
  49. package/src/components/field/select.ts +4 -2
  50. package/src/components/form/action.ts +3 -2
  51. package/src/components/form/types.ts +1 -1
  52. package/src/components/grid/scss/index.scss +6 -0
  53. package/src/components/grid/scss/variables.scss +6 -0
  54. package/src/components/group/scss/index.scss +4 -4
  55. package/src/components/icon/scss/index.scss +0 -1
  56. package/src/components/json/index.ts +4 -0
  57. package/src/components/link/scss/variables.scss +0 -1
  58. package/src/components/loading/scss/index.scss +9 -16
  59. package/src/components/loading/scss/variables.scss +3 -28
  60. package/src/components/modal/scss/index.scss +7 -4
  61. package/src/components/modal/scss/variables.scss +3 -7
  62. package/src/components/page/scss/variables.scss +0 -12
  63. package/src/components/root/onclick.ts +1 -1
  64. package/src/components/root/scss/variables.scss +2 -5
  65. package/src/components/scrollbar/index.ts +3 -5
  66. package/src/components/scrollbar/scss/index.scss +2 -1
  67. package/src/components/scrollbar/scss/variables.scss +1 -1
  68. package/src/components/sidebar/scss/index.scss +5 -6
  69. package/src/components/sidebar/scss/variables.scss +4 -5
  70. package/src/components/site/index.ts +9 -8
  71. package/src/components/text/scss/variables.scss +0 -1
  72. package/src/components/tooltip/index.ts +4 -17
  73. package/src/components/tooltip/scss/variables.scss +0 -1
  74. package/src/css-utilities/absolute/scss/index.scss +11 -34
  75. package/src/css-utilities/hidden/scss/index.scss +1 -1
  76. package/src/css-utilities/squircle/scss/index.scss +5 -0
  77. package/src/css-utilities/text/scss/index.scss +2 -6
  78. package/src/css-utilities/text/scss/variables.scss +7 -7
  79. package/src/index.ts +5 -2
  80. package/src/lib/scss/breakpoint.scss +3 -3
  81. package/src/lib/scss/position.scss +25 -49
  82. package/src/tokens/scss/box-shadow.scss +17 -12
  83. package/src/tokens/scss/transition-duration.scss +1 -5
  84. package/tsconfig.json +1 -9
  85. package/utilities/styles.css +4 -4
  86. package/utilities/variables.css +1 -3
  87. package/build/components/alert/index.d.ts +0 -10
  88. package/build/components/alert/index.js +0 -122
  89. package/build/components/export/clipboard.d.ts +0 -2
  90. package/build/components/export/clipboard.js +0 -8
  91. package/build/components/export/index.d.ts +0 -5
  92. package/build/components/export/index.js +0 -3
  93. package/build/components/tooltip/menu.d.ts +0 -25
  94. package/build/components/tooltip/menu.js +0 -44
  95. package/src/components/alert/index.ts +0 -157
  96. package/src/components/alert/scss/index.scss +0 -55
  97. package/src/components/alert/scss/variables.scss +0 -8
  98. package/src/components/export/clipboard.ts +0 -12
  99. package/src/components/export/index.ts +0 -5
  100. package/src/components/processing/scss/index.scss +0 -47
  101. package/src/components/processing/scss/variables.scss +0 -11
  102. package/src/components/tooltip/menu.ts +0 -71
  103. package/src/css-utilities/slide/scss/index.scss +0 -21
  104. package/src/css-utilities/slide/scss/variables.scss +0 -10
  105. package/src/css-utilities/transition/scss/variables.scss +0 -14
  106. /package/build/components/{export/json.d.ts → json/download.d.ts} +0 -0
  107. /package/build/components/{export/json.js → json/download.js} +0 -0
  108. /package/src/components/{export/json.ts → json/download.ts} +0 -0
@@ -1,16 +1,16 @@
1
1
  .--background-state{--background: var(--background-default);--background-active: var(--background-default);--background-default: transparent;--background-hover: var(--background-default);--background-pressed: var(--background-default)}.--background-state.--active{--background: var(--background-active)}.--background-state:not(.--active):hover{--background: var(--background-hover)}.--background-state:not(.--active):active{--background: var(--background-pressed)}.--border,.--border-bottom,.--border-left,.--border-right,.--border-top{--border-color: var(--border-color-default);--border-style: solid;--border-width: var(--border-width-400)}.--border-dashed{--border-style: dashed}.--border-dotted{--border-style: dotted}.--border-radius{--border-radius: var(--border-radius-400)}.--border-radius-0px{--border-radius: var(--border-radius-0px)}.--border-radius-circle{--border-radius: var(--border-radius-circle)}.--border-radius-curved{--border-radius: var(--border-radius-curved)}.--border-radius-100{--border-radius: var(--border-radius-100)}.--border-radius-200{--border-radius: var(--border-radius-200)}.--border-radius-300{--border-radius: var(--border-radius-300)}.--border-radius-400{--border-radius: var(--border-radius-400)}.--border-radius-500{--border-radius: var(--border-radius-500)}.--border-radius-600{--border-radius: var(--border-radius-600)}.--border-state{--border-color: var(--border-color-default);--border-color-active: var(--border-color-default);--border-color-default: transparent;--border-color-hover: var(--border-color-default);--border-color-pressed: var(--border-color-default)}.--border-state.--active{--border-color: var(--border-color-active)}.--border-state:not(.--active):hover{--border-color: var(--border-color-hover)}.--border-state:not(.--active):active{--border-color: var(--border-color-pressed)}.--border-width{--border-width: var(--border-width-400)}.--border-width-400{--border-width: var(--border-width-400)}.--border-width-500{--border-width: var(--border-width-500)}.--border-width-600{--border-width: var(--border-width-600)}.--border-width-700{--border-width: var(--border-width-700)}.--color-inherit{--color: inherit}.--color-state{--color: var(--color-default);--color-active: var(--color-default);--color-default: var(--color-text-400);--color-hover: var(--color-default);--color-pressed: var(--color-default)}.--color-state.--active{--color: var(--color-active)}.--color-state:not(.--active):hover{--color: var(--color-hover)}.--color-state:not(.--active):active{--color: var(--color-pressed)}.--background-primary{--background-active: var(--color-primary-300);--background-default: var(--color-primary-400);--background-hover: var(--color-primary-300);--background-pressed: var(--color-primary-500)}.--background-secondary{--background-active: var(--color-secondary-300);--background-default: var(--color-secondary-400);--background-hover: var(--color-secondary-300);--background-pressed: var(--color-secondary-500)}.--background-black{--background-active: var(--color-black-300);--background-default: var(--color-black-400);--background-hover: var(--color-black-300);--background-pressed: var(--color-black-500)}.--background-blue{--background-active: var(--color-blue-300);--background-default: var(--color-blue-400);--background-hover: var(--color-blue-300);--background-pressed: var(--color-blue-500)}.--background-border{--background-active: var(--color-border-300);--background-default: var(--color-border-400);--background-hover: var(--color-border-300);--background-pressed: var(--color-border-500)}.--background-green{--background-active: var(--color-green-300);--background-default: var(--color-green-400);--background-hover: var(--color-green-300);--background-pressed: var(--color-green-500)}.--background-grey{--background-active: var(--color-grey-300);--background-default: var(--color-grey-400);--background-hover: var(--color-grey-300);--background-pressed: var(--color-grey-500)}.--background-purple{--background-active: var(--color-purple-300);--background-default: var(--color-purple-400);--background-hover: var(--color-purple-300);--background-pressed: var(--color-purple-500)}.--background-red{--background-active: var(--color-red-300);--background-default: var(--color-red-400);--background-hover: var(--color-red-300);--background-pressed: var(--color-red-500)}.--background-text{--background-active: var(--color-text-300);--background-default: var(--color-text-400);--background-hover: var(--color-text-300);--background-pressed: var(--color-text-500)}.--background-white{--background-active: var(--color-white-300);--background-default: var(--color-white-400);--background-hover: var(--color-white-300);--background-pressed: var(--color-white-500)}.--background-yellow{--background-active: var(--color-yellow-300);--background-default: var(--color-yellow-400);--background-hover: var(--color-yellow-300);--background-pressed: var(--color-yellow-500)}.--border-primary{--border-color-active: var(--color-primary-300);--border-color-default: var(--color-primary-400);--border-color-hover: var(--color-primary-300);--border-color-pressed: var(--color-primary-500)}.--border-secondary{--border-color-active: var(--color-secondary-300);--border-color-default: var(--color-secondary-400);--border-color-hover: var(--color-secondary-300);--border-color-pressed: var(--color-secondary-500)}.--border-black{--border-color-active: var(--color-black-300);--border-color-default: var(--color-black-400);--border-color-hover: var(--color-black-300);--border-color-pressed: var(--color-black-500)}.--border-blue{--border-color-active: var(--color-blue-300);--border-color-default: var(--color-blue-400);--border-color-hover: var(--color-blue-300);--border-color-pressed: var(--color-blue-500)}.--border-border{--border-color-active: var(--color-border-300);--border-color-default: var(--color-border-400);--border-color-hover: var(--color-border-300);--border-color-pressed: var(--color-border-500)}.--border-green{--border-color-active: var(--color-green-300);--border-color-default: var(--color-green-400);--border-color-hover: var(--color-green-300);--border-color-pressed: var(--color-green-500)}.--border-grey{--border-color-active: var(--color-grey-300);--border-color-default: var(--color-grey-400);--border-color-hover: var(--color-grey-300);--border-color-pressed: var(--color-grey-500)}.--border-purple{--border-color-active: var(--color-purple-300);--border-color-default: var(--color-purple-400);--border-color-hover: var(--color-purple-300);--border-color-pressed: var(--color-purple-500)}.--border-red{--border-color-active: var(--color-red-300);--border-color-default: var(--color-red-400);--border-color-hover: var(--color-red-300);--border-color-pressed: var(--color-red-500)}.--border-text{--border-color-active: var(--color-text-300);--border-color-default: var(--color-text-400);--border-color-hover: var(--color-text-300);--border-color-pressed: var(--color-text-500)}.--border-white{--border-color-active: var(--color-white-300);--border-color-default: var(--color-white-400);--border-color-hover: var(--color-white-300);--border-color-pressed: var(--color-white-500)}.--border-yellow{--border-color-active: var(--color-yellow-300);--border-color-default: var(--color-yellow-400);--border-color-hover: var(--color-yellow-300);--border-color-pressed: var(--color-yellow-500)}.--color-primary{--color-active: var(--color-primary-300);--color-default: var(--color-primary-400);--color-hover: var(--color-primary-300);--color-pressed: var(--color-primary-500)}.--color-secondary{--color-active: var(--color-secondary-300);--color-default: var(--color-secondary-400);--color-hover: var(--color-secondary-300);--color-pressed: var(--color-secondary-500)}.--color-black{--color-active: var(--color-black-300);--color-default: var(--color-black-400);--color-hover: var(--color-black-300);--color-pressed: var(--color-black-500)}.--color-blue{--color-active: var(--color-blue-300);--color-default: var(--color-blue-400);--color-hover: var(--color-blue-300);--color-pressed: var(--color-blue-500)}.--color-border{--color-active: var(--color-border-300);--color-default: var(--color-border-400);--color-hover: var(--color-border-300);--color-pressed: var(--color-border-500)}.--color-green{--color-active: var(--color-green-300);--color-default: var(--color-green-400);--color-hover: var(--color-green-300);--color-pressed: var(--color-green-500)}.--color-grey{--color-active: var(--color-grey-300);--color-default: var(--color-grey-400);--color-hover: var(--color-grey-300);--color-pressed: var(--color-grey-500)}.--color-purple{--color-active: var(--color-purple-300);--color-default: var(--color-purple-400);--color-hover: var(--color-purple-300);--color-pressed: var(--color-purple-500)}.--color-red{--color-active: var(--color-red-300);--color-default: var(--color-red-400);--color-hover: var(--color-red-300);--color-pressed: var(--color-red-500)}.--color-text{--color-active: var(--color-text-300);--color-default: var(--color-text-400);--color-hover: var(--color-text-300);--color-pressed: var(--color-text-500)}.--color-white{--color-active: var(--color-white-300);--color-default: var(--color-white-400);--color-hover: var(--color-white-300);--color-pressed: var(--color-white-500)}.--color-yellow{--color-active: var(--color-yellow-300);--color-default: var(--color-yellow-400);--color-hover: var(--color-yellow-300);--color-pressed: var(--color-yellow-500)}
2
2
  .--margin,.--margin-horizontal{margin-left:var(--margin-horizontal);margin-right:var(--margin-horizontal)}.--margin,.--margin-vertical{margin-bottom:var(--margin-vertical);margin-top:var(--margin-vertical)}.--margin-bottom{margin-bottom:var(--margin-vertical)}.--margin-top{margin-top:var(--margin-vertical)}.--margin-left{margin-left:var(--margin-horizontal)}.--margin-right{margin-right:var(--margin-horizontal)}.--padding,.--padding-horizontal{padding-left:var(--padding-horizontal);padding-right:var(--padding-horizontal)}.--padding.--border,.--padding-horizontal.--border{padding-left:calc(var(--padding-horizontal) - var(--border-width));padding-right:calc(var(--padding-horizontal) - var(--border-width))}.--padding,.--padding-vertical{padding-bottom:var(--padding-vertical);padding-top:var(--padding-vertical)}.--padding.--border,.--padding-vertical.--border{padding-bottom:calc(var(--padding-vertical) - var(--border-width));padding-top:calc(var(--padding-vertical) - var(--border-width))}.--padding-bottom{padding-bottom:var(--padding-vertical)}.--padding-top{padding-top:var(--padding-vertical)}.--padding-left{padding-left:var(--padding-horizontal)}.--padding-right{padding-right:var(--padding-horizontal)}
3
- .--absolute-bottom,.--absolute-top{left:0;position:absolute;right:0}.--absolute-left,.--absolute-right{bottom:0;position:absolute;top:0}.--absolute-center{position:absolute;bottom:50%;right:50%;transform:translate(50%, 50%)}.--absolute-full{position:absolute;top:0;right:0;bottom:0;left:0}.--absolute-horizontal,.--absolute-horizontal-bottom,.--absolute-horizontal-top{position:absolute;right:50%;transform:translateX(50%)}.--absolute-vertical,.--absolute-vertical-left,.--absolute-vertical-right{position:absolute;bottom:50%;transform:translateY(50%)}.--absolute-bottom,.--absolute-horizontal-bottom{bottom:0}.--absolute-top,.--absolute-horizontal-top{top:0}.--absolute-left,.--absolute-vertical-left{left:0}.--absolute-right,.--absolute-vertical-right{right:0}
3
+ .--absolute-horizontal-bottom,.--absolute-vertical-bottom{bottom:0}.--absolute-horizontal-top,.--absolute-vertical-top{top:0}.--absolute-horizontal,.--absolute-horizontal-bottom,.--absolute-horizontal-top{position:absolute;right:50%;transform:translateX(50%)}.--absolute-vertical,.--absolute-vertical-left,.--absolute-vertical-right{position:absolute;bottom:50%;transform:translateY(50%)}.--absolute-bottom{position:absolute;inset:auto 0 0 0}.--absolute-center{position:absolute;bottom:50%;right:50%;transform:translate(50%, 50%)}.--absolute-full{position:absolute;inset:0 0 0 0}.--absolute-left{position:absolute;inset:0 auto 0 0}.--absolute-right{position:absolute;inset:0 0 0 auto}.--absolute-top{position:absolute;inset:0 0 auto 0}
4
4
  .--border{border:var(--border-width) var(--border-style) var(--border-color)}.--border-bottom{border-bottom:var(--border-width) var(--border-style) var(--border-color)}.--border-left{border-left:var(--border-width) var(--border-style) var(--border-color)}.--border-right{border-right:var(--border-width) var(--border-style) var(--border-color)}.--border-top{border-top:var(--border-width) var(--border-style) var(--border-color)}.--border-offset-bottom{margin-bottom:calc(var(--border-width)*-1)}.--border-offset-left{margin-left:calc(var(--border-width)*-1)}.--border-offset-right{margin-right:calc(var(--border-width)*-1)}.--border-offset-top{margin-top:calc(var(--border-width)*-1)}.--border-radius{border-radius:var(--border-radius)}
5
5
  .--disabled{opacity:.64;pointer-events:none}
6
6
  .--flex-center{align-content:center;display:flex;flex-wrap:wrap;justify-content:center}.--flex-column{display:flex;flex-flow:column}.--flex-end{display:flex;flex-wrap:wrap;justify-content:flex-end}.--flex-fill{display:flex;flex:1;min-width:0}.--flex-fixed{display:flex;flex:0 0 var(--width)}.--flex-horizontal{display:flex;flex-wrap:wrap;justify-content:center}.--flex-horizontal-space-between{display:flex;flex-wrap:wrap;justify-content:space-between}.--flex-row{display:flex;flex-flow:row}.--flex-start{display:flex;flex-wrap:wrap;justify-content:flex-start}.--flex-vertical{align-items:center;display:flex;flex-wrap:wrap}.--flex-vertical-space-between{align-items:space-between;display:flex;flex-wrap:wrap}
7
7
  .--glass{-webkit-backdrop-filter:blur(var(--blur));backdrop-filter:blur(var(--blur))}
8
- .--hidden{display:none}.--hidden-active.--active{display:none}.--hidden-inactive:not(.--active){display:none}.--hidden-visibility{position:absolute;top:0;left:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:0px;opacity:0;pointer-events:none;width:0px;z-index:-1}
8
+ .--hidden{display:none}.--hidden-active.--active{display:none}.--hidden-inactive:not(.--active){display:none}.--hidden-offcanvas{position:absolute;top:0;left:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:0px;opacity:0;pointer-events:none;width:0px;z-index:-1}
9
9
  .--inline{display:inline;font-size:inherit;line-height:inherit;margin:0;padding:0}
10
10
  .--not-allowed{cursor:not-allowed}.--not-allowed *{pointer-events:none}
11
11
  .--overflow-hidden{overflow:hidden}
12
12
  .--pointer-none{pointer-events:none}
13
- .--slide-in,.--slide-in-reverse{animation-duration:var(--transition-duration);animation-name:--slide-in;animation-timing-function:ease-in-out;transform-origin:top center}@keyframes --slide-in{from{opacity:0;transform:translateY(var(--translateY))}to{opacity:1;transform:translateY(0)}}
14
- .--text-bold{font-weight:var(--font-weight-500)}.--text-bold-600{font-weight:var(--font-weight-600)}.--text-center{text-align:center}.--text-crop::after,.--text-crop::before,.--text-crop-bottom::after,.--text-crop-top::before{content:"";display:block;height:0;width:100%}.--text-crop::after,.--text-crop-bottom::after{margin-bottom:calc((1 - var(--line-height))*.618em)}.--text-crop::before,.--text-crop-top::before{margin-top:calc((1 - var(--line-height))*.618em)}.--text-italic{font-style:italic}.--text-linethrough{text-decoration:line-through}.--text-multiplier{font-size:calc(var(--font-size)*var(--text-multiplier))}.--text-outline{color:var(--color);word-break:break-word;word-wrap:break-word}@supports(-webkit-text-stroke-width: 1px){.--text-outline{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);-webkit-text-stroke-color:var(--color);-webkit-text-stroke-width:var(--stroke-width)}}.--text-strike-through{text-decoration:line-through;text-decoration-thickness:var(--line-width)}.--text-truncate{line-height:var(--size);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.--text-underline{text-decoration:underline}.--text-underline-dotted{text-decoration:underline;text-decoration-style:dotted}.--text-uppercase{text-transform:uppercase}
13
+ .--squircle{aspect-ratio:1;clip-path:polygon(100% 50%, 99.95% 62.53%, 99.8% 67.7%, 99.56% 71.64%, 99.21% 74.93%, 98.76% 77.79%, 98.21% 80.34%, 97.56% 82.63%, 96.81% 84.7%, 95.94% 86.6%, 94.97% 88.33%, 93.89% 89.92%, 92.69% 91.37%, 91.37% 92.69%, 89.92% 93.89%, 88.33% 94.97%, 86.6% 95.94%, 84.7% 96.81%, 82.63% 97.56%, 80.34% 98.21%, 77.79% 98.76%, 74.93% 99.21%, 71.64% 99.56%, 67.7% 99.8%, 62.53% 99.95%, 50% 100%, 37.47% 99.95%, 32.3% 99.8%, 28.36% 99.56%, 25.07% 99.21%, 22.21% 98.76%, 19.66% 98.21%, 17.37% 97.56%, 15.3% 96.81%, 13.4% 95.94%, 11.67% 94.97%, 10.08% 93.89%, 8.63% 92.69%, 7.31% 91.37%, 6.11% 89.92%, 5.03% 88.33%, 4.06% 86.6%, 3.19% 84.7%, 2.44% 82.63%, 1.79% 80.34%, 1.24% 77.79%, 0.79% 74.93%, 0.44% 71.64%, 0.2% 67.7%, 0.05% 62.53%, 0% 50%, 0.05% 37.47%, 0.2% 32.3%, 0.44% 28.36%, 0.79% 25.07%, 1.24% 22.21%, 1.79% 19.66%, 2.44% 17.37%, 3.19% 15.3%, 4.06% 13.4%, 5.03% 11.67%, 6.11% 10.08%, 7.31% 8.63%, 8.63% 7.31%, 10.08% 6.11%, 11.67% 5.03%, 13.4% 4.06%, 15.3% 3.19%, 17.37% 2.44%, 19.66% 1.79%, 22.21% 1.24%, 25.07% 0.79%, 28.36% 0.44%, 32.3% 0.2%, 37.47% 0.05%, 50% 0%, 62.53% 0.05%, 67.7% 0.2%, 71.64% 0.44%, 74.93% 0.79%, 77.79% 1.24%, 80.34% 1.79%, 82.63% 2.44%, 84.7% 3.19%, 86.6% 4.06%, 88.33% 5.03%, 89.92% 6.11%, 91.37% 7.31%, 92.69% 8.63%, 93.89% 10.08%, 94.97% 11.67%, 95.94% 13.4%, 96.81% 15.3%, 97.56% 17.37%, 98.21% 19.66%, 98.76% 22.21%, 99.21% 25.07%, 99.56% 28.36%, 99.8% 32.3%, 99.95% 37.47%, 100% 50%);width:var(--width, var(--size-800))}
14
+ .--text-bold{font-weight:var(--font-weight-500)}.--text-bold-600{font-weight:var(--font-weight-600)}.--text-center{text-align:center}.--text-crop::after,.--text-crop::before,.--text-crop-bottom::after,.--text-crop-top::before{content:"";display:block;height:0;width:100%}.--text-crop::after,.--text-crop-bottom::after{margin-bottom:calc((1 - var(--line-height))*.618em)}.--text-crop::before,.--text-crop-top::before{margin-top:calc((1 - var(--line-height))*.618em)}.--text-italic{font-style:italic}.--text-line-through{text-decoration:line-through;text-decoration-thickness:var(--line-width)}.--text-multiplier{font-size:calc(var(--font-size)*var(--text-multiplier))}.--text-outline{color:var(--color);word-break:break-word;word-wrap:break-word}@supports(-webkit-text-stroke-width: 1px){.--text-outline{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);-webkit-text-stroke-color:var(--color);-webkit-text-stroke-width:var(--stroke-width)}}.--text-truncate{line-height:var(--size);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.--text-underline{text-decoration:underline}.--text-underline-dotted{text-decoration:underline;text-decoration-style:dotted}.--text-uppercase{text-transform:uppercase}
15
15
  .--viewport{overflow:hidden;height:calc(100svh - var(--margin-vertical, 0px)*2);width:calc(100vw - var(--margin-horizontal, 0px)*2)}
16
16
  .--width{width:var(--width)}
@@ -5,7 +5,5 @@
5
5
  .--glass{--blur: 24px}
6
6
  .--line-height-100{--line-height: var(--line-height-100)}.--line-height-200{--line-height: var(--line-height-200)}.--line-height-300{--line-height: var(--line-height-300)}.--line-height-400{--line-height: var(--line-height-400)}
7
7
  .--size{--size: var(--size-400)}.--size-0px{--size: var(--size-0px)}.--size-100{--size: var(--size-100)}.--size-200{--size: var(--size-200)}.--size-300{--size: var(--size-300)}.--size-400{--size: var(--size-400)}.--size-500{--size: var(--size-500)}.--size-600{--size: var(--size-600)}.--size-700{--size: var(--size-700)}.--size-800{--size: var(--size-800)}.--size-900{--size: var(--size-900)}
8
- .--slide-in{--transition-duration: 0.48s;--translateY: 32px}.--slide-in-reverse{--translateY: -32px}
9
- .--text-100{--font-size: var(--font-size-100)}.--text-200{--font-size: var(--font-size-200)}.--text-300{--font-size: var(--font-size-300)}.--text-400{--font-size: var(--font-size-400)}.--text-500{--font-size: var(--font-size-500)}.--text-600{--font-size: var(--font-size-600)}.--text-700{--font-size: var(--font-size-700)}.--text-800{--font-size: var(--font-size-800)}.--text-outline{--color: inherit;--stroke-width: var(--border-width-400)}.--text-outline-400{--stroke-width: var(--border-width-400)}.--text-outline-500{--stroke-width: var(--border-width-500)}.--text-outline-600{--stroke-width: var(--border-width-600)}.--text-outline-700{--stroke-width: var(--border-width-700)}.--text-strike-through{--line-width: var(--border-width-400)}.--text-strike-through-400{--line-width: var(--border-width-400)}.--text-strike-through-500{--line-width: var(--border-width-500)}.--text-strike-through-600{--line-width: var(--border-width-600)}.--text-strike-through-700{--line-width: var(--border-width-700)}
10
- .--transition-duration{--transition-duration: var(--transition-duration-400)}.--transition-duration-300{--transition-duration: var(--transition-duration-300)}.--transition-duration-400{--transition-duration: var(--transition-duration-400)}.--transition-duration-500{--transition-duration: var(--transition-duration-500)}
8
+ .--text-100{--font-size: var(--font-size-100)}.--text-200{--font-size: var(--font-size-200)}.--text-300{--font-size: var(--font-size-300)}.--text-400{--font-size: var(--font-size-400)}.--text-500{--font-size: var(--font-size-500)}.--text-600{--font-size: var(--font-size-600)}.--text-700{--font-size: var(--font-size-700)}.--text-800{--font-size: var(--font-size-800)}.--text-line-through{--line-width: var(--border-width-400)}.--text-line-through-400{--line-width: var(--border-width-400)}.--text-line-through-500{--line-width: var(--border-width-500)}.--text-line-through-600{--line-width: var(--border-width-600)}.--text-line-through-700{--line-width: var(--border-width-700)}.--text-outline{--color: inherit;--stroke-width: var(--border-width-400)}.--text-outline-400{--stroke-width: var(--border-width-400)}.--text-outline-500{--stroke-width: var(--border-width-500)}.--text-outline-600{--stroke-width: var(--border-width-600)}.--text-outline-700{--stroke-width: var(--border-width-700)}
11
9
  .--width-full{--width: 100%}.--width-half{--width: 50%}
@@ -1,10 +0,0 @@
1
- declare function deactivate(): void;
2
- declare const _default: {
3
- deactivate: typeof deactivate;
4
- error: (messages: string | string[], seconds?: number) => void;
5
- html: () => () => "" | import("@esportsplus/template").Renderable;
6
- info: (messages: string | string[], seconds?: number) => void;
7
- success: (messages: string | string[], seconds?: number) => void;
8
- types: readonly ["error", "info", "success"];
9
- };
10
- export default _default;
@@ -1,122 +0,0 @@
1
- import { reactive } from '@esportsplus/reactivity';
2
- import { html } from '@esportsplus/template';
3
- let modifiers = {
4
- error: 'red',
5
- info: 'black',
6
- success: 'green'
7
- }, state = reactive({
8
- active: false,
9
- messages: new Set,
10
- seconds: 0,
11
- state: 'activating',
12
- type: ''
13
- }), timeout = 250;
14
- function activate(key, messages, seconds = 0) {
15
- if (!Array.isArray(messages)) {
16
- messages = [messages];
17
- }
18
- if (!messages.length) {
19
- return;
20
- }
21
- if (state.type !== key) {
22
- state.messages.clear();
23
- }
24
- else {
25
- state.type = '';
26
- }
27
- for (let message of messages) {
28
- state.messages.add(message);
29
- }
30
- state.state = 'activating';
31
- state.type = key;
32
- if (state.active) {
33
- state.active = true;
34
- if (seconds) {
35
- if (!state.seconds) {
36
- state.seconds = seconds;
37
- }
38
- setTimeout(() => {
39
- if (messages && messages.length < (state?.messages?.size || 0)) {
40
- for (let message of messages) {
41
- state.messages.delete(message);
42
- }
43
- state.messages = state.messages;
44
- }
45
- else {
46
- deactivate();
47
- }
48
- }, 400 * seconds);
49
- }
50
- else {
51
- state.seconds = 0;
52
- }
53
- return;
54
- }
55
- setTimeout(() => {
56
- state.active = true;
57
- if (seconds) {
58
- if (!state.seconds) {
59
- state.seconds = seconds;
60
- }
61
- setTimeout(() => {
62
- if (messages && messages.length < (state?.messages?.size || 0)) {
63
- for (let message of messages) {
64
- state.messages.delete(message);
65
- }
66
- state.messages = state.messages;
67
- }
68
- else {
69
- deactivate();
70
- }
71
- }, 400 * seconds);
72
- }
73
- else {
74
- state.seconds = 0;
75
- }
76
- }, timeout);
77
- }
78
- function deactivate() {
79
- state.state = 'deactivating';
80
- setTimeout(() => {
81
- state.active = false;
82
- state.messages.clear();
83
- }, timeout);
84
- }
85
- const error = (messages, seconds = 0) => activate('error', messages, seconds);
86
- const info = (messages, seconds = 0) => activate('info', messages, seconds);
87
- const success = (messages, seconds = 0) => activate('success', messages, seconds);
88
- const h = () => {
89
- return () => state.active ? html `
90
- <div class='alert anchor anchor--ne ${() => state.active && '--active'} ${() => `alert--${state.state}`}'>
91
- <div class="alert-close --flex-start --margin-right --margin-100" onclick='${deactivate}'>
92
- <div class='button --background-state ${() => `--background-${modifiers[state.type] || 'black'}`} --color-state --color-white --flex-center --padding-300'>
93
- <div class="icon --size-300">
94
- ${html.inline `
95
- <svg width="16" height="16" viewBox="0 0 16 16">
96
- <path d="M3.527 14.948a.176.176 0 01-.248 0L1.051 12.72a.176.176 0 010-.248l11.42-11.419a.176.176 0 01.248 0l2.229 2.228a.174.174 0 010 .248L3.527 14.948z"/>
97
- <path d="M12.472 14.948c.068.068.18.068.248 0l2.229-2.229a.176.176 0 000-.248L3.528 1.052a.176.176 0 00-.248 0L1.052 3.28a.176.176 0 000 .248l11.42 11.42z"/>
98
- </svg>
99
- `}
100
- </div>
101
- </div>
102
- </div>
103
-
104
- <div class="card --overflow-hidden" style='--background: var(--color-white-400)'>
105
- <div class="alert-message --active --flex-row --padding --padding-horizontal-500 --padding-vertical-400">
106
- <div class='--flex-row --flex-fill --flex-vertical'>
107
- <div class="--flex-fill --flex-column --padding-right --padding-400">
108
- <h5 class="page-title">
109
- ${() => state.type.charAt(0).toUpperCase() + state.type.slice(1)}
110
- </h5>
111
- ${() => state.type && [...state.messages].map((message) => html `
112
- <p class='--margin-top --margin-border-width-500'>${message}</p>
113
- `)}
114
- </div>
115
- </div>
116
- </div>
117
- </div>
118
- </div>
119
- ` : '';
120
- };
121
- const types = ['error', 'info', 'success'];
122
- export default { deactivate, error, html: h, info, success, types };
@@ -1,2 +0,0 @@
1
- declare const _default: (value: string) => void;
2
- export default _default;
@@ -1,8 +0,0 @@
1
- export default (value) => {
2
- let input = document.createElement('INPUT');
3
- document.body.appendChild(input);
4
- input.setAttribute('value', value);
5
- input.select();
6
- document.execCommand('copy');
7
- document.body.removeChild(input);
8
- };
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- clipboard: (value: string) => void;
3
- json: (content: any[] | Record<string, any>, name: string) => void;
4
- };
5
- export default _default;
@@ -1,3 +0,0 @@
1
- import clipboard from './clipboard';
2
- import json from './json';
3
- export default { clipboard, json };
@@ -1,25 +0,0 @@
1
- type Data = {
2
- class?: string;
3
- direction?: string;
4
- items?: {
5
- border?: {
6
- class?: string;
7
- };
8
- class?: string;
9
- onclick?: (...args: any[]) => void;
10
- style?: string;
11
- svg?: string;
12
- target?: string;
13
- text: string;
14
- url?: string;
15
- }[];
16
- state?: {
17
- active?: boolean;
18
- };
19
- style?: string;
20
- };
21
- declare const _default: (data: Data, state: {
22
- active?: boolean;
23
- render?: boolean;
24
- }) => () => "" | import("@esportsplus/template").Renderable;
25
- export default _default;
@@ -1,44 +0,0 @@
1
- import { effect } from '@esportsplus/reactivity';
2
- import { html } from '@esportsplus/template';
3
- function template(data) {
4
- return html `
5
- <div class="tooltip-content tooltip-content--${data?.direction || 's'} --flex-column --width-full ${data?.class || ''}" style='${data?.style || ''}'>
6
- ${(data?.items || []).map(item => html `
7
- ${item?.border ? html `
8
- <div
9
- class="border ${item?.border?.class || ''}"
10
- style='
11
- margin-left: calc(var(--margin-horizontal) * -1);
12
- width: calc(100% + var(--margin-horizontal) * 2);
13
- '
14
- ></div>
15
- ` : ''}
16
-
17
- <${item?.url ? 'a' : 'div'}
18
- class='link --flex-vertical ${item?.class}' ${item?.onclick ? html `onclick='${item.onclick}'` : ''}
19
- style='${item?.style || ''}'
20
- ${item?.url ? `href='${item.url}' target='${item.target || '_blank'}'` : ''}
21
- >
22
- ${item?.svg ? html `
23
- <div class="icon --margin-right --margin-300" style='margin-left: var(--size-100)'>
24
- ${item.svg}
25
- </div>
26
- ` : ''}
27
-
28
- <div class="text --color-text --flex-fill">
29
- ${item.text}
30
- </div>
31
- </${item?.url ? 'a' : 'div'}>
32
- `)}
33
- </div>
34
- `;
35
- }
36
- export default (data, state) => {
37
- effect(() => {
38
- if (!state.active || state.render) {
39
- return;
40
- }
41
- state.render = true;
42
- });
43
- return () => state.render ? template(data) : '';
44
- };
@@ -1,157 +0,0 @@
1
- import { reactive } from '@esportsplus/reactivity';
2
- import { html } from '@esportsplus/template';
3
-
4
-
5
- type Type = 'error' | 'info' | 'success';
6
-
7
-
8
- let modifiers: Record<Type, string> = {
9
- error: 'red',
10
- info: 'black',
11
- success: 'green'
12
- },
13
- state = reactive({
14
- active: false,
15
- messages: new Set as Set<string>,
16
- seconds: 0,
17
- state: 'activating',
18
- type: '' as Type
19
- }),
20
- timeout = 250;
21
-
22
-
23
- function activate(key: Type, messages: string | string[], seconds: number = 0) {
24
- if (!Array.isArray(messages)) {
25
- messages = [messages];
26
- }
27
-
28
- if (!messages.length) {
29
- return;
30
- }
31
-
32
- if (state.type !== key) {
33
- state.messages.clear();
34
- }
35
- else {
36
- // @ts-ignore
37
- state.type = '';
38
- }
39
-
40
- for (let message of messages) {
41
- state.messages.add(message);
42
- }
43
-
44
- state.state = 'activating';
45
- state.type = key;
46
-
47
- // Slide in animation needs time
48
- if (state.active) {
49
- state.active = true;
50
-
51
- if (seconds) {
52
- if (!state.seconds) {
53
- state.seconds = seconds;
54
- }
55
-
56
- setTimeout(() => {
57
- if (messages && messages.length < (state?.messages?.size || 0)) {
58
- for (let message of messages) {
59
- state.messages.delete(message);
60
- }
61
-
62
- state.messages = state.messages;
63
- }
64
- else {
65
- deactivate();
66
- }
67
- }, 400 * seconds);
68
- }
69
- else {
70
- state.seconds = 0;
71
- }
72
- return;
73
- }
74
-
75
- setTimeout(() => {
76
- state.active = true;
77
-
78
- if (seconds) {
79
- if (!state.seconds) {
80
- state.seconds = seconds;
81
- }
82
-
83
- setTimeout(() => {
84
- if (messages && messages.length < (state?.messages?.size || 0)) {
85
- for (let message of messages) {
86
- state.messages.delete(message);
87
- }
88
-
89
- state.messages = state.messages;
90
- }
91
- else {
92
- deactivate();
93
- }
94
- }, 400 * seconds);
95
- }
96
- else {
97
- state.seconds = 0;
98
- }
99
- }, timeout);
100
- }
101
-
102
- function deactivate() {
103
- state.state = 'deactivating';
104
-
105
- setTimeout(() => {
106
- state.active = false;
107
- state.messages.clear();
108
- }, timeout);
109
- }
110
-
111
-
112
- const error = (messages: string | string[], seconds: number = 0) => activate('error', messages, seconds);
113
-
114
- const info = (messages: string | string[], seconds: number = 0) => activate('info', messages, seconds);
115
-
116
- const success = (messages: string | string[], seconds: number = 0) => activate('success', messages, seconds);
117
-
118
-
119
- const h = () => {
120
- // TODO: Fix importing close svg
121
- return () => state.active ? html`
122
- <div class='alert anchor anchor--ne ${() => state.active && '--active'} ${() => `alert--${state.state}`}'>
123
- <div class="alert-close --flex-start --margin-right --margin-100" onclick='${deactivate}'>
124
- <div class='button --background-state ${() => `--background-${modifiers[state.type] || 'black'}`} --color-state --color-white --flex-center --padding-300'>
125
- <div class="icon --size-300">
126
- ${html.inline`
127
- <svg width="16" height="16" viewBox="0 0 16 16">
128
- <path d="M3.527 14.948a.176.176 0 01-.248 0L1.051 12.72a.176.176 0 010-.248l11.42-11.419a.176.176 0 01.248 0l2.229 2.228a.174.174 0 010 .248L3.527 14.948z"/>
129
- <path d="M12.472 14.948c.068.068.18.068.248 0l2.229-2.229a.176.176 0 000-.248L3.528 1.052a.176.176 0 00-.248 0L1.052 3.28a.176.176 0 000 .248l11.42 11.42z"/>
130
- </svg>
131
- `}
132
- </div>
133
- </div>
134
- </div>
135
-
136
- <div class="card --overflow-hidden" style='--background: var(--color-white-400)'>
137
- <div class="alert-message --active --flex-row --padding --padding-horizontal-500 --padding-vertical-400">
138
- <div class='--flex-row --flex-fill --flex-vertical'>
139
- <div class="--flex-fill --flex-column --padding-right --padding-400">
140
- <h5 class="page-title">
141
- ${() => state.type.charAt(0).toUpperCase() + state.type.slice(1)}
142
- </h5>
143
- ${() => state.type && [...state.messages].map((message) => html`
144
- <p class='--margin-top --margin-border-width-500'>${message}</p>
145
- `)}
146
- </div>
147
- </div>
148
- </div>
149
- </div>
150
- </div>
151
- ` : '';
152
- };
153
-
154
- const types = ['error', 'info', 'success'] as const;
155
-
156
-
157
- export default { deactivate, error, html: h, info, success, types };
@@ -1,55 +0,0 @@
1
- @use '/lib';
2
- @use '/tokens';
3
-
4
- .alert {
5
- max-width: var(--max-width);
6
- width: calc(100% - (var(--margin-horizontal) * 2));
7
-
8
-
9
- &--deactivating {
10
- opacity: 0;
11
- transform: translateY(-50%);
12
- }
13
-
14
- &--activating {
15
- @include tokens.state(inactive) {
16
- transform: translateY(50%);
17
- }
18
- }
19
-
20
-
21
- &-close {
22
- @include lib.position(absolute, 0 100% 0 null);
23
- animation: alert-close var(--transition-duration) ease-in-out;
24
- transition: transform var(--transition-duration) ease-in-out;
25
- z-index: 0;
26
- }
27
-
28
- &-message {
29
- opacity: 0;
30
- transition:
31
- opacity var(--transition-duration) ease-in-out,
32
- transform var(--transition-duration) ease-in-out;
33
-
34
- @include tokens.state(inactive) {
35
- pointer-events: none;
36
- position: absolute;
37
- transform: translateX(calc(25% * -1));
38
- left: 0;
39
- top: 0;
40
- }
41
-
42
- @include tokens.state(active) {
43
- opacity: 1;
44
- }
45
- }
46
- }
47
-
48
- @keyframes alert-close {
49
- from {
50
- transform: translateX(150%);
51
- }
52
- to {
53
- transform: translateX(0);
54
- }
55
- }
@@ -1,8 +0,0 @@
1
- .alert {
2
- --max-width: 420px;
3
-
4
- &-close,
5
- &-message {
6
- --transition-duration: var(--transition-duration-400);
7
- }
8
- }
@@ -1,12 +0,0 @@
1
- export default (value: string) => {
2
- let input = document.createElement('INPUT') as HTMLInputElement;
3
-
4
- document.body.appendChild(input);
5
-
6
- input.setAttribute('value', value);
7
- input.select();
8
-
9
- document.execCommand('copy');
10
-
11
- document.body.removeChild(input);
12
- };
@@ -1,5 +0,0 @@
1
- import clipboard from './clipboard';
2
- import json from './json';
3
-
4
-
5
- export default { clipboard, json };
@@ -1,47 +0,0 @@
1
- @use '/lib';
2
-
3
- .processing {
4
- height: var(--size);
5
- position: relative;
6
- width: var(--size);
7
- animation: processing var(--animation-duration) linear infinite;
8
-
9
- &-ring {
10
- clip: rect(calc(var(--size) / 2), var(--size), var(--size), 0);
11
-
12
- &,
13
- &::after,
14
- &::before {
15
- @include lib.position(absolute, full);
16
- }
17
-
18
- &,
19
- &::before {
20
- animation: processing calc(var(--animation-duration) / 2) cubic-bezier(0.770, 0.000, 0.175, 1.000) infinite;
21
- }
22
-
23
- &::after,
24
- &::before {
25
- border-radius: 50%;
26
- content: "";
27
- }
28
-
29
- &::after {
30
- border: var(--border-width) var(--border-style) var(--border-color-secondary);
31
- opacity: var(--opacity);
32
- }
33
-
34
- &::before {
35
- border-top: var(--border-width) var(--border-style) var(--border-color-primary);
36
- }
37
- }
38
- }
39
-
40
- @keyframes processing {
41
- 0% {
42
- transform: rotate(0deg);
43
- }
44
- 100% {
45
- transform: rotate(360deg);
46
- }
47
- }
@@ -1,11 +0,0 @@
1
- .processing {
2
- --animation-duration: 2.64s;
3
- --border-color-primary: var(--color-black-500);
4
- --border-color-secondary: var(--color-border-300);
5
- --border-style: solid;
6
- --border-width: var(--border-width-600);
7
- --height: var(--size);
8
- --opacity: 0.64;
9
- --size: var(--size-600);
10
- --width: var(--size);
11
- }