@charcoal-ui/react 4.7.1 → 4.7.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.
- package/dist/components/HintText/index.d.ts +1 -1
- package/dist/components/HintText/index.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +6 -6
- package/src/components/HintText/index.tsx +2 -2
- package/src/index.ts +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@charcoal-ui/react",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"tsup": "^6.5.0",
|
|
50
50
|
"typescript": "^4.9.5",
|
|
51
51
|
"vitest": "^2.0.1",
|
|
52
|
-
"@charcoal-ui/esbuild-plugin-styled-components": "4.7.
|
|
52
|
+
"@charcoal-ui/esbuild-plugin-styled-components": "4.7.2"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@react-aria/button": "^3.9.1",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"react-spring": "^9.0.0",
|
|
68
68
|
"react-stately": "^3.26.0",
|
|
69
69
|
"warning": "^4.0.3",
|
|
70
|
-
"@charcoal-ui/
|
|
71
|
-
"@charcoal-ui/
|
|
72
|
-
"@charcoal-ui/
|
|
73
|
-
"@charcoal-ui/utils": "4.7.
|
|
70
|
+
"@charcoal-ui/icons": "4.7.2",
|
|
71
|
+
"@charcoal-ui/theme": "4.7.2",
|
|
72
|
+
"@charcoal-ui/foundation": "4.7.2",
|
|
73
|
+
"@charcoal-ui/utils": "4.7.2"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"react": ">=17.0.0",
|
|
@@ -7,13 +7,13 @@ import { useClassNames } from '../../_lib/useClassNames'
|
|
|
7
7
|
export type HintTextContext = 'page' | 'section'
|
|
8
8
|
export interface HintTextProps {
|
|
9
9
|
children: ReactNode
|
|
10
|
-
context
|
|
10
|
+
context?: HintTextContext
|
|
11
11
|
className?: string
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export default function HintText({
|
|
15
15
|
children,
|
|
16
|
-
context,
|
|
16
|
+
context = 'section',
|
|
17
17
|
className,
|
|
18
18
|
}: HintTextProps) {
|
|
19
19
|
const classNames = useClassNames('charcoal-hint-text', className)
|
package/src/index.ts
CHANGED
|
@@ -74,4 +74,8 @@ export {
|
|
|
74
74
|
} from './components/SegmentedControl'
|
|
75
75
|
export { default as Checkbox, type CheckboxProps } from './components/Checkbox'
|
|
76
76
|
export { default as TagItem, type TagItemProps } from './components/TagItem'
|
|
77
|
-
export {
|
|
77
|
+
export {
|
|
78
|
+
default as HintText,
|
|
79
|
+
type HintTextProps,
|
|
80
|
+
type HintTextContext,
|
|
81
|
+
} from './components/HintText'
|