@helpscout/ui-kit-react 0.6.2 → 0.7.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/dist/lib/components/collapsible/collapsible.d.ts +32 -0
- package/dist/lib/components/collapsible/collapsible.d.ts.map +1 -0
- package/dist/lib/components/collapsible/collapsible.test.d.ts +2 -0
- package/dist/lib/components/collapsible/collapsible.test.d.ts.map +1 -0
- package/dist/prop-types.json +158 -0
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DisclosureProps } from 'react-aria-components';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export type CollapsibleClassNames = Partial<{
|
|
4
|
+
root: string;
|
|
5
|
+
trigger: string;
|
|
6
|
+
chevron: string;
|
|
7
|
+
heading: string;
|
|
8
|
+
panel: string;
|
|
9
|
+
content: string;
|
|
10
|
+
}>;
|
|
11
|
+
export type CollapsibleProps = Omit<DisclosureProps, "children"> & {
|
|
12
|
+
title: string;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
error?: string;
|
|
15
|
+
defaultStatus?: "open" | "closed";
|
|
16
|
+
isOpen?: boolean;
|
|
17
|
+
onOpenChange?: (open: boolean) => void;
|
|
18
|
+
className?: string;
|
|
19
|
+
classNames?: Partial<{
|
|
20
|
+
heading: string;
|
|
21
|
+
trigger: string;
|
|
22
|
+
chevronWrap: string;
|
|
23
|
+
chevron: string;
|
|
24
|
+
panel: string;
|
|
25
|
+
content: string;
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
28
|
+
export declare function Collapsible({ title, children, defaultStatus, isOpen, className, classNames, onOpenChange, }: CollapsibleProps): JSX.Element;
|
|
29
|
+
export declare namespace Collapsible {
|
|
30
|
+
var displayName: string;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=collapsible.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../../l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.ts","sourceRoot":"","sources":["../../../../lib/components/collapsible/collapsible.test.tsx"],"names":[],"mappings":""}
|
package/dist/prop-types.json
CHANGED
|
@@ -967,6 +967,164 @@
|
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
969
|
},
|
|
970
|
+
"Collapsible": {
|
|
971
|
+
"isDisabled": {
|
|
972
|
+
"defaultValue": null,
|
|
973
|
+
"description": "Whether the disclosure is disabled.",
|
|
974
|
+
"name": "isDisabled",
|
|
975
|
+
"parent": {
|
|
976
|
+
"fileName": "apps-platform/node_modules/.pnpm/@react-aria+disclosure@3.1.0_react-dom@18.3.1_react@18.3.1/node_modules/@react-aria/disclosure/dist/types.d.ts",
|
|
977
|
+
"name": "AriaDisclosureProps"
|
|
978
|
+
},
|
|
979
|
+
"declarations": [
|
|
980
|
+
{
|
|
981
|
+
"fileName": "apps-platform/node_modules/.pnpm/@react-aria+disclosure@3.1.0_react-dom@18.3.1_react@18.3.1/node_modules/@react-aria/disclosure/dist/types.d.ts",
|
|
982
|
+
"name": "AriaDisclosureProps"
|
|
983
|
+
}
|
|
984
|
+
],
|
|
985
|
+
"required": false,
|
|
986
|
+
"type": {
|
|
987
|
+
"name": "boolean"
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
"onExpandedChange": {
|
|
991
|
+
"defaultValue": null,
|
|
992
|
+
"description": "Handler that is called when the disclosure's expanded state changes.",
|
|
993
|
+
"name": "onExpandedChange",
|
|
994
|
+
"parent": {
|
|
995
|
+
"fileName": "apps-platform/node_modules/.pnpm/@react-aria+disclosure@3.1.0_react-dom@18.3.1_react@18.3.1/node_modules/@react-aria/disclosure/dist/types.d.ts",
|
|
996
|
+
"name": "AriaDisclosureProps"
|
|
997
|
+
},
|
|
998
|
+
"declarations": [
|
|
999
|
+
{
|
|
1000
|
+
"fileName": "apps-platform/node_modules/.pnpm/@react-aria+disclosure@3.1.0_react-dom@18.3.1_react@18.3.1/node_modules/@react-aria/disclosure/dist/types.d.ts",
|
|
1001
|
+
"name": "AriaDisclosureProps"
|
|
1002
|
+
}
|
|
1003
|
+
],
|
|
1004
|
+
"required": false,
|
|
1005
|
+
"type": {
|
|
1006
|
+
"name": "(isExpanded: boolean) => void"
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
"isExpanded": {
|
|
1010
|
+
"defaultValue": null,
|
|
1011
|
+
"description": "Whether the disclosure is expanded (controlled).",
|
|
1012
|
+
"name": "isExpanded",
|
|
1013
|
+
"parent": {
|
|
1014
|
+
"fileName": "apps-platform/node_modules/.pnpm/@react-aria+disclosure@3.1.0_react-dom@18.3.1_react@18.3.1/node_modules/@react-aria/disclosure/dist/types.d.ts",
|
|
1015
|
+
"name": "AriaDisclosureProps"
|
|
1016
|
+
},
|
|
1017
|
+
"declarations": [
|
|
1018
|
+
{
|
|
1019
|
+
"fileName": "apps-platform/node_modules/.pnpm/@react-aria+disclosure@3.1.0_react-dom@18.3.1_react@18.3.1/node_modules/@react-aria/disclosure/dist/types.d.ts",
|
|
1020
|
+
"name": "AriaDisclosureProps"
|
|
1021
|
+
}
|
|
1022
|
+
],
|
|
1023
|
+
"required": false,
|
|
1024
|
+
"type": {
|
|
1025
|
+
"name": "boolean"
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
"defaultExpanded": {
|
|
1029
|
+
"defaultValue": null,
|
|
1030
|
+
"description": "Whether the disclosure is expanded by default (uncontrolled).",
|
|
1031
|
+
"name": "defaultExpanded",
|
|
1032
|
+
"parent": {
|
|
1033
|
+
"fileName": "apps-platform/node_modules/.pnpm/@react-aria+disclosure@3.1.0_react-dom@18.3.1_react@18.3.1/node_modules/@react-aria/disclosure/dist/types.d.ts",
|
|
1034
|
+
"name": "AriaDisclosureProps"
|
|
1035
|
+
},
|
|
1036
|
+
"declarations": [
|
|
1037
|
+
{
|
|
1038
|
+
"fileName": "apps-platform/node_modules/.pnpm/@react-aria+disclosure@3.1.0_react-dom@18.3.1_react@18.3.1/node_modules/@react-aria/disclosure/dist/types.d.ts",
|
|
1039
|
+
"name": "AriaDisclosureProps"
|
|
1040
|
+
}
|
|
1041
|
+
],
|
|
1042
|
+
"required": false,
|
|
1043
|
+
"type": {
|
|
1044
|
+
"name": "boolean"
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
"id": {
|
|
1048
|
+
"defaultValue": null,
|
|
1049
|
+
"description": "An id for the disclosure when used within a DisclosureGroup, matching the id used in `expandedKeys`.",
|
|
1050
|
+
"name": "id",
|
|
1051
|
+
"parent": {
|
|
1052
|
+
"fileName": "apps-platform/node_modules/.pnpm/react-aria-components@1.13.0_react-dom@18.3.1_react@18.3.1/node_modules/react-aria-components/dist/types.d.ts",
|
|
1053
|
+
"name": "DisclosureProps"
|
|
1054
|
+
},
|
|
1055
|
+
"declarations": [
|
|
1056
|
+
{
|
|
1057
|
+
"fileName": "apps-platform/node_modules/.pnpm/react-aria-components@1.13.0_react-dom@18.3.1_react@18.3.1/node_modules/react-aria-components/dist/types.d.ts",
|
|
1058
|
+
"name": "DisclosureProps"
|
|
1059
|
+
}
|
|
1060
|
+
],
|
|
1061
|
+
"required": false,
|
|
1062
|
+
"type": {
|
|
1063
|
+
"name": "Key"
|
|
1064
|
+
}
|
|
1065
|
+
},
|
|
1066
|
+
"className": {
|
|
1067
|
+
"defaultValue": null,
|
|
1068
|
+
"description": "The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. A function may be provided to compute the class based on component state.",
|
|
1069
|
+
"name": "className",
|
|
1070
|
+
"parent": {
|
|
1071
|
+
"fileName": "apps-platform/node_modules/.pnpm/react-aria-components@1.13.0_react-dom@18.3.1_react@18.3.1/node_modules/react-aria-components/dist/types.d.ts",
|
|
1072
|
+
"name": "StyleRenderProps"
|
|
1073
|
+
},
|
|
1074
|
+
"declarations": [
|
|
1075
|
+
{
|
|
1076
|
+
"fileName": "apps-platform/node_modules/.pnpm/react-aria-components@1.13.0_react-dom@18.3.1_react@18.3.1/node_modules/react-aria-components/dist/types.d.ts",
|
|
1077
|
+
"name": "StyleRenderProps"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"fileName": "ui-kit-react/lib/components/collapsible/collapsible.tsx",
|
|
1081
|
+
"name": "TypeLiteral"
|
|
1082
|
+
}
|
|
1083
|
+
],
|
|
1084
|
+
"required": false,
|
|
1085
|
+
"type": {
|
|
1086
|
+
"name": "ClassNameOrFunction<DisclosureRenderProps>"
|
|
1087
|
+
}
|
|
1088
|
+
},
|
|
1089
|
+
"style": {
|
|
1090
|
+
"defaultValue": null,
|
|
1091
|
+
"description": "The inline [style](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style) for the element. A function may be provided to compute the style based on component state.",
|
|
1092
|
+
"name": "style",
|
|
1093
|
+
"parent": {
|
|
1094
|
+
"fileName": "apps-platform/node_modules/.pnpm/react-aria-components@1.13.0_react-dom@18.3.1_react@18.3.1/node_modules/react-aria-components/dist/types.d.ts",
|
|
1095
|
+
"name": "StyleRenderProps"
|
|
1096
|
+
},
|
|
1097
|
+
"declarations": [
|
|
1098
|
+
{
|
|
1099
|
+
"fileName": "apps-platform/node_modules/.pnpm/react-aria-components@1.13.0_react-dom@18.3.1_react@18.3.1/node_modules/react-aria-components/dist/types.d.ts",
|
|
1100
|
+
"name": "StyleRenderProps"
|
|
1101
|
+
}
|
|
1102
|
+
],
|
|
1103
|
+
"required": false,
|
|
1104
|
+
"type": {
|
|
1105
|
+
"name": "StyleOrFunction<DisclosureRenderProps>"
|
|
1106
|
+
}
|
|
1107
|
+
},
|
|
1108
|
+
"slot": {
|
|
1109
|
+
"defaultValue": null,
|
|
1110
|
+
"description": "A slot name for the component. Slots allow the component to receive props from a parent component.\nAn explicit `null` value indicates that the local props completely override all props received from a parent.",
|
|
1111
|
+
"name": "slot",
|
|
1112
|
+
"parent": {
|
|
1113
|
+
"fileName": "apps-platform/node_modules/.pnpm/react-aria-components@1.13.0_react-dom@18.3.1_react@18.3.1/node_modules/react-aria-components/dist/types.d.ts",
|
|
1114
|
+
"name": "SlotProps"
|
|
1115
|
+
},
|
|
1116
|
+
"declarations": [
|
|
1117
|
+
{
|
|
1118
|
+
"fileName": "apps-platform/node_modules/.pnpm/react-aria-components@1.13.0_react-dom@18.3.1_react@18.3.1/node_modules/react-aria-components/dist/types.d.ts",
|
|
1119
|
+
"name": "SlotProps"
|
|
1120
|
+
}
|
|
1121
|
+
],
|
|
1122
|
+
"required": false,
|
|
1123
|
+
"type": {
|
|
1124
|
+
"name": "string | null"
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
},
|
|
970
1128
|
"Icon": {
|
|
971
1129
|
"icon": {
|
|
972
1130
|
"defaultValue": null,
|