@contentful/f36-copybutton 4.0.1 → 4.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.
- package/CHANGELOG.md +11 -0
- package/README.mdx +2 -1
- package/dist/main.js +0 -0
- package/dist/main.js.map +0 -0
- package/dist/module.js +0 -0
- package/dist/module.js.map +0 -0
- package/dist/types.d.ts +1 -13
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [4.1.0](https://github.com/contentful/forma-36/compare/@contentful/f36-copybutton@4.0.1...@contentful/f36-copybutton@4.1.0) (2022-01-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* implement props list redesign [BAU-535] ([#1756](https://github.com/contentful/forma-36/issues/1756)) ([21c57e7](https://github.com/contentful/forma-36/commit/21c57e72008b75990d03af4e7500edc1c7f3d26d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [4.0.1](https://github.com/contentful/forma-36/compare/@contentful/f36-copybutton@4.0.0...@contentful/f36-copybutton@4.0.1) (2022-01-11)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @contentful/f36-copybutton
|
package/README.mdx
CHANGED
|
@@ -6,6 +6,7 @@ section: 'buttonComponents'
|
|
|
6
6
|
slug: /components/copy-button/
|
|
7
7
|
github: 'https://github.com/contentful/forma-36/tree/master/packages/components/copybutton'
|
|
8
8
|
typescript: ./src/CopyButton.tsx
|
|
9
|
+
storybook: 'https://v4-f36-storybook.netlify.app/?path=/story/components-copybutton--default'
|
|
9
10
|
---
|
|
10
11
|
|
|
11
12
|
The `CopyButton` is a styled button that copies text into the user's clipboard.
|
|
@@ -50,4 +51,4 @@ You can pass a custom `aria-label` through the `label` prop.
|
|
|
50
51
|
|
|
51
52
|
## Props (API reference)
|
|
52
53
|
|
|
53
|
-
<
|
|
54
|
+
<PropsTable of="CopyButton" />
|
package/dist/main.js
CHANGED
|
File without changes
|
package/dist/main.js.map
CHANGED
|
File without changes
|
package/dist/module.js
CHANGED
|
File without changes
|
package/dist/module.js.map
CHANGED
|
File without changes
|
package/dist/types.d.ts
CHANGED
|
@@ -40,18 +40,6 @@ export interface CopyButtonProps extends CommonProps {
|
|
|
40
40
|
*/
|
|
41
41
|
size?: 'small' | 'medium';
|
|
42
42
|
}
|
|
43
|
-
export const CopyButton: React.ForwardRefExoticComponent<
|
|
44
|
-
onCopy?: (string: any) => void;
|
|
45
|
-
tooltipCopiedText?: string;
|
|
46
|
-
tooltipText?: string;
|
|
47
|
-
tooltipProps?: Omit<TooltipProps, 'content' | 'children'>;
|
|
48
|
-
value: string;
|
|
49
|
-
label?: string;
|
|
50
|
-
isDisabled?: boolean;
|
|
51
|
-
size?: 'small' | 'medium';
|
|
52
|
-
className?: string;
|
|
53
|
-
testId?: string;
|
|
54
|
-
style?: React.CSSProperties;
|
|
55
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
export const CopyButton: React.ForwardRefExoticComponent<CopyButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
56
44
|
|
|
57
45
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;ACSA,gCAAiC,SAAQ,WAAW;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IAC1B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;IAC1D;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC3B;AA0ED,OAAO,MAAM
|
|
1
|
+
{"mappings":";;;ACSA,gCAAiC,SAAQ,WAAW;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IAC1B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;IAC1D;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC3B;AA0ED,OAAO,MAAM,kGAA0C,CAAC","sources":["packages/components/copybutton/src/src/CopyButton.styles.ts","packages/components/copybutton/src/src/CopyButton.tsx","packages/components/copybutton/src/src/index.ts","packages/components/copybutton/src/index.ts"],"sourcesContent":[null,null,null,"export { CopyButton } from './CopyButton';\nexport type { CopyButtonProps } from './CopyButton';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/f36-copybutton",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Forma 36: CopyButton component",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "parcel build"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@babel/runtime": "^7.6.2",
|
|
10
|
-
"@contentful/f36-core": "^4.0
|
|
11
|
-
"@contentful/f36-icons": "^4.0.
|
|
10
|
+
"@contentful/f36-core": "^4.1.0",
|
|
11
|
+
"@contentful/f36-icons": "^4.0.2",
|
|
12
12
|
"@contentful/f36-tokens": "^4.0.0",
|
|
13
|
-
"@contentful/f36-tooltip": "^4.0
|
|
13
|
+
"@contentful/f36-tooltip": "^4.1.0",
|
|
14
14
|
"emotion": "^10.0.17",
|
|
15
15
|
"react-copy-to-clipboard": "^5.0.3"
|
|
16
16
|
},
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "2ea3b5b814dbe3fb5e0b1b6adf65aff768e6855e"
|
|
38
38
|
}
|