nucleus-core-ts 0.9.838 → 0.9.840

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.
@@ -81,9 +81,10 @@ export function ConnectionList({ actions, onNewConnection, reloadToken = 0 }) {
81
81
  className: theme.layout.aside,
82
82
  children: [
83
83
  /*#__PURE__*/ _jsxs("div", {
84
- className: theme.header.wrapper,
84
+ className: "flex flex-col gap-2 border-slate-200 border-b pb-3 dark:border-slate-800",
85
85
  children: [
86
86
  /*#__PURE__*/ _jsxs("div", {
87
+ className: "min-w-0",
87
88
  children: [
88
89
  /*#__PURE__*/ _jsx("h2", {
89
90
  className: theme.header.title,
@@ -95,21 +96,18 @@ export function ConnectionList({ actions, onNewConnection, reloadToken = 0 }) {
95
96
  })
96
97
  ]
97
98
  }),
98
- /*#__PURE__*/ _jsx("div", {
99
- className: theme.header.actions,
100
- children: /*#__PURE__*/ _jsx("button", {
101
- className: theme.button.primary,
102
- onClick: handleNew,
103
- type: "button",
104
- children: labels.connections.create
105
- })
99
+ /*#__PURE__*/ _jsx("button", {
100
+ className: cn(theme.button.primary, 'w-full justify-center whitespace-nowrap'),
101
+ onClick: handleNew,
102
+ type: "button",
103
+ children: labels.connections.create
104
+ }),
105
+ /*#__PURE__*/ _jsx(ConnectionTransfer, {
106
+ actions: actions,
107
+ onImported: list.reload
106
108
  })
107
109
  ]
108
110
  }),
109
- /*#__PURE__*/ _jsx(ConnectionTransfer, {
110
- actions: actions,
111
- onImported: list.reload
112
- }),
113
111
  /*#__PURE__*/ _jsx(Field, {
114
112
  htmlFor: "connection-search",
115
113
  label: labels.connections.searchLabel,
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useRef, useState } from 'react';
4
+ import { cn } from '../../../utils/cn';
4
5
  import { useIntegrationsStore } from '../store';
5
6
  import { integrationsPageTheme } from '../theme';
6
7
  import { Notice } from './Primitives';
@@ -97,10 +98,10 @@ export function ConnectionTransfer({ actions, onImported }) {
97
98
  className: "flex flex-col gap-2",
98
99
  children: [
99
100
  /*#__PURE__*/ _jsxs("div", {
100
- className: "flex flex-wrap gap-2",
101
+ className: "grid grid-cols-2 gap-2",
101
102
  children: [
102
103
  /*#__PURE__*/ _jsx("button", {
103
- className: theme.button.secondary,
104
+ className: cn(theme.button.secondary, 'w-full justify-center whitespace-nowrap'),
104
105
  disabled: busy || !selected,
105
106
  onClick: exportOne,
106
107
  title: selected ? `Export ${selected.name} — its calls and mappings, without any credential` : 'Choose a connection to export',
@@ -108,27 +109,27 @@ export function ConnectionTransfer({ actions, onImported }) {
108
109
  children: busy ? 'Working…' : 'Export'
109
110
  }),
110
111
  /*#__PURE__*/ _jsx("button", {
111
- className: theme.button.secondary,
112
+ className: cn(theme.button.secondary, 'w-full justify-center whitespace-nowrap'),
112
113
  disabled: busy,
113
114
  onClick: ()=>fileRef.current?.click(),
114
115
  type: "button",
115
116
  children: "Import"
116
- }),
117
- /*#__PURE__*/ _jsx("input", {
118
- accept: "application/json,.json",
119
- className: "hidden",
120
- onChange: (event)=>{
121
- const file = event.target.files?.[0];
122
- // Cleared so choosing the same file twice fires again — the second
123
- // attempt is usually the one after fixing something.
124
- event.target.value = '';
125
- if (file) importFile(file);
126
- },
127
- ref: fileRef,
128
- type: "file"
129
117
  })
130
118
  ]
131
119
  }),
120
+ /*#__PURE__*/ _jsx("input", {
121
+ accept: "application/json,.json",
122
+ className: "hidden",
123
+ onChange: (event)=>{
124
+ const file = event.target.files?.[0];
125
+ // Cleared so choosing the same file twice fires again — the second
126
+ // attempt is usually the one after fixing something.
127
+ event.target.value = '';
128
+ if (file) importFile(file);
129
+ },
130
+ ref: fileRef,
131
+ type: "file"
132
+ }),
132
133
  note ? /*#__PURE__*/ _jsx("p", {
133
134
  className: theme.field.hint,
134
135
  children: note