@alixpartners/ui-components 2.0.0-beta.16 → 2.0.0-beta.18
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/dist/assets/Button.css +1 -1
- package/dist/assets/NavBar.css +1 -1
- package/dist/assets/Tag.css +1 -1
- package/dist/assets/Toast.css +1 -1
- package/dist/components/Button/Button.js +15 -14
- package/dist/components/Dialog/Dialog.d.ts +5 -3
- package/dist/components/Dialog/Dialog.js +49 -43
- package/dist/components/NavBar/NavBar.d.ts +4 -3
- package/dist/components/NavBar/NavBar.js +31 -31
- package/dist/components/SplitButton/SplitButton.js +16 -15
- package/dist/components/Tab/Tab.js +19 -19
- package/dist/components/Tag/Tag.js +8 -8
- package/package.json +1 -1
package/dist/assets/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.Button-module__btn___daEdK{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;border:none;text-align:center;font-family:Roboto,sans-serif;font-style:normal;font-weight:500;line-height:100%;cursor:pointer}.Button-module__btn-icon___G7m4S{display:flex;justify-content:center;align-items:center}.Button-module__btn-icon-sm___w7eg9{width:16px;height:16px;font-size:16px}.Button-module__btn-icon-md___8Ywy2{width:20px;height:20px;font-size:20px}.Button-module__btn-primary___vwY5K{border-radius:2px;color:#fff;background:#498e2b;gap:2px}.Button-module__btn-primary___vwY5K:hover{background:#3f7b25}.Button-module__btn-primary___vwY5K:disabled{background:#8dca7e;cursor:not-allowed}.Button-module__btn-primary___vwY5K.Button-module__btn-default___hpiKG{background:#498e2b}.Button-module__btn-primary___vwY5K.Button-module__btn-default___hpiKG:hover{background:#3f7b25}.Button-module__btn-primary___vwY5K.Button-module__btn-default___hpiKG:disabled{background:#8dca7e}.Button-module__btn-primary___vwY5K.Button-module__btn-danger___jTLwb{background:#cb282e}.Button-module__btn-primary___vwY5K.Button-module__btn-danger___jTLwb:hover{background:#ac272c}.Button-module__btn-primary___vwY5K.Button-module__btn-danger___jTLwb:disabled{background:#f99397}.Button-module__btn-primary___vwY5K.Button-module__btn-cancel___4SwgU{background:#878787}.Button-module__btn-primary___vwY5K.Button-module__btn-cancel___4SwgU:hover{background:#727272}.Button-module__btn-primary___vwY5K.Button-module__btn-cancel___4SwgU:disabled{background:#ccc}.Button-module__btn-primary___vwY5K .Button-module__loading-spinner___T25--{color:#fff}.Button-module__btn-secondary___w3xYM{border-radius:2px;border:1px solid #498e2b;background:#fff;gap:2px;color:#498e2b}.Button-module__btn-secondary___w3xYM:hover{border:1px solid #498e2b;color:#fff;background:#3f7b25}.Button-module__btn-secondary___w3xYM:disabled{border:1px solid #8dca7e;color:#8dca7e;background:#fff;cursor:not-allowed}.Button-module__btn-secondary___w3xYM .Button-module__loading-spinner___T25--{color:#8dca7e}.Button-module__btn-secondary___w3xYM.Button-module__btn-danger___jTLwb{border:1px solid #cb282e;color:#cb282e}.Button-module__btn-secondary___w3xYM.Button-module__btn-danger___jTLwb:hover:not(:disabled){border:1px solid #ac272c;color:#fff;background:#ac272c}.Button-module__btn-secondary___w3xYM.Button-module__btn-danger___jTLwb:disabled{border:1px solid #f99397;color:#f99397}.Button-module__btn-secondary___w3xYM.Button-module__btn-danger___jTLwb .Button-module__loading-spinner___T25--{color:#f99397}.Button-module__btn-secondary___w3xYM.Button-module__btn-cancel___4SwgU{border:1px solid #878787;color:#878787}.Button-module__btn-secondary___w3xYM.Button-module__btn-cancel___4SwgU:hover:not(:disabled){border:1px solid #727272;color:#fff;background:#727272}.Button-module__btn-secondary___w3xYM.Button-module__btn-cancel___4SwgU:disabled{border:1px solid #cccccc;color:#ccc}.Button-module__btn-secondary___w3xYM.Button-module__btn-cancel___4SwgU .Button-module__loading-spinner___T25--{color:#ccc}.Button-module__btn-tertiary___G-7lD{gap:2px;color:#4a4a4a;background:none}.Button-module__btn-tertiary___G-7lD:hover{color:#3f7b25}.Button-module__btn-tertiary___G-7lD:disabled{color:#ccc;cursor:not-allowed}.Button-module__btn-tertiary___G-7lD.Button-module__btn-danger___jTLwb{color:#cb282e}.Button-module__btn-tertiary___G-7lD.Button-module__btn-danger___jTLwb:hover{color:#ac272c}.Button-module__btn-tertiary___G-7lD.Button-module__btn-danger___jTLwb:disabled{color:#f99397}.Button-module__btn-tertiary___G-7lD.Button-module__btn-danger___jTLwb .Button-module__loading-spinner___T25--{color:#f99397}.Button-module__btn-tertiary___G-7lD.Button-module__btn-cancel___4SwgU{color:#878787}.Button-module__btn-tertiary___G-7lD.Button-module__btn-cancel___4SwgU:hover{color:#727272}.Button-module__btn-tertiary___G-7lD.Button-module__btn-cancel___4SwgU:disabled{color:#ccc}.Button-module__btn-tertiary___G-7lD.Button-module__btn-cancel___4SwgU .Button-module__loading-spinner___T25--,.Button-module__btn-tertiary___G-7lD .Button-module__loading-spinner___T25--{color:#ccc}.Button-module__btn-primary___vwY5K.Button-module__btn-disabled___eg1uH{background:#8dca7e;cursor:not-allowed}.Button-module__btn-primary___vwY5K .Button-module__btn-loading___vAg78{animation:Button-module__loading___QfItr 2s linear infinite}.Button-module__btn-secondary___w3xYM.Button-module__btn-disabled___eg1uH{border:1px solid #8dca7e;color:#8dca7e;background:#fff;cursor:not-allowed}.Button-module__btn-secondary___w3xYM .Button-module__btn-loading___vAg78{animation:Button-module__loading___QfItr 2s linear infinite}.Button-module__btn-tertiary___G-7lD.Button-module__btn-disabled___eg1uH{color:#ccc;cursor:not-allowed}.Button-module__btn-tertiary___G-7lD .Button-module__btn-loading___vAg78{animation:Button-module__loading___QfItr 2s linear infinite}@keyframes Button-module__loading___QfItr{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.Button-module__btn-sm___KNlkv{height:24px;padding:0 8px}.Button-module__btn-md___C8vqh{height:32px;padding:0 12px}.Button-module__btn-sm___KNlkv:not(.Button-module__btn-tertiary___G-7lD):not(:has(.Button-module__btn-icon___G7m4S:only-child)){min-width:78px;box-sizing:border-box}.Button-module__btn-md___C8vqh:not(.Button-module__btn-tertiary___G-7lD):not(:has(.Button-module__btn-icon___G7m4S:only-child)){min-width:94px;box-sizing:border-box}.Button-module__btn-sm___KNlkv:has(.Button-module__btn-icon___G7m4S:only-child){padding:0;width:24px}.Button-module__btn-md___C8vqh:has(.Button-module__btn-icon___G7m4S:only-child){padding:0;width:32px}.Button-module__btn-sm___KNlkv:has(.Button-module__btn-icon___G7m4S:not(:only-child)){padding:0 8px 0 4px}.Button-module__btn-sm___KNlkv:has(.Button-module__loading-spinner___T25--){padding:0 8px 0 4px}.Button-module__btn-md___C8vqh:has(.Button-module__btn-icon___G7m4S:not(:only-child)){padding:0 12px 0 8px}.Button-module__btn-md___C8vqh:has(.Button-module__loading-spinner___T25--){padding:0 12px 0 8px}.Button-module__btn-md___C8vqh .Button-module__btn-text___3ccH9{font-size:15px;font-weight:500;line-height:20px}.Button-module__btn-sm___KNlkv .Button-module__btn-text___3ccH9{font-size:13px;font-weight:500;line-height:18px}.Button-module__btn-md___C8vqh.Button-module__btn-tertiary___G-7lD .Button-module__btn-text___3ccH9{font-size:13px}.Button-module__btn-sm___KNlkv.Button-module__btn-tertiary___G-7lD .Button-module__btn-text___3ccH9{font-size:12px}.Button-module__btn-tertiary___G-7lD:has(.Button-module__btn-icon___G7m4S:only-child) .Button-module__btn-icon-sm___w7eg9{width:20px;height:20px;font-size:20px}.Button-module__btn-tertiary___G-7lD:has(.Button-module__btn-icon___G7m4S:only-child) .Button-module__btn-icon-md___8Ywy2{width:24px;height:24px;font-size:24px}
|
|
1
|
+
.Button-module__btn___daEdK{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;border:none;text-align:center;font-family:Roboto,sans-serif;font-style:normal;font-weight:500;line-height:100%;cursor:pointer}.Button-module__btn-icon___G7m4S{display:flex;justify-content:center;align-items:center}.Button-module__btn-icon-sm___w7eg9{width:16px;height:16px;font-size:16px!important}.Button-module__btn-icon-md___8Ywy2{width:20px;height:20px;font-size:20px!important}.Button-module__btn-primary___vwY5K{border-radius:2px;color:#fff;background:#498e2b;gap:2px}.Button-module__btn-primary___vwY5K:hover{background:#3f7b25}.Button-module__btn-primary___vwY5K:disabled{background:#8dca7e;cursor:not-allowed}.Button-module__btn-primary___vwY5K.Button-module__btn-default___hpiKG{background:#498e2b}.Button-module__btn-primary___vwY5K.Button-module__btn-default___hpiKG:hover{background:#3f7b25}.Button-module__btn-primary___vwY5K.Button-module__btn-default___hpiKG:disabled{background:#8dca7e}.Button-module__btn-primary___vwY5K.Button-module__btn-danger___jTLwb{background:#cb282e}.Button-module__btn-primary___vwY5K.Button-module__btn-danger___jTLwb:hover{background:#ac272c}.Button-module__btn-primary___vwY5K.Button-module__btn-danger___jTLwb:disabled{background:#f99397}.Button-module__btn-primary___vwY5K.Button-module__btn-cancel___4SwgU{background:#878787}.Button-module__btn-primary___vwY5K.Button-module__btn-cancel___4SwgU:hover{background:#727272}.Button-module__btn-primary___vwY5K.Button-module__btn-cancel___4SwgU:disabled{background:#ccc}.Button-module__btn-primary___vwY5K .Button-module__loading-spinner___T25--{color:#fff}.Button-module__btn-secondary___w3xYM{border-radius:2px;border:1px solid #498e2b;background:#fff;gap:2px;color:#498e2b}.Button-module__btn-secondary___w3xYM:hover{border:1px solid #498e2b;color:#fff;background:#3f7b25}.Button-module__btn-secondary___w3xYM:disabled{border:1px solid #8dca7e;color:#8dca7e;background:#fff;cursor:not-allowed}.Button-module__btn-secondary___w3xYM .Button-module__loading-spinner___T25--{color:#8dca7e}.Button-module__btn-secondary___w3xYM.Button-module__btn-danger___jTLwb{border:1px solid #cb282e;color:#cb282e}.Button-module__btn-secondary___w3xYM.Button-module__btn-danger___jTLwb:hover:not(:disabled){border:1px solid #ac272c;color:#fff;background:#ac272c}.Button-module__btn-secondary___w3xYM.Button-module__btn-danger___jTLwb:disabled{border:1px solid #f99397;color:#f99397}.Button-module__btn-secondary___w3xYM.Button-module__btn-danger___jTLwb .Button-module__loading-spinner___T25--{color:#f99397}.Button-module__btn-secondary___w3xYM.Button-module__btn-cancel___4SwgU{border:1px solid #878787;color:#878787}.Button-module__btn-secondary___w3xYM.Button-module__btn-cancel___4SwgU:hover:not(:disabled){border:1px solid #727272;color:#fff;background:#727272}.Button-module__btn-secondary___w3xYM.Button-module__btn-cancel___4SwgU:disabled{border:1px solid #cccccc;color:#ccc}.Button-module__btn-secondary___w3xYM.Button-module__btn-cancel___4SwgU .Button-module__loading-spinner___T25--{color:#ccc}.Button-module__btn-tertiary___G-7lD{gap:2px;color:#4a4a4a;background:none}.Button-module__btn-tertiary___G-7lD:hover{color:#3f7b25}.Button-module__btn-tertiary___G-7lD:disabled{color:#ccc;cursor:not-allowed}.Button-module__btn-tertiary___G-7lD.Button-module__btn-danger___jTLwb{color:#cb282e}.Button-module__btn-tertiary___G-7lD.Button-module__btn-danger___jTLwb:hover{color:#ac272c}.Button-module__btn-tertiary___G-7lD.Button-module__btn-danger___jTLwb:disabled{color:#f99397}.Button-module__btn-tertiary___G-7lD.Button-module__btn-danger___jTLwb .Button-module__loading-spinner___T25--{color:#f99397}.Button-module__btn-tertiary___G-7lD.Button-module__btn-cancel___4SwgU{color:#878787}.Button-module__btn-tertiary___G-7lD.Button-module__btn-cancel___4SwgU:hover{color:#727272}.Button-module__btn-tertiary___G-7lD.Button-module__btn-cancel___4SwgU:disabled{color:#ccc}.Button-module__btn-tertiary___G-7lD.Button-module__btn-cancel___4SwgU .Button-module__loading-spinner___T25--,.Button-module__btn-tertiary___G-7lD .Button-module__loading-spinner___T25--{color:#ccc}.Button-module__btn-primary___vwY5K.Button-module__btn-disabled___eg1uH{background:#8dca7e;cursor:not-allowed}.Button-module__btn-primary___vwY5K .Button-module__btn-loading___vAg78{animation:Button-module__loading___QfItr 2s linear infinite}.Button-module__btn-secondary___w3xYM.Button-module__btn-disabled___eg1uH{border:1px solid #8dca7e;color:#8dca7e;background:#fff;cursor:not-allowed}.Button-module__btn-secondary___w3xYM .Button-module__btn-loading___vAg78{animation:Button-module__loading___QfItr 2s linear infinite}.Button-module__btn-tertiary___G-7lD.Button-module__btn-disabled___eg1uH{color:#ccc;cursor:not-allowed}.Button-module__btn-tertiary___G-7lD .Button-module__btn-loading___vAg78{animation:Button-module__loading___QfItr 2s linear infinite}@keyframes Button-module__loading___QfItr{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.Button-module__btn-sm___KNlkv{height:24px;padding:0 8px}.Button-module__btn-md___C8vqh{height:32px;padding:0 12px}.Button-module__btn-sm___KNlkv:not(.Button-module__btn-tertiary___G-7lD):not(:has(.Button-module__btn-icon___G7m4S:only-child)){min-width:78px;box-sizing:border-box}.Button-module__btn-md___C8vqh:not(.Button-module__btn-tertiary___G-7lD):not(:has(.Button-module__btn-icon___G7m4S:only-child)){min-width:94px;box-sizing:border-box}.Button-module__btn-sm___KNlkv:has(.Button-module__btn-icon___G7m4S:only-child){padding:0;width:24px}.Button-module__btn-md___C8vqh:has(.Button-module__btn-icon___G7m4S:only-child){padding:0;width:32px}.Button-module__btn-sm___KNlkv:has(.Button-module__btn-icon___G7m4S:not(:only-child)){padding:0 8px 0 4px}.Button-module__btn-sm___KNlkv:has(.Button-module__loading-spinner___T25--){padding:0 8px 0 4px}.Button-module__btn-md___C8vqh:has(.Button-module__btn-icon___G7m4S:not(:only-child)){padding:0 12px 0 8px}.Button-module__btn-md___C8vqh:has(.Button-module__loading-spinner___T25--){padding:0 12px 0 8px}.Button-module__btn-md___C8vqh .Button-module__btn-text___3ccH9{font-size:15px;font-weight:500;line-height:20px}.Button-module__btn-sm___KNlkv .Button-module__btn-text___3ccH9{font-size:13px;font-weight:500;line-height:18px}.Button-module__btn-md___C8vqh.Button-module__btn-tertiary___G-7lD .Button-module__btn-text___3ccH9{font-size:13px}.Button-module__btn-sm___KNlkv.Button-module__btn-tertiary___G-7lD .Button-module__btn-text___3ccH9{font-size:12px}.Button-module__btn-tertiary___G-7lD:has(.Button-module__btn-icon___G7m4S:only-child) .Button-module__btn-icon-sm___w7eg9{width:20px;height:20px;font-size:20px}.Button-module__btn-tertiary___G-7lD:has(.Button-module__btn-icon___G7m4S:only-child) .Button-module__btn-icon-md___8Ywy2{width:24px;height:24px;font-size:24px}.Button-module__btn-sm___KNlkv.Button-module__btn-tertiary___G-7lD,.Button-module__btn-md___C8vqh.Button-module__btn-tertiary___G-7lD{padding:0}.Button-module__btn-sm___KNlkv.Button-module__btn-tertiary___G-7lD:has(.Button-module__btn-icon___G7m4S:only-child){padding:0}.Button-module__btn-sm___KNlkv.Button-module__btn-tertiary___G-7lD:has(.Button-module__btn-icon___G7m4S:not(:only-child)){padding:0}.Button-module__btn-sm___KNlkv.Button-module__btn-tertiary___G-7lD:has(.Button-module__loading-spinner___T25--){padding:0}.Button-module__btn-md___C8vqh.Button-module__btn-tertiary___G-7lD:has(.Button-module__btn-icon___G7m4S:only-child){padding:0}.Button-module__btn-md___C8vqh.Button-module__btn-tertiary___G-7lD:has(.Button-module__btn-icon___G7m4S:not(:only-child)){padding:0}.Button-module__btn-md___C8vqh.Button-module__btn-tertiary___G-7lD:has(.Button-module__loading-spinner___T25--){padding:0}
|
package/dist/assets/NavBar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.NavBar-module__navbar-wrapper___e-f8y{background-color:#333;width:100%;height:48px;padding:0 20px;box-sizing:border-box}.NavBar-module__navbar-container___KnbUz{display:flex;align-items:center;justify-content:space-between;margin-left:auto;margin-right:auto}.NavBar-module__navbar-logo-container___VXWAo{display:flex;align-items:center;gap:12px}.NavBar-module__navbar-logo-link___r8CV2{display:flex;align-items:center}.NavBar-module__navbar-project-name-separator___SmBBN{width:2px;min-height:24px;align-self:stretch;background-color:#5cb335}.NavBar-module__navbar-project-name___zQY4u{font-size:18px;font-weight:500;letter-spacing:1px;color:#fff}.NavBar-module__navbar-menu___QDrB4{display:flex;align-items:center;gap:20px}.NavBar-module__navbar-menu-list___xZE02{display:flex;align-items:center;gap:20px;padding:0;margin:0}.NavBar-module__navbar-menu-list___xZE02 button{all:unset}.NavBar-module__navbar-menu-list___xZE02 .NavBar-module__navbar-menu-list-item___Y87cK{cursor:pointer;text-decoration:none;color:#fff;line-height:1}.NavBar-module__navbar-menu-list___xZE02 .NavBar-module__navbar-menu-list-item___Y87cK .NavBar-module__navbar-menu-list-item-trigger-container___OsXar,.NavBar-module__navbar-menu-list___xZE02 .NavBar-module__navbar-menu-list-item___Y87cK .NavBar-module__navbar-menu-list-item-action___MPFZz{display:flex;align-items:center;gap:4px;box-sizing:border-box;padding-top:16px;padding-bottom:16px;font-size:15px;font-weight:500}.NavBar-module__navbar-menu-list___xZE02 .NavBar-module__navbar-menu-list-item___Y87cK:hover .NavBar-module__navbar-menu-list-item-trigger-container___OsXar,.NavBar-module__navbar-menu-list___xZE02 .NavBar-module__navbar-menu-list-item___Y87cK:hover .NavBar-module__navbar-menu-list-item-action___MPFZz{box-shadow:inset 0 -3px #878787}.NavBar-module__navbar-menu-list___xZE02 .NavBar-module__navbar-menu-list-item___Y87cK .NavBar-module__navbar-menu-list-item-action-active___J7eRN{box-shadow:inset 0 -3px #5cb335}.NavBar-module__navbar-menu-list___xZE02 .NavBar-module__navbar-menu-list-item___Y87cK[data-state=open] .NavBar-module__navbar-menu-list-item-arrow___QoJsh{transform:rotate(180deg)}.NavBar-module__navbar-menu-list___xZE02 .NavBar-module__navbar-menu-list-item___Y87cK a{text-decoration:none;color:#fff}.NavBar-module__navbar-menu-list-item-arrow___QoJsh{color:#fff;font-size:16px;width:16px;height:16px;transition:transform .2s ease}.NavBar-module__navbar-menu-list-item-submenu___goVcf{margin-top:10px;background-color:#fff;border:1px solid #e0e0e0;border-radius:4px;z-index:1000;max-height:300px;overflow:hidden;display:flex;flex-direction:column;width:fit-content;box-sizing:border-box;box-shadow:0 0 4px #00000029;padding:4px 0}.NavBar-module__navbar-menu-list-item-submenu-item___sH6du{width:100%;padding:8px 12px;border:none;background:none;cursor:pointer;display:flex;align-items:center;transition:background-color .2s ease;text-align:left;font-size:14px;color:#333;min-height:32px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:4px}.NavBar-module__navbar-menu-list-item-submenu-item___sH6du:hover{background-color:#dff0db}.NavBar-module__navbar-menu-list-item-submenu-item___sH6du:focus{outline:none}.NavBar-module__navbar-menu-list-item-submenu-item___sH6du a{text-decoration:none;color:inherit;width:100%}.NavBar-module__navbar-menu-additional-separator___F7jfY{width:2px;height:26px;align-self:center;background-color:#5cb335;margin-left:12px;margin-right:12px}.NavBar-module__navbar-menu-additional___B8kH-{display:flex;align-items:center;gap:24px}.NavBar-module__navbar-menu-additional-trigger___IpMHL{all:unset;cursor:pointer;padding:8px;height:47px;box-sizing:border-box;transition:background-color .2s ease}.NavBar-module__navbar-menu-additional-trigger___IpMHL:hover{box-shadow:inset 0 -3px #878787}.NavBar-module__navbar-menu-additional-icon___jhULk{color:#fff;font-size:24px!important;width:24px;height:24px}.NavBar-module__navbar-menu-additional-user-profile___ujsEv{color:#fff;font-size:14px;width:28px;height:28px;border-radius:50%;background-color:#5cb335;display:flex;align-items:center;justify-content:center}.NavBar-module__navbar-notification-container___K2YeD{position:relative;display:inline-block}.NavBar-module__navbar-notification-badge___vp5bK{position:absolute;top:-6px;right:-6px;background-color:#5cb335;color:#fff;border-radius:50%;width:18px;height:18px;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:600;line-height:1;padding:0 4px;box-sizing:border-box;border:2px solid #333333}
|
|
1
|
+
.NavBar-module__navbar-wrapper___e-f8y{background-color:#333;width:100%;height:48px;padding:0 20px;box-sizing:border-box}.NavBar-module__navbar-container___KnbUz{display:flex;align-items:center;justify-content:space-between;margin-left:auto;margin-right:auto}.NavBar-module__navbar-logo-container___VXWAo{display:flex;align-items:center;gap:12px}.NavBar-module__navbar-logo-link___r8CV2{display:flex;align-items:center;cursor:pointer}.NavBar-module__navbar-project-name-separator___SmBBN{width:2px;min-height:24px;align-self:stretch;background-color:#5cb335}.NavBar-module__navbar-project-name___zQY4u{font-size:18px;font-weight:500;letter-spacing:1px;color:#fff}.NavBar-module__navbar-menu___QDrB4{display:flex;align-items:center;gap:20px}.NavBar-module__navbar-menu-list___xZE02{display:flex;align-items:center;gap:20px;padding:0;margin:0}.NavBar-module__navbar-menu-list___xZE02 button{all:unset}.NavBar-module__navbar-menu-list___xZE02 .NavBar-module__navbar-menu-list-item___Y87cK{cursor:pointer;text-decoration:none;color:#fff;line-height:1}.NavBar-module__navbar-menu-list___xZE02 .NavBar-module__navbar-menu-list-item___Y87cK .NavBar-module__navbar-menu-list-item-trigger-container___OsXar,.NavBar-module__navbar-menu-list___xZE02 .NavBar-module__navbar-menu-list-item___Y87cK .NavBar-module__navbar-menu-list-item-action___MPFZz{display:flex;align-items:center;gap:4px;box-sizing:border-box;padding-top:16px;padding-bottom:16px;font-size:15px;font-weight:500}.NavBar-module__navbar-menu-list___xZE02 .NavBar-module__navbar-menu-list-item___Y87cK:hover .NavBar-module__navbar-menu-list-item-trigger-container___OsXar,.NavBar-module__navbar-menu-list___xZE02 .NavBar-module__navbar-menu-list-item___Y87cK:hover .NavBar-module__navbar-menu-list-item-action___MPFZz{box-shadow:inset 0 -3px #878787}.NavBar-module__navbar-menu-list___xZE02 .NavBar-module__navbar-menu-list-item___Y87cK .NavBar-module__navbar-menu-list-item-action-active___J7eRN{box-shadow:inset 0 -3px #5cb335}.NavBar-module__navbar-menu-list___xZE02 .NavBar-module__navbar-menu-list-item___Y87cK[data-state=open] .NavBar-module__navbar-menu-list-item-arrow___QoJsh{transform:rotate(180deg)}.NavBar-module__navbar-menu-list___xZE02 .NavBar-module__navbar-menu-list-item___Y87cK a{text-decoration:none;color:#fff}.NavBar-module__navbar-menu-list-item-arrow___QoJsh{color:#fff;font-size:16px;width:16px;height:16px;transition:transform .2s ease}.NavBar-module__navbar-menu-list-item-submenu___goVcf{margin-top:10px;background-color:#fff;border:1px solid #e0e0e0;border-radius:4px;z-index:1000;max-height:300px;overflow:hidden;display:flex;flex-direction:column;width:fit-content;box-sizing:border-box;box-shadow:0 0 4px #00000029;padding:4px 0}.NavBar-module__navbar-menu-list-item-submenu-item___sH6du{width:100%;padding:8px 12px;border:none;background:none;cursor:pointer;display:flex;align-items:center;transition:background-color .2s ease;text-align:left;font-size:14px;color:#333;min-height:32px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:4px}.NavBar-module__navbar-menu-list-item-submenu-item___sH6du:hover{background-color:#dff0db}.NavBar-module__navbar-menu-list-item-submenu-item___sH6du:focus{outline:none}.NavBar-module__navbar-menu-list-item-submenu-item___sH6du a{text-decoration:none;color:inherit;width:100%}.NavBar-module__navbar-menu-additional-separator___F7jfY{width:2px;height:26px;align-self:center;background-color:#5cb335;margin-left:12px;margin-right:12px}.NavBar-module__navbar-menu-additional___B8kH-{display:flex;align-items:center;gap:24px}.NavBar-module__navbar-menu-additional-trigger___IpMHL{all:unset;cursor:pointer;padding:8px;height:47px;box-sizing:border-box;transition:background-color .2s ease}.NavBar-module__navbar-menu-additional-trigger___IpMHL:hover{box-shadow:inset 0 -3px #878787}.NavBar-module__navbar-menu-additional-icon___jhULk{color:#fff;font-size:24px!important;width:24px;height:24px}.NavBar-module__navbar-menu-additional-user-profile___ujsEv{color:#fff;font-size:14px;width:28px;height:28px;border-radius:50%;background-color:#5cb335;display:flex;align-items:center;justify-content:center}.NavBar-module__navbar-notification-container___K2YeD{position:relative;display:inline-block}.NavBar-module__navbar-notification-badge___vp5bK{position:absolute;top:-6px;right:-6px;background-color:#5cb335;color:#fff;border-radius:50%;width:18px;height:18px;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:600;line-height:1;padding:0 4px;box-sizing:border-box;border:2px solid #333333}
|
package/dist/assets/Tag.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.Tag-module__tag___0Cfjz{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:fit-content}.Tag-module__tag-md___JwMcM{gap:4px;height:24px;padding:9px;border-radius:240px}.Tag-module__tag-md___JwMcM .Tag-module__label___aGRya{font-size:13px}.Tag-module__tag-sm___XzenL{gap:2px;height:20px;padding:9px;border-radius:240px}.Tag-module__tag-sm___XzenL .Tag-module__label___aGRya{font-size:12px}.Tag-module__tag___0Cfjz:has(i) i{font-size:12px}.Tag-module__tag___0Cfjz:has(.Tag-module__icon-container-left___8uIQ9){padding-left:5px;padding-right:9px}.Tag-module__tag___0Cfjz:has(.Tag-module__icon-container-right___QsLQ5){padding-left:9px;padding-right:5px}.Tag-module__tag-border___HNVCz{border-style:solid;border-width:1px}.Tag-module__tag-borderless___fva4F{border-style:none}.Tag-module__tag-success___77hcn{border-color:#a5d192;background-color:#dff0db;color:#3f7b25}.Tag-module__tag-success___77hcn.Tag-module__tag-solid___B6-dI{background-color:#3f7b25}.Tag-module__tag-success___77hcn.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya,.Tag-module__tag-success___77hcn.Tag-module__tag-solid___B6-dI i{color:#fff}.Tag-module__tag-warning___0QvsH{border-color:#f9d250;background-color:#fec;color:#b86a0f}.Tag-module__tag-warning___0QvsH.Tag-module__tag-solid___B6-dI{background-color:#ce7309}.Tag-module__tag-warning___0QvsH.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya,.Tag-module__tag-warning___0QvsH.Tag-module__tag-solid___B6-dI i{color:#fff}.Tag-module__tag-error___MziYU{border-color:#f1b5b7;background-color:#ffebed;color:#bf494e}.Tag-module__tag-error___MziYU.Tag-module__tag-solid___B6-dI{background-color:#cb282e}.Tag-module__tag-error___MziYU.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya,.Tag-module__tag-error___MziYU.Tag-module__tag-solid___B6-dI i{color:#fff}.Tag-module__tag-gray___o2tVE{border-color:#ccc;background-color:#f1f1f1;color:#4a4a4a}.Tag-module__tag-gray___o2tVE i{color:#727272}.Tag-module__tag-gray___o2tVE.Tag-module__tag-solid___B6-dI{background-color:#878787}.Tag-module__tag-gray___o2tVE.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya{color:#fff}.Tag-module__tag-gray___o2tVE.Tag-module__tag-solid___B6-dI i{color:#f1f1f1}.Tag-module__tag-white___gaibD{border-color:#ccc;background-color:#fff;color:#4a4a4a}.Tag-module__tag-white___gaibD.Tag-module__tag-solid___B6-dI{background-color:#f1f1f1}.Tag-module__tag-white___gaibD.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya{color:#4a4a4a}.Tag-module__tag-white___gaibD.Tag-module__tag-solid___B6-dI i{color:#878787}.Tag-module__tag-red___z6Mt0{border-color:#f1b5b7;background-color:#ffebed;color:#bf494e}.Tag-module__tag-red___z6Mt0 i{color:#727272}.Tag-module__tag-red___z6Mt0.Tag-module__tag-solid___B6-dI{background-color:#cb282e}.Tag-module__tag-red___z6Mt0.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya{color:#fff}.Tag-module__tag-red___z6Mt0.Tag-module__tag-solid___B6-dI i{color:#f1f1f1}.Tag-module__tag-orange___ugnvJ{border-color:#f9d250;background-color:#fec;color:#b86a0f}.Tag-module__tag-orange___ugnvJ i{color:#727272}.Tag-module__tag-orange___ugnvJ.Tag-module__tag-solid___B6-dI{background-color:#ce7309}.Tag-module__tag-orange___ugnvJ.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya{color:#fff}.Tag-module__tag-orange___ugnvJ.Tag-module__tag-solid___B6-dI i{color:#f1f1f1}.Tag-module__tag-green___sVT5C{border-color:#a5d192;background-color:#dff0db;color:#3f7b25}.Tag-module__tag-green___sVT5C i{color:#727272}.Tag-module__tag-green___sVT5C.Tag-module__tag-solid___B6-dI{background-color:#3f7b25}.Tag-module__tag-green___sVT5C.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya{color:#fff}.Tag-module__tag-green___sVT5C.Tag-module__tag-solid___B6-dI i{color:#f1f1f1}.Tag-module__tag-purple___cxVjH{border-color:#d3adf7;background-color:#f5ecfd;color:#812fc1}.Tag-module__tag-purple___cxVjH i{color:#727272}.Tag-module__tag-purple___cxVjH.Tag-module__tag-solid___B6-dI{background-color:#812fc1}.Tag-module__tag-purple___cxVjH.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya{color:#fff}.Tag-module__tag-purple___cxVjH.Tag-module__tag-solid___B6-dI i{color:#f1f1f1}.Tag-module__tag-turquoise___srWRm{border-color:#87e8de;background-color:#d3f8f2;color:#006176}.Tag-module__tag-turquoise___srWRm i{color:#727272}.Tag-module__tag-turquoise___srWRm.Tag-module__tag-solid___B6-dI{background-color:#01a69e}.Tag-module__tag-turquoise___srWRm.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya{color:#fff}.Tag-module__tag-turquoise___srWRm.Tag-module__tag-solid___B6-dI i{color:#f1f1f1}.Tag-module__tag-blue___6hIJc{border-color:#9bb5fd;background-color:#e0eaff;color:#024870}.Tag-module__tag-blue___6hIJc i{color:#727272}.Tag-module__tag-blue___6hIJc.Tag-module__tag-solid___B6-dI{background-color:#0369a3}.Tag-module__tag-blue___6hIJc.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya{color:#fff}.Tag-module__tag-blue___6hIJc.Tag-module__tag-solid___B6-dI i{color:#f1f1f1}.Tag-module__icon-container-left___8uIQ9,.Tag-module__icon-container-right___QsLQ5{display:flex;align-items:center;justify-content:center}
|
|
1
|
+
.Tag-module__tag___0Cfjz{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:fit-content;max-width:100%}.Tag-module__tag-md___JwMcM{gap:4px;height:24px;padding:9px;border-radius:240px}.Tag-module__tag-md___JwMcM .Tag-module__label___aGRya{font-size:13px}.Tag-module__tag-sm___XzenL{gap:2px;height:20px;padding:9px;border-radius:240px}.Tag-module__tag-sm___XzenL .Tag-module__label___aGRya{font-size:12px}.Tag-module__tag___0Cfjz:has(i) i{font-size:12px}.Tag-module__tag___0Cfjz:has(.Tag-module__icon-container-left___8uIQ9){padding-left:5px;padding-right:9px}.Tag-module__tag___0Cfjz:has(.Tag-module__icon-container-right___QsLQ5){padding-left:9px;padding-right:5px}.Tag-module__tag-border___HNVCz{border-style:solid;border-width:1px}.Tag-module__tag-borderless___fva4F{border-style:none}.Tag-module__tag-success___77hcn{border-color:#a5d192;background-color:#dff0db;color:#3f7b25}.Tag-module__tag-success___77hcn.Tag-module__tag-solid___B6-dI{background-color:#3f7b25}.Tag-module__tag-success___77hcn.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya,.Tag-module__tag-success___77hcn.Tag-module__tag-solid___B6-dI i{color:#fff}.Tag-module__tag-warning___0QvsH{border-color:#f9d250;background-color:#fec;color:#b86a0f}.Tag-module__tag-warning___0QvsH.Tag-module__tag-solid___B6-dI{background-color:#ce7309}.Tag-module__tag-warning___0QvsH.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya,.Tag-module__tag-warning___0QvsH.Tag-module__tag-solid___B6-dI i{color:#fff}.Tag-module__tag-error___MziYU{border-color:#f1b5b7;background-color:#ffebed;color:#bf494e}.Tag-module__tag-error___MziYU.Tag-module__tag-solid___B6-dI{background-color:#cb282e}.Tag-module__tag-error___MziYU.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya,.Tag-module__tag-error___MziYU.Tag-module__tag-solid___B6-dI i{color:#fff}.Tag-module__tag-gray___o2tVE{border-color:#ccc;background-color:#f1f1f1;color:#4a4a4a}.Tag-module__tag-gray___o2tVE i{color:#727272}.Tag-module__tag-gray___o2tVE.Tag-module__tag-solid___B6-dI{background-color:#878787}.Tag-module__tag-gray___o2tVE.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya{color:#fff}.Tag-module__tag-gray___o2tVE.Tag-module__tag-solid___B6-dI i{color:#f1f1f1}.Tag-module__tag-white___gaibD{border-color:#ccc;background-color:#fff;color:#4a4a4a}.Tag-module__tag-white___gaibD.Tag-module__tag-solid___B6-dI{background-color:#f1f1f1}.Tag-module__tag-white___gaibD.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya{color:#4a4a4a}.Tag-module__tag-white___gaibD.Tag-module__tag-solid___B6-dI i{color:#878787}.Tag-module__tag-red___z6Mt0{border-color:#f1b5b7;background-color:#ffebed;color:#bf494e}.Tag-module__tag-red___z6Mt0 i{color:#727272}.Tag-module__tag-red___z6Mt0.Tag-module__tag-solid___B6-dI{background-color:#cb282e}.Tag-module__tag-red___z6Mt0.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya{color:#fff}.Tag-module__tag-red___z6Mt0.Tag-module__tag-solid___B6-dI i{color:#f1f1f1}.Tag-module__tag-orange___ugnvJ{border-color:#f9d250;background-color:#fec;color:#b86a0f}.Tag-module__tag-orange___ugnvJ i{color:#727272}.Tag-module__tag-orange___ugnvJ.Tag-module__tag-solid___B6-dI{background-color:#ce7309}.Tag-module__tag-orange___ugnvJ.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya{color:#fff}.Tag-module__tag-orange___ugnvJ.Tag-module__tag-solid___B6-dI i{color:#f1f1f1}.Tag-module__tag-green___sVT5C{border-color:#a5d192;background-color:#dff0db;color:#3f7b25}.Tag-module__tag-green___sVT5C i{color:#727272}.Tag-module__tag-green___sVT5C.Tag-module__tag-solid___B6-dI{background-color:#3f7b25}.Tag-module__tag-green___sVT5C.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya{color:#fff}.Tag-module__tag-green___sVT5C.Tag-module__tag-solid___B6-dI i{color:#f1f1f1}.Tag-module__tag-purple___cxVjH{border-color:#d3adf7;background-color:#f5ecfd;color:#812fc1}.Tag-module__tag-purple___cxVjH i{color:#727272}.Tag-module__tag-purple___cxVjH.Tag-module__tag-solid___B6-dI{background-color:#812fc1}.Tag-module__tag-purple___cxVjH.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya{color:#fff}.Tag-module__tag-purple___cxVjH.Tag-module__tag-solid___B6-dI i{color:#f1f1f1}.Tag-module__tag-turquoise___srWRm{border-color:#87e8de;background-color:#d3f8f2;color:#006176}.Tag-module__tag-turquoise___srWRm i{color:#727272}.Tag-module__tag-turquoise___srWRm.Tag-module__tag-solid___B6-dI{background-color:#01a69e}.Tag-module__tag-turquoise___srWRm.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya{color:#fff}.Tag-module__tag-turquoise___srWRm.Tag-module__tag-solid___B6-dI i{color:#f1f1f1}.Tag-module__tag-blue___6hIJc{border-color:#9bb5fd;background-color:#e0eaff;color:#024870}.Tag-module__tag-blue___6hIJc i{color:#727272}.Tag-module__tag-blue___6hIJc.Tag-module__tag-solid___B6-dI{background-color:#0369a3}.Tag-module__tag-blue___6hIJc.Tag-module__tag-solid___B6-dI .Tag-module__label___aGRya{color:#fff}.Tag-module__tag-blue___6hIJc.Tag-module__tag-solid___B6-dI i{color:#f1f1f1}.Tag-module__icon-container-left___8uIQ9,.Tag-module__icon-container-right___QsLQ5{display:flex;align-items:center;justify-content:center;flex-shrink:0}.Tag-module__label___aGRya{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
|
package/dist/assets/Toast.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.Toast-module__toast___ngbBR{display:flex;align-items:center;gap:8px;height:44px;background-color:#fff;padding:0 20px;border-radius:240px;position:relative;transition:transform .6s cubic-bezier(.25,.8,.25,1),opacity .3s ease}.Toast-module__slide-from-left___ElPnx.Toast-module__animating___JX8yh{transform:translate(-100%);opacity:0}.Toast-module__slide-from-right___lvqQq.Toast-module__animating___JX8yh{transform:translate(100%);opacity:0}.Toast-module__slide-from-top___2QKJ7.Toast-module__animating___JX8yh{transform:translateY(-100%);opacity:0}.Toast-module__slide-from-bottom___0PzuV.Toast-module__animating___JX8yh{transform:translateY(100%);opacity:0}.Toast-module__fade-in___4rJCE.Toast-module__animating___JX8yh{opacity:0}.Toast-module__toast-success___D6okd{border:solid 2px #498e2b}.Toast-module__toast-success___D6okd .Toast-module__toast-icon___RNPXp{color:#498e2b;width:24px;height:24px;font-size:24px}.Toast-module__toast-success___D6okd .Toast-module__toast-label___8fb-l{color:#498e2b;font-weight:500;font-size:15px}.Toast-module__toast-warning___vPjpC{border:solid 2px #ce7309}.Toast-module__toast-warning___vPjpC .Toast-module__toast-icon___RNPXp{color:#ce7309;width:24px;height:24px;font-size:24px}.Toast-module__toast-warning___vPjpC .Toast-module__toast-label___8fb-l{color:#ce7309;font-weight:500;font-size:15px}.Toast-module__toast-error___TPnnP{border:solid 2px #cb282e}.Toast-module__toast-error___TPnnP .Toast-module__toast-icon___RNPXp{color:#cb282e;width:24px;height:24px;font-size:24px}.Toast-module__toast-error___TPnnP .Toast-module__toast-label___8fb-l{color:#cb282e;font-weight:500;font-size:15px}
|
|
1
|
+
.Toast-module__toast___ngbBR{display:flex;align-items:center;gap:8px;height:44px;background-color:#fff;padding:0 20px;border-radius:240px;position:relative;transition:transform .6s cubic-bezier(.25,.8,.25,1),opacity .3s ease}.Toast-module__slide-from-left___ElPnx.Toast-module__animating___JX8yh{transform:translate(-100%);opacity:0}.Toast-module__slide-from-right___lvqQq.Toast-module__animating___JX8yh{transform:translate(100%);opacity:0}.Toast-module__slide-from-top___2QKJ7.Toast-module__animating___JX8yh{transform:translateY(-100%);opacity:0}.Toast-module__slide-from-bottom___0PzuV.Toast-module__animating___JX8yh{transform:translateY(100%);opacity:0}.Toast-module__fade-in___4rJCE.Toast-module__animating___JX8yh{opacity:0}.Toast-module__toast-success___D6okd{border:solid 2px #498e2b}.Toast-module__toast-success___D6okd .Toast-module__toast-icon___RNPXp{color:#498e2b;width:24px;height:24px;font-size:24px}.Toast-module__toast-success___D6okd .Toast-module__toast-label___8fb-l{color:#498e2b;font-weight:500;font-size:15px}.Toast-module__toast-warning___vPjpC{border:solid 2px #ce7309}.Toast-module__toast-warning___vPjpC .Toast-module__toast-icon___RNPXp{color:#ce7309;width:24px;height:24px;font-size:24px}.Toast-module__toast-warning___vPjpC .Toast-module__toast-label___8fb-l{color:#ce7309;font-weight:500;font-size:15px}.Toast-module__toast-error___TPnnP{border:solid 2px #cb282e}.Toast-module__toast-error___TPnnP .Toast-module__toast-icon___RNPXp{color:#cb282e;width:24px;height:24px;font-size:24px}.Toast-module__toast-error___TPnnP .Toast-module__toast-label___8fb-l{color:#cb282e;font-weight:500;font-size:15px}.Toast-module__toast-icon___RNPXp{line-height:1}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs as y, jsx as b } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
2
|
+
import { c as a } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import f from "../Spinner/Spinner.js";
|
|
4
|
+
import g from "../Icon/Icon.js";
|
|
5
|
+
import '../../assets/Button.css';const w = "Button-module__btn___daEdK", x = "Button-module__loading___QfItr", t = {
|
|
6
|
+
btn: w,
|
|
6
7
|
"btn-icon": "Button-module__btn-icon___G7m4S",
|
|
7
8
|
"btn-icon-sm": "Button-module__btn-icon-sm___w7eg9",
|
|
8
9
|
"btn-icon-md": "Button-module__btn-icon-md___8Ywy2",
|
|
@@ -15,12 +16,12 @@ import '../../assets/Button.css';const f = "Button-module__btn___daEdK", w = "Bu
|
|
|
15
16
|
"btn-tertiary": "Button-module__btn-tertiary___G-7lD",
|
|
16
17
|
"btn-disabled": "Button-module__btn-disabled___eg1uH",
|
|
17
18
|
"btn-loading": "Button-module__btn-loading___vAg78",
|
|
18
|
-
loading:
|
|
19
|
+
loading: x,
|
|
19
20
|
"btn-sm": "Button-module__btn-sm___KNlkv",
|
|
20
21
|
"btn-md": "Button-module__btn-md___C8vqh",
|
|
21
22
|
"btn-text": "Button-module__btn-text___3ccH9"
|
|
22
23
|
};
|
|
23
|
-
function
|
|
24
|
+
function h({
|
|
24
25
|
type: c,
|
|
25
26
|
variant: i,
|
|
26
27
|
size: o,
|
|
@@ -28,20 +29,20 @@ function D({
|
|
|
28
29
|
disabled: u = !1,
|
|
29
30
|
loading: e = !1,
|
|
30
31
|
children: d,
|
|
31
|
-
className:
|
|
32
|
-
iconClassName:
|
|
32
|
+
className: r,
|
|
33
|
+
iconClassName: s,
|
|
33
34
|
..._
|
|
34
35
|
}) {
|
|
35
36
|
const B = (n) => {
|
|
36
|
-
var
|
|
37
|
-
(n.key === "Enter" || n.key === " ") && (n.preventDefault(), n.currentTarget.click()), (
|
|
37
|
+
var m;
|
|
38
|
+
(n.key === "Enter" || n.key === " ") && (n.preventDefault(), n.currentTarget.click()), (m = _.onKeyDown) == null || m.call(_, n);
|
|
38
39
|
};
|
|
39
|
-
return /* @__PURE__ */ y("button", { type: "button", className:
|
|
40
|
-
!!l && !e && /* @__PURE__ */ b(
|
|
41
|
-
e && /* @__PURE__ */ b(
|
|
40
|
+
return /* @__PURE__ */ y("button", { type: "button", className: a(t.btn, t[`btn-${c}`], t[`btn-${i}`], t[`btn-${o}`], u && t["btn-disabled"], r), disabled: u || e, onKeyDown: B, ..._, children: [
|
|
41
|
+
!!l && !e && /* @__PURE__ */ b(g, { icon: l, className: a(t["btn-icon"], t[`btn-icon-${o}`], s) }),
|
|
42
|
+
e && /* @__PURE__ */ b(f, { size: o, color: "white", className: t["loading-spinner"] }),
|
|
42
43
|
d && /* @__PURE__ */ b("span", { className: t["btn-text"], children: d })
|
|
43
44
|
] });
|
|
44
45
|
}
|
|
45
46
|
export {
|
|
46
|
-
|
|
47
|
+
h as default
|
|
47
48
|
};
|
|
@@ -5,7 +5,8 @@ import { ApIcon } from '../../assets/ap-icons-types';
|
|
|
5
5
|
* Provides a native HTML dialog element with backdrop support, confirmation/cancellation actions, and accessibility features.
|
|
6
6
|
*
|
|
7
7
|
* @param {object} props - Dialog component props
|
|
8
|
-
* @param {React.ReactNode} props.children - The trigger element that opens the dialog when clicked
|
|
8
|
+
* @param {React.ReactNode} [props.children] - The trigger element that opens the dialog when clicked (optional when using isOpen prop)
|
|
9
|
+
* @param {boolean} [props.isOpen] - Controls whether the dialog is displayed. When provided, the dialog becomes controlled and children trigger is optional
|
|
9
10
|
* @param {() => void} [props.onClose] - Callback fired when the dialog is closed (shows close button when provided)
|
|
10
11
|
* @param {string} props.title - The title text displayed at the top of the dialog
|
|
11
12
|
* @param {string} props.description - The description text displayed below the title
|
|
@@ -18,7 +19,8 @@ import { ApIcon } from '../../assets/ap-icons-types';
|
|
|
18
19
|
*/
|
|
19
20
|
type DialogProps = {
|
|
20
21
|
className?: string;
|
|
21
|
-
children
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
isOpen?: boolean;
|
|
22
24
|
onClose?: () => void;
|
|
23
25
|
title: string;
|
|
24
26
|
description: React.ReactNode;
|
|
@@ -36,5 +38,5 @@ type DialogProps = {
|
|
|
36
38
|
onConfirm?: () => void;
|
|
37
39
|
onCancel?: () => void;
|
|
38
40
|
} & DataAttributes;
|
|
39
|
-
export default function Dialog({ children, onClose, title, description, illustrationSrc, confirmButtonText, cancelButtonText, confirmButtonType, cancelButtonType, confirmButtonVariant, cancelButtonVariant, confirmButtonSize, cancelButtonSize, confirmButtonIcon, cancelButtonIcon, onConfirm, onCancel, className, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export default function Dialog({ children, isOpen, onClose, title, description, illustrationSrc, confirmButtonText, cancelButtonText, confirmButtonType, cancelButtonType, confirmButtonVariant, cancelButtonVariant, confirmButtonSize, cancelButtonSize, confirmButtonIcon, cancelButtonIcon, onConfirm, onCancel, className, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
40
42
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import
|
|
4
|
-
import '../../assets/Dialog.css';const
|
|
5
|
-
dialog:
|
|
1
|
+
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as f, useEffect as H } from "react";
|
|
3
|
+
import g from "../Button/Button.js";
|
|
4
|
+
import '../../assets/Dialog.css';const I = "Dialog-module__dialog___r4ljx", t = {
|
|
5
|
+
dialog: I,
|
|
6
6
|
"dialog-illustration": "Dialog-module__dialog-illustration___IHiQl",
|
|
7
7
|
"dialog-content": "Dialog-module__dialog-content___3hOGc",
|
|
8
8
|
"dialog-close-button-container": "Dialog-module__dialog-close-button-container___35uPS",
|
|
@@ -10,56 +10,62 @@ import '../../assets/Dialog.css';const G = "Dialog-module__dialog___r4ljx", a =
|
|
|
10
10
|
"dialog-description": "Dialog-module__dialog-description___hL8fm",
|
|
11
11
|
"dialog-buttons": "Dialog-module__dialog-buttons___x-v2M"
|
|
12
12
|
};
|
|
13
|
-
function
|
|
14
|
-
children:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
function P({
|
|
14
|
+
children: s,
|
|
15
|
+
isOpen: o,
|
|
16
|
+
onClose: l,
|
|
17
|
+
title: v,
|
|
18
|
+
description: D,
|
|
19
|
+
illustrationSrc: _,
|
|
19
20
|
confirmButtonText: n,
|
|
20
|
-
cancelButtonText:
|
|
21
|
+
cancelButtonText: u,
|
|
21
22
|
confirmButtonType: p = "primary",
|
|
22
|
-
cancelButtonType:
|
|
23
|
-
confirmButtonVariant:
|
|
24
|
-
cancelButtonVariant:
|
|
25
|
-
confirmButtonSize:
|
|
26
|
-
cancelButtonSize:
|
|
27
|
-
confirmButtonIcon:
|
|
28
|
-
cancelButtonIcon:
|
|
29
|
-
onConfirm:
|
|
30
|
-
onCancel:
|
|
31
|
-
className:
|
|
32
|
-
...
|
|
23
|
+
cancelButtonType: N = "primary",
|
|
24
|
+
confirmButtonVariant: b = "default",
|
|
25
|
+
cancelButtonVariant: y = "cancel",
|
|
26
|
+
confirmButtonSize: k = "md",
|
|
27
|
+
cancelButtonSize: j = "md",
|
|
28
|
+
confirmButtonIcon: x,
|
|
29
|
+
cancelButtonIcon: z,
|
|
30
|
+
onConfirm: e,
|
|
31
|
+
onCancel: r,
|
|
32
|
+
className: M,
|
|
33
|
+
...R
|
|
33
34
|
}) {
|
|
34
|
-
const
|
|
35
|
+
const w = f(null), d = f(null);
|
|
36
|
+
H(() => {
|
|
37
|
+
var i, h;
|
|
38
|
+
o !== void 0 && (o ? (i = d.current) == null || i.showModal() : (h = d.current) == null || h.close());
|
|
39
|
+
}, [o]);
|
|
40
|
+
const A = () => {
|
|
35
41
|
var i;
|
|
36
|
-
(i =
|
|
37
|
-
},
|
|
42
|
+
(i = d.current) == null || i.showModal();
|
|
43
|
+
}, m = () => {
|
|
38
44
|
var i;
|
|
39
|
-
|
|
40
|
-
},
|
|
45
|
+
l == null || l(), o === void 0 && ((i = d.current) == null || i.close());
|
|
46
|
+
}, E = () => {
|
|
41
47
|
var i;
|
|
42
|
-
|
|
43
|
-
},
|
|
48
|
+
e == null || e(), l == null || l(), o === void 0 && ((i = d.current) == null || i.close());
|
|
49
|
+
}, G = () => {
|
|
44
50
|
var i;
|
|
45
|
-
|
|
51
|
+
r == null || r(), l == null || l(), o === void 0 && ((i = d.current) == null || i.close());
|
|
46
52
|
};
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
53
|
+
return /* @__PURE__ */ c("div", { className: M, ...R, children: [
|
|
54
|
+
s && /* @__PURE__ */ a("div", { ref: w, onClick: A, children: s }),
|
|
55
|
+
/* @__PURE__ */ c("dialog", { className: t.dialog, ref: d, onClose: m, children: [
|
|
56
|
+
/* @__PURE__ */ a("div", { className: t["dialog-close-button-container"], children: l && /* @__PURE__ */ a(g, { className: t["dialog-close-button"], type: "tertiary", variant: "cancel", size: "md", onClick: m, icon: "ap-icon-close" }) }),
|
|
57
|
+
_ && /* @__PURE__ */ a("div", { className: t["dialog-illustration"], children: /* @__PURE__ */ a("img", { src: _, alt: "Dialog illustration" }) }),
|
|
58
|
+
/* @__PURE__ */ c("div", { className: t["dialog-content"], children: [
|
|
59
|
+
/* @__PURE__ */ a("h2", { className: t["dialog-title"], children: v }),
|
|
60
|
+
/* @__PURE__ */ a("div", { className: t["dialog-description"], children: D })
|
|
55
61
|
] }),
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
|
|
58
|
-
n && /* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ c("div", { className: t["dialog-buttons"], children: [
|
|
63
|
+
u && /* @__PURE__ */ a(g, { type: N, variant: y, size: j, onClick: G, icon: z, children: u }),
|
|
64
|
+
n && /* @__PURE__ */ a(g, { type: p, variant: b, size: k, onClick: E, icon: x, children: n })
|
|
59
65
|
] })
|
|
60
66
|
] })
|
|
61
67
|
] });
|
|
62
68
|
}
|
|
63
69
|
export {
|
|
64
|
-
|
|
70
|
+
P as default
|
|
65
71
|
};
|
|
@@ -5,6 +5,7 @@ export type MenuItem = {
|
|
|
5
5
|
label: string;
|
|
6
6
|
href?: string;
|
|
7
7
|
menuItems?: MenuItem[];
|
|
8
|
+
onClick?: () => void;
|
|
8
9
|
};
|
|
9
10
|
export type Notifications = {
|
|
10
11
|
count: number;
|
|
@@ -20,7 +21,7 @@ export type NavBarProps = {
|
|
|
20
21
|
projectName: string;
|
|
21
22
|
projectLogoIcon: ApLogo;
|
|
22
23
|
projectLogoIconColor: 'black' | 'white' | 'gray' | 'green';
|
|
23
|
-
|
|
24
|
+
projectLogoOnClick?: () => void;
|
|
24
25
|
projectTag?: string;
|
|
25
26
|
menuButton?: React.ReactElement<ButtonProps, typeof Button>;
|
|
26
27
|
menuItems?: MenuItem[];
|
|
@@ -37,7 +38,7 @@ export type NavBarProps = {
|
|
|
37
38
|
* @param {object} props - NavBar component props
|
|
38
39
|
* @param {string} props.projectName - The name of the project to display in the navbar
|
|
39
40
|
* @param {string} props.projectLogoIcon - The source URL for the project logo image
|
|
40
|
-
* @param {
|
|
41
|
+
* @param {() => void} [props.projectLogoOnClick] - The function to call when the project logo is clicked
|
|
41
42
|
* @param {string} [props.projectTag] - Optional project tag to display next to the project name
|
|
42
43
|
* @param {React.ReactElement<ButtonProps, typeof Button>} [props.menuButton] - Optional Button component to display before the menu items
|
|
43
44
|
* @param {MenuItem[]} [props.menuItems] - Array of menu items to display in the navigation
|
|
@@ -47,4 +48,4 @@ export type NavBarProps = {
|
|
|
47
48
|
* @param {UserProfile} [props.additionalItems.userProfile] - User profile configuration with initials and dropdown content
|
|
48
49
|
* @returns {JSX.Element} The rendered NavBar component
|
|
49
50
|
*/
|
|
50
|
-
export default function NavBar({ activeMenuItemHref, projectName, projectLogoIcon, projectLogoIconColor,
|
|
51
|
+
export default function NavBar({ activeMenuItemHref, projectName, projectLogoIcon, projectLogoIconColor, projectLogoOnClick, projectTag, menuItems, menuButton, additionalItems, className, maxWidth, }: NavBarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,11 +7,11 @@ import * as c from "react";
|
|
|
7
7
|
import { u as ae, c as U, a as re, R as ne, I as oe } from "../../index-CjQV7MmW.js";
|
|
8
8
|
import { u as te, c as ie, P as V, d as ue, a as N } from "../../index-DWydnyjJ.js";
|
|
9
9
|
import { u as O } from "../../index-2H7slGYV.js";
|
|
10
|
-
import { c as se, R as ce, A as le, P as me, C as de, I as be, G as ve, L as pe, a as _e, b as fe, d as ge, e as he, S as Me, f as Ne, g as Re, h as
|
|
11
|
-
import '../../assets/NavBar.css';var
|
|
12
|
-
|
|
10
|
+
import { c as se, R as ce, A as le, P as me, C as de, I as be, G as ve, L as pe, a as _e, b as fe, d as ge, e as he, S as Me, f as Ne, g as Re, h as Ce } from "../../index-CVWHq7Pr.js";
|
|
11
|
+
import '../../assets/NavBar.css';var C = "Menubar", [I, we, xe] = re(C), [z, ua] = ie(C, [
|
|
12
|
+
xe,
|
|
13
13
|
U
|
|
14
|
-
]), p = se(), H = U(), [Se,
|
|
14
|
+
]), p = se(), H = U(), [Se, G] = z(C), Y = c.forwardRef(
|
|
15
15
|
(a, o) => {
|
|
16
16
|
const {
|
|
17
17
|
__scopeMenubar: r,
|
|
@@ -25,7 +25,7 @@ import '../../assets/NavBar.css';var w = "Menubar", [I, xe, Ce] = re(w), [z, ua]
|
|
|
25
25
|
prop: n,
|
|
26
26
|
onChange: i,
|
|
27
27
|
defaultProp: h ?? "",
|
|
28
|
-
caller:
|
|
28
|
+
caller: C
|
|
29
29
|
}), [v, b] = c.useState(null);
|
|
30
30
|
return /* @__PURE__ */ e(
|
|
31
31
|
Se,
|
|
@@ -64,9 +64,9 @@ import '../../assets/NavBar.css';var w = "Menubar", [I, xe, Ce] = re(w), [z, ua]
|
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
|
-
Y.displayName =
|
|
68
|
-
var
|
|
69
|
-
const { __scopeMenubar: o, value: r, ...n } = a, i = O(), h = r || i || "LEGACY_REACT_AUTO_VALUE", d = K
|
|
67
|
+
Y.displayName = C;
|
|
68
|
+
var K = "MenubarMenu", [Ae, Q] = z(K), X = (a) => {
|
|
69
|
+
const { __scopeMenubar: o, value: r, ...n } = a, i = O(), h = r || i || "LEGACY_REACT_AUTO_VALUE", d = G(K, o), m = p(o), t = c.useRef(null), _ = c.useRef(!1), l = d.value === h;
|
|
70
70
|
return c.useEffect(() => {
|
|
71
71
|
l || (_.current = !1);
|
|
72
72
|
}, [l]), /* @__PURE__ */ e(
|
|
@@ -94,10 +94,10 @@ var k = "MenubarMenu", [Ae, Q] = z(k), X = (a) => {
|
|
|
94
94
|
}
|
|
95
95
|
);
|
|
96
96
|
};
|
|
97
|
-
X.displayName =
|
|
98
|
-
var
|
|
97
|
+
X.displayName = K;
|
|
98
|
+
var k = "MenubarTrigger", J = c.forwardRef(
|
|
99
99
|
(a, o) => {
|
|
100
|
-
const { __scopeMenubar: r, disabled: n = !1, ...i } = a, h = H(r), d = p(r), m =
|
|
100
|
+
const { __scopeMenubar: r, disabled: n = !1, ...i } = a, h = H(r), d = p(r), m = G(k, r), t = Q(k, r), _ = c.useRef(null), l = ue(o, _, t.triggerRef), [f, s] = c.useState(!1), v = m.value === t.value;
|
|
101
101
|
return /* @__PURE__ */ e(I.ItemSlot, { scope: r, value: t.value, disabled: n, children: /* @__PURE__ */ e(
|
|
102
102
|
oe,
|
|
103
103
|
{
|
|
@@ -138,15 +138,15 @@ var D = "MenubarTrigger", J = c.forwardRef(
|
|
|
138
138
|
) });
|
|
139
139
|
}
|
|
140
140
|
);
|
|
141
|
-
J.displayName =
|
|
141
|
+
J.displayName = k;
|
|
142
142
|
var ye = "MenubarPortal", W = (a) => {
|
|
143
143
|
const { __scopeMenubar: o, ...r } = a, n = p(o);
|
|
144
144
|
return /* @__PURE__ */ e(me, { ...n, ...r });
|
|
145
145
|
};
|
|
146
146
|
W.displayName = ye;
|
|
147
|
-
var
|
|
147
|
+
var D = "MenubarContent", Z = c.forwardRef(
|
|
148
148
|
(a, o) => {
|
|
149
|
-
const { __scopeMenubar: r, align: n = "start", ...i } = a, h = p(r), d =
|
|
149
|
+
const { __scopeMenubar: r, align: n = "start", ...i } = a, h = p(r), d = G(D, r), m = Q(D, r), t = we(r), _ = c.useRef(!1);
|
|
150
150
|
return /* @__PURE__ */ e(
|
|
151
151
|
de,
|
|
152
152
|
{
|
|
@@ -202,7 +202,7 @@ var G = "MenubarContent", Z = c.forwardRef(
|
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
204
|
);
|
|
205
|
-
Z.displayName =
|
|
205
|
+
Z.displayName = D;
|
|
206
206
|
var Pe = "MenubarGroup", Ee = c.forwardRef(
|
|
207
207
|
(a, o) => {
|
|
208
208
|
const { __scopeMenubar: r, ...n } = a, i = p(r);
|
|
@@ -224,27 +224,27 @@ var Oe = "MenubarItem", $ = c.forwardRef(
|
|
|
224
224
|
}
|
|
225
225
|
);
|
|
226
226
|
$.displayName = Oe;
|
|
227
|
-
var Ie = "MenubarCheckboxItem",
|
|
227
|
+
var Ie = "MenubarCheckboxItem", ke = c.forwardRef(
|
|
228
228
|
(a, o) => {
|
|
229
229
|
const { __scopeMenubar: r, ...n } = a, i = p(r);
|
|
230
230
|
return /* @__PURE__ */ e(_e, { ...i, ...n, ref: o });
|
|
231
231
|
}
|
|
232
232
|
);
|
|
233
|
-
|
|
234
|
-
var
|
|
233
|
+
ke.displayName = Ie;
|
|
234
|
+
var De = "MenubarRadioGroup", Ge = c.forwardRef(
|
|
235
235
|
(a, o) => {
|
|
236
236
|
const { __scopeMenubar: r, ...n } = a, i = p(r);
|
|
237
237
|
return /* @__PURE__ */ e(fe, { ...i, ...n, ref: o });
|
|
238
238
|
}
|
|
239
239
|
);
|
|
240
|
-
|
|
241
|
-
var
|
|
240
|
+
Ge.displayName = De;
|
|
241
|
+
var Ke = "MenubarRadioItem", Fe = c.forwardRef(
|
|
242
242
|
(a, o) => {
|
|
243
243
|
const { __scopeMenubar: r, ...n } = a, i = p(r);
|
|
244
244
|
return /* @__PURE__ */ e(ge, { ...i, ...n, ref: o });
|
|
245
245
|
}
|
|
246
246
|
);
|
|
247
|
-
Fe.displayName =
|
|
247
|
+
Fe.displayName = Ke;
|
|
248
248
|
var Le = "MenubarItemIndicator", je = c.forwardRef((a, o) => {
|
|
249
249
|
const { __scopeMenubar: r, ...n } = a, i = p(r);
|
|
250
250
|
return /* @__PURE__ */ e(he, { ...i, ...n, ref: o });
|
|
@@ -283,7 +283,7 @@ var Xe = "MenubarSubContent", Je = c.forwardRef(
|
|
|
283
283
|
(a, o) => {
|
|
284
284
|
const { __scopeMenubar: r, ...n } = a, i = p(r);
|
|
285
285
|
return /* @__PURE__ */ e(
|
|
286
|
-
|
|
286
|
+
Ce,
|
|
287
287
|
{
|
|
288
288
|
...i,
|
|
289
289
|
"data-radix-menubar-content": "",
|
|
@@ -305,7 +305,7 @@ Je.displayName = Xe;
|
|
|
305
305
|
function We(a, o) {
|
|
306
306
|
return a.map((r, n) => a[(o + n) % a.length]);
|
|
307
307
|
}
|
|
308
|
-
var
|
|
308
|
+
var w = Y, x = X, S = J, A = W, y = Z, P = $;
|
|
309
309
|
const u = {
|
|
310
310
|
"navbar-wrapper": "NavBar-module__navbar-wrapper___e-f8y",
|
|
311
311
|
"navbar-container": "NavBar-module__navbar-container___KnbUz",
|
|
@@ -335,7 +335,7 @@ function sa({
|
|
|
335
335
|
projectName: o,
|
|
336
336
|
projectLogoIcon: r,
|
|
337
337
|
projectLogoIconColor: n,
|
|
338
|
-
|
|
338
|
+
projectLogoOnClick: i,
|
|
339
339
|
projectTag: h,
|
|
340
340
|
menuItems: d,
|
|
341
341
|
menuButton: m,
|
|
@@ -348,34 +348,34 @@ function sa({
|
|
|
348
348
|
maxWidth: l
|
|
349
349
|
}, children: [
|
|
350
350
|
/* @__PURE__ */ M("div", { className: u["navbar-logo-container"], children: [
|
|
351
|
-
/* @__PURE__ */ e("a", {
|
|
351
|
+
/* @__PURE__ */ e("a", { onClick: i, className: u["navbar-logo-link"], children: /* @__PURE__ */ e(ee, { logo: r, color: n }) }),
|
|
352
352
|
/* @__PURE__ */ e("span", { className: u["navbar-project-name-separator"] }),
|
|
353
353
|
/* @__PURE__ */ e("span", { className: u["navbar-project-name"], children: o }),
|
|
354
354
|
h && /* @__PURE__ */ e(q, { type: "basic", color: "green", size: "md", structure: "border", label: h })
|
|
355
355
|
] }),
|
|
356
356
|
/* @__PURE__ */ M("div", { className: u["navbar-menu"], children: [
|
|
357
357
|
m,
|
|
358
|
-
/* @__PURE__ */ e(
|
|
358
|
+
/* @__PURE__ */ e(w, { className: u["navbar-menu-list"], children: d == null ? void 0 : d.map((s) => /* @__PURE__ */ M(x, { children: [
|
|
359
359
|
/* @__PURE__ */ e(S, { className: u["navbar-menu-list-item"], children: s.menuItems ? /* @__PURE__ */ M("span", { className: u["navbar-menu-list-item-trigger-container"], children: [
|
|
360
360
|
/* @__PURE__ */ e("span", { children: s.label }),
|
|
361
361
|
/* @__PURE__ */ e(B, { icon: "ap-icon-expand-more", className: T(u["navbar-menu-list-item-arrow"]) })
|
|
362
|
-
] }) : /* @__PURE__ */ e("a", { className: T(u["navbar-menu-list-item-action"], f(s.href) && u["navbar-menu-list-item-action-active"]),
|
|
363
|
-
s.menuItems && /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(y, { className: u["navbar-menu-list-item-submenu"], children: s.menuItems.map((v) => /* @__PURE__ */ e(P, { className: u["navbar-menu-list-item-submenu-item"], children: /* @__PURE__ */ e("a", {
|
|
362
|
+
] }) : /* @__PURE__ */ e("a", { className: T(u["navbar-menu-list-item-action"], f(s.href) && u["navbar-menu-list-item-action-active"]), onClick: s.onClick, children: s.label }) }),
|
|
363
|
+
s.menuItems && /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(y, { className: u["navbar-menu-list-item-submenu"], children: s.menuItems.map((v) => /* @__PURE__ */ e(P, { className: u["navbar-menu-list-item-submenu-item"], children: /* @__PURE__ */ e("a", { onClick: v.onClick, children: v.label }) }, v.label)) }) })
|
|
364
364
|
] }, s.label)) }),
|
|
365
365
|
t && /* @__PURE__ */ e("span", { className: u["navbar-menu-additional-separator"] }),
|
|
366
366
|
/* @__PURE__ */ M("div", { className: u["navbar-menu-additional"], children: [
|
|
367
|
-
(t == null ? void 0 : t.notifications) && /* @__PURE__ */ e(
|
|
367
|
+
(t == null ? void 0 : t.notifications) && /* @__PURE__ */ e(w, { children: /* @__PURE__ */ M(x, { children: [
|
|
368
368
|
/* @__PURE__ */ e(S, { className: u["navbar-menu-additional-trigger"], children: /* @__PURE__ */ M("div", { className: u["navbar-notification-container"], children: [
|
|
369
369
|
/* @__PURE__ */ e(B, { icon: "ap-icon-notification-filled", className: u["navbar-menu-additional-icon"] }),
|
|
370
370
|
t.notifications.count > 0 && /* @__PURE__ */ e("span", { className: u["navbar-notification-badge"], children: t.notifications.count > 99 ? "99+" : t.notifications.count })
|
|
371
371
|
] }) }),
|
|
372
372
|
/* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(y, { align: "end", className: u["navbar-menu-list-item-submenu"], children: /* @__PURE__ */ e(P, { className: u["navbar-menu-list-item-submenu-item"], children: t.notifications.content }) }) })
|
|
373
373
|
] }) }),
|
|
374
|
-
(t == null ? void 0 : t.help) && /* @__PURE__ */ e(
|
|
374
|
+
(t == null ? void 0 : t.help) && /* @__PURE__ */ e(w, { children: /* @__PURE__ */ M(x, { children: [
|
|
375
375
|
/* @__PURE__ */ e(S, { className: u["navbar-menu-additional-trigger"], children: /* @__PURE__ */ e(B, { icon: "ap-icon-help-filled", className: u["navbar-menu-additional-icon"] }) }),
|
|
376
376
|
/* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(y, { align: "end", className: u["navbar-menu-list-item-submenu"], children: /* @__PURE__ */ e(P, { className: u["navbar-menu-list-item-submenu-item"], children: t.help }) }) })
|
|
377
377
|
] }) }),
|
|
378
|
-
(t == null ? void 0 : t.userProfile) && /* @__PURE__ */ e(
|
|
378
|
+
(t == null ? void 0 : t.userProfile) && /* @__PURE__ */ e(w, { children: /* @__PURE__ */ M(x, { children: [
|
|
379
379
|
/* @__PURE__ */ e(S, { className: u["navbar-menu-additional-trigger"], children: /* @__PURE__ */ e("span", { className: u["navbar-menu-additional-user-profile"], children: t.userProfile.initials }) }),
|
|
380
380
|
/* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(y, { align: "end", className: u["navbar-menu-list-item-submenu"], children: /* @__PURE__ */ e(P, { className: u["navbar-menu-list-item-submenu-item"], children: t.userProfile.content }) }) })
|
|
381
381
|
] }) })
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as a, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import { c as R } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import
|
|
3
|
+
import z from "../Button/Button.js";
|
|
4
4
|
import * as d from "react";
|
|
5
|
-
import { useRef as
|
|
5
|
+
import { useRef as W, useState as N, useEffect as U } from "react";
|
|
6
6
|
import $ from "../Icon/Icon.js";
|
|
7
7
|
import "../Input/Input.js";
|
|
8
8
|
import { u as K, c as H, P as j, a as M, b as F } from "../../index-DWydnyjJ.js";
|
|
9
|
-
import { c as
|
|
10
|
-
import { u as
|
|
9
|
+
import { c as C, R as V, A as X, P as q, C as J, I as Q, G as Y, L as Z, a as oo, b as eo, d as no, e as to, S as ro, f as ao, g as io, h as po } from "../../index-CVWHq7Pr.js";
|
|
10
|
+
import { u as I } from "../../index-2H7slGYV.js";
|
|
11
11
|
import '../../assets/SplitButton.css';var v = "DropdownMenu", [so, Vo] = H(
|
|
12
12
|
v,
|
|
13
|
-
[
|
|
14
|
-
), s =
|
|
13
|
+
[C]
|
|
14
|
+
), s = C(), [uo, y] = so(v), x = (o) => {
|
|
15
15
|
const {
|
|
16
16
|
__scopeDropdownMenu: t,
|
|
17
17
|
children: e,
|
|
@@ -30,9 +30,9 @@ import '../../assets/SplitButton.css';var v = "DropdownMenu", [so, Vo] = H(
|
|
|
30
30
|
uo,
|
|
31
31
|
{
|
|
32
32
|
scope: t,
|
|
33
|
-
triggerId:
|
|
33
|
+
triggerId: I(),
|
|
34
34
|
triggerRef: _,
|
|
35
|
-
contentId:
|
|
35
|
+
contentId: I(),
|
|
36
36
|
open: w,
|
|
37
37
|
onOpenChange: f,
|
|
38
38
|
onOpenToggle: d.useCallback(() => f((g) => !g), [f]),
|
|
@@ -147,18 +147,18 @@ var Ro = "DropdownMenuItemIndicator", So = d.forwardRef((o, t) => {
|
|
|
147
147
|
return /* @__PURE__ */ a(to, { ...r, ...n, ref: t });
|
|
148
148
|
});
|
|
149
149
|
So.displayName = Ro;
|
|
150
|
-
var No = "DropdownMenuSeparator",
|
|
150
|
+
var No = "DropdownMenuSeparator", Io = d.forwardRef((o, t) => {
|
|
151
151
|
const { __scopeDropdownMenu: e, ...n } = o, r = s(e);
|
|
152
152
|
return /* @__PURE__ */ a(ro, { ...r, ...n, ref: t });
|
|
153
153
|
});
|
|
154
|
-
|
|
155
|
-
var
|
|
154
|
+
Io.displayName = No;
|
|
155
|
+
var Co = "DropdownMenuArrow", yo = d.forwardRef(
|
|
156
156
|
(o, t) => {
|
|
157
157
|
const { __scopeDropdownMenu: e, ...n } = o, r = s(e);
|
|
158
158
|
return /* @__PURE__ */ a(ao, { ...r, ...n, ref: t });
|
|
159
159
|
}
|
|
160
160
|
);
|
|
161
|
-
yo.displayName =
|
|
161
|
+
yo.displayName = Co;
|
|
162
162
|
var xo = "DropdownMenuSubTrigger", Po = d.forwardRef((o, t) => {
|
|
163
163
|
const { __scopeDropdownMenu: e, ...n } = o, r = s(e);
|
|
164
164
|
return /* @__PURE__ */ a(io, { ...r, ...n, ref: t });
|
|
@@ -212,7 +212,7 @@ function Xo({
|
|
|
212
212
|
className: p,
|
|
213
213
|
...l
|
|
214
214
|
}) {
|
|
215
|
-
const _ =
|
|
215
|
+
const _ = W(null), [w, f] = N(0), [g, S] = N(!1);
|
|
216
216
|
U(() => {
|
|
217
217
|
var b;
|
|
218
218
|
const m = (b = _.current) == null ? void 0 : b.getBoundingClientRect().width;
|
|
@@ -227,11 +227,12 @@ function Xo({
|
|
|
227
227
|
t === "single" ? k() : n[0].action(), D == null || D(m);
|
|
228
228
|
};
|
|
229
229
|
return /* @__PURE__ */ h("div", { ref: _, className: R(u["split-button-container"], u[`split-button-container-type-${o}`], u[`split-button-container-trigger-${t}`], u[`split-button-container-size-${e}`], (r || i) && u["split-button-container-disabled"], p), children: [
|
|
230
|
-
/* @__PURE__ */ a(
|
|
230
|
+
/* @__PURE__ */ a(z, { type: o, variant: "default", size: e, onClick: L, className: u["split-button-action-trigger"], disabled: r, loading: i, ...G, children: t === "single" ? c : n[0].label }),
|
|
231
231
|
/* @__PURE__ */ h(Oo, { open: g, onOpenChange: S, children: [
|
|
232
232
|
/* @__PURE__ */ a(Bo, { disabled: r || i, className: u["split-button-dropdown-trigger"], children: /* @__PURE__ */ a($, { icon: "ap-icon-expand-more", className: R(u["split-button-dropdown-arrow"]) }) }),
|
|
233
233
|
/* @__PURE__ */ a(To, { children: /* @__PURE__ */ h(ko, { align: "end", sideOffset: 5, style: {
|
|
234
|
-
minWidth: w
|
|
234
|
+
minWidth: w,
|
|
235
|
+
zIndex: 9999
|
|
235
236
|
}, children: [
|
|
236
237
|
" ",
|
|
237
238
|
/* @__PURE__ */ a("div", { className: R(u["split-button-dropdown-menu"], u[`split-button-dropdown-menu-size-${e}`], (r || i) && u["split-button-dropdown-menu-disabled"]), children: n.map((m, b) => t === "split" && b === 0 ? null : /* @__PURE__ */ a(Go, { title: m.label, onClick: () => m.action(), children: /* @__PURE__ */ a("button", { children: m.label }) }, m.value)) })
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
import '../../assets/Tab.css';const
|
|
5
|
-
tab:
|
|
6
|
-
active:
|
|
7
|
-
disabled:
|
|
1
|
+
import { jsxs as d, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as l } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import h from "../Icon/Icon.js";
|
|
4
|
+
import '../../assets/Tab.css';const x = "Tab-module__tab___ShyYn", T = "Tab-module__active___tB2AH", D = "Tab-module__disabled___trlpg", _ = {
|
|
5
|
+
tab: x,
|
|
6
|
+
active: T,
|
|
7
|
+
disabled: D,
|
|
8
8
|
"tab-icon-alert": "Tab-module__tab-icon-alert___2OP17"
|
|
9
9
|
};
|
|
10
10
|
function O({
|
|
11
|
-
label:
|
|
12
|
-
numberCount:
|
|
11
|
+
label: r,
|
|
12
|
+
numberCount: o,
|
|
13
13
|
hasError: b,
|
|
14
14
|
iconClassName: m,
|
|
15
15
|
active: s,
|
|
@@ -18,20 +18,20 @@ function O({
|
|
|
18
18
|
className: f,
|
|
19
19
|
...e
|
|
20
20
|
}) {
|
|
21
|
-
const
|
|
21
|
+
const u = () => {
|
|
22
22
|
t || a == null || a();
|
|
23
|
-
},
|
|
24
|
-
var
|
|
25
|
-
t || ((n.key === " " || n.key === "Enter") && (n.preventDefault(), a == null || a()), (
|
|
26
|
-
};
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
23
|
+
}, v = (n) => {
|
|
24
|
+
var c;
|
|
25
|
+
t || ((n.key === " " || n.key === "Enter") && (n.preventDefault(), a == null || a()), (c = e.onKeyDown) == null || c.call(e, n));
|
|
26
|
+
}, y = o != null;
|
|
27
|
+
return /* @__PURE__ */ d("div", { className: l(_.tab, s && _.active, t && _.disabled, f), onClick: u, onKeyDown: v, tabIndex: t ? -1 : 0, role: "tab", "aria-selected": s, "aria-disabled": t, ...e, children: [
|
|
28
|
+
/* @__PURE__ */ i("span", { children: r }),
|
|
29
|
+
y && /* @__PURE__ */ d("span", { children: [
|
|
30
30
|
"(",
|
|
31
|
-
|
|
31
|
+
o,
|
|
32
32
|
")"
|
|
33
33
|
] }),
|
|
34
|
-
b && /* @__PURE__ */
|
|
34
|
+
b && /* @__PURE__ */ i(h, { icon: "ap-icon-alert", className: l(_["tab-icon-alert"], m) })
|
|
35
35
|
] });
|
|
36
36
|
}
|
|
37
37
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as b, jsx as _ } from "react/jsx-runtime";
|
|
2
2
|
import { c as h } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import
|
|
3
|
+
import n from "../Icon/Icon.js";
|
|
4
4
|
import '../../assets/Tag.css';const p = "Tag-module__tag___0Cfjz", f = "Tag-module__label___aGRya", a = {
|
|
5
5
|
tag: p,
|
|
6
6
|
"tag-md": "Tag-module__tag-md___JwMcM",
|
|
@@ -25,10 +25,10 @@ import '../../assets/Tag.css';const p = "Tag-module__tag___0Cfjz", f = "Tag-modu
|
|
|
25
25
|
};
|
|
26
26
|
function z({
|
|
27
27
|
type: e,
|
|
28
|
-
size:
|
|
28
|
+
size: s,
|
|
29
29
|
structure: l = "border",
|
|
30
30
|
iconPosition: r,
|
|
31
|
-
label:
|
|
31
|
+
label: c,
|
|
32
32
|
color: i,
|
|
33
33
|
className: u,
|
|
34
34
|
noIcon: d,
|
|
@@ -48,13 +48,13 @@ function z({
|
|
|
48
48
|
default:
|
|
49
49
|
return "ap-icon-close";
|
|
50
50
|
}
|
|
51
|
-
})(e),
|
|
51
|
+
})(e), o = () => {
|
|
52
52
|
e === "basic" && (g == null || g());
|
|
53
53
|
};
|
|
54
|
-
return /* @__PURE__ */ b("div", { className: h(a.tag, a[`tag-${e}`], a[`tag-${
|
|
55
|
-
t && r === "left" && /* @__PURE__ */ _("span", { className: a["icon-container-left"], onClick:
|
|
56
|
-
/* @__PURE__ */ _("span", { className: a.label, children:
|
|
57
|
-
t && r === "right" && /* @__PURE__ */ _("span", { className: a["icon-container-right"], onClick:
|
|
54
|
+
return /* @__PURE__ */ b("div", { className: h(a.tag, a[`tag-${e}`], a[`tag-${s}`], a[`tag-${l}`], e === "basic" && a[`tag-${i}`], u), ...m, children: [
|
|
55
|
+
t && r === "left" && /* @__PURE__ */ _("span", { className: a["icon-container-left"], onClick: o, children: /* @__PURE__ */ _(n, { icon: t }) }),
|
|
56
|
+
/* @__PURE__ */ _("span", { title: c, className: a.label, children: c }),
|
|
57
|
+
t && r === "right" && /* @__PURE__ */ _("span", { className: a["icon-container-right"], onClick: o, children: /* @__PURE__ */ _(n, { icon: t }) })
|
|
58
58
|
] });
|
|
59
59
|
}
|
|
60
60
|
export {
|