@parallelogram-js/dashboard 0.1.3 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelogram-js/dashboard",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "A BEM-style CSS dashboard library inspired by shadcn/ui",
5
5
  "main": "dist/parallelogram-dashboard.css",
6
6
  "type": "module",
@@ -123,10 +123,15 @@
123
123
  // Field (label, control(s), description, error and any extra markup)
124
124
  // --------------------------------------------------------------------------
125
125
 
126
+ // Help text and errors sit 6px under the control; the label (or the row holding it) keeps 8px
126
127
  &__field {
127
128
  display: flex;
128
129
  flex-direction: column;
129
- gap: $spacing-2xs;
130
+ gap: 0.375rem;
131
+
132
+ > :first-child {
133
+ margin-bottom: 0.125rem;
134
+ }
130
135
 
131
136
  // Deprecated: set aria-invalid="true" on the control instead
132
137
  &--error {
@@ -164,6 +169,7 @@
164
169
 
165
170
  &__description {
166
171
  font-size: $font-size-xs;
172
+ line-height: 1.25;
167
173
  color: var(--fg-muted);
168
174
  }
169
175
 
@@ -72,11 +72,16 @@
72
72
  z-index: $z-sticky - 1;
73
73
  margin-top: -$spacing-lg;
74
74
  margin-inline: -$spacing-lg;
75
- padding: $spacing-lg $spacing-lg $spacing-sm;
75
+ padding: $spacing-sm $spacing-lg;
76
76
  background-color: var(--bg);
77
77
 
78
+ // Longhands, not the animation shorthand: a minifier can sort the shorthand after
79
+ // animation-timeline, which resets the timeline to auto and shows the shadow at the top
78
80
  @supports (animation-timeline: scroll()) {
79
- animation: pageheader-pinned linear both;
81
+ animation-name: pageheader-pinned;
82
+ animation-duration: auto;
83
+ animation-timing-function: linear;
84
+ animation-fill-mode: both;
80
85
  animation-timeline: scroll(root);
81
86
  animation-range: 0 $spacing-lg;
82
87
  }
@@ -1,6 +1,6 @@
1
1
  import { Toggle } from './toggle.js';
2
2
 
3
- const ACTIONBAR_MORE_ICON = '<svg class="icon" viewBox="0 0 24 24"><path d="M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/><path d="M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/><path d="M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/></svg>';
3
+ const ACTIONBAR_MORE_ICON = '<svg class="icon" viewBox="0 0 24 24"><path d="M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/><path d="M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/><path d="M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/></svg>';
4
4
  const OVERFLOW_RANK = { low: 1, medium: 2 };
5
5
  let overflowMenuCount = 0;
6
6