@skillcdn/console 0.1.15 → 0.1.16

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 (43) hide show
  1. package/README.md +1 -1
  2. package/dist/cli/cli.d.ts.map +1 -1
  3. package/dist/cli/cli.js +13 -5
  4. package/dist/cli/cli.js.map +1 -1
  5. package/dist/cli/help.js +1 -1
  6. package/dist/cli/help.js.map +1 -1
  7. package/dist/components/calendar.d.ts +35 -2
  8. package/dist/components/calendar.d.ts.map +1 -1
  9. package/dist/components/calendar.js +58 -19
  10. package/dist/components/calendar.js.map +1 -1
  11. package/dist/components/projects.d.ts +4 -1
  12. package/dist/components/projects.d.ts.map +1 -1
  13. package/dist/components/projects.js +5 -2
  14. package/dist/components/projects.js.map +1 -1
  15. package/dist/components/task-form.d.ts.map +1 -1
  16. package/dist/components/task-form.js +1 -1
  17. package/dist/components/task-form.js.map +1 -1
  18. package/dist/console.css +70 -30
  19. package/dist/console.d.ts.map +1 -1
  20. package/dist/console.js +1 -1
  21. package/dist/console.js.map +1 -1
  22. package/dist/i18n/en.d.ts +1 -0
  23. package/dist/i18n/en.d.ts.map +1 -1
  24. package/dist/i18n/en.js +3 -2
  25. package/dist/i18n/en.js.map +1 -1
  26. package/dist/i18n/ko.d.ts.map +1 -1
  27. package/dist/i18n/ko.js +3 -2
  28. package/dist/i18n/ko.js.map +1 -1
  29. package/dist/rules.js +1 -1
  30. package/dist/rules.js.map +1 -1
  31. package/docs/specs/cli.md +1 -1
  32. package/docs/specs/rest.md +1 -1
  33. package/package.json +1 -1
  34. package/src/cli/cli.ts +14 -5
  35. package/src/cli/help.ts +1 -1
  36. package/src/components/calendar.tsx +216 -28
  37. package/src/components/projects.tsx +6 -6
  38. package/src/components/task-form.tsx +1 -0
  39. package/src/console.tsx +1 -0
  40. package/src/i18n/en.ts +3 -2
  41. package/src/i18n/ko.ts +3 -2
  42. package/src/rules.ts +1 -1
  43. package/src/styles/console.css +70 -30
@@ -1071,9 +1071,15 @@ table {
1071
1071
  border-radius: 50%;
1072
1072
  }
1073
1073
 
1074
- @media (prefers-reduced-motion: no-preference) {
1074
+ /* The ring turns whatever the motion preference: it says that the page still waits, and a ring
1075
+ that stands still reads as a page that stopped. Where motion is to be reduced it turns slowly. */
1076
+ .sc-spinner-ring {
1077
+ animation: sc-spin 700ms linear infinite;
1078
+ }
1079
+
1080
+ @media (prefers-reduced-motion: reduce) {
1075
1081
  .sc-spinner-ring {
1076
- animation: sc-spin 700ms linear infinite;
1082
+ animation-duration: 1.6s;
1077
1083
  }
1078
1084
  }
1079
1085
 
@@ -2654,8 +2660,9 @@ table {
2654
2660
  white-space: nowrap;
2655
2661
  }
2656
2662
 
2663
+ /* Lit a little under the pointer by its colour, not by a filter, which would light the card within it too. */
2657
2664
  .sc-calendar-bar:hover {
2658
- filter: brightness(1.15);
2665
+ background: color-mix(in srgb, var(--sc-category-fill), white 12%);
2659
2666
  }
2660
2667
 
2661
2668
  .sc-calendar-bar-begins {
@@ -2712,6 +2719,7 @@ table {
2712
2719
 
2713
2720
  /* A project's mark: its symbol on its colour. */
2714
2721
  .sc-mark {
2722
+ position: relative;
2715
2723
  display: inline-flex;
2716
2724
  flex: none;
2717
2725
  align-items: center;
@@ -2749,7 +2757,7 @@ table {
2749
2757
  align-items: end;
2750
2758
  }
2751
2759
 
2752
- /* A project's own image, in place of the symbol, filling the mark. */
2760
+ /* A project's own image over the symbol, filling the mark; the symbol shows until the image is there. */
2753
2761
  .sc-mark-pictured {
2754
2762
  padding: 0;
2755
2763
  overflow: hidden;
@@ -2757,6 +2765,8 @@ table {
2757
2765
  }
2758
2766
 
2759
2767
  .sc-mark-image {
2768
+ position: absolute;
2769
+ inset: 0;
2760
2770
  display: block;
2761
2771
  width: 100%;
2762
2772
  height: 100%;
@@ -3009,54 +3019,84 @@ table {
3009
3019
  flex: 1 1 10rem;
3010
3020
  }
3011
3021
 
3012
- /* A tip of the console's own: what an item says in full, shown the moment the pointer is on it,
3013
- where its line cut the title short or shows none. The item carries the words in `data-tip`
3014
- and is marked `data-clipped` when the tip applies. */
3015
- .sc-tip {
3022
+ /* The task under the pointer in full: a card within its item with its title and the facts its page
3023
+ lists, above or below the item, whichever side has more room, and moved left where it would
3024
+ leave the window; the calendar measures that as the pointer arrives, since only the browser
3025
+ knows where the item is. The card lies out of the accessible tree and takes no pointer. */
3026
+ .sc-calendar-task,
3027
+ .sc-calendar-bar {
3016
3028
  position: relative;
3017
3029
  }
3018
3030
 
3019
- .sc-tip::after {
3020
- content: attr(data-tip);
3031
+ /* The item under the pointer rises above its neighbours, which would otherwise paint over its card. */
3032
+ .sc-calendar-task:hover,
3033
+ .sc-calendar-task:focus-visible,
3034
+ .sc-calendar-bar:hover,
3035
+ .sc-calendar-bar:focus-visible {
3036
+ z-index: 20;
3037
+ }
3038
+
3039
+ .sc-task-tip {
3021
3040
  position: absolute;
3022
- bottom: calc(100% + var(--sc-space-1));
3023
3041
  left: 0;
3024
3042
  z-index: 20;
3025
3043
  width: max-content;
3026
- max-width: 18rem;
3027
- padding: var(--sc-space-1) var(--sc-space-2);
3044
+ max-width: 20rem;
3045
+ padding: var(--sc-space-2) var(--sc-space-3);
3028
3046
  border: var(--sc-border);
3029
3047
  border-radius: var(--sc-radius-md);
3030
3048
  background: var(--sc-color-bg-inset);
3031
3049
  box-shadow: var(--sc-shadow-stage);
3032
3050
  color: var(--sc-color-text);
3033
3051
  font-size: var(--sc-text-xs);
3034
- font-weight: var(--sc-weight-medium);
3052
+ font-weight: var(--sc-weight-normal);
3035
3053
  line-height: 1.4;
3054
+ text-align: left;
3036
3055
  text-decoration: none;
3037
3056
  white-space: normal;
3038
3057
  overflow-wrap: anywhere;
3039
- opacity: 0;
3040
- visibility: hidden;
3041
3058
  pointer-events: none;
3059
+ animation: sc-task-tip-in 120ms ease-out 100ms backwards;
3042
3060
  }
3043
3061
 
3044
- /* The item under the pointer rises above its neighbours, which would otherwise paint over its tip. */
3045
- .sc-tip[data-clipped]:hover,
3046
- .sc-tip[data-clipped]:focus-visible {
3047
- z-index: 20;
3062
+ .sc-task-tip-above {
3063
+ bottom: calc(100% + var(--sc-space-1));
3048
3064
  }
3049
3065
 
3050
- .sc-tip[data-clipped]:hover::after,
3051
- .sc-tip[data-clipped]:focus-visible::after {
3052
- opacity: 1;
3053
- visibility: visible;
3066
+ .sc-task-tip-below {
3067
+ top: calc(100% + var(--sc-space-1));
3054
3068
  }
3055
3069
 
3056
- /* In the last columns the tip hangs from the item's right edge, so that it stays on the page. */
3057
- .sc-calendar-cell:nth-last-child(-n + 2) .sc-tip::after {
3058
- right: 0;
3059
- left: auto;
3070
+ .sc-task-tip-title {
3071
+ margin: 0 0 var(--sc-space-2);
3072
+ font-weight: var(--sc-weight-medium);
3073
+ }
3074
+
3075
+ .sc-task-tip-facts {
3076
+ display: grid;
3077
+ grid-template-columns: auto 1fr;
3078
+ gap: var(--sc-space-1) var(--sc-space-3);
3079
+ margin: 0;
3080
+ }
3081
+
3082
+ .sc-task-tip-facts > div {
3083
+ display: contents;
3084
+ }
3085
+
3086
+ .sc-task-tip-facts dt {
3087
+ color: var(--sc-color-text-faint);
3088
+ font-weight: var(--sc-weight-medium);
3089
+ }
3090
+
3091
+ .sc-task-tip-facts dd {
3092
+ margin: 0;
3093
+ }
3094
+
3095
+ /* The card arrives after a moment, so that a pointer passing over the days opens none. */
3096
+ @keyframes sc-task-tip-in {
3097
+ from {
3098
+ opacity: 0;
3099
+ }
3060
3100
  }
3061
3101
 
3062
3102
  /* One week on its own, the only row there is: its days are taller than a month's. */
@@ -3193,8 +3233,8 @@ table {
3193
3233
  margin: 0;
3194
3234
  }
3195
3235
 
3196
- /* No pointer rests on a phone's calendar; the lists below say the titles. */
3197
- .sc-tip::after {
3236
+ /* No pointer rests on a phone's calendar, and the lists below say the titles. */
3237
+ .sc-task-tip {
3198
3238
  display: none;
3199
3239
  }
3200
3240