@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.
Files changed (45) hide show
  1. package/dist/badgeComponent.d.ts +6 -0
  2. package/dist/badgeComponent.d.ts.map +1 -0
  3. package/dist/badgeComponent.js +9 -0
  4. package/dist/badgeComponent.js.map +1 -0
  5. package/dist/containerComponent.d.ts +5 -0
  6. package/dist/containerComponent.d.ts.map +1 -0
  7. package/dist/containerComponent.js +8 -0
  8. package/dist/containerComponent.js.map +1 -0
  9. package/dist/copyButtonComponent.d.ts +6 -0
  10. package/dist/copyButtonComponent.d.ts.map +1 -0
  11. package/dist/copyButtonComponent.js +9 -0
  12. package/dist/copyButtonComponent.js.map +1 -0
  13. package/dist/dividerComponent.d.ts +5 -0
  14. package/dist/dividerComponent.d.ts.map +1 -0
  15. package/dist/dividerComponent.js +8 -0
  16. package/dist/dividerComponent.js.map +1 -0
  17. package/dist/index.d.ts +23 -0
  18. package/dist/index.d.ts.map +1 -0
  19. package/dist/index.js +23 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/linkButtonComponent.d.ts +6 -0
  22. package/dist/linkButtonComponent.d.ts.map +1 -0
  23. package/dist/linkButtonComponent.js +9 -0
  24. package/dist/linkButtonComponent.js.map +1 -0
  25. package/dist/plainTextComponent.d.ts +7 -0
  26. package/dist/plainTextComponent.d.ts.map +1 -0
  27. package/dist/plainTextComponent.js +10 -0
  28. package/dist/plainTextComponent.js.map +1 -0
  29. package/dist/rowComponent.d.ts +6 -0
  30. package/dist/rowComponent.d.ts.map +1 -0
  31. package/dist/rowComponent.js +9 -0
  32. package/dist/rowComponent.js.map +1 -0
  33. package/dist/spacerComponent.d.ts +5 -0
  34. package/dist/spacerComponent.d.ts.map +1 -0
  35. package/dist/spacerComponent.js +8 -0
  36. package/dist/spacerComponent.js.map +1 -0
  37. package/dist/textComponent.d.ts +7 -0
  38. package/dist/textComponent.d.ts.map +1 -0
  39. package/dist/textComponent.js +10 -0
  40. package/dist/textComponent.js.map +1 -0
  41. package/dist/workflowButtonComponent.d.ts +6 -0
  42. package/dist/workflowButtonComponent.d.ts.map +1 -0
  43. package/dist/workflowButtonComponent.js +11 -0
  44. package/dist/workflowButtonComponent.js.map +1 -0
  45. package/package.json +30 -0
@@ -0,0 +1,6 @@
1
+ import type { ComponentBadgeColor, ComponentInput } from "@team-plain/sdk";
2
+ export declare function badgeComponent(args: {
3
+ label: string;
4
+ color?: ComponentBadgeColor;
5
+ }): ComponentInput;
6
+ //# sourceMappingURL=badgeComponent.d.ts.map
@@ -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,9 @@
1
+ export function badgeComponent(args) {
2
+ return {
3
+ componentBadge: {
4
+ badgeLabel: args.label,
5
+ badgeColor: args.color ?? null,
6
+ },
7
+ };
8
+ }
9
+ //# sourceMappingURL=badgeComponent.js.map
@@ -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,5 @@
1
+ import type { ComponentInput } from "@team-plain/sdk";
2
+ export declare function containerComponent(args: {
3
+ content: ComponentInput[];
4
+ }): ComponentInput;
5
+ //# sourceMappingURL=containerComponent.d.ts.map
@@ -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,8 @@
1
+ export function containerComponent(args) {
2
+ return {
3
+ componentContainer: {
4
+ containerContent: args.content,
5
+ },
6
+ };
7
+ }
8
+ //# sourceMappingURL=containerComponent.js.map
@@ -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,6 @@
1
+ import type { ComponentInput } from "@team-plain/sdk";
2
+ export declare function copyButtonComponent(args: {
3
+ value: string;
4
+ tooltip?: string;
5
+ }): ComponentInput;
6
+ //# sourceMappingURL=copyButtonComponent.d.ts.map
@@ -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,9 @@
1
+ export function copyButtonComponent(args) {
2
+ return {
3
+ componentCopyButton: {
4
+ copyButtonValue: args.value,
5
+ copyButtonTooltipLabel: args.tooltip,
6
+ },
7
+ };
8
+ }
9
+ //# sourceMappingURL=copyButtonComponent.js.map
@@ -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,5 @@
1
+ import type { ComponentDividerSpacingSize, ComponentInput } from "@team-plain/sdk";
2
+ export declare function dividerComponent(args: {
3
+ spacingSize?: ComponentDividerSpacingSize;
4
+ }): ComponentInput;
5
+ //# sourceMappingURL=dividerComponent.d.ts.map
@@ -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,8 @@
1
+ export function dividerComponent(args) {
2
+ return {
3
+ componentDivider: {
4
+ dividerSpacingSize: args.spacingSize ?? null,
5
+ },
6
+ };
7
+ }
8
+ //# sourceMappingURL=dividerComponent.js.map
@@ -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"}
@@ -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,6 @@
1
+ import type { ComponentInput } from "@team-plain/sdk";
2
+ export declare function linkButtonComponent(args: {
3
+ label: string;
4
+ url: string;
5
+ }): ComponentInput;
6
+ //# sourceMappingURL=linkButtonComponent.d.ts.map
@@ -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,9 @@
1
+ export function linkButtonComponent(args) {
2
+ return {
3
+ componentLinkButton: {
4
+ linkButtonLabel: args.label,
5
+ linkButtonUrl: args.url,
6
+ },
7
+ };
8
+ }
9
+ //# sourceMappingURL=linkButtonComponent.js.map
@@ -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,10 @@
1
+ export function plainTextComponent(args) {
2
+ return {
3
+ componentPlainText: {
4
+ plainText: args.text,
5
+ plainTextColor: args.color ?? null,
6
+ plainTextSize: args.size ?? null,
7
+ },
8
+ };
9
+ }
10
+ //# sourceMappingURL=plainTextComponent.js.map
@@ -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,6 @@
1
+ import type { ComponentInput } from "@team-plain/sdk";
2
+ export declare function rowComponent(args: {
3
+ mainContent: ComponentInput[];
4
+ asideContent: ComponentInput[];
5
+ }): ComponentInput;
6
+ //# sourceMappingURL=rowComponent.d.ts.map
@@ -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,9 @@
1
+ export function rowComponent(args) {
2
+ return {
3
+ componentRow: {
4
+ rowMainContent: args.mainContent,
5
+ rowAsideContent: args.asideContent,
6
+ },
7
+ };
8
+ }
9
+ //# sourceMappingURL=rowComponent.js.map
@@ -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,5 @@
1
+ import type { ComponentInput, ComponentSpacerSize } from "@team-plain/sdk";
2
+ export declare function spacerComponent(args: {
3
+ size?: ComponentSpacerSize;
4
+ }): ComponentInput;
5
+ //# sourceMappingURL=spacerComponent.d.ts.map
@@ -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,8 @@
1
+ export function spacerComponent(args) {
2
+ return {
3
+ componentSpacer: {
4
+ spacerSize: args.size ?? null,
5
+ },
6
+ };
7
+ }
8
+ //# sourceMappingURL=spacerComponent.js.map
@@ -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,10 @@
1
+ export function textComponent(args) {
2
+ return {
3
+ componentText: {
4
+ text: args.text,
5
+ textColor: args.color ?? null,
6
+ textSize: args.size ?? null,
7
+ },
8
+ };
9
+ }
10
+ //# sourceMappingURL=textComponent.js.map
@@ -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,6 @@
1
+ import type { ComponentInput } from "@team-plain/sdk";
2
+ export declare function workflowButtonComponent(args: {
3
+ label: string;
4
+ workflowId: string;
5
+ }): ComponentInput;
6
+ //# sourceMappingURL=workflowButtonComponent.d.ts.map
@@ -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
+ }