noph-ui 0.26.8 → 0.26.9

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.
@@ -23,8 +23,8 @@
23
23
  border-radius: var(--np-shape-corner-full);
24
24
  position: var(--np-badge-position, absolute);
25
25
  top: var(--np-badge-top, 0);
26
- left: var(--np-badge-left, auto);
27
- right: var(--np-badge-right, auto);
26
+ inset-inline-start: var(--np-badge-start, auto);
27
+ inset-inline-end: var(--np-badge-end, auto);
28
28
  }
29
29
  .np-badge-container-label {
30
30
  height: 1rem;
@@ -119,7 +119,7 @@
119
119
  --np-circular-progress-color: color-mix(in srgb, var(--np-color-on-surface) 38%, transparent);
120
120
  position: absolute;
121
121
  top: 50%;
122
- left: 50%;
122
+ inset-inline-start: 50%;
123
123
  transform: translate(-50%, -50%);
124
124
  }
125
125
  .np-loading .button-icon,
@@ -137,7 +137,7 @@
137
137
  display: inline-flex;
138
138
  user-select: none;
139
139
  align-items: center;
140
- text-align: left;
140
+ text-align: start;
141
141
  overflow: hidden;
142
142
  font-weight: 500;
143
143
  text-decoration: none;
@@ -119,7 +119,7 @@
119
119
  display: flex;
120
120
  justify-content: center;
121
121
  align-items: center;
122
- border-right: 1px solid var(--np-color-outline);
122
+ border-inline-end: 1px solid var(--np-color-outline);
123
123
  position: relative;
124
124
  transition: all 0.15s linear;
125
125
  }
@@ -140,7 +140,7 @@
140
140
  }
141
141
 
142
142
  .np-segmented-button:last-child {
143
- border-right: none;
143
+ border-inline-end: none;
144
144
  }
145
145
 
146
146
  .np-segmented-button input {
@@ -86,7 +86,7 @@
86
86
  opacity: 0;
87
87
  inset: 0;
88
88
  top: -4px;
89
- left: -4px;
89
+ inset-inline-start: -4px;
90
90
  position: absolute;
91
91
  outline: none;
92
92
  cursor: inherit;
@@ -131,8 +131,7 @@
131
131
  fill: currentColor;
132
132
  gap: 0.5rem;
133
133
  z-index: 1;
134
- padding-left: 1rem;
135
- padding-right: 1rem;
134
+ padding-inline: 1rem;
136
135
  overflow: hidden;
137
136
  }
138
137
  .np-chip-icon-checked {
@@ -154,13 +153,13 @@
154
153
  }
155
154
  .np-filter-chip:has(input:checked) .np-filter-chip-label,
156
155
  .np-filter-chip-icon .np-filter-chip-label {
157
- padding-left: 0.5rem;
156
+ padding-inline-start: 0.5rem;
158
157
  }
159
158
  .np-filter-chip-removable {
160
- padding-right: 1px;
159
+ padding-inline-end: 1px;
161
160
  }
162
161
  .np-filter-chip-removable .np-filter-chip-label {
163
- padding-right: 1px;
162
+ padding-inline-end: 1px;
164
163
  }
165
164
  .np-chip-label {
166
165
  line-height: 1.25rem;
@@ -104,8 +104,8 @@
104
104
  opacity: 0;
105
105
  display: flex;
106
106
  align-items: center;
107
- padding-left: 1rem;
108
- padding-right: 2rem;
107
+ padding-inline-start: 1rem;
108
+ padding-inline-end: 2rem;
109
109
  }
110
110
  .np-input-chip {
111
111
  position: relative;
@@ -115,7 +115,7 @@
115
115
  border-radius: var(--np-input-chip-container-shape, var(--np-shape-corner-small));
116
116
  --np-icon-button-icon-color: var(--np-color-on-surface-variant);
117
117
  --np-icon-size: 1.125rem;
118
- padding-right: 1px;
118
+ padding-inline-end: 1px;
119
119
  min-width: 0;
120
120
  }
121
121
  .np-input-chip-label input {
@@ -133,7 +133,7 @@
133
133
  fill: currentColor;
134
134
  gap: 0.5rem;
135
135
  z-index: 1;
136
- padding-left: 1rem;
136
+ padding-inline-start: 1rem;
137
137
  overflow: hidden;
138
138
  }
139
139
  .np-chip-icon {
@@ -141,13 +141,13 @@
141
141
  display: flex;
142
142
  }
143
143
  .np-input-chip-icon .np-input-chip-label {
144
- padding-left: 0.5rem;
144
+ padding-inline-start: 0.5rem;
145
145
  }
146
146
  .np-chip-label {
147
147
  line-height: 1.25rem;
148
148
  font-size: 0.875rem;
149
149
  font-weight: 500;
150
- padding-right: 1px;
150
+ padding-inline-end: 1px;
151
151
  white-space: pre;
152
152
  overflow: hidden;
153
153
  text-overflow: ellipsis;
@@ -10,12 +10,11 @@
10
10
  <style>
11
11
  .inset {
12
12
  width: calc(100% - 1rem);
13
- margin-left: 1rem;
13
+ margin-inline-start: 1rem;
14
14
  }
15
15
  .inset-middle {
16
16
  width: calc(100% - 2rem);
17
- margin-left: 1rem;
18
- margin-right: 1rem;
17
+ margin-inline: 1rem;
19
18
  }
20
19
  .full {
21
20
  width: 100%;
@@ -50,8 +50,8 @@
50
50
  }
51
51
  .np-navigation-wrapper {
52
52
  background-color: var(--np-navigation-drawer-background, var(--np-color-surface-container-low));
53
- border-top-right-radius: var(--np-shape-corner-large);
54
- border-bottom-right-radius: var(--np-shape-corner-large);
53
+ border-start-end-radius: var(--np-shape-corner-large);
54
+ border-end-end-radius: var(--np-shape-corner-large);
55
55
  width: var(--np-navigation-drawer-width, 22.5rem);
56
56
  height: var(--np-navigation-drawer-height, 100dvh);
57
57
  overflow-y: auto;
@@ -72,7 +72,7 @@
72
72
  .np-navigation-drawer-item::before {
73
73
  content: '';
74
74
  position: absolute;
75
- left: 0;
75
+ inset-inline-start: 0;
76
76
  width: 100%;
77
77
  height: 100%;
78
78
  opacity: 0;
@@ -128,7 +128,7 @@
128
128
  line-height: 1.25rem;
129
129
  font-weight: var(--np-navigation-drawer-item-font-weight, 500);
130
130
  flex: 1;
131
- text-align: left;
131
+ text-align: start;
132
132
  overflow: hidden;
133
133
  text-overflow: ellipsis;
134
134
  text-wrap: nowrap;
@@ -163,13 +163,13 @@
163
163
  min-width: 1.5rem;
164
164
  }
165
165
  .np-tab-label-badge {
166
- margin-right: 4px;
166
+ margin-inline-end: 4px;
167
167
  }
168
168
  .np-tab-icon-badge {
169
169
  height: 1.5rem;
170
170
  width: 1.5rem;
171
171
  position: relative;
172
- --np-badge-left: 1.125rem;
172
+ --np-badge-start: 1.125rem;
173
173
  }
174
174
 
175
175
  .np-tab-no-inline {
@@ -184,22 +184,20 @@
184
184
  .np-indicator {
185
185
  position: absolute;
186
186
  bottom: 0;
187
- left: var(--_indicator-gap, 2px);
188
- right: var(--_indicator-gap, 2px);
187
+ inset-inline: var(--_indicator-gap, 2px);
189
188
  height: 3px;
190
189
  }
191
190
 
192
191
  .fallback .np-indicator {
193
192
  background-color: var(--np-color-primary);
194
- border-top-left-radius: var(--np-indicator-radius, var(--np-shape-corner-full));
195
- border-top-right-radius: var(--np-indicator-radius, var(--np-shape-corner-full));
193
+ border-start-start-radius: var(--np-indicator-radius, var(--np-shape-corner-full));
194
+ border-start-end-radius: var(--np-indicator-radius, var(--np-shape-corner-full));
196
195
  }
197
196
 
198
197
  .focus-area {
199
198
  position: absolute;
200
199
  top: 0;
201
- left: 0;
202
- right: 0;
200
+ inset-inline: 0;
203
201
  bottom: var(--_focus-bottom, 0);
204
202
  border-radius: var(--np-shape-corner-medium);
205
203
  transition: height 0.3s ease;
@@ -87,8 +87,8 @@
87
87
  right: anchor(right);
88
88
  bottom: anchor(bottom);
89
89
  background-color: var(--np-color-primary);
90
- border-top-left-radius: var(--np-indicator-radius, var(--np-shape-corner-full));
91
- border-top-right-radius: var(--np-indicator-radius, var(--np-shape-corner-full));
90
+ border-start-start-radius: var(--np-indicator-radius, var(--np-shape-corner-full));
91
+ border-start-end-radius: var(--np-indicator-radius, var(--np-shape-corner-full));
92
92
  position-anchor: --np-tab-indicator;
93
93
  transition: cubic-bezier(0.33, 1, 0.68, 1) 0.3s;
94
94
  }
@@ -137,7 +137,7 @@
137
137
 
138
138
  <label
139
139
  style={(variant === 'outlined'
140
- ? '--_label-text-color:var(--np-outlined-text-field-label-text-color);--top-space:1rem;--bottom-space:1rem;--floating-label-top:-0.5rem;--floating-label-left:-2.25rem;--_focus-outline-width:3px;'
140
+ ? '--_label-text-color:var(--np-outlined-text-field-label-text-color);--top-space:1rem;--bottom-space:1rem;--floating-label-top:-0.5rem;--floating-label-inline-start:-2.25rem;--_focus-outline-width:3px;'
141
141
  : !label?.length
142
142
  ? '--_label-text-color:var(--np-filled-text-field-label-text-color);--np-input-chip-outline-color:var(--np-color-outline);--top-space:1rem;--bottom-space:1rem; '
143
143
  : '--_label-text-color:var(--np-filled-text-field-label-text-color);--np-input-chip-outline-color:var(--np-color-outline); ' +
@@ -307,6 +307,9 @@
307
307
  .error .active-indicator::after {
308
308
  border-bottom-color: var(--np-color-error);
309
309
  }
310
+ .error:hover .active-indicator::after {
311
+ border-bottom-color: var(--np-color-on-error-container);
312
+ }
310
313
  .disabled .active-indicator::before {
311
314
  border-bottom-color: var(--np-color-on-surface);
312
315
  border-bottom-width: 1px;
@@ -548,18 +551,21 @@
548
551
  }
549
552
  .start {
550
553
  color: var(--np-color-on-surface-variant);
551
- margin-left: 0.75rem;
552
- margin-right: 1rem;
554
+ margin-inline-start: 0.75rem;
555
+ margin-inline-end: 1rem;
553
556
  }
554
557
  .end {
555
558
  color: var(--np-color-on-surface-variant);
556
- margin-left: 1rem;
557
- margin-right: 0.75rem;
559
+ margin-inline-start: 1rem;
560
+ margin-inline-end: 0.75rem;
558
561
  }
559
- .error .start,
560
562
  .error .end {
561
563
  color: var(--np-color-error);
562
564
  }
565
+
566
+ .error:hover .end {
567
+ color: var(--np-color-on-error-container);
568
+ }
563
569
  .disabled .start,
564
570
  .disabled .end {
565
571
  color: var(--np-color-on-surface);
@@ -604,14 +610,14 @@
604
610
  margin-inline-start: 1rem;
605
611
  }
606
612
  .with-start .np-outline .label-wrapper {
607
- left: 3.25rem;
613
+ inset-inline-start: 3.25rem;
608
614
  }
609
615
  .with-end .np-outline .label-wrapper {
610
616
  margin-inline-end: 3.25rem;
611
617
  }
612
618
  .with-start.populated .with-start:has(input:focus-visible) .label-wrapper,
613
619
  .with-start:has(textarea:focus-visible) .label-wrapper {
614
- right: -2.25rem;
620
+ inset-inline-end: -2.25rem;
615
621
  }
616
622
 
617
623
  .with-end.populated .with-end:has(input:focus-visible) .label-wrapper,
@@ -637,7 +643,7 @@
637
643
  .field:not(.populated) .label {
638
644
  position: absolute;
639
645
  top: 1rem;
640
- left: 0rem;
646
+ inset-inline-start: 0rem;
641
647
  }
642
648
  .field.populated .label,
643
649
  .field:has(input:focus-visible) .label,
@@ -651,7 +657,7 @@
651
657
  .with-start.populated .label,
652
658
  .with-start:has(input:focus-visible) .label,
653
659
  .with-start:has(textarea:focus-visible) .label {
654
- left: var(--floating-label-left, 0);
660
+ inset-inline-start: var(--floating-label-inline-start, 0);
655
661
  }
656
662
  .label {
657
663
  transition-property: all;
@@ -677,6 +683,12 @@
677
683
  .error:has(textarea:focus-visible) .label {
678
684
  color: var(--np-color-error);
679
685
  }
686
+ .error:hover .label,
687
+ .error:has(input:focus-visible):hover .label,
688
+ .error:has(textarea:focus-visible):hover .label {
689
+ color: var(--np-color-on-error-container);
690
+ }
691
+
680
692
  .disabled .label {
681
693
  color: var(--np-color-on-surface);
682
694
  }
@@ -826,11 +838,24 @@
826
838
  border-color: var(--np-outlined-text-field-focus-outline-color, var(--np-color-primary));
827
839
  color: var(--np-color-primary);
828
840
  }
841
+
842
+ .field:hover .np-outline {
843
+ border-color: var(--np-color-on-surface);
844
+ color: var(--np-color-on-surface);
845
+ }
846
+
829
847
  .error .np-outline,
830
848
  .error:has(input:focus-visible) .np-outline,
831
849
  .error:has(textarea:focus-visible) .np-outline {
832
850
  border-color: var(--np-color-error);
833
851
  }
852
+
853
+ .error:hover .np-outline,
854
+ .error:has(input:focus-visible):hover .np-outline,
855
+ .error:has(textarea:focus-visible):hover .np-outline {
856
+ border-color: var(--np-color-on-error-container);
857
+ }
858
+
834
859
  .disabled .np-outline {
835
860
  border-color: var(--np-color-on-surface);
836
861
  color: var(--np-color-on-surface);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.26.8",
3
+ "version": "0.26.9",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {