@djangocfg/ui-core 2.1.411 → 2.1.412

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": "@djangocfg/ui-core",
3
- "version": "2.1.411",
3
+ "version": "2.1.412",
4
4
  "description": "Pure React UI component library without Next.js dependencies - for Electron, Vite, CRA apps",
5
5
  "keywords": [
6
6
  "ui-components",
@@ -95,7 +95,7 @@
95
95
  "check": "tsc --noEmit"
96
96
  },
97
97
  "peerDependencies": {
98
- "@djangocfg/i18n": "^2.1.411",
98
+ "@djangocfg/i18n": "^2.1.412",
99
99
  "consola": "^3.4.2",
100
100
  "lucide-react": "^0.545.0",
101
101
  "moment": "^2.30.1",
@@ -166,8 +166,8 @@
166
166
  "vaul": "1.1.2"
167
167
  },
168
168
  "devDependencies": {
169
- "@djangocfg/i18n": "^2.1.411",
170
- "@djangocfg/typescript-config": "^2.1.411",
169
+ "@djangocfg/i18n": "^2.1.412",
170
+ "@djangocfg/typescript-config": "^2.1.412",
171
171
  "@types/node": "^25.2.3",
172
172
  "@types/react": "^19.2.15",
173
173
  "@types/react-dom": "^19.2.3",
@@ -58,13 +58,23 @@ const SelectTrigger = React.forwardRef<
58
58
  <SelectPrimitive.Trigger
59
59
  ref={ref}
60
60
  className={cn(
61
- "flex h-10 w-full items-center justify-between whitespace-nowrap rounded-[var(--radius)] border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
61
+ "flex h-10 w-full items-center justify-between whitespace-nowrap rounded-[var(--radius)] border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
62
62
  className
63
63
  )}
64
64
  {...props}
65
65
  >
66
- <span className="flex items-center gap-2 flex-1 min-w-0">
67
- {Icon && <Icon className="h-4 w-4 shrink-0" />}
66
+ {/*
67
+ * Outer wrapper is a flex row so a leading `icon` (any size) stays
68
+ * vertically centered with the value text. `line-clamp-1` is applied
69
+ * to the value child, NOT this wrapper — putting it here would set
70
+ * `display:-webkit-box` and silently kill the flex centering.
71
+ */}
72
+ <span className="flex items-center gap-2 flex-1 min-w-0 [&>span]:line-clamp-1">
73
+ {Icon && (
74
+ <span className="flex shrink-0 items-center justify-center">
75
+ <Icon className="h-4 w-4" />
76
+ </span>
77
+ )}
68
78
  {children}
69
79
  </span>
70
80
  <SelectPrimitive.Icon asChild>