@team-plain/ui-components 0.1.0
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/badgeComponent.d.ts +6 -0
- package/dist/badgeComponent.d.ts.map +1 -0
- package/dist/badgeComponent.js +9 -0
- package/dist/badgeComponent.js.map +1 -0
- package/dist/containerComponent.d.ts +5 -0
- package/dist/containerComponent.d.ts.map +1 -0
- package/dist/containerComponent.js +8 -0
- package/dist/containerComponent.js.map +1 -0
- package/dist/copyButtonComponent.d.ts +6 -0
- package/dist/copyButtonComponent.d.ts.map +1 -0
- package/dist/copyButtonComponent.js +9 -0
- package/dist/copyButtonComponent.js.map +1 -0
- package/dist/dividerComponent.d.ts +5 -0
- package/dist/dividerComponent.d.ts.map +1 -0
- package/dist/dividerComponent.js +8 -0
- package/dist/dividerComponent.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/linkButtonComponent.d.ts +6 -0
- package/dist/linkButtonComponent.d.ts.map +1 -0
- package/dist/linkButtonComponent.js +9 -0
- package/dist/linkButtonComponent.js.map +1 -0
- package/dist/plainTextComponent.d.ts +7 -0
- package/dist/plainTextComponent.d.ts.map +1 -0
- package/dist/plainTextComponent.js +10 -0
- package/dist/plainTextComponent.js.map +1 -0
- package/dist/rowComponent.d.ts +6 -0
- package/dist/rowComponent.d.ts.map +1 -0
- package/dist/rowComponent.js +9 -0
- package/dist/rowComponent.js.map +1 -0
- package/dist/spacerComponent.d.ts +5 -0
- package/dist/spacerComponent.d.ts.map +1 -0
- package/dist/spacerComponent.js +8 -0
- package/dist/spacerComponent.js.map +1 -0
- package/dist/textComponent.d.ts +7 -0
- package/dist/textComponent.d.ts.map +1 -0
- package/dist/textComponent.js +10 -0
- package/dist/textComponent.js.map +1 -0
- package/dist/workflowButtonComponent.d.ts +6 -0
- package/dist/workflowButtonComponent.d.ts.map +1 -0
- package/dist/workflowButtonComponent.js +11 -0
- package/dist/workflowButtonComponent.js.map +1 -0
- package/package.json +30 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badgeComponent.d.ts","sourceRoot":"","sources":["../src/badgeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE3E,wBAAgB,cAAc,CAAC,IAAI,EAAE;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B,GAAG,cAAc,CAOjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badgeComponent.js","sourceRoot":"","sources":["../src/badgeComponent.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,cAAc,CAAC,IAG9B;IACC,OAAO;QACL,cAAc,EAAE;YACd,UAAU,EAAE,IAAI,CAAC,KAAK;YACtB,UAAU,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI;SAC/B;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerComponent.d.ts","sourceRoot":"","sources":["../src/containerComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IAAE,OAAO,EAAE,cAAc,EAAE,CAAA;CAAE,GAAG,cAAc,CAMtF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerComponent.js","sourceRoot":"","sources":["../src/containerComponent.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,kBAAkB,CAAC,IAAmC;IACpE,OAAO;QACL,kBAAkB,EAAE;YAClB,gBAAgB,EAAE,IAAI,CAAC,OAAO;SAC/B;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copyButtonComponent.d.ts","sourceRoot":"","sources":["../src/copyButtonComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,cAAc,CAO7F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copyButtonComponent.js","sourceRoot":"","sources":["../src/copyButtonComponent.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,mBAAmB,CAAC,IAAyC;IAC3E,OAAO;QACL,mBAAmB,EAAE;YACnB,eAAe,EAAE,IAAI,CAAC,KAAK;YAC3B,sBAAsB,EAAE,IAAI,CAAC,OAAO;SACrC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dividerComponent.d.ts","sourceRoot":"","sources":["../src/dividerComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEnF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE;IACrC,WAAW,CAAC,EAAE,2BAA2B,CAAC;CAC3C,GAAG,cAAc,CAMjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dividerComponent.js","sourceRoot":"","sources":["../src/dividerComponent.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,gBAAgB,CAAC,IAEhC;IACC,OAAO;QACL,gBAAgB,EAAE;YAChB,kBAAkB,EAAE,IAAI,CAAC,WAAW,IAAI,IAAI;SAC7C;KACF,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { badgeComponent } from "./badgeComponent.js";
|
|
2
|
+
import { containerComponent } from "./containerComponent.js";
|
|
3
|
+
import { copyButtonComponent } from "./copyButtonComponent.js";
|
|
4
|
+
import { dividerComponent } from "./dividerComponent.js";
|
|
5
|
+
import { linkButtonComponent } from "./linkButtonComponent.js";
|
|
6
|
+
import { plainTextComponent } from "./plainTextComponent.js";
|
|
7
|
+
import { rowComponent } from "./rowComponent.js";
|
|
8
|
+
import { spacerComponent } from "./spacerComponent.js";
|
|
9
|
+
import { textComponent } from "./textComponent.js";
|
|
10
|
+
import { workflowButtonComponent } from "./workflowButtonComponent.js";
|
|
11
|
+
export declare const uiComponent: {
|
|
12
|
+
badge: typeof badgeComponent;
|
|
13
|
+
container: typeof containerComponent;
|
|
14
|
+
copyButton: typeof copyButtonComponent;
|
|
15
|
+
divider: typeof dividerComponent;
|
|
16
|
+
linkButton: typeof linkButtonComponent;
|
|
17
|
+
plainText: typeof plainTextComponent;
|
|
18
|
+
row: typeof rowComponent;
|
|
19
|
+
spacer: typeof spacerComponent;
|
|
20
|
+
text: typeof textComponent;
|
|
21
|
+
workflowButton: typeof workflowButtonComponent;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,eAAO,MAAM,WAAW;;;;;;;;;;;CAWvB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { badgeComponent } from "./badgeComponent.js";
|
|
2
|
+
import { containerComponent } from "./containerComponent.js";
|
|
3
|
+
import { copyButtonComponent } from "./copyButtonComponent.js";
|
|
4
|
+
import { dividerComponent } from "./dividerComponent.js";
|
|
5
|
+
import { linkButtonComponent } from "./linkButtonComponent.js";
|
|
6
|
+
import { plainTextComponent } from "./plainTextComponent.js";
|
|
7
|
+
import { rowComponent } from "./rowComponent.js";
|
|
8
|
+
import { spacerComponent } from "./spacerComponent.js";
|
|
9
|
+
import { textComponent } from "./textComponent.js";
|
|
10
|
+
import { workflowButtonComponent } from "./workflowButtonComponent.js";
|
|
11
|
+
export const uiComponent = {
|
|
12
|
+
badge: badgeComponent,
|
|
13
|
+
container: containerComponent,
|
|
14
|
+
copyButton: copyButtonComponent,
|
|
15
|
+
divider: dividerComponent,
|
|
16
|
+
linkButton: linkButtonComponent,
|
|
17
|
+
plainText: plainTextComponent,
|
|
18
|
+
row: rowComponent,
|
|
19
|
+
spacer: spacerComponent,
|
|
20
|
+
text: textComponent,
|
|
21
|
+
workflowButton: workflowButtonComponent,
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,kBAAkB;IAC7B,UAAU,EAAE,mBAAmB;IAC/B,OAAO,EAAE,gBAAgB;IACzB,UAAU,EAAE,mBAAmB;IAC/B,SAAS,EAAE,kBAAkB;IAC7B,GAAG,EAAE,YAAY;IACjB,MAAM,EAAE,eAAe;IACvB,IAAI,EAAE,aAAa;IACnB,cAAc,EAAE,uBAAuB;CACxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkButtonComponent.d.ts","sourceRoot":"","sources":["../src/linkButtonComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,cAAc,CAOxF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkButtonComponent.js","sourceRoot":"","sources":["../src/linkButtonComponent.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,mBAAmB,CAAC,IAAoC;IACtE,OAAO;QACL,mBAAmB,EAAE;YACnB,eAAe,EAAE,IAAI,CAAC,KAAK;YAC3B,aAAa,EAAE,IAAI,CAAC,GAAG;SACxB;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentInput, ComponentPlainTextColor, ComponentPlainTextSize } from "@team-plain/sdk";
|
|
2
|
+
export declare function plainTextComponent(args: {
|
|
3
|
+
text: string;
|
|
4
|
+
size?: ComponentPlainTextSize;
|
|
5
|
+
color?: ComponentPlainTextColor;
|
|
6
|
+
}): ComponentInput;
|
|
7
|
+
//# sourceMappingURL=plainTextComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plainTextComponent.d.ts","sourceRoot":"","sources":["../src/plainTextComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AAEzB,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B,KAAK,CAAC,EAAE,uBAAuB,CAAC;CACjC,GAAG,cAAc,CAQjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plainTextComponent.js","sourceRoot":"","sources":["../src/plainTextComponent.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,kBAAkB,CAAC,IAIlC;IACC,OAAO;QACL,kBAAkB,EAAE;YAClB,SAAS,EAAE,IAAI,CAAC,IAAI;YACpB,cAAc,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI;YAClC,aAAa,EAAE,IAAI,CAAC,IAAI,IAAI,IAAI;SACjC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rowComponent.d.ts","sourceRoot":"","sources":["../src/rowComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,wBAAgB,YAAY,CAAC,IAAI,EAAE;IACjC,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,YAAY,EAAE,cAAc,EAAE,CAAC;CAChC,GAAG,cAAc,CAOjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rowComponent.js","sourceRoot":"","sources":["../src/rowComponent.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,YAAY,CAAC,IAG5B;IACC,OAAO;QACL,YAAY,EAAE;YACZ,cAAc,EAAE,IAAI,CAAC,WAAW;YAChC,eAAe,EAAE,IAAI,CAAC,YAAY;SACnC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spacerComponent.d.ts","sourceRoot":"","sources":["../src/spacerComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3E,wBAAgB,eAAe,CAAC,IAAI,EAAE;IAAE,IAAI,CAAC,EAAE,mBAAmB,CAAA;CAAE,GAAG,cAAc,CAMpF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spacerComponent.js","sourceRoot":"","sources":["../src/spacerComponent.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,eAAe,CAAC,IAAoC;IAClE,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EAAE,IAAI,CAAC,IAAI,IAAI,IAAI;SAC9B;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentInput, ComponentTextColor, ComponentTextSize } from "@team-plain/sdk";
|
|
2
|
+
export declare function textComponent(args: {
|
|
3
|
+
text: string;
|
|
4
|
+
size?: ComponentTextSize;
|
|
5
|
+
color?: ComponentTextColor;
|
|
6
|
+
}): ComponentInput;
|
|
7
|
+
//# sourceMappingURL=textComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textComponent.d.ts","sourceRoot":"","sources":["../src/textComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAE7F,wBAAgB,aAAa,CAAC,IAAI,EAAE;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC5B,GAAG,cAAc,CAQjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textComponent.js","sourceRoot":"","sources":["../src/textComponent.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,aAAa,CAAC,IAI7B;IACC,OAAO;QACL,aAAa,EAAE;YACb,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI;YAC7B,QAAQ,EAAE,IAAI,CAAC,IAAI,IAAI,IAAI;SAC5B;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflowButtonComponent.d.ts","sourceRoot":"","sources":["../src/workflowButtonComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,cAAc,CASjB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function workflowButtonComponent(args) {
|
|
2
|
+
return {
|
|
3
|
+
componentWorkflowButton: {
|
|
4
|
+
workflowButtonLabel: args.label,
|
|
5
|
+
workflowButtonWorkflowIdentifier: {
|
|
6
|
+
workflowId: args.workflowId,
|
|
7
|
+
},
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=workflowButtonComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflowButtonComponent.js","sourceRoot":"","sources":["../src/workflowButtonComponent.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,uBAAuB,CAAC,IAGvC;IACC,OAAO;QACL,uBAAuB,EAAE;YACvB,mBAAmB,EAAE,IAAI,CAAC,KAAK;YAC/B,gCAAgC,EAAE;gBAChC,UAAU,EAAE,IAAI,CAAC,UAAU;aAC5B;SACF;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@team-plain/ui-components",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc",
|
|
21
|
+
"test": "vitest run"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"@team-plain/sdk": "workspace:*"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@team-plain/sdk": "workspace:*",
|
|
28
|
+
"typescript": "^5.7.0"
|
|
29
|
+
}
|
|
30
|
+
}
|