@enigma-lake/dice-play-controller-sdk 1.3.8 → 2.0.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.
- package/README.md +180 -180
- package/dist/components/base/Button/Button.d.ts +1 -1
- package/dist/components/base/ChevronIcon/ChevronIcon.d.ts +1 -1
- package/dist/components/base/FreeRoundsFooter/FreeRoundsFooter.d.ts +2 -0
- package/dist/components/base/FreeRoundsFooter/index.d.ts +2 -0
- package/dist/components/base/FreeRoundsIntroModal/FreeRoundsIntroModal.d.ts +3 -2
- package/dist/components/base/FreeRoundsSummaryModal/FreeRoundsSummaryModal.d.ts +9 -0
- package/dist/components/base/FreeRoundsSummaryModal/index.d.ts +3 -0
- package/dist/components/base/GroupRow/GroupRow.d.ts +1 -1
- package/dist/components/base/Input/Input.d.ts +1 -1
- package/dist/components/base/ManualPlayController/ManualPlayController.d.ts +1 -1
- package/dist/components/base/PlayController/PlayController.d.ts +1 -1
- package/dist/components/base/PlayValueInput/PlayValueInput.d.ts +1 -1
- package/dist/components/base/PlayValueList/PlayValueList.d.ts +1 -1
- package/dist/components/base/SelectMenu/GoldIcon.d.ts +1 -1
- package/dist/components/base/SelectMenu/SelectMenu.d.ts +1 -1
- package/dist/components/base/SelectMenu/SweepsIcon.d.ts +1 -1
- package/dist/components/hooks/usePlayController.d.ts +0 -2
- package/dist/components/utils.d.ts +11 -0
- package/dist/index.d.ts +15 -7
- package/dist/index.mjs +170 -84
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/playController.d.ts +1 -2
- package/package.json +84 -84
- package/dist/components/base/FreeRoundsAffordance/FreeRoundsAffordance.d.ts +0 -9
- package/dist/components/base/FreeRoundsAffordance/index.d.ts +0 -2
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.Button-module__base___muNxk{background:transparent;border:0;cursor:pointer;font-weight:700;margin:0;outline:none;text-transform:uppercase;user-select:none}.Button-module__base__theme-ghost___I5-LJ{align-items:center;backdrop-filter:blur(10px);border-radius:10px;color:rgba(var(--text-color-hex),1);display:flex;height:100%;width:45px}.Button-module__base__theme-ghost___I5-LJ:active,.Button-module__base__theme-ghost___I5-LJ:focus,.Button-module__base__theme-ghost___I5-LJ:hover{background:rgba(var(--bg-color-rgb),.05)}.Button-module__base__theme-primary___Zuswb{align-items:center;border-radius:10px;color:rgba(var(--text-color-hex),1);display:flex;height:39px;justify-content:center;letter-spacing:.8px;line-height:125%;margin-top:7px;width:100%}.Button-module__base__state-disabled___EU5tH{color:rgba(var(--text-color-hex),.5)!important;pointer-events:none}.Button-module__buttonCashout___LG-Yr,.Button-module__buttonPlayAmount___GMy3F{background:linear-gradient(357deg,#7f44c3 22.01%,#9f5eeb 97.97%)}.Button-module__buttonCashout___LG-Yr:active,.Button-module__buttonCashout__active___qnE3h,.Button-module__buttonPlayAmount___GMy3F:active,.Button-module__buttonPlayAmount__active___e0nGe{background:#592f9d}.Button-module__buttonSweeps___0snDQ{background:var(--play-button-bg,linear-gradient(357deg,#10be68 23.9%,#29cf7d 97.97%));color:var(--play-button-text-color,rgba(var(--text-color-hex),1))}.Button-module__buttonSweeps___0snDQ:active,.Button-module__buttonSweeps__active___PXIFH{background:var(--play-button-bg-pressed,#008c47)}.Button-module__buttonGold___DAj-d{background:var(--play-button-bg,linear-gradient(357deg,#bf9e21 22.01%,#f0c72c 97.97%));color:var(--play-button-text-color,rgba(var(--text-color-hex),1))}.Button-module__buttonGold___DAj-d:active,.Button-module__buttonGold__active___vsi7m{background:var(--play-button-bg-pressed,#9a7c04)}.Button-module__buttonDefault___QENXy{background:var(--play-button-bg,linear-gradient(357deg,#10be68 23.9%,#29cf7d 97.97%));color:var(--play-button-text-color,rgba(var(--text-color-hex),1))}.Button-module__buttonDefault___QENXy:active,.Button-module__buttonDefault__active___oS6gd{background:var(--play-button-bg-pressed,#008c47)}.GroupRow-module__base___b241-{display:flex;width:100%}.GroupRow-module__label___Du57P{color:hsla(0,6%,41%,.6);font-size:12px;font-style:Inter;font-weight:700;letter-spacing:.02em;line-height:18px;margin-bottom:6px}.GroupRow-module__group___V7xa6{display:flex;gap:4px;margin-top:8px;width:100%}.GroupRow-module__group___V7xa6 .GroupRow-module__groupItem___yNSX8{border-radius:0;box-sizing:border-box}.GroupRow-module__group___V7xa6 .GroupRow-module__groupItem___yNSX8:last-child{border-bottom-right-radius:10px;border-top-right-radius:10px}.GroupRow-module__group___V7xa6 .GroupRow-module__groupItem___yNSX8:first-child{align-items:center;border-bottom-left-radius:10px;border-top-left-radius:10px;display:flex;gap:8px;justify-content:flex-start;padding-left:12px;width:calc(100% - 98px)}.GroupRow-module__x2___9bLae{align-items:center;background:hsla(0,0%,100%,.15);cursor:pointer;display:block;display:flex;font-family:Inter;font-size:15px;font-style:normal;font-weight:700;height:35px;justify-content:center;width:45px}.GroupRow-module__x2___9bLae.GroupRow-module__last___ArsSn{border-bottom-right-radius:10px;border-top-right-radius:10px}.GroupRow-module__isClassicGame___m9r03 .GroupRow-module__x2___9bLae{background:#361791}.SelectMenu-module__button___N-HeB{align-items:center;display:flex;height:31px;justify-content:space-between;transition:all .7s;width:31px}.SelectMenu-module__menu___c5jvZ{cursor:pointer;width:auto}.SelectMenu-module__menuItems___BX1YQ{background-color:rgba(var(--play-dropdown-bg),1);border-radius:6px;cursor:pointer;overflow-y:auto;padding:4px 0;width:100%;width:110px}.SelectMenu-module__menuItem___eXbi3{align-items:center;background-color:rgba(var(--play-dropdown-bg),1);color:rgba(var(--text-color-hex),1);display:flex;font-size:12px;font-weight:600;gap:6px;padding:2px 12px}.SelectMenu-module__menuItem___eXbi3:hover{background:rgba(var(--bg-color-rgb),.16);color:rgba(var(--text-color-hex),1)}.SelectMenu-module__selected___XyADw{position:relative}.SelectMenu-module__selected___XyADw:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' d='M20.53 6.47a.75.75 0 0 1 0 1.06l-10 10a.75.75 0 0 1-1.06 0l-5-5a.75.75 0 1 1 1.06-1.06L10 15.94l9.47-9.47a.75.75 0 0 1 1.06 0Z' clip-rule='evenodd' fill='%23FFF'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;content:"";height:16px;position:absolute;right:10px;top:50%;transform:translateY(-50%);width:16px}.SelectMenu-module__disabledSVG___OdVFW{cursor:not-allowed}.SelectMenu-module__disabled___jiTPl svg{opacity:.1}.SelectMenu-module__disabled___jiTPl{cursor:not-allowed}.ChevronIcon-module__chevron___lif8s{stroke:rgba(var(--text-color-hex),1);height:14px;transform-origin:center;transition:transform .3s ease;width:14px}.ChevronIcon-module__open___niD1n{transform:rotate(-180deg)}.ChevronIcon-module__disable___8n-xg{stroke:rgba(var(--text-color-hex),.1)}.PlayValueInput-module__base___sTNW2{background:hsla(0,0%,100%,.15);border-radius:10px;color:rgba(var(--text-color-hex),1);display:flex;font-family:Inter;font-size:15px;font-style:normal;font-weight:700;height:35px;padding:4px 0;position:relative;width:100%;z-index:1}.PlayValueInput-module__icon___jZj7O{display:block;font-family:Inter;font-size:15px;font-style:normal;font-weight:700;left:11px}.PlayValueInput-module__label___1ZSAV,.PlayValueInput-module__playValueInputWithLabel___S55Cr,.PlayValueInput-module__playValueInput___7pJtn{background:transparent;color:rgba(var(--text-color-hex),1);cursor:pointer;font-family:Inter;font-size:10px;letter-spacing:.6px;padding:0;text-align:left;width:100%}.PlayValueInput-module__inputContainer___RKr1l{cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;width:100%}.PlayValueInput-module__label___1ZSAV{font-size:10px;letter-spacing:.5px;line-height:125%}.PlayValueInput-module__playValueWithLabel___K4-pr{padding-top:15px;user-select:none;z-index:1}.PlayValueInput-module__base___sTNW2.PlayValueInput-module__isClassicGame___lQzVE{background:#361791}.FreeRoundsAffordance-module__affordance___wBGcv{align-items:center;display:flex;justify-content:center;margin-top:8px;width:100%}.FreeRoundsAffordance-module__row___KwByQ{align-items:stretch;display:flex;gap:8px;margin-top:7px;width:100%}.FreeRoundsAffordance-module__playSlot___hCXTv{display:flex;flex:0 0 35%;width:35%}.FreeRoundsAffordance-module__playSlot___hCXTv>*{margin-top:0;width:100%}.FreeRoundsAffordance-module__freeSlot___-mQ8T{display:flex;flex:1 1 65%;width:65%}.FreeRoundsAffordance-module__chip___OajJb{align-items:center;background:linear-gradient(357deg,#7f44c3 22.01%,#9f5eeb 97.97%);border:none;border-radius:10px;color:#fff;cursor:pointer;display:inline-flex;font-family:Inter,sans-serif;font-size:13px;font-weight:700;gap:6px;height:39px;justify-content:center;padding:8px 14px;transition:background .15s ease-in-out;width:100%}.FreeRoundsAffordance-module__chip___OajJb:hover{background:linear-gradient(357deg,#8b4ed1 22.01%,#ab6bf5 97.97%)}.FreeRoundsAffordance-module__chip___OajJb:active{background:#592f9d}.UI-module__base___6q08N{align-items:center;border-radius:15px;display:flex;flex-direction:column;justify-content:center;position:relative}.UI-module__container___S3Gpa{max-width:342px;width:100%}.UI-module__betForm___pu-7D{background-color:rgba(var(--play-panel-bg),var(--play-panel-bg-opacity));border-radius:0;bottom:var(--play-bottom);display:flex;flex-direction:column;height:auto;left:50%;padding:12px 16px;position:absolute;transform:translateX(-50%);width:100%}.UI-module__hideMenu___RCMex{padding-bottom:5px;padding-top:6px}@media (min-width:700px){.UI-module__betForm___pu-7D:not(.UI-module__isClassicGame___C-dT4):not(.UI-module__baseForceLeft___2WEa0){border-radius:15px;max-width:374px;width:100%}}@media (max-width:1073px){.UI-module__betForm___pu-7D.UI-module__isClassicGame___C-dT4{border-radius:0;bottom:var(--play-bottom);height:auto;left:50%;max-width:100%;transform:translateX(-50%);width:100%}.UI-module__containerSpread___Uc7N-{display:block;height:auto}}@media (min-width:1074px){.UI-module__betForm___pu-7D.UI-module__isClassicGame___C-dT4{border-radius:0;bottom:0;height:100dvh;left:0;max-width:374px;transform:none;width:374px}.UI-module__containerSpread___Uc7N-{display:flex;flex-direction:column;height:100%;justify-content:flex-end}.UI-module__containerSpread___Uc7N->.UI-module__controllerWidgets___rFquu{margin-bottom:auto;order:-1}}.UI-module__baseForceLeft___2WEa0{border-radius:0;bottom:0;height:100dvh;left:0;transform:none}.UI-module__betForm___pu-7D.UI-module__baseForceLeft___2WEa0,.UI-module__betForm___pu-7D.UI-module__isClassicGame___C-dT4{--play-panel-bg:34,16,98;--play-dropdown-bg:21,12,71;background:rgba(var(--play-panel-bg),1)}.UI-module__betForm___pu-7D.UI-module__baseForceLeft___2WEa0 .UI-module__auto___SVz6b,.UI-module__betForm___pu-7D.UI-module__isClassicGame___C-dT4 .UI-module__auto___SVz6b{background:#361791}.UI-module__disabled___E2zhE{opacity:.1}.UI-module__auto___SVz6b{align-items:center;background:hsla(0,0%,100%,.15);border-radius:10px;color:rgba(var(--text-color-hex),1);display:flex;font-family:Inter;font-size:15px;font-weight:700;height:35px;justify-content:center;padding:0 12px;position:relative;width:100%}.UI-module__controllerWidgets___rFquu{align-items:center;display:flex;height:38px;justify-content:space-between;margin-top:5px;width:100%}.UI-module__controllerWidgets___rFquu .UI-module__centerWidget___zWhMN,.UI-module__controllerWidgets___rFquu .UI-module__sideWidget___mTaGO{color:#fff;display:flex;font-family:Inter,sans-serif;font-size:10px!important;font-style:normal;font-weight:700;gap:8px;line-height:125%;text-align:center;width:20%}.UI-module__controllerWidgets___rFquu .UI-module__centerWidget___zWhMN{width:60%}.UI-module__controllerWidgets___rFquu .UI-module__left___VsEJc{justify-content:flex-start}.UI-module__controllerWidgets___rFquu .UI-module__center___hZwDn{justify-content:center}.UI-module__controllerWidgets___rFquu .UI-module__right___JJ0-R{justify-content:flex-end}.Input-module__base___IifiA{border:none;color:rgba(var(--text-color-hex),1);outline:none;padding:10px 12px;text-align:right;user-select:none!important;width:100%}.Input-module__disabled___WqyKa{color:rgba(var(--text-color-hex),.1)!important;cursor:pointer;pointer-events:none}.Input-module__disabledClassic___hzsCt{-webkit-text-fill-color:rgba(var(--text-color-hex),1)!important;color:rgba(var(--text-color-hex),1)!important;cursor:pointer;opacity:1!important;pointer-events:none}.PlayValueList-module__base___5duc6{align-items:center;backdrop-filter:blur(10px);background:hsla(0,0%,100%,.15);border-radius:10px;display:flex;flex-shrink:0;height:385px;justify-content:center;margin-bottom:5px;max-width:342px;width:100%}.PlayValueList-module__playValuesWrapper___-zfj2{align-content:flex-start;align-items:flex-start;display:flex;flex-shrink:0;flex-wrap:wrap;gap:7px;height:351px;max-width:326px;transition:all .2s;width:100%}.PlayValueList-module__playValue___TJQhI{align-items:center;backdrop-filter:blur(10px);background:hsla(0,0%,100%,.15);border-radius:50px;color:#fff;cursor:pointer;display:flex;flex-shrink:0;font-family:Inter;font-size:16px;font-style:normal;gap:10px;height:45px;justify-content:center;letter-spacing:.8px;line-height:125%;padding:12px 21px;text-align:center;text-transform:uppercase;width:104px}@media (max-width:375px){.PlayValueList-module__playValuesWrapper___-zfj2{padding-left:7px}.PlayValueList-module__playValue___TJQhI{width:calc(33.33% - 7px)}}.PlayValueList-module__isClassicGame___AjnGE{background:#361791}.PlayValueList-module__isClassicGame___AjnGE .PlayValueList-module__selectedPlayValue___3DhDC{background:#150c47}.PlayValueList-module__selectedPlayValue___3DhDC{background:#07172d;transition:all .2s}.PlayValueList-module__disabledPlayValue___U9Bkj{background:#07172d;opacity:.25;transition:all .2s}*,html{--bet-bottom:0px;--bet-panel-bg:8,30,100;--play-dropdown-bg:16,36,63;--bg-color-rgb:255,255,255;--text-color-hex:255,255,255;cursor:default;font-family:Inter;font-size:15px;font-style:normal;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.FreeRoundsIntroModal-module__backdrop___qIgNx{align-items:center;background:#0c0833;display:flex;inset:0;justify-content:center;padding:16px;position:fixed;z-index:1000}.FreeRoundsIntroModal-module__panel___-zQpe{align-items:center;background-color:rgba(var(--play-panel-bg,var(--bet-panel-bg)),.98);border-radius:15px;color:#fff;display:flex;flex-direction:column;font-family:Inter,sans-serif;gap:12px;max-width:342px;padding:20px;text-align:center;width:100%}@media (min-width:700px){.FreeRoundsIntroModal-module__panel___-zQpe{max-width:374px}}.FreeRoundsIntroModal-module__title___1csj0{font-size:18px;font-weight:700;line-height:125%}.FreeRoundsIntroModal-module__details___qXMR-{font-size:14px;font-weight:600;line-height:150%;opacity:.9}.FreeRoundsIntroModal-module__count___lVep8{font-size:28px;font-weight:800;line-height:110%}.FreeRoundsIntroModal-module__stake___vCcPI{font-size:13px;font-weight:600;opacity:.85}.FreeRoundsIntroModal-module__actions___toCBq{display:flex;flex-direction:column;gap:8px;margin-top:8px;width:100%}.FreeRoundsIntroModal-module__button___bSTmX{border:none;border-radius:10px;color:#fff;cursor:pointer;font-family:Inter,sans-serif;font-size:15px;font-weight:700;height:40px;width:100%}.FreeRoundsIntroModal-module__playNow___iVhdt{background:linear-gradient(357deg,#7f44c3 22.01%,#9f5eeb 97.97%)}.FreeRoundsIntroModal-module__playNow___iVhdt:hover{background:linear-gradient(357deg,#8b4ed1 22.01%,#ab6bf5 97.97%)}.FreeRoundsIntroModal-module__playNow___iVhdt:active{background:#592f9d}.FreeRoundsIntroModal-module__playLater___l9031{background:hsla(0,0%,100%,.15)}.FreeRoundsIntroModal-module__playLater___l9031:hover{background:hsla(0,0%,100%,.25)}
|
|
1
|
+
.Button-module__base___muNxk{background:transparent;border:0;cursor:pointer;font-weight:700;margin:0;outline:none;text-transform:uppercase;user-select:none}.Button-module__base__theme-ghost___I5-LJ{align-items:center;backdrop-filter:blur(10px);border-radius:10px;color:rgba(var(--text-color-hex),1);display:flex;height:100%;width:45px}.Button-module__base__theme-ghost___I5-LJ:active,.Button-module__base__theme-ghost___I5-LJ:focus,.Button-module__base__theme-ghost___I5-LJ:hover{background:rgba(var(--bg-color-rgb),.05)}.Button-module__base__theme-primary___Zuswb{align-items:center;border-radius:10px;color:rgba(var(--text-color-hex),1);display:flex;height:39px;justify-content:center;letter-spacing:.8px;line-height:125%;margin-top:7px;width:100%}.Button-module__base__state-disabled___EU5tH{color:rgba(var(--text-color-hex),.5)!important;pointer-events:none}.Button-module__buttonCashout___LG-Yr,.Button-module__buttonPlayAmount___GMy3F{background:linear-gradient(357deg,#7f44c3 22.01%,#9f5eeb 97.97%)}.Button-module__buttonCashout___LG-Yr:active,.Button-module__buttonCashout__active___qnE3h,.Button-module__buttonPlayAmount___GMy3F:active,.Button-module__buttonPlayAmount__active___e0nGe{background:#592f9d}.Button-module__buttonSweeps___0snDQ{background:var(--play-button-bg,linear-gradient(357deg,#10be68 23.9%,#29cf7d 97.97%));color:var(--play-button-text-color,rgba(var(--text-color-hex),1))}.Button-module__buttonSweeps___0snDQ:active,.Button-module__buttonSweeps__active___PXIFH{background:var(--play-button-bg-pressed,#008c47)}.Button-module__buttonGold___DAj-d{background:var(--play-button-bg,linear-gradient(357deg,#bf9e21 22.01%,#f0c72c 97.97%));color:var(--play-button-text-color,rgba(var(--text-color-hex),1))}.Button-module__buttonGold___DAj-d:active,.Button-module__buttonGold__active___vsi7m{background:var(--play-button-bg-pressed,#9a7c04)}.Button-module__buttonDefault___QENXy{background:var(--play-button-bg,linear-gradient(357deg,#10be68 23.9%,#29cf7d 97.97%));color:var(--play-button-text-color,rgba(var(--text-color-hex),1))}.Button-module__buttonDefault___QENXy:active,.Button-module__buttonDefault__active___oS6gd{background:var(--play-button-bg-pressed,#008c47)}.GroupRow-module__base___b241-{display:flex;width:100%}.GroupRow-module__label___Du57P{color:hsla(0,6%,41%,.6);font-size:12px;font-style:Inter;font-weight:700;letter-spacing:.02em;line-height:18px;margin-bottom:6px}.GroupRow-module__group___V7xa6{display:flex;gap:4px;margin-top:8px;width:100%}.GroupRow-module__group___V7xa6 .GroupRow-module__groupItem___yNSX8{border-radius:0;box-sizing:border-box}.GroupRow-module__group___V7xa6 .GroupRow-module__groupItem___yNSX8:last-child{border-bottom-right-radius:10px;border-top-right-radius:10px}.GroupRow-module__group___V7xa6 .GroupRow-module__groupItem___yNSX8:first-child{align-items:center;border-bottom-left-radius:10px;border-top-left-radius:10px;display:flex;gap:8px;justify-content:flex-start;padding-left:12px;width:calc(100% - 98px)}.GroupRow-module__x2___9bLae{align-items:center;background:hsla(0,0%,100%,.15);cursor:pointer;display:block;display:flex;font-family:Inter;font-size:15px;font-style:normal;font-weight:700;height:35px;justify-content:center;width:45px}.GroupRow-module__x2___9bLae.GroupRow-module__last___ArsSn{border-bottom-right-radius:10px;border-top-right-radius:10px}.GroupRow-module__isClassicGame___m9r03 .GroupRow-module__x2___9bLae{background:#361791}.SelectMenu-module__button___N-HeB{align-items:center;display:flex;height:31px;justify-content:space-between;transition:all .7s;width:31px}.SelectMenu-module__menu___c5jvZ{cursor:pointer;width:auto}.SelectMenu-module__menuItems___BX1YQ{background-color:rgba(var(--play-dropdown-bg),1);border-radius:6px;cursor:pointer;overflow-y:auto;padding:4px 0;width:100%;width:110px}.SelectMenu-module__menuItem___eXbi3{align-items:center;background-color:rgba(var(--play-dropdown-bg),1);color:rgba(var(--text-color-hex),1);display:flex;font-size:12px;font-weight:600;gap:6px;padding:2px 12px}.SelectMenu-module__menuItem___eXbi3:hover{background:rgba(var(--bg-color-rgb),.16);color:rgba(var(--text-color-hex),1)}.SelectMenu-module__selected___XyADw{position:relative}.SelectMenu-module__selected___XyADw:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' d='M20.53 6.47a.75.75 0 0 1 0 1.06l-10 10a.75.75 0 0 1-1.06 0l-5-5a.75.75 0 1 1 1.06-1.06L10 15.94l9.47-9.47a.75.75 0 0 1 1.06 0Z' clip-rule='evenodd' fill='%23FFF'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;content:"";height:16px;position:absolute;right:10px;top:50%;transform:translateY(-50%);width:16px}.SelectMenu-module__disabledSVG___OdVFW,.SelectMenu-module__disabled___jiTPl{cursor:not-allowed}.SelectMenu-module__disabled___jiTPl svg{opacity:.1}.ChevronIcon-module__chevron___lif8s{stroke:rgba(var(--text-color-hex),1);height:14px;transform-origin:center;transition:transform .3s ease;width:14px}.ChevronIcon-module__open___niD1n{transform:rotate(-180deg)}.ChevronIcon-module__disable___8n-xg{stroke:rgba(var(--text-color-hex),.1)}.PlayValueInput-module__base___sTNW2{background:hsla(0,0%,100%,.15);border-radius:10px;color:rgba(var(--text-color-hex),1);display:flex;font-family:Inter;font-size:15px;font-style:normal;font-weight:700;height:35px;padding:4px 0;position:relative;width:100%;z-index:1}.PlayValueInput-module__icon___jZj7O{display:block;font-family:Inter;font-size:15px;font-style:normal;font-weight:700;left:11px}.PlayValueInput-module__label___1ZSAV,.PlayValueInput-module__playValueInputWithLabel___S55Cr,.PlayValueInput-module__playValueInput___7pJtn{background:transparent;color:rgba(var(--text-color-hex),1);cursor:pointer;font-family:Inter;font-size:10px;letter-spacing:.6px;padding:0;text-align:left;width:100%}.PlayValueInput-module__inputContainer___RKr1l{cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;width:100%}.PlayValueInput-module__label___1ZSAV{font-size:10px;letter-spacing:.5px;line-height:125%}.PlayValueInput-module__playValueWithLabel___K4-pr{padding-top:15px;user-select:none;z-index:1}.PlayValueInput-module__base___sTNW2.PlayValueInput-module__isClassicGame___lQzVE{background:#361791}.UI-module__base___6q08N{align-items:center;border-radius:15px;display:flex;flex-direction:column;justify-content:center;position:relative}.UI-module__container___S3Gpa{max-width:342px;width:100%}.UI-module__betForm___pu-7D{background-color:rgba(var(--play-panel-bg),var(--play-panel-bg-opacity));border-radius:0;bottom:var(--play-bottom);display:flex;flex-direction:column;height:auto;left:50%;padding:12px 16px;position:absolute;transform:translateX(-50%);width:100%}.UI-module__hideMenu___RCMex{padding-bottom:5px;padding-top:6px}@media (min-width:700px){.UI-module__betForm___pu-7D:not(.UI-module__isClassicGame___C-dT4):not(.UI-module__baseForceLeft___2WEa0){border-radius:15px;max-width:374px;width:100%}}@media (max-width:1073px){.UI-module__betForm___pu-7D.UI-module__isClassicGame___C-dT4{border-radius:0;bottom:var(--play-bottom);height:auto;left:50%;max-width:100%;transform:translateX(-50%);width:100%}.UI-module__containerSpread___Uc7N-{display:block;height:auto}}@media (min-width:1074px){.UI-module__betForm___pu-7D.UI-module__isClassicGame___C-dT4{border-radius:0;bottom:0;height:100dvh;left:0;max-width:374px;transform:none;width:374px}.UI-module__containerSpread___Uc7N-{display:flex;flex-direction:column;height:100%;justify-content:flex-end}.UI-module__containerSpread___Uc7N->.UI-module__controllerWidgets___rFquu{margin-bottom:auto;order:-1}}.UI-module__baseForceLeft___2WEa0{border-radius:0;bottom:0;height:100dvh;left:0;transform:none}.UI-module__betForm___pu-7D.UI-module__baseForceLeft___2WEa0,.UI-module__betForm___pu-7D.UI-module__isClassicGame___C-dT4{--play-panel-bg:34,16,98;--play-dropdown-bg:21,12,71;background:rgba(var(--play-panel-bg),1)}.UI-module__betForm___pu-7D.UI-module__baseForceLeft___2WEa0 .UI-module__auto___SVz6b,.UI-module__betForm___pu-7D.UI-module__isClassicGame___C-dT4 .UI-module__auto___SVz6b{background:#361791}.UI-module__disabled___E2zhE{opacity:.1}.UI-module__auto___SVz6b{align-items:center;background:hsla(0,0%,100%,.15);border-radius:10px;color:rgba(var(--text-color-hex),1);display:flex;font-family:Inter;font-size:15px;font-weight:700;height:35px;justify-content:center;padding:0 12px;position:relative;width:100%}.UI-module__controllerWidgets___rFquu{align-items:center;display:flex;height:38px;justify-content:space-between;margin-top:5px;width:100%}.UI-module__controllerWidgets___rFquu .UI-module__centerWidget___zWhMN,.UI-module__controllerWidgets___rFquu .UI-module__sideWidget___mTaGO{color:#fff;display:flex;font-family:Inter,sans-serif;font-size:10px!important;font-style:normal;font-weight:700;gap:8px;line-height:125%;text-align:center;width:20%}.UI-module__controllerWidgets___rFquu .UI-module__centerWidget___zWhMN{width:60%}.UI-module__controllerWidgets___rFquu .UI-module__left___VsEJc{justify-content:flex-start}.UI-module__controllerWidgets___rFquu .UI-module__center___hZwDn{justify-content:center}.UI-module__controllerWidgets___rFquu .UI-module__right___JJ0-R{justify-content:flex-end}.Input-module__base___IifiA{border:none;color:rgba(var(--text-color-hex),1);outline:none;padding:10px 12px;text-align:right;user-select:none!important;width:100%}.Input-module__disabled___WqyKa{color:rgba(var(--text-color-hex),.1)!important;cursor:pointer;pointer-events:none}.Input-module__disabledClassic___hzsCt{-webkit-text-fill-color:rgba(var(--text-color-hex),1)!important;color:rgba(var(--text-color-hex),1)!important;cursor:pointer;opacity:1!important;pointer-events:none}.PlayValueList-module__base___5duc6{align-items:center;backdrop-filter:blur(10px);background:hsla(0,0%,100%,.15);border-radius:10px;display:flex;flex-shrink:0;height:385px;justify-content:center;margin-bottom:5px;max-width:342px;width:100%}.PlayValueList-module__playValuesWrapper___-zfj2{align-content:flex-start;align-items:flex-start;display:flex;flex-shrink:0;flex-wrap:wrap;gap:7px;height:351px;max-width:326px;transition:all .2s;width:100%}.PlayValueList-module__playValue___TJQhI{align-items:center;backdrop-filter:blur(10px);background:hsla(0,0%,100%,.15);border-radius:50px;color:#fff;cursor:pointer;display:flex;flex-shrink:0;font-family:Inter;font-size:16px;font-style:normal;gap:10px;height:45px;justify-content:center;letter-spacing:.8px;line-height:125%;padding:12px 21px;text-align:center;text-transform:uppercase;width:104px}@media (max-width:375px){.PlayValueList-module__playValuesWrapper___-zfj2{padding-left:7px}.PlayValueList-module__playValue___TJQhI{width:calc(33.33% - 7px)}}.PlayValueList-module__isClassicGame___AjnGE{background:#361791}.PlayValueList-module__isClassicGame___AjnGE .PlayValueList-module__selectedPlayValue___3DhDC{background:#150c47}.PlayValueList-module__selectedPlayValue___3DhDC{background:#07172d;transition:all .2s}.PlayValueList-module__disabledPlayValue___U9Bkj{background:#07172d;opacity:.25;transition:all .2s}.FreeRoundsIntroModal-module__backdrop___qIgNx{align-items:center;background:rgba(12,8,51,.85);display:flex;inset:0;justify-content:center;padding:16px;position:fixed;z-index:1000}.FreeRoundsIntroModal-module__content___A3aRs{align-items:center;display:flex;flex-direction:column;gap:10px;max-width:342px;width:100%}@media (min-width:700px){.FreeRoundsIntroModal-module__content___A3aRs{max-width:374px}}.FreeRoundsIntroModal-module__panel___-zQpe{align-items:center;background-color:rgba(var(--play-panel-bg,var(--bet-panel-bg,1,36,58)),.98);border-radius:15px;color:#fff;display:flex;flex-direction:column;font-family:Inter,sans-serif;gap:12px;padding:20px;text-align:center;width:100%}.FreeRoundsIntroModal-module__title___1csj0{display:flex;flex-direction:column;font-size:18px;font-weight:800;line-height:130%}.FreeRoundsIntroModal-module__titleLine___rKdpd{display:block}.FreeRoundsIntroModal-module__accent___m-2s6{color:#29cf7d}.FreeRoundsIntroModal-module__details___qXMR-{font-size:13px;font-weight:600;line-height:150%;opacity:.9}.FreeRoundsIntroModal-module__actions___toCBq{display:flex;flex-direction:column;gap:8px;margin-top:8px;width:100%}.FreeRoundsIntroModal-module__button___bSTmX{border:none;color:#fff;cursor:pointer;font-family:Inter,sans-serif;font-size:15px;font-weight:700;height:40px;width:100%}.FreeRoundsIntroModal-module__playNow___iVhdt{background:linear-gradient(357deg,#10be68 23.9%,#29cf7d 97.97%);border-radius:10px}.FreeRoundsIntroModal-module__playNow___iVhdt:hover{background:linear-gradient(357deg,#14d176 23.9%,#35dd8a 97.97%)}.FreeRoundsIntroModal-module__playNow___iVhdt:active{background:#0ea65b}.FreeRoundsIntroModal-module__playLater___l9031{background:hsla(0,0%,100%,.15);border-radius:999px}.FreeRoundsIntroModal-module__playLater___l9031:hover{background:hsla(0,0%,100%,.25)}.FreeRoundsIntroModal-module__expiry___n-fve{color:#fff;font-family:Inter,sans-serif;font-size:12px;font-weight:600;opacity:.8}.FreeRoundsFooter-module__footer___Lveik{align-items:center;color:#fff;display:flex;font-family:Inter,sans-serif;font-size:12px;font-weight:700;justify-content:center;line-height:125%;margin-top:7px;width:100%}.FreeRoundsFooter-module__count___hTxq-{color:#29cf7d}*,html{--bet-bottom:0px;--bet-panel-bg:8,30,100;--play-dropdown-bg:16,36,63;--bg-color-rgb:255,255,255;--text-color-hex:255,255,255;cursor:default;font-family:Inter;font-size:15px;font-style:normal;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.FreeRoundsSummaryModal-module__backdrop___tNi3I{align-items:center;background:rgba(12,8,51,.85);display:flex;inset:0;justify-content:center;padding:16px;position:fixed;z-index:1000}.FreeRoundsSummaryModal-module__panel___2MIEp{align-items:center;background-color:rgba(var(--play-panel-bg,var(--bet-panel-bg,1,36,58)),.98);border-radius:15px;color:#fff;display:flex;flex-direction:column;font-family:Inter,sans-serif;gap:12px;max-width:342px;padding:20px;text-align:center;width:100%}@media (min-width:700px){.FreeRoundsSummaryModal-module__panel___2MIEp{max-width:374px}}.FreeRoundsSummaryModal-module__title___lxbPh{font-size:18px;font-weight:800;line-height:130%}.FreeRoundsSummaryModal-module__accent___z9aBF{color:#29cf7d}.FreeRoundsSummaryModal-module__hint___CYWqA{font-size:13px;font-weight:600;opacity:.8}.FreeRoundsSummaryModal-module__closeButton___aRosq{background:hsla(0,0%,100%,.15);border:none;border-radius:999px;color:#fff;cursor:pointer;font-family:Inter,sans-serif;font-size:15px;font-weight:700;height:40px;margin-top:8px;width:100%}.FreeRoundsSummaryModal-module__closeButton___aRosq:hover{background:hsla(0,0%,100%,.25)}
|
|
@@ -34,14 +34,13 @@ export type BonusBuyOptionsProps = {
|
|
|
34
34
|
override_playButtonBackgroundPressed?: string;
|
|
35
35
|
};
|
|
36
36
|
export type FreeRoundsOptionsProps = {
|
|
37
|
-
available: boolean;
|
|
38
37
|
engaged: boolean;
|
|
39
38
|
roundsRemaining: number;
|
|
40
39
|
totalRounds: number;
|
|
41
40
|
stakeCents: number;
|
|
42
41
|
coinType?: number;
|
|
43
42
|
currency?: string;
|
|
44
|
-
|
|
43
|
+
expiresAt?: string | number | Date;
|
|
45
44
|
showIntroModal?: boolean;
|
|
46
45
|
onPlayNow?: () => void;
|
|
47
46
|
onPlayLater?: () => void;
|
package/package.json
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@enigma-lake/dice-play-controller-sdk",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "A React component library for building gameplay interfaces",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"typings": "dist/index.d.ts",
|
|
8
|
-
"type": "module",
|
|
9
|
-
"style": "dist/style.css",
|
|
10
|
-
"publishConfig": {
|
|
11
|
-
"access": "public"
|
|
12
|
-
},
|
|
13
|
-
"scripts": {
|
|
14
|
-
"build": "tsc && rollup -c --bundleConfigAsCjs",
|
|
15
|
-
"start": "webpack serve --mode development --open",
|
|
16
|
-
"eslint": "eslint --cache --fix .",
|
|
17
|
-
"eslint:check": "eslint .",
|
|
18
|
-
"prettier": "prettier --write .",
|
|
19
|
-
"prettier:check": "prettier --check ."
|
|
20
|
-
},
|
|
21
|
-
"keywords": [],
|
|
22
|
-
"author": "",
|
|
23
|
-
"license": "ISC",
|
|
24
|
-
"files": [
|
|
25
|
-
"dist",
|
|
26
|
-
"dist/style.css",
|
|
27
|
-
"dist/index.js",
|
|
28
|
-
"dist/index.d.ts"
|
|
29
|
-
],
|
|
30
|
-
"peerDependencies": {
|
|
31
|
-
"@enigma-lake/zoot-platform-sdk": "^1.1.10",
|
|
32
|
-
"@headlessui/react": "^2.2.0",
|
|
33
|
-
"@types/react": "^19.0.7",
|
|
34
|
-
"@types/react-dom": "^19.0.3",
|
|
35
|
-
"react": "18.2.0",
|
|
36
|
-
"react-dom": "18.2.0",
|
|
37
|
-
"use-debounce": "^10.0.4"
|
|
38
|
-
},
|
|
39
|
-
"resolutions": {
|
|
40
|
-
"react": "18.2.0",
|
|
41
|
-
"react-dom": "18.2.0"
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@babel/core": "^7.26.0",
|
|
45
|
-
"@babel/preset-env": "^7.26.0",
|
|
46
|
-
"@babel/preset-react": "^7.26.3",
|
|
47
|
-
"@rollup/plugin-babel": "^6.0.4",
|
|
48
|
-
"@rollup/plugin-commonjs": "^28.0.2",
|
|
49
|
-
"@rollup/plugin-inject": "^5.0.5",
|
|
50
|
-
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
51
|
-
"@rollup/plugin-typescript": "^12.1.2",
|
|
52
|
-
"@types/node": "^22.10.6",
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "^8.20.0",
|
|
54
|
-
"@typescript-eslint/parser": "^8.20.0",
|
|
55
|
-
"babel-loader": "^9.2.1",
|
|
56
|
-
"classnames": "^2.5.1",
|
|
57
|
-
"css-loader": "^7.1.2",
|
|
58
|
-
"eslint": "^9.18.0",
|
|
59
|
-
"eslint-config-prettier": "^10.0.1",
|
|
60
|
-
"eslint-plugin-import": "^2.31.0",
|
|
61
|
-
"eslint-plugin-prettier": "^5.2.2",
|
|
62
|
-
"eslint-plugin-promise": "^7.2.1",
|
|
63
|
-
"eslint-plugin-react": "^7.37.4",
|
|
64
|
-
"eslint-plugin-react-hooks": "^5.1.0",
|
|
65
|
-
"eslint-plugin-storybook": "^0.11.2",
|
|
66
|
-
"mini-css-extract-plugin": "^2.9.2",
|
|
67
|
-
"prettier": "^3.4.2",
|
|
68
|
-
"react-switch": "^7.1.0",
|
|
69
|
-
"rollup": "^4.30.1",
|
|
70
|
-
"rollup-plugin-delete": "^2.1.0",
|
|
71
|
-
"rollup-plugin-dts": "^6.1.1",
|
|
72
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
73
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
74
|
-
"rollup-plugin-sass": "^1.15.0",
|
|
75
|
-
"sass": "^1.83.4",
|
|
76
|
-
"sass-loader": "^16.0.4",
|
|
77
|
-
"style-loader": "^4.0.0",
|
|
78
|
-
"ts-loader": "^9.5.2",
|
|
79
|
-
"typescript": "^5.7.3",
|
|
80
|
-
"webpack": "^5.97.1",
|
|
81
|
-
"webpack-cli": "^6.0.1",
|
|
82
|
-
"webpack-dev-server": "^5.2.0"
|
|
83
|
-
}
|
|
84
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@enigma-lake/dice-play-controller-sdk",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "A React component library for building gameplay interfaces",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"typings": "dist/index.d.ts",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"style": "dist/style.css",
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsc && rollup -c --bundleConfigAsCjs",
|
|
15
|
+
"start": "webpack serve --mode development --open",
|
|
16
|
+
"eslint": "eslint --cache --fix .",
|
|
17
|
+
"eslint:check": "eslint .",
|
|
18
|
+
"prettier": "prettier --write .",
|
|
19
|
+
"prettier:check": "prettier --check ."
|
|
20
|
+
},
|
|
21
|
+
"keywords": [],
|
|
22
|
+
"author": "",
|
|
23
|
+
"license": "ISC",
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"dist/style.css",
|
|
27
|
+
"dist/index.js",
|
|
28
|
+
"dist/index.d.ts"
|
|
29
|
+
],
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"@enigma-lake/zoot-platform-sdk": "^1.1.10",
|
|
32
|
+
"@headlessui/react": "^2.2.0",
|
|
33
|
+
"@types/react": "^19.0.7",
|
|
34
|
+
"@types/react-dom": "^19.0.3",
|
|
35
|
+
"react": "18.2.0",
|
|
36
|
+
"react-dom": "18.2.0",
|
|
37
|
+
"use-debounce": "^10.0.4"
|
|
38
|
+
},
|
|
39
|
+
"resolutions": {
|
|
40
|
+
"react": "18.2.0",
|
|
41
|
+
"react-dom": "18.2.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@babel/core": "^7.26.0",
|
|
45
|
+
"@babel/preset-env": "^7.26.0",
|
|
46
|
+
"@babel/preset-react": "^7.26.3",
|
|
47
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
48
|
+
"@rollup/plugin-commonjs": "^28.0.2",
|
|
49
|
+
"@rollup/plugin-inject": "^5.0.5",
|
|
50
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
51
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
52
|
+
"@types/node": "^22.10.6",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^8.20.0",
|
|
54
|
+
"@typescript-eslint/parser": "^8.20.0",
|
|
55
|
+
"babel-loader": "^9.2.1",
|
|
56
|
+
"classnames": "^2.5.1",
|
|
57
|
+
"css-loader": "^7.1.2",
|
|
58
|
+
"eslint": "^9.18.0",
|
|
59
|
+
"eslint-config-prettier": "^10.0.1",
|
|
60
|
+
"eslint-plugin-import": "^2.31.0",
|
|
61
|
+
"eslint-plugin-prettier": "^5.2.2",
|
|
62
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
63
|
+
"eslint-plugin-react": "^7.37.4",
|
|
64
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
65
|
+
"eslint-plugin-storybook": "^0.11.2",
|
|
66
|
+
"mini-css-extract-plugin": "^2.9.2",
|
|
67
|
+
"prettier": "^3.4.2",
|
|
68
|
+
"react-switch": "^7.1.0",
|
|
69
|
+
"rollup": "^4.30.1",
|
|
70
|
+
"rollup-plugin-delete": "^2.1.0",
|
|
71
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
72
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
73
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
74
|
+
"rollup-plugin-sass": "^1.15.0",
|
|
75
|
+
"sass": "^1.83.4",
|
|
76
|
+
"sass-loader": "^16.0.4",
|
|
77
|
+
"style-loader": "^4.0.0",
|
|
78
|
+
"ts-loader": "^9.5.2",
|
|
79
|
+
"typescript": "^5.7.3",
|
|
80
|
+
"webpack": "^5.97.1",
|
|
81
|
+
"webpack-cli": "^6.0.1",
|
|
82
|
+
"webpack-dev-server": "^5.2.0"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface FreeRoundsAffordanceProps {
|
|
2
|
-
isAvailable: boolean;
|
|
3
|
-
isEngaged: boolean;
|
|
4
|
-
roundsRemaining: number;
|
|
5
|
-
totalRounds?: number;
|
|
6
|
-
onUseFreeRounds?: () => void;
|
|
7
|
-
}
|
|
8
|
-
declare const FreeRoundsAffordance: ({ isAvailable, isEngaged, roundsRemaining, onUseFreeRounds, }: FreeRoundsAffordanceProps) => import("react").JSX.Element | null;
|
|
9
|
-
export default FreeRoundsAffordance;
|