@valiantys/atlassian-app-frontend 3.0.0-alpha-31 → 3.0.0-alpha-32
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const u=require("react/jsx-runtime"),d=require("react"),l=require("../panel-stateless/index.cjs.js"),x=({isDefaultExpanded:n=!1,children:a,header:r,headingSize:c,onChange:e})=>{const[t,i]=d.useState(n),o=()=>{const s=!t;i(s),e&&e(s)};return u.jsx(l,{header:r,isExpanded:t,headingSize:c,onChange:o,children:a})};module.exports=x;
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
isDefaultExpanded:
|
|
6
|
-
children:
|
|
7
|
-
header:
|
|
8
|
-
headingSize:
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useState as f } from "react";
|
|
3
|
+
import i from "../panel-stateless/index.es.js";
|
|
4
|
+
const x = ({
|
|
5
|
+
isDefaultExpanded: n = !1,
|
|
6
|
+
children: s,
|
|
7
|
+
header: o,
|
|
8
|
+
headingSize: r,
|
|
9
|
+
onChange: e
|
|
9
10
|
}) => {
|
|
10
|
-
const [
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
|
|
11
|
+
const [t, d] = f(n);
|
|
12
|
+
return /* @__PURE__ */ l(
|
|
13
|
+
i,
|
|
13
14
|
{
|
|
14
|
-
header:
|
|
15
|
-
isExpanded:
|
|
16
|
-
headingSize:
|
|
15
|
+
header: o,
|
|
16
|
+
isExpanded: t,
|
|
17
|
+
headingSize: r,
|
|
17
18
|
onChange: () => {
|
|
18
|
-
|
|
19
|
+
const a = !t;
|
|
20
|
+
d(a), e && e(a);
|
|
19
21
|
},
|
|
20
|
-
children:
|
|
22
|
+
children: s
|
|
21
23
|
}
|
|
22
24
|
);
|
|
23
25
|
};
|
|
24
26
|
export {
|
|
25
|
-
|
|
27
|
+
x as default
|
|
26
28
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valiantys/atlassian-app-frontend",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-32",
|
|
4
4
|
"description": "This library provides an Atlassian Forge Custom UI wrapper component that handles all the setup necessary to support an app that can run deployed or in standalone mode",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./atlassian-app": {
|