smarter-charts 2.1.2 → 2.1.3

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 CHANGED
@@ -20,7 +20,7 @@ registerChartComponents()
20
20
 
21
21
  ## Global `config` Prop
22
22
 
23
- All components accept a `config` object to handle backend connection, resource paths, and time filtering.
23
+ All components accept a `config` string that is the JSON representation of an object to handle backend connection, resource paths, and time filtering.
24
24
 
25
25
  ```js
26
26
  config: {
@@ -0,0 +1 @@
1
+ .animator-controllers{margin-top:50px}.timeline-placeholder{height:70px;margin-top:-10px}.charts-wrapper{margin-top:40px;height:400px}.timeline-wrapper{position:absolute;top:50px;left:10px;right:10px;height:30px;background:#fff;transition:1s ease all;border-radius:4px;box-shadow:0 1px 5px #000000a6}.heatmap-timeline{position:absolute;top:0;right:15px;left:80px;height:100%}.heatmap-timeline .time-point{position:absolute;background:#fff;border:2px solid #272727;width:8px;height:8px;border-radius:100%;cursor:pointer;top:15px;transform:translate(-50%) translateY(-50%)}.heatmap-timeline .time-point.active{background:#000;width:12px;height:12px}.animator-controllers .btn-secondary{padding-left:20px;padding-right:20px}.smarter-calendar-actions{margin-top:16px;text-align:left}.smarter-calendar-update-event{opacity:1!important;visibility:visible!important;color:#fff!important;background-color:#0d6efd!important}.smarter-calendar-update-event:hover{background-color:#0b5ed7!important}.smarter-calendar-event-modal{padding:26px;background:#fff;color:#000;border:1px solid rgb(224 224 224);border-radius:8px;box-shadow:0 12px 24px #00000017,0 6px 12px #0000002e;max-width:420px;z-index:999}.smarter-calendar-event-title{font-weight:500;font-size:22px;margin-bottom:.4em}.smarter-calendar-event-time,.smarter-calendar-event-updatedBy{font-size:14px;margin-bottom:.6em}.smarter-calendar-event-data{padding:12px}.smarter-calendar-event-data p{margin:.4em 0;font-size:16px}.smarter-calendar-label{font-size:16px;font-weight:700;color:#222;min-width:150px}.smarter-calendar-event-data .smarter-calendar-example{margin-top:0;font-size:12px;color:#555;font-style:italic}.smarter-calendar-theses-list{list-style:none;padding-left:0;margin:.4em 0;font-size:14px}.smarter-calendar-thesis-item{display:flex;justify-content:space-between;font-weight:500;width:70%}.smarter-calendar-thesis-timestamp{color:#555;font-size:13px;margin-bottom:4px}.smarter-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f1219a6;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;z-index:99999;animation:fadeIn .15s ease-out}.smarter-modal{width:620px;max-width:95vw;max-height:90vh;overflow:hidden;background:#fff;border-radius:14px;box-shadow:0 20px 60px #00000040,0 2px 8px #0000001a;display:flex;flex-direction:column;transform:translateY(10px);animation:modalIn .18s ease-out forwards}.smarter-modal .modal-header{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #eef0f3;background:linear-gradient(180deg,#fff,#fafafa)}.smarter-modal .modal-title{font-size:18px;font-weight:600;color:#1f2937;margin:0}.smarter-btn-close{position:absolute;top:10px;right:15px;background:transparent;border:none;font-size:30px;cursor:pointer;color:#6b7280;transition:.15s ease}.smarter-btn-close:hover{color:#111827;transform:scale(1.1)}.smarter-modal .modal-body{padding:16px 18px;overflow-y:auto}.row.text-center.fs-5{font-size:16px;font-weight:600;color:#374151;margin-bottom:10px}.smarter-form-group label{display:block;font-size:14px;font-weight:500;color:#4b5563;margin-bottom:6px}input[type=datetime-local],input[type=number],textarea{width:100%;padding:9px 10px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;outline:none;transition:.15s ease;background:#fff}input:focus,textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f626}.is-invalid{border-color:#ef4444!important;box-shadow:0 0 0 3px #ef444426}.smarter-form-group input[type=checkbox]{transform:scale(1.1);margin-right:6px}.smarter-form-row{display:flex;gap:12px}.smarter-form-row .smarter-form-group{flex:1;min-width:0}.smarter-alert{padding:10px 12px;border-radius:8px;font-size:13px;margin-bottom:12px}.smarter-alert-danger{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.smarter-modal .modal-footer{display:flex;justify-content:center;gap:10px;padding:12px 18px;border-top:1px solid #eef0f3;background:#fafafa}.smarter-btn{padding:8px 12px;border-radius:8px;font-size:13px;border:none;cursor:pointer;transition:.15s ease}.smarter-btn-secondary{background:#e5e7eb;color:#111827}.smarter-btn-secondary:hover{background:#d1d5db}.smarter-btn-primary{background:#2563eb;color:#fff}.smarter-btn-primary:hover{background:#1d4ed8}.smarter-btn-primary:disabled{background:#93c5fd;cursor:not-allowed}.smarter-calendar-event-modal{padding:14px;border-radius:10px;background:#fff;box-shadow:0 10px 25px #00000014}.smarter-calendar-event-title{font-size:20px;font-weight:600;margin-bottom:6px}.smarter-calendar-event-time{font-size:13px;color:#6b7280;margin-bottom:10px}.smarter-calendar-label{font-weight:600;color:#374151}.smarter-switch-row{display:flex;align-items:center;padding:6px 10px}.smarter-switch{display:inline-flex;align-items:center;justify-content:center;position:relative;width:44px;height:24px;cursor:pointer;flex-shrink:0}.smarter-switch input{position:absolute;opacity:0;width:0;height:0}.smarter-switch .slider{position:relative;display:block;width:44px;height:24px;background:#d1d5db;border-radius:999px;transition:background .25s ease}.smarter-switch .slider:before{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;background:#fff;border-radius:50%;transition:transform .25s ease,box-shadow .25s ease;box-shadow:0 1px 3px #00000040}.smarter-switch input:checked+.slider{background:#2563eb}.smarter-switch input:checked+.slider:before{transform:translate(20px);box-shadow:0 1px 3px #00000040,0 0 0 6px #2563eb33}.smarter-switch:hover .slider{filter:brightness(.98)}.smarter-switch input:focus+.slider:before{box-shadow:0 1px 3px #00000040,0 0 0 6px #2563eb40}.smarter-switch-label{font-size:14px;font-weight:500;color:#374151;line-height:24px}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes modalIn{0%{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}