seat-editor 3.6.1 → 3.6.3

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.
@@ -13,10 +13,10 @@ const ButtonRadio = ({ options, value, onChange, }) => {
13
13
  }, [value]);
14
14
  return (_jsx("div", { className: "flex items-center gap-[22px] p-1 rounded-xl w-fit", children: options.map((option) => {
15
15
  const isSelected = selected === option.value;
16
- return (_jsx("button", { type: "button", onClick: () => handleSelect(option.value), className: clsx("px-4 py-2.5 rounded-[6px] text-[12px] font-semibold transition-all duration-200", {
17
- "bg-[#EEF6FF] text-[#3E97FF] shadow-sm": isSelected,
18
- "text-[#7E8299]": !isSelected,
19
- }), children: option.label }, option.value));
16
+ return (_jsx("button", { type: "button", onClick: () => handleSelect(option.value), className: clsx("px-4 py-2.5 rounded-[6px] text-[12px] font-semibold transition-all duration-200"), style: {
17
+ background: isSelected ? "#EEF6FF" : "transparent",
18
+ color: isSelected ? "#3E97FF" : "#7E8299",
19
+ }, children: option.label }, option.value));
20
20
  }) }));
21
21
  };
22
22
  export default ButtonRadio;
@@ -13,10 +13,10 @@ const ButtonRadio = ({ options, value, onChange, }) => {
13
13
  return (<div className="flex items-center gap-[22px] p-1 rounded-xl w-fit">
14
14
  {options.map((option) => {
15
15
  const isSelected = selected === option.value;
16
- return (<button key={option.value} type="button" onClick={() => handleSelect(option.value)} className={clsx("px-4 py-2.5 rounded-[6px] text-[12px] font-semibold transition-all duration-200", {
17
- "bg-[#EEF6FF] text-[#3E97FF] shadow-sm": isSelected,
18
- "text-[#7E8299]": !isSelected,
19
- })}>
16
+ return (<button key={option.value} type="button" onClick={() => handleSelect(option.value)} className={clsx("px-4 py-2.5 rounded-[6px] text-[12px] font-semibold transition-all duration-200")} style={{
17
+ background: isSelected ? "#EEF6FF" : "transparent",
18
+ color: isSelected ? "#3E97FF" : "#7E8299",
19
+ }}>
20
20
  {option.label}
21
21
  </button>);
22
22
  })}
@@ -1982,10 +1982,16 @@ const BoardTemplate = ({ refs, loadingRender, disabled = false, priviewActive =
1982
1982
  }, children: FONT_SCALES === null || FONT_SCALES === void 0 ? void 0 : FONT_SCALES.map((item) => (_jsx(Radio, { value: item.value, children: item.label }, item.value))) })] }) })),
1983
1983
  title: (_jsxs(_Fragment, { children: [_jsx("div", { className: "flex flex-col gap-[20px] p-[20px]", children: _jsx("h1", { className: "text-[22px] font-semibold leading-[22px]", children: typePreview === "setting"
1984
1984
  ? "Font Size Setting"
1985
- : "Preview Board" }) }), _jsx("div", { className: "w-full h-[1px] bg-[#E6E6E6]" }), _jsx("div", { className: "p-[10px]", children: _jsx(ButtonRadio, { onChange: (val) => handleCheckPreview(val), options: previewTabValue === null || previewTabValue === void 0 ? void 0 : previewTabValue.map((item) => ({
1985
+ : "Preview Board" }) }), _jsx("div", { className: "w-full h-[1px] bg-[#E6E6E6]", style: {
1986
+ background: "#E6E6E6",
1987
+ } }), _jsx("div", { className: "p-[10px]", children: _jsx(ButtonRadio, { onChange: (val) => handleCheckPreview(val), options: previewTabValue === null || previewTabValue === void 0 ? void 0 : previewTabValue.map((item) => ({
1986
1988
  label: item.label,
1987
1989
  value: item.type,
1988
- })), value: isShowTagType }) }), typePreview === "setting" && (_jsxs("div", { className: "py-2.5 px-3 bg-[#FFF8DD] border-[#FFC700] border text-[#181C32] flex gap-2.5 text-[12px] font-semibold items-center tracking-[0%]", children: [_jsx(WarningIcon, {}), " Font adjustments made here are scaled based on the original font sizes set in the main layout. Changes made here affect the operational layouts only, without changing your main editing canvas."] }))] })),
1990
+ })), value: isShowTagType }) }), typePreview === "setting" && (_jsxs("div", { className: "py-2.5 px-3 bg-[#FFF8DD] border-[#FFC700] border text-[#181C32] flex gap-2.5 text-[12px] font-semibold items-center tracking-[0%]", style: {
1991
+ background: "#FFF8DD",
1992
+ border: "1px solid #FFC700",
1993
+ color: "#181C32",
1994
+ }, children: [_jsx(WarningIcon, {}), " Font adjustments made here are scaled based on the original font sizes set in the main layout. Changes made here affect the operational layouts only, without changing your main editing canvas."] }))] })),
1989
1995
  }, children: _jsx(LayerView, { statusKey: "status", loadingRender: loadingRender, actionPrivileged: {
1990
1996
  select: false,
1991
1997
  move: false,
@@ -2031,19 +2031,25 @@ const BoardTemplate = ({ refs, loadingRender, disabled = false, priviewActive =
2031
2031
  : "Preview Board"}
2032
2032
  </h1>
2033
2033
  </div>
2034
- <div className="w-full h-[1px] bg-[#E6E6E6]"/>
2034
+ <div className="w-full h-[1px] bg-[#E6E6E6]" style={{
2035
+ background: "#E6E6E6",
2036
+ }}/>
2035
2037
  <div className="p-[10px]">
2036
2038
  <ButtonRadio onChange={(val) => handleCheckPreview(val)} options={previewTabValue === null || previewTabValue === void 0 ? void 0 : previewTabValue.map((item) => ({
2037
2039
  label: item.label,
2038
2040
  value: item.type,
2039
2041
  }))} value={isShowTagType}/>
2040
2042
  </div>
2041
- {typePreview === "setting" && (<div className="py-2.5 px-3 bg-[#FFF8DD] border-[#FFC700] border text-[#181C32] flex gap-2.5 text-[12px] font-semibold items-center tracking-[0%]">
2042
- <WarningIcon /> Font adjustments made here are scaled based on
2043
- the original font sizes set in the main layout. Changes made
2044
- here affect the operational layouts only, without changing your
2045
- main editing canvas.
2046
- </div>)}
2043
+ {typePreview === "setting" && (<div className="py-2.5 px-3 bg-[#FFF8DD] border-[#FFC700] border text-[#181C32] flex gap-2.5 text-[12px] font-semibold items-center tracking-[0%]" style={{
2044
+ background: "#FFF8DD",
2045
+ border: "1px solid #FFC700",
2046
+ color: "#181C32",
2047
+ }}>
2048
+ <WarningIcon /> Font adjustments made here are scaled based on
2049
+ the original font sizes set in the main layout. Changes made
2050
+ here affect the operational layouts only, without changing
2051
+ your main editing canvas.
2052
+ </div>)}
2047
2053
  </>),
2048
2054
  }}>
2049
2055
  <LayerView statusKey="status" loadingRender={loadingRender} actionPrivileged={{
package/dist/index.d.ts CHANGED
@@ -8,5 +8,7 @@ import LayerView3, { type LayerViewProps as LayerViewProps3 } from "./features/v
8
8
  import LayerView5, { type LayerViewProps as LayerViewProps5 } from "./features/view-only-5";
9
9
  import TableEditor, { type TableEditorProps } from "./features/package";
10
10
  import { UploadFile } from "antd";
11
+ import { ShowTagType } from "./features/board-v3/board-slice";
11
12
  export * from "./dto/table";
12
13
  export { StoreProvider as ProviderSeatEditor, Board, SideTool, ControlPanels, LayerView, LayerView2, LayerViewProps2, LayerViewProps, TableEditor as SeatEditor, LayerView3, LayerViewProps3, TableEditorProps, type UploadFile, LayerView5, LayerViewProps5 };
14
+ export type { ShowTagType };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "3.6.1",
3
+ "version": "3.6.3",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",