@fvc/typography 3.1.0-next-11b4ecc91aa3b77b53faa32e4cefb2e81c195686 → 3.1.0

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +79 -3
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @fvc/typography
2
2
 
3
- ## 3.1.0-next-11b4ecc91aa3b77b53faa32e4cefb2e81c195686
3
+ ## 3.1.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -73,8 +73,84 @@
73
73
  - 06c13be: Formatting-only pass across `@fvc/utils`, `@fvc/notification`, and `@fvc/typography`. No public API change, no behavioural change, no dependency change — Prettier / ESLint auto-fix output only.
74
74
  - Updated dependencies [06c13be]
75
75
  - Updated dependencies
76
- - @fvc/utils@3.0.4-next-11b4ecc91aa3b77b53faa32e4cefb2e81c195686
77
- - @fvc/icons@1.1.6-next-11b4ecc91aa3b77b53faa32e4cefb2e81c195686
76
+ - @fvc/utils@3.0.4
77
+ - @fvc/icons@1.1.6
78
+
79
+ ## 3.1.0-rc.0
80
+
81
+ ### Minor Changes
82
+
83
+ - 09b0f0a: Add semantic size prop to Typography.Link and align CSS tokens with design system
84
+
85
+ ### Breaking changes
86
+
87
+ **`Typography.Link` default font changed from `Montserrat` to `Roboto`.**
88
+ The Link component now renders in Roboto Bold by default, matching the Figma
89
+ design-system specification (Body/LINK token). Previously it defaulted to
90
+ Montserrat.
91
+
92
+ **`Typography.Link` now defaults to `weight="700"`.**
93
+ Previously the weight was not set by default and was inherited from the
94
+ surrounding context. It is now always Bold unless overridden via the `weight`
95
+ prop.
96
+
97
+ **Link underline rendering changed.**
98
+ `text-decoration-skip-ink: none`, `text-underline-position: from-font`, and
99
+ `text-decoration-thickness: from-font` are now applied by default. Consumers
100
+ who relied on browser-default underline rendering will see a visual difference.
101
+
102
+ ### Migration
103
+
104
+ If your application overrides the Link font or weight, no change is needed —
105
+ explicit prop values take precedence over the new defaults.
106
+
107
+ To restore the previous Montserrat rendering, pass `font="Montserrat"` and
108
+ `weight="400"` (or whichever weight you used before) explicitly:
109
+
110
+ ```tsx
111
+ <Typography.Link font="Montserrat" weight="400" href="...">
112
+ Link text
113
+ </Typography.Link>
114
+ ```
115
+
116
+ ### New feature
117
+
118
+ `Typography.Link` now accepts `size="small"` and `size="medium"` as named
119
+ design-system sizes in addition to the existing numeric override:
120
+
121
+ ```tsx
122
+ <Typography.Link size="medium" href="...">Link</Typography.Link> {/* 16px / lh 20px */}
123
+ <Typography.Link size="small" href="...">Link</Typography.Link> {/* 14px / lh 16px */}
124
+ ```
125
+
126
+ Existing numeric sizes (`size={14}`, `size={16}`, etc.) continue to work
127
+ without any change.
128
+
129
+ - cfe6f97: New feature — editable mode
130
+
131
+ - Typography.Text and Typography.Paragraph now accept an editable prop (boolean | TextEditableConfig | ParagraphEditableConfig). When set, the component renders a custom action bar (pencil trigger, confirm ✓, cancel ⊘, clear 🗑) that replaces Ant Design's default controls and matches the Figma design pixel-for-pixel.
132
+ - Both uncontrolled (component owns editing state) and controlled (editing prop + onStart/onEnd/onCancel callbacks) patterns are supported.
133
+ - Typography.Paragraph additionally supports autoSize: { minRows, maxRows } for textarea auto-resize in edit mode.
134
+ - Cancelling reverts the value to a pre-edit snapshot; clearing fires onChange("").
135
+ - Exported new types: TextEditableConfig, ParagraphEditableConfig.
136
+
137
+ Peer dependency
138
+
139
+ - Added @fvc/icons: "^1.0.0" as a peer dependency — the action bar icons (Mode, CheckCircleOutline, Block, DeleteOutline) are sourced from it.
140
+
141
+ Styles
142
+
143
+ - Editable styles consolidated into Typography.scss (previously a separate Editable.scss that was also double-imported in Typography.tsx).
144
+ - Added CSS tokens for the input field (--typography-editable-border, --typography-editable-padding, --typography-editable-focus-shadow, font/color tokens) and action bar (--typography-editable-action-\*-color, --typography-editable-action-btn-padding, --typography-editable-action-clear-gap: 40px) — all overridable from the consumer's stylesheet.
145
+ - Added .fvc-typography-disabled rule applying --typography-editable-disabled-color to override Ant Design's default disabled color with the design-system secondary text token.
146
+
147
+ ### Patch Changes
148
+
149
+ - 06c13be: Formatting-only pass across `@fvc/utils`, `@fvc/notification`, and `@fvc/typography`. No public API change, no behavioural change, no dependency change — Prettier / ESLint auto-fix output only.
150
+ - Updated dependencies [06c13be]
151
+ - Updated dependencies
152
+ - @fvc/utils@3.0.4-rc.0
153
+ - @fvc/icons@1.1.6-rc.0
78
154
 
79
155
  ## 3.0.3
80
156
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fvc/typography",
3
- "version": "3.1.0-next-11b4ecc91aa3b77b53faa32e4cefb2e81c195686",
3
+ "version": "3.1.0",
4
4
  "main": "./dist/lib/index.js",
5
5
  "types": "./dist/lib/typography/src/index.d.ts",
6
6
  "files": [
@@ -41,8 +41,8 @@
41
41
  "antd"
42
42
  ],
43
43
  "peerDependencies": {
44
- "@fvc/icons": "1.1.6-next-11b4ecc91aa3b77b53faa32e4cefb2e81c195686",
45
- "@fvc/utils": "3.0.4-next-11b4ecc91aa3b77b53faa32e4cefb2e81c195686",
44
+ "@fvc/icons": "^1.1.6",
45
+ "@fvc/utils": "^3.0.4",
46
46
  "react": "^18.0.0",
47
47
  "antd": "^5.0.0"
48
48
  }