sitero 0.0.6 → 0.0.7
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/src/cms/client/interfaces/components/resources/post/search/control-fields-buttons.js
CHANGED
|
@@ -1,11 +1,28 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { useTranslator } from 'intor/react';
|
|
3
3
|
import 'mime-types';
|
|
4
4
|
import '../../../../../../../core/domain/resources/admin/constants.js';
|
|
5
5
|
import '../../../../../../../core/domain/resources/user/constants.js';
|
|
6
6
|
import { cn } from '../../../../../../../shared/utils/cn.js';
|
|
7
|
-
import
|
|
7
|
+
import '@radix-ui/react-avatar';
|
|
8
|
+
import '../../../shadcn/badge.js';
|
|
9
|
+
import '../../../shadcn/button.js';
|
|
10
|
+
import '@radix-ui/react-collapsible';
|
|
11
|
+
import '@radix-ui/react-dialog';
|
|
8
12
|
import 'lucide-react';
|
|
13
|
+
import '@radix-ui/react-dropdown-menu';
|
|
14
|
+
import '../../../shadcn/input-group.js';
|
|
15
|
+
import '../../../shadcn/item.js';
|
|
16
|
+
import '@radix-ui/react-label';
|
|
17
|
+
import 'radix-ui';
|
|
18
|
+
import '@radix-ui/react-select';
|
|
19
|
+
import { Separator } from '../../../shadcn/separator.js';
|
|
20
|
+
import '../../../shadcn/sidebar/sidebar.js';
|
|
21
|
+
import 'next-themes';
|
|
22
|
+
import 'sonner';
|
|
23
|
+
import '@radix-ui/react-tabs';
|
|
24
|
+
import '@radix-ui/react-tooltip';
|
|
25
|
+
import { Button } from '../../../ui/buttons/button.js';
|
|
9
26
|
import 'next/navigation';
|
|
10
27
|
import 'react';
|
|
11
28
|
import '../../../../../../../commerce/taiwan-address/constants.js';
|
|
@@ -22,6 +39,7 @@ function ControlFieldsButtons({
|
|
|
22
39
|
setControlFields
|
|
23
40
|
}) {
|
|
24
41
|
const { t } = useTranslator();
|
|
42
|
+
console.log(usableFields.includes("state3"));
|
|
25
43
|
return /* @__PURE__ */ jsxs("div", { className: "flex h-fit gap-3 rounded", children: [
|
|
26
44
|
usableFields.includes("isActive") && /* @__PURE__ */ jsx(
|
|
27
45
|
Button,
|
|
@@ -90,20 +108,23 @@ function ControlFieldsButtons({
|
|
|
90
108
|
children: t("ui.control-fields.is-shown-on-home.text")
|
|
91
109
|
}
|
|
92
110
|
),
|
|
93
|
-
usableFields.includes("state3") && /* @__PURE__ */
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
111
|
+
usableFields.includes("state3") && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
112
|
+
/* @__PURE__ */ jsx("div", { className: "py-1", children: /* @__PURE__ */ jsx(Separator, { orientation: "vertical" }) }),
|
|
113
|
+
/* @__PURE__ */ jsx(
|
|
114
|
+
Button,
|
|
115
|
+
{
|
|
116
|
+
size: "sm",
|
|
117
|
+
type: "button",
|
|
118
|
+
variant: "secondary",
|
|
119
|
+
onClick: () => setControlFields((prev) => ({
|
|
120
|
+
...prev,
|
|
121
|
+
state3: !prev.state3
|
|
122
|
+
})),
|
|
123
|
+
className: cn(!controlFields.state3 ? "opacity-35" : "shadow"),
|
|
124
|
+
children: "\u662F\u5426\u7528\u65BC\u9999\u6E2F\u5C08\u5340"
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
] })
|
|
107
128
|
] });
|
|
108
129
|
}
|
|
109
130
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-fields-buttons.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/cms/client/interfaces/components/resources/post/search/control-fields-buttons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"control-fields-buttons.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/cms/client/interfaces/components/resources/post/search/control-fields-buttons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAMtD,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,UAAU,yBAAyB;IACjC,YAAY,EAAE,CAAC,MAAM,mBAAmB,CAAC,EAAE,GAAG,SAAS,CAAC;IACxD,aAAa,EAAE,mBAAmB,CAAC;IACnC,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC,CAAC;CACjE;AAED,wBAAgB,oBAAoB,CAAC,EACnC,YAMC,EACD,aAAa,EACb,gBAAgB,GACjB,EAAE,yBAAyB,2CAuH3B"}
|