remons-calendar 1.0.0-beta.2 → 1.0.0-beta.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.
Files changed (2) hide show
  1. package/dist/style.css +1 -1
  2. package/package.json +1 -1
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .color-swatches{display:flex;gap:8px}.color-swatches .swatch{width:22px;height:22px;border-radius:4px;cursor:pointer;border:2px solid transparent}.color-swatches .swatch.active{border-color:#000000a6}.emoji-grid{display:flex;flex-wrap:wrap;gap:4px;max-width:280px}.emoji-grid .emoji-item{font-size:18px;line-height:1;padding:6px;border-radius:6px;cursor:pointer;border:1px solid transparent}.emoji-grid .emoji-item:hover{background:#f5f5f5}.emoji-grid .emoji-item.active{background:#e6f4ff;border-color:#1677ff}.day-cell{padding:6px 8px;border-radius:4px;display:flex;flex-direction:column;position:relative;overflow:hidden}.day-cell:nth-child(7n){border-right:none}.day-cell.out .day-num,.day-cell.out .day-lunar{color:#bbb}.day-cell.today{background:#f0f7ff}.day-cell.selected{background:#e6f4ff;outline:1px solid #1677ff;outline-offset:-1px;border-radius:6px;cursor:pointer}.day-cell.selected.today{background:#e6f4ff}.day-cell.weekend{color:#1677ff}.day-cell.holiday-work{color:inherit}.day-cell.holiday-off{color:#1677ff}.day-top{display:flex;justify-content:space-between;align-items:baseline;flex-direction:column;align-items:center;gap:2px}.day-num{font-size:22px;font-weight:650;min-width:22px;padding:2px;height:22px;display:inline-flex;align-items:center;justify-content:center}.day-lunar{font-size:12px;color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-holiday{font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center}.day-holiday.off{background:#52c41a;color:#fff}.day-holiday.work{background:#f5222d;color:#fff}@media screen and (max-width: 500px){.day-holiday{top:0;right:0}}.todo-spacer{flex:none}.schedule-list{display:flex;flex-direction:column;gap:2px;overflow:hidden}.schedule-item{display:flex;align-items:center;gap:4px;width:100%;font-size:12px;cursor:pointer;white-space:nowrap}.schedule-item:hover .schedule-name{color:#1677ff}.schedule-icon{flex:none}.schedule-name{overflow:hidden;text-overflow:ellipsis}.schedule-more{font-size:11px;color:#999}.todo-lanes{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;pointer-events:none}.todo-bar{position:absolute;height:20px;min-width:12px;opacity:.85;display:flex;align-items:center;border-radius:0;box-sizing:border-box;overflow:hidden;cursor:pointer;pointer-events:auto;box-shadow:0 1px 2px #0000001f}.todo-bar.round-left{border-top-left-radius:10px;border-bottom-left-radius:10px}.todo-bar.round-right{border-top-right-radius:10px;border-bottom-right-radius:10px}.todo-bar-label{max-width:100%;padding:0 10px;font-size:12px;font-weight:500;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-panel{border-top:1px solid #f0f0f0;padding:10px 12px 12px;flex:1}.day-panel-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:14px;font-weight:600}.day-panel-header .day-panel-title{display:flex}.day-panel-header .day-panel-title .day-panel-actions{margin-left:4px;display:flex;gap:8px}.day-panel-sub{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:400;color:#888}.day-panel-section{margin-bottom:8px}.day-panel-section:last-of-type{margin-bottom:0}.day-panel-subtitle{font-size:12px;color:#999;margin-bottom:4px}.day-panel-todo{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer;background:#fff;border:1px solid #f0f0f0;margin-bottom:4px}.day-panel-todo:last-child{margin-bottom:0}.day-panel-todo:hover{border-color:#1677ff}.day-panel-todo-dot{flex:none;width:10px;height:10px;border-radius:3px}.day-panel-todo-name{flex:1;min-width:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-panel-todo-range{flex:none;font-size:11px;color:#999;white-space:nowrap}.day-panel-schedule{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer;background:#fff;border:1px solid #f0f0f0;margin-bottom:4px}.day-panel-schedule:last-child{margin-bottom:0}.day-panel-schedule:hover{border-color:#1677ff}.day-panel-schedule:hover .day-panel-schedule-name{color:#1677ff}.day-panel-schedule-icon{flex:none}.day-panel-schedule-name{flex:1;min-width:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-panel-schedule-time{flex:none;font-size:11px;color:#999;white-space:nowrap}.calendar-container{margin:0 auto;padding:0;display:flex;border-radius:8px;background:#fff;box-shadow:0 1px 4px #0000000f}@media screen and (max-width: 500px){.calendar-container{flex-direction:column}}.calendar{border:1px solid #f0f0f0;overflow:hidden;padding:0 4px;width:600px;flex-shrink:0}@media screen and (max-width: 600px){.calendar{width:auto}}.calendar-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:8px 10px;border-bottom:1px solid #f0f0f0}.calendar-title{font-size:18px;font-weight:600}.week-row{display:grid;grid-template-columns:repeat(7,1fr);border-bottom:1px solid #f0f0f0}.week-cell{text-align:center;padding:8px 0;font-size:13px;color:#666}.day-grid{display:flex;flex-direction:column}.calendar-empty{padding:32px 0 16px;display:flex;justify-content:center}.day-week{position:relative;display:grid;grid-template-columns:repeat(7,1fr)}
1
+ .color-swatches{display:flex;gap:8px}.color-swatches .swatch{width:22px;height:22px;border-radius:4px;cursor:pointer;border:2px solid transparent}.color-swatches .swatch.active{border-color:#000000a6}.emoji-grid{display:flex;flex-wrap:wrap;gap:4px;max-width:280px}.emoji-grid .emoji-item{font-size:18px;line-height:1;padding:6px;border-radius:6px;cursor:pointer;border:1px solid transparent}.emoji-grid .emoji-item:hover{background:#f5f5f5}.emoji-grid .emoji-item.active{background:#e6f4ff;border-color:#1677ff}.day-cell{padding:6px 8px;border-radius:4px;display:flex;flex-direction:column;position:relative;overflow:hidden}.day-cell:nth-child(7n){border-right:none}.day-cell.out .day-num,.day-cell.out .day-lunar{color:#bbb}.day-cell.today{background:#f0f7ff}.day-cell.selected{background:#e6f4ff;outline:1px solid #1677ff;outline-offset:-1px;border-radius:6px;cursor:pointer}.day-cell.selected.today{background:#e6f4ff}.day-cell.weekend{color:#1677ff}.day-cell.holiday-work{color:inherit}.day-cell.holiday-off{color:#1677ff}.day-top{display:flex;justify-content:space-between;align-items:baseline;flex-direction:column;align-items:center;gap:2px}.day-num{font-size:22px;font-weight:650;min-width:22px;padding:2px;height:22px;display:inline-flex;align-items:center;justify-content:center}.day-lunar{font-size:12px;color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-holiday{font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center}.day-holiday.off{background:#52c41a;color:#fff}.day-holiday.work{background:#f5222d;color:#fff}@media screen and (max-width: 500px){.day-holiday{top:0;right:0}}.todo-spacer{flex:none}.schedule-list{display:flex;flex-direction:column;gap:2px;overflow:hidden}.schedule-item{display:flex;align-items:center;gap:4px;width:100%;font-size:12px;cursor:pointer;white-space:nowrap}.schedule-item:hover .schedule-name{color:#1677ff}.schedule-icon{flex:none}.schedule-name{overflow:hidden;text-overflow:ellipsis}.schedule-more{font-size:11px;color:#999}.todo-lanes{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;pointer-events:none}.todo-bar{position:absolute;height:20px;min-width:12px;opacity:.85;display:flex;align-items:center;border-radius:0;box-sizing:border-box;overflow:hidden;cursor:pointer;pointer-events:auto;box-shadow:0 1px 2px #0000001f}.todo-bar.round-left{border-top-left-radius:10px;border-bottom-left-radius:10px}.todo-bar.round-right{border-top-right-radius:10px;border-bottom-right-radius:10px}.todo-bar-label{max-width:100%;padding:0 10px;font-size:12px;font-weight:500;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-panel{border-top:1px solid #f0f0f0;padding:10px 12px 12px;flex:1 1 300px;min-width:300px}.day-panel-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:14px;font-weight:600}.day-panel-header .day-panel-title{display:flex}.day-panel-header .day-panel-title .day-panel-actions{margin-left:4px;display:flex;gap:8px}.day-panel-sub{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:400;color:#888}.day-panel-section{margin-bottom:8px}.day-panel-section:last-of-type{margin-bottom:0}.day-panel-subtitle{font-size:12px;color:#999;margin-bottom:4px}.day-panel-todo{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer;background:#fff;border:1px solid #f0f0f0;margin-bottom:4px}.day-panel-todo:last-child{margin-bottom:0}.day-panel-todo:hover{border-color:#1677ff}.day-panel-todo-dot{flex:none;width:10px;height:10px;border-radius:3px}.day-panel-todo-name{flex:1;min-width:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-panel-todo-range{flex:none;font-size:11px;color:#999;white-space:nowrap}.day-panel-schedule{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer;background:#fff;border:1px solid #f0f0f0;margin-bottom:4px}.day-panel-schedule:last-child{margin-bottom:0}.day-panel-schedule:hover{border-color:#1677ff}.day-panel-schedule:hover .day-panel-schedule-name{color:#1677ff}.day-panel-schedule-icon{flex:none}.day-panel-schedule-name{flex:1;min-width:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-panel-schedule-time{flex:none;font-size:11px;color:#999;white-space:nowrap}.calendar-container{margin:0 auto;padding:0;display:flex;flex-wrap:wrap;border-radius:8px;background:#fff;box-shadow:0 1px 4px #0000000f}.calendar{border:1px solid #f0f0f0;overflow:hidden;padding:0 4px;flex:1 1 600px;min-width:300px;max-width:100%}.calendar-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:8px 10px;border-bottom:1px solid #f0f0f0}.calendar-title{font-size:18px;font-weight:600}.week-row{display:grid;grid-template-columns:repeat(7,1fr);border-bottom:1px solid #f0f0f0}.week-cell{text-align:center;padding:8px 0;font-size:13px;color:#666}.day-grid{display:flex;flex-direction:column}.calendar-empty{padding:32px 0 16px;display:flex;justify-content:center}.day-week{position:relative;display:grid;grid-template-columns:repeat(7,1fr)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remons-calendar",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.3",
4
4
  "description": "React 日历组件:农历/节日展示、节假日与补班、待办范围(line 形式)、单日日程",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",