noph-ui 0.15.0 → 0.15.2

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.
@@ -19,7 +19,7 @@
19
19
  ...attributes
20
20
  }: ButtonProps = $props()
21
21
 
22
- let uid = $props.id()
22
+ const uid = $props.id()
23
23
 
24
24
  const isButton = (obj: unknown): obj is HTMLButtonAttributes => {
25
25
  return (obj as HTMLAnchorAttributes).href === undefined
@@ -22,7 +22,7 @@
22
22
  ...attributes
23
23
  }: IconButtonProps = $props()
24
24
 
25
- let uid = $props.id()
25
+ const uid = $props.id()
26
26
  let selectedState = $state(!toggle || selected)
27
27
  let touchEl: HTMLSpanElement | undefined = $state()
28
28
 
@@ -73,7 +73,7 @@
73
73
  width: 18px;
74
74
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
75
75
  cursor: pointer;
76
- margin: max(0px, (48px - 18px)/2);
76
+ margin: var(--np-checkbox-margin, max(0px, (48px - 18px)/2));
77
77
  }
78
78
  .np-host:has(input:disabled) {
79
79
  cursor: default;
@@ -133,6 +133,7 @@
133
133
  z-index: 1;
134
134
  padding-left: 1rem;
135
135
  padding-right: 1rem;
136
+ overflow: hidden;
136
137
  }
137
138
  .np-chip-icon-checked {
138
139
  display: none;
@@ -161,6 +162,9 @@
161
162
  line-height: 1.25rem;
162
163
  font-size: 0.875rem;
163
164
  font-weight: 500;
165
+ white-space: pre;
166
+ overflow: hidden;
167
+ text-overflow: ellipsis;
164
168
  }
165
169
  .np-filter-chip::before {
166
170
  content: '';
@@ -125,6 +125,7 @@
125
125
  z-index: 1;
126
126
  padding-left: 1rem;
127
127
  padding-right: 2px;
128
+ overflow: hidden;
128
129
  }
129
130
  .np-chip-icon {
130
131
  color: var(--np-color-primary);
@@ -138,6 +139,9 @@
138
139
  font-size: 0.875rem;
139
140
  font-weight: 500;
140
141
  padding-right: 2px;
142
+ white-space: pre;
143
+ overflow: hidden;
144
+ text-overflow: ellipsis;
141
145
  }
142
146
  .np-filter-chip::before {
143
147
  content: '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {
@@ -52,27 +52,27 @@
52
52
  "svelte": "^5.20.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@eslint/js": "^9.21.0",
55
+ "@eslint/js": "^9.22.0",
56
56
  "@material/material-color-utilities": "^0.3.0",
57
- "@playwright/test": "^1.50.1",
57
+ "@playwright/test": "^1.51.0",
58
58
  "@sveltejs/adapter-vercel": "^5.6.3",
59
- "@sveltejs/kit": "^2.18.0",
59
+ "@sveltejs/kit": "^2.19.0",
60
60
  "@sveltejs/package": "^2.3.10",
61
61
  "@sveltejs/vite-plugin-svelte": "^5.0.3",
62
62
  "@types/eslint": "^9.6.1",
63
- "eslint": "^9.21.0",
64
- "eslint-config-prettier": "^10.0.2",
65
- "eslint-plugin-svelte": "^3.0.2",
63
+ "eslint": "^9.22.0",
64
+ "eslint-config-prettier": "^10.1.1",
65
+ "eslint-plugin-svelte": "^3.1.0",
66
66
  "globals": "^16.0.0",
67
67
  "prettier": "^3.5.3",
68
68
  "prettier-plugin-svelte": "^3.3.3",
69
- "publint": "^0.3.8",
70
- "svelte": "^5.22.1",
71
- "svelte-check": "^4.1.4",
69
+ "publint": "^0.3.9",
70
+ "svelte": "^5.22.6",
71
+ "svelte-check": "^4.1.5",
72
72
  "typescript": "^5.8.2",
73
- "typescript-eslint": "^8.26.0",
74
- "vite": "^6.2.0",
75
- "vitest": "^3.0.7"
73
+ "typescript-eslint": "^8.26.1",
74
+ "vite": "^6.2.1",
75
+ "vitest": "^3.0.8"
76
76
  },
77
77
  "svelte": "./dist/index.js",
78
78
  "types": "./dist/index.d.ts",