@nice2dev/ui-core 1.3.14 → 1.3.16

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @nice2dev/ui-core — Changelog
2
2
 
3
+ ## 1.3.16
4
+
5
+ No changes in this release.
6
+
7
+ ## 1.3.15
8
+
9
+ ### Patch Changes
10
+
11
+ - 7fde5a6: From OmniVerk's list (1.3.15, §19–20):
12
+
13
+ - **NiceCard `icon`** — an icon before the title in the header, sized to the title's font and coloured like it. A header icon no longer needs a node cast to `string` as the `title`.
14
+ - **NiceProgress fills its row.** Its field used to fit its content, which left the bar at its 200 px minimum. `controlWidth` still sets a width.
15
+ - **`--nice-field-control-width` from CSS widens the inputs too.** Until now, only a `style` attribute holding the variable (the `controlWidth` prop) made text, number, masked and password inputs fill the field. A value inherited from an ancestor widened the field but left the input content-sized. Without the variable, inputs stay content-sized as before.
16
+ - **NicePasswordInput** stretches like the other inputs. Its input sat in a `display: contents` wrapper that the stretch rule missed.
17
+ - The `controlWidth` docs say what it does. They used to claim "defaults to 100% in column layout".
18
+
3
19
  ## 1.3.14
4
20
 
5
21
  ### Patch Changes
@@ -100,7 +100,11 @@ export interface NiceFormFieldProps extends NiceBaseProps {
100
100
  loading?: boolean;
101
101
  /** Explicit width for the label (e.g. '120px', '30%'). Only applies when labelPlacement is 'left'. */
102
102
  labelWidth?: string | number;
103
- /** Explicit width for the control (e.g. '200px', '50%'). Defaults to 100% in column layout. */
103
+ /**
104
+ * Width of the field (e.g. '200px', '50%', '100%'); text inputs then fill it. It sets
105
+ * `--nice-field-control-width`, which an ancestor can also set in CSS for every field below it.
106
+ * Without either the field fits its control; progress bars fill their row.
107
+ */
104
108
  controlWidth?: string | number;
105
109
  /** When `true`, the control renders as a clickable label-style display of the current value
106
110
  * (no input border/chrome). Click switches it into the regular editable control. Useful for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/ui-core",
3
- "version": "1.3.14",
3
+ "version": "1.3.16",
4
4
  "description": "Nice2Dev UI Core — Types, hooks, i18n, a11y, datasource, theme, animations, icons and responsive utilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -38,8 +38,8 @@
38
38
  "react-dom": ">=17.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@nice2dev/i18n": "^1.3.14",
42
- "@nice2dev/testing": "^1.3.14",
41
+ "@nice2dev/i18n": "^1.3.16",
42
+ "@nice2dev/testing": "^1.3.16",
43
43
  "@types/react": "^19.2.18",
44
44
  "@types/react-dom": "^19.2.7",
45
45
  "@vitejs/plugin-react": "^4.7.0",
@@ -48,7 +48,7 @@
48
48
  "rimraf": "^6.1.3",
49
49
  "typescript": "^5.9.3",
50
50
  "vite": "^6.4.1",
51
- "vitest": "^4.1.11"
51
+ "vitest": "^4.1.12"
52
52
  },
53
53
  "author": "NiceToDev <contact@nicetodev.com>",
54
54
  "license": "SEE LICENSE IN LICENSE",