@harborclient/sdk 0.6.2 → 0.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.
- package/dist/components/Button/index.js +7 -7
- package/dist/components/FooterButton/index.js +2 -2
- package/dist/components/KeyValueEditor/index.js +2 -2
- package/dist/components/classes.d.ts +1 -1
- package/dist/components/classes.d.ts.map +1 -1
- package/dist/components/classes.js +3 -3
- package/package.json +2 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@harborclient/sdk/jsx-runtime";
|
|
2
2
|
const VARIANT_CLASSES = {
|
|
3
|
-
primary: 'cursor-pointer rounded-md border border-transparent bg-accent px-3 py-1 text-[15px] font-medium text-white shadow-sm hover:brightness-110 disabled:cursor-not-allowed disabled:opacity-50 app-no-drag',
|
|
4
|
-
secondary: 'cursor-pointer rounded-md border border-separator bg-control px-3 py-1 text-[15px] text-text shadow-sm hover:bg-selection disabled:cursor-not-allowed disabled:opacity-50 app-no-drag',
|
|
5
|
-
primaryDanger: 'cursor-pointer rounded-md border border-transparent bg-danger px-3 py-1 text-[15px] font-medium text-white shadow-sm hover:brightness-110 disabled:cursor-not-allowed disabled:opacity-50 app-no-drag',
|
|
6
|
-
secondaryDanger: 'cursor-pointer rounded-md border border-separator bg-control px-3 py-1 text-[15px] text-danger shadow-sm hover:bg-danger/15 disabled:cursor-not-allowed disabled:opacity-50 app-no-drag',
|
|
7
|
-
toolbar: 'cursor-pointer rounded-md border-none bg-transparent px-2 py-1 text-[15px] hover:bg-selection app-no-drag',
|
|
8
|
-
icon: 'inline-flex
|
|
9
|
-
iconDanger: 'inline-flex
|
|
3
|
+
primary: 'inline-flex min-h-[34px] cursor-pointer items-center justify-center rounded-md border border-transparent bg-accent px-3 py-1 text-[15px] font-medium text-white shadow-sm hover:brightness-110 disabled:cursor-not-allowed disabled:opacity-50 app-no-drag',
|
|
4
|
+
secondary: 'inline-flex min-h-[34px] cursor-pointer items-center justify-center rounded-md border border-separator bg-control px-3 py-1 text-[15px] text-text shadow-sm hover:bg-selection disabled:cursor-not-allowed disabled:opacity-50 app-no-drag',
|
|
5
|
+
primaryDanger: 'inline-flex min-h-[34px] cursor-pointer items-center justify-center rounded-md border border-transparent bg-danger px-3 py-1 text-[15px] font-medium text-white shadow-sm hover:brightness-110 disabled:cursor-not-allowed disabled:opacity-50 app-no-drag',
|
|
6
|
+
secondaryDanger: 'inline-flex min-h-[34px] cursor-pointer items-center justify-center rounded-md border border-separator bg-control px-3 py-1 text-[15px] text-danger shadow-sm hover:bg-danger/15 disabled:cursor-not-allowed disabled:opacity-50 app-no-drag',
|
|
7
|
+
toolbar: 'inline-flex min-h-[34px] cursor-pointer items-center rounded-md border-none bg-transparent px-2 py-1 text-[15px] hover:bg-selection app-no-drag',
|
|
8
|
+
icon: 'inline-flex size-[30px] shrink-0 cursor-pointer items-center justify-center rounded-md border-none bg-transparent text-muted opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100 focus:opacity-100 focus-visible:opacity-100 hover:bg-selection hover:text-text app-no-drag',
|
|
9
|
+
iconDanger: 'inline-flex size-[30px] shrink-0 cursor-pointer items-center justify-center rounded-md border-none bg-transparent text-muted opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100 focus:opacity-100 focus-visible:opacity-100 hover:bg-danger/15 hover:text-danger app-no-drag'
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* macOS-style button with shared variant presets for primary actions, secondary
|
|
@@ -6,8 +6,8 @@ import { jsx as _jsx } from "@harborclient/sdk/jsx-runtime";
|
|
|
6
6
|
*/
|
|
7
7
|
function footerSegment(active) {
|
|
8
8
|
return active
|
|
9
|
-
? 'cursor-pointer rounded-[5px] border-none bg-surface px-2 py-0.5 text-[14px] text-text shadow-sm app-no-drag'
|
|
10
|
-
: 'cursor-pointer rounded-[5px] border-none bg-transparent px-2 py-0.5 text-[14px] text-muted hover:text-text app-no-drag';
|
|
9
|
+
? 'cursor-pointer rounded-[2.5px] border-none bg-surface px-2 py-0.5 text-[14px] text-text shadow-sm app-no-drag'
|
|
10
|
+
: 'cursor-pointer rounded-[2.5px] border-none bg-transparent px-2 py-0.5 text-[14px] text-muted hover:text-text app-no-drag';
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Text segment toggle button for the window footer bar, used to open and close
|
|
@@ -4,8 +4,8 @@ import { Button } from '../Button/index.js';
|
|
|
4
4
|
import { FaIcon } from '../FaIcon/index.js';
|
|
5
5
|
import { Input, fieldFrame } from '../forms/index.js';
|
|
6
6
|
import { VariableInput } from '../VariableInput/index.js';
|
|
7
|
-
const thClass = 'border-r border-b border-separator
|
|
8
|
-
const tdClass = 'border-r border-b border-separator p-
|
|
7
|
+
const thClass = 'border-r border-b border-separator p-3 text-left text-[14px] font-medium uppercase tracking-wide text-muted last:border-r-0';
|
|
8
|
+
const tdClass = 'border-r border-b border-separator p-3 last:border-r-0';
|
|
9
9
|
/**
|
|
10
10
|
* Editable table of key-value rows with enable toggles for headers and params.
|
|
11
11
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared macOS-style Tailwind class strings for SDK UI components.
|
|
3
3
|
*/
|
|
4
|
-
export declare const segmentGroup = "inline-flex
|
|
4
|
+
export declare const segmentGroup = "inline-flex p-3 border-b border-separator w-full shadow-[inset_0_0.5px_1px_rgba(0,0,0,0.06)] app-no-drag";
|
|
5
5
|
/**
|
|
6
6
|
* Tailwind classes for a segmented control button.
|
|
7
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classes.d.ts","sourceRoot":"","sources":["../../src/components/classes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"classes.d.ts","sourceRoot":"","sources":["../../src/components/classes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,YAAY,6GACmF,CAAC;AAE7G;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAI/C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared macOS-style Tailwind class strings for SDK UI components.
|
|
3
3
|
*/
|
|
4
|
-
export const segmentGroup = 'inline-flex
|
|
4
|
+
export const segmentGroup = 'inline-flex p-3 border-b border-separator w-full shadow-[inset_0_0.5px_1px_rgba(0,0,0,0.06)] app-no-drag';
|
|
5
5
|
/**
|
|
6
6
|
* Tailwind classes for a segmented control button.
|
|
7
7
|
*
|
|
@@ -9,6 +9,6 @@ export const segmentGroup = 'inline-flex rounded-md p-0.5 shadow-[inset_0_0.5px_
|
|
|
9
9
|
*/
|
|
10
10
|
export function segment(active) {
|
|
11
11
|
return active
|
|
12
|
-
? 'cursor-pointer rounded-[5px] border-none bg-control px-3 py-1 text-[15px] text-text shadow-sm app-no-drag'
|
|
13
|
-
: 'cursor-pointer rounded-[5px] border-none bg-transparent px-3 py-1 text-[15px] text-muted hover:text-text app-no-drag';
|
|
12
|
+
? 'cursor-pointer rounded-[2.5px] border-none bg-control px-3 py-1 text-[15px] text-text shadow-sm app-no-drag'
|
|
13
|
+
: 'cursor-pointer rounded-[2.5px] border-none bg-transparent px-3 py-1 text-[15px] text-muted hover:text-text app-no-drag';
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harborclient/sdk",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "TypeScript SDK for HarborClient plugin development.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"harborclient",
|
|
@@ -175,6 +175,7 @@
|
|
|
175
175
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
176
176
|
"test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch",
|
|
177
177
|
"clean": "rm -rf dist",
|
|
178
|
+
"dev": "node scripts/copy-runtime.mjs && tsc -p tsconfig.build.json --watch --preserveWatchOutput",
|
|
178
179
|
"release": "gh workflow run Release --ref main -f release_type=patch",
|
|
179
180
|
"release:patch": "gh workflow run Release --ref main -f release_type=patch",
|
|
180
181
|
"release:minor": "gh workflow run Release --ref main -f release_type=minor",
|