noph-ui 0.26.3 → 0.26.5

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.
@@ -40,7 +40,7 @@
40
40
  errorRaw && 'error',
41
41
  disabled && 'disabled',
42
42
  required && !noAsterisk && 'asterisk',
43
- !value && 'is-empty',
43
+ (value === null || value === undefined || value === '') && 'is-empty',
44
44
  animateLabel && 'animate-label',
45
45
  attributes.class,
46
46
  ]}
@@ -69,7 +69,12 @@
69
69
  </svg>
70
70
  <select
71
71
  oninput={(event) => {
72
- if ((!value && event.currentTarget.value) || (value && !event.currentTarget.value)) {
72
+ if (
73
+ (!animateLabel &&
74
+ (value === null || value === undefined || value === '') &&
75
+ event.currentTarget.value) ||
76
+ (value !== null && value !== undefined && value !== '' && !event.currentTarget.value)
77
+ ) {
73
78
  animateLabel = true
74
79
  }
75
80
  onchange?.(event)
@@ -204,6 +209,9 @@
204
209
  .arrow {
205
210
  padding-inline: 0.375rem;
206
211
  padding-block: 0.5625rem;
212
+ box-sizing: border-box;
213
+ width: 24px;
214
+ height: 24px;
207
215
  fill: currentColor;
208
216
  position: absolute;
209
217
  pointer-events: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.26.3",
3
+ "version": "0.26.5",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {