@microsoft/arbutus.accordion
Advanced tools
Comparing version 0.0.10 to 1.0.0
@@ -5,5 +5,4 @@ import { mergeClasses } from '@griffel/react'; | ||
import { AnimatePresence } from 'framer-motion'; | ||
import { nanoid } from 'nanoid'; | ||
import * as React from 'react'; | ||
import { useMemo, useState } from 'react'; | ||
import { useId, useState } from 'react'; | ||
import { useAccordionItemStyles } from './accordion-item.styles'; | ||
@@ -14,4 +13,4 @@ import { FadeMotion, SlideMotion } from './motion'; | ||
const handleExpandClick = () => setIsExpanded(!isExpanded); | ||
const a11yLabelId = useMemo(() => nanoid(), []); | ||
const a11yContentId = useMemo(() => nanoid(), []); | ||
const a11yLabelId = useId(); | ||
const a11yContentId = useId(); | ||
// Styles | ||
@@ -18,0 +17,0 @@ const classes = useAccordionItemStyles(); |
{ | ||
"name": "@microsoft/arbutus.accordion", | ||
"version": "0.0.10", | ||
"version": "1.0.0", | ||
"description": "Accordion list component.", | ||
@@ -20,17 +20,16 @@ "main": "lib/index.js", | ||
"peerDependencies": { | ||
"react": ">=16.8.0 <=18.2.0", | ||
"react-dom": ">=16.8.0 <=18.2.0" | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
}, | ||
"dependencies": { | ||
"@microsoft/arbutus.icon": "0.1.1", | ||
"@microsoft/arbutus.text": "0.1.3", | ||
"@fluentui/react-theme": "^9.1.0", | ||
"@griffel/react": "^1.5.2", | ||
"framer-motion": "^10.2.3", | ||
"nanoid": "^4.0.0" | ||
"@microsoft/arbutus.icon": "1.0.0", | ||
"@microsoft/arbutus.text": "1.0.0", | ||
"@fluentui/react-theme": "^9.1.5", | ||
"@griffel/react": "^1.5.5", | ||
"framer-motion": "^10.3.1" | ||
}, | ||
"devDependencies": { | ||
"@microsoft/arbutus.ts": "0.0.2", | ||
"typescript": "^4.9.4" | ||
"typescript": "^4.9.5" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7
1
19527
200
+ Added@microsoft/arbutus.icon@1.0.0(transitive)
+ Added@microsoft/arbutus.style-utilities@1.0.0(transitive)
+ Added@microsoft/arbutus.text@1.0.0(transitive)
+ Added@microsoft/arbutus.theming@1.0.0(transitive)
+ Added@microsoft/arbutus.use-css-vars@1.0.0(transitive)
+ Added@microsoft/arbutus.use-prefers-color-scheme@1.0.0(transitive)
+ Addedreact@18.3.1(transitive)
+ Addedreact-dom@18.3.1(transitive)
- Removednanoid@^4.0.0
- Removed@microsoft/arbutus.icon@0.1.1(transitive)
- Removed@microsoft/arbutus.style-utilities@0.0.2(transitive)
- Removed@microsoft/arbutus.text@0.1.3(transitive)
- Removed@microsoft/arbutus.theming@0.0.6(transitive)
- Removed@microsoft/arbutus.use-css-vars@0.0.3(transitive)
- Removed@microsoft/arbutus.use-prefers-color-scheme@0.0.4(transitive)
- Removednanoid@4.0.2(transitive)
- Removedreact@18.2.0(transitive)
- Removedreact-dom@18.2.0(transitive)
Updated@fluentui/react-theme@^9.1.5
Updated@griffel/react@^1.5.5
Updatedframer-motion@^10.3.1