Skip to content

Commit 73fdfef

Browse files
committed
Fix: issue in seat icon visibility and removed a few unwanted types
1 parent 41d4703 commit 73fdfef

File tree

6 files changed

+2
-30
lines changed

6 files changed

+2
-30
lines changed

src/components/workspace/elements/seat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const Seat: React.FC<ISeatProps> = forwardRef(
152152
width={seatSize * 0.75}
153153
height={seatSize * 0.75}
154154
size={seatSize * 0.75}
155-
className={consumer.styles?.elements?.seat?.icon?.className}
155+
className={twMerge(consumer.styles?.elements?.seat?.icon?.className, "stk-seat-icon")}
156156
style={consumer.styles?.elements?.seat?.icon?.properties}
157157
/>
158158
)}

src/stories/designer/basic.stories.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,6 @@ export const Story = {
1313
render: (props) => <SeatToolkit mode={STKMode.DESIGNER} {...props} />
1414
};
1515

16-
export const WithoutFooter = {
17-
render: (props) => (
18-
<SeatToolkit
19-
mode={STKMode.DESIGNER}
20-
{...props}
21-
options={{
22-
showFooter: false,
23-
...props.options
24-
}}
25-
/>
26-
)
27-
};
28-
2916
export const WithReloadButton = {
3017
render: (props) => (
3118
<SeatToolkit

src/stories/options.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ export const options = {
99
...disableArgTypes(["options"]),
1010
...prefixKeys(
1111
{
12-
showFooter: {
13-
control: "boolean",
14-
description: "Show or hide the footer",
15-
defaultValue: { summary: true }
16-
},
1712
showGridSwitch: {
1813
control: "boolean",
1914
description: "Show or hide the grid switch",

src/styles/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ rect.workspace-selection {
1919
fill-opacity: 0.5;
2020
}
2121

22-
.stk-core svg * {
22+
.stk-core svg *:not(.stk-seat-icon *) {
2323
transform-box: fill-box;
2424
}

src/types/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ export interface ISTKProps {
7070
options?: {
7171
showGridSwitch?: boolean;
7272
showSeatLabels?: boolean;
73-
showFooter?: boolean;
7473
showZoomControls?: boolean;
7574
showVisibilityControls?: boolean;
7675
showReloadButton?: boolean;

src/types/styles.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,11 @@ export interface IStyles {
2323
input?: IStyle;
2424
trigger?: IStyle;
2525
};
26-
footer?: {
27-
root?: IStyle;
28-
title?: IStyle;
29-
meta?: IStyle;
30-
};
3126
zoomControls?: {
3227
in?: IStyle;
3328
out?: IStyle;
34-
root?: IStyle;
3529
};
3630
panControls?: {
37-
root?: IStyle;
38-
innerRing?: IStyle;
3931
handles?: {
4032
up?: IStyle;
4133
right?: IStyle;
@@ -44,7 +36,6 @@ export interface IStyles {
4436
};
4537
};
4638
visibilityControls?: {
47-
root?: IStyle;
4839
buttons?: IStyle;
4940
};
5041
reloadButton?: IStyle;

0 commit comments

Comments
 (0)