Skip to content

Commit 89932b1

Browse files
Component Improvements: (#127)
* Component Improvements: - Fix handle positions when aligned with the header - Fix segment-picker to properly occupy space within its container - Add flex-shrink: 0 to switch component to maintain a defined size, even in flex containers * npm package version bump
1 parent 9dd4a60 commit 89932b1

File tree

6 files changed

+22
-4
lines changed

6 files changed

+22
-4
lines changed

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@synergycodes/axiom",
33
"type": "module",
4-
"version": "1.0.0-beta.18",
4+
"version": "1.0.0-beta.19",
55
"description": "A React library for creating node-based UIs and diagram-driven applications. Perfect for React Flow users, providing ready-to-use node templates and components that work seamlessly with React Flow's ecosystem.",
66
"keywords": [
77
"react",

packages/ui/src/components/node/node-panel/handle.module.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@
1616
position: relative;
1717

1818
:global(.react-flow__handle.react-flow__handle-right) {
19-
right: calc(-1 * var(--ax-public-node-padding));
19+
right: calc(
20+
-1 * (var(--ax-public-node-padding) + var(--ax-public-node-border-size))
21+
);
2022
}
2123

2224
:global(.react-flow__handle.react-flow__handle-left) {
23-
left: calc(-1 * var(--ax-public-node-padding));
25+
left: calc(
26+
-1 * (var(--ax-public-node-padding) + var(--ax-public-node-border-size))
27+
);
2428
}
2529
}
2630

packages/ui/src/components/segment-picker/segment-picker.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
&:not(.circle) {
2424
width: 100%;
25+
box-sizing: border-box;
2526
}
2627
}
2728
}

packages/ui/src/components/switch/switch.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
@layer ui.base {
2626
.container {
2727
display: inline-flex;
28+
flex-shrink: 0;
2829
align-items: center;
2930
justify-content: center;
3031
position: relative;

packages/website/generated/css-variables.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,12 @@
500500
"name": "--ax-public-checkbox-size-small"
501501
}
502502
],
503-
"components/collapsible/collapsible.module.css": [],
503+
"components/collapsible/collapsible.module.css": [
504+
{
505+
"comment": "",
506+
"name": "--ax-public-collapsible-transition-duration"
507+
}
508+
],
504509
"components/date-picker/data-picker-mantine.css": [
505510
{
506511
"comment": "",

packages/website/generated/props.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,6 +1602,13 @@
16021602
"displayName": "NodeDescription",
16031603
"methods": [],
16041604
"props": {
1605+
"className": {
1606+
"description": "",
1607+
"required": false,
1608+
"tsType": {
1609+
"name": "string"
1610+
}
1611+
},
16051612
"description": {
16061613
"description": "",
16071614
"required": false,

0 commit comments

Comments
 (0)