lism-css 0.0.4 → 0.0.5
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/Accordion/AccIcon.js +5 -5
- package/dist/components/Accordion/index2.js +20 -20
- package/dist/components/Box/index.js +5 -5
- package/dist/components/Center/index.js +2 -2
- package/dist/components/Columns/index.js +2 -2
- package/dist/components/Container/index.js +3 -4
- package/dist/components/Decorator/index.js +2 -2
- package/dist/components/Divider/index.js +4 -4
- package/dist/components/Dummy/index.js +6 -6
- package/dist/components/Flex/Cluster.js +4 -4
- package/dist/components/Flex/FlexItem.js +3 -4
- package/dist/components/Flex/index.js +2 -2
- package/dist/components/Frame/index.js +4 -4
- package/dist/components/Grid/GridItem.js +5 -6
- package/dist/components/Grid/index.js +4 -4
- package/dist/components/Icon/SVG.js +11 -11
- package/dist/components/Icon/index.js +7 -7
- package/dist/components/Layer/index.js +6 -7
- package/dist/components/LinkBox/index.js +6 -6
- package/dist/components/Lism/Link.js +4 -4
- package/dist/components/Lism/Media.js +4 -5
- package/dist/components/Lism/Text.js +4 -4
- package/dist/components/Lism/index.js +4 -5
- package/dist/components/Modal/Body.js +4 -5
- package/dist/components/Modal/CloseIconBtn.js +12 -12
- package/dist/components/Modal/Footer.js +6 -7
- package/dist/components/Modal/Header.js +6 -7
- package/dist/components/Modal/Inner.js +2 -2
- package/dist/components/Modal/index2.js +9 -11
- package/dist/components/Spacer/index.js +4 -4
- package/dist/components/Stack/index.js +4 -4
- package/dist/components/Tabs/Tab.js +6 -6
- package/dist/components/Tabs/TabItem.js +4 -4
- package/dist/components/Tabs/TabList.js +4 -4
- package/dist/components/Tabs/TabPanel.js +6 -6
- package/dist/components/Tabs/index2.js +30 -30
- package/dist/components/WithSide/index.js +3 -3
- package/package.json +1 -1
- package/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/_virtual/jsx-runtime2.js +0 -4
- package/dist/_virtual/react-jsx-runtime.development.js +0 -4
- package/dist/_virtual/react-jsx-runtime.production.min.js +0 -4
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js +0 -604
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -28
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +0 -10
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import i from "../Grid/GridItem.js";
|
|
4
|
-
function
|
|
5
|
-
const o = `${
|
|
6
|
-
return /* @__PURE__ */
|
|
4
|
+
function m({ tabId: a = "tab", isActive: t = !1, index: r = 0, ...e }) {
|
|
5
|
+
const o = `${a}-${r}`;
|
|
6
|
+
return /* @__PURE__ */ l(
|
|
7
7
|
i,
|
|
8
8
|
{
|
|
9
9
|
id: o,
|
|
10
10
|
role: "tabpanel",
|
|
11
|
-
"aria-hidden":
|
|
11
|
+
"aria-hidden": t ? "false" : "true",
|
|
12
12
|
lismClass: "d--tabs__panel",
|
|
13
13
|
...e
|
|
14
14
|
}
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
m as default
|
|
19
19
|
};
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { jsx as e, jsxs as h, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import t from "react";
|
|
3
3
|
import f from "./Tab.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
function
|
|
10
|
-
const [a,
|
|
11
|
-
return
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
if (
|
|
15
|
-
if (
|
|
16
|
-
const n =
|
|
17
|
-
|
|
18
|
-
/* @__PURE__ */
|
|
4
|
+
import E from "./TabItem.js";
|
|
5
|
+
import P from "./TabList.js";
|
|
6
|
+
import b from "./TabPanel.js";
|
|
7
|
+
import g from "./getProps.js";
|
|
8
|
+
import y from "../Grid/index.js";
|
|
9
|
+
function S({ tabId: l = "", defaultIndex: d = 1, listProps: x = {}, children: p, ...I }) {
|
|
10
|
+
const [a, u] = t.useState(d), m = l || t.useId(), s = [], c = [];
|
|
11
|
+
return t.Children.forEach(p, (i, T) => {
|
|
12
|
+
const o = T + 1;
|
|
13
|
+
t.isValidElement(i) && i.type === E && t.Children.forEach(i.props.children, (r) => {
|
|
14
|
+
if (t.isValidElement(r)) {
|
|
15
|
+
if (r.type === f) {
|
|
16
|
+
const n = r.props;
|
|
17
|
+
s.push(
|
|
18
|
+
/* @__PURE__ */ e(
|
|
19
19
|
f,
|
|
20
20
|
{
|
|
21
21
|
...n,
|
|
22
22
|
tabId: m,
|
|
23
|
-
index:
|
|
24
|
-
isActive:
|
|
25
|
-
onClick: () =>
|
|
23
|
+
index: o,
|
|
24
|
+
isActive: o === a,
|
|
25
|
+
onClick: () => u(o)
|
|
26
26
|
}
|
|
27
27
|
)
|
|
28
28
|
);
|
|
29
|
-
} else if (
|
|
30
|
-
const n =
|
|
29
|
+
} else if (r.type === b) {
|
|
30
|
+
const n = r.props;
|
|
31
31
|
c.push(
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
|
|
32
|
+
/* @__PURE__ */ e(
|
|
33
|
+
b,
|
|
34
34
|
{
|
|
35
35
|
...n,
|
|
36
36
|
tabId: m,
|
|
37
|
-
index:
|
|
38
|
-
isActive:
|
|
37
|
+
index: o,
|
|
38
|
+
isActive: o === a
|
|
39
39
|
}
|
|
40
40
|
)
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
}), /* @__PURE__ */
|
|
45
|
+
}), /* @__PURE__ */ e(y, { ...g(I), children: s.length === 0 ? (
|
|
46
46
|
// TabItemを使わず直接TabListなどを子要素に配置する場合
|
|
47
47
|
p
|
|
48
|
-
) : /* @__PURE__ */
|
|
49
|
-
/* @__PURE__ */
|
|
48
|
+
) : /* @__PURE__ */ h(v, { children: [
|
|
49
|
+
/* @__PURE__ */ e(P, { ...x, children: s }),
|
|
50
50
|
c
|
|
51
51
|
] }) });
|
|
52
52
|
}
|
|
53
53
|
export {
|
|
54
|
-
|
|
54
|
+
S as default
|
|
55
55
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { getWithSideProps as i } from "./getProps.js";
|
|
3
3
|
import o from "../Lism/index.js";
|
|
4
|
-
function p(
|
|
5
|
-
return /* @__PURE__ */
|
|
4
|
+
function p(r) {
|
|
5
|
+
return /* @__PURE__ */ t(o, { ...i(r) });
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
8
|
p as default
|
package/package.json
CHANGED