@ultrst-armada/floks 1.6.1 → 1.7.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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "packageName": "@ultrst-armada/floks",
4
- "version": "1.6.1",
5
- "sourceCommit": "09378ff00c07fd74e245f3316a67d17e1dbe802c",
4
+ "version": "1.7.0",
5
+ "sourceCommit": "554d2665e46c627719616a8bd1bd1e92c1041f14",
6
6
  "releaseWorkflow": "npm Release",
7
- "workflowRunId": "40839437328"
7
+ "workflowRunId": "40841626341"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultrst-armada/floks",
3
- "version": "1.6.1",
3
+ "version": "1.7.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  frnlButton,
3
3
  frnlTextInput
4
- } from "./chunk-PUHHHRQO.js";
4
+ } from "./chunk-YVWJ4SW7.js";
5
5
  import {
6
6
  useFloksFrnlStore
7
7
  } from "./chunk-X4B3EBMY.js";
@@ -2,24 +2,48 @@ import {
2
2
  BaseTooltip
3
3
  } from "./chunk-GKP6KHTI.js";
4
4
 
5
- // src/components/base/BaseToggle.tsx
5
+ // src/components/base/BaseTextarea.tsx
6
6
  import { forwardRef } from "react";
7
- import { jsx, jsxs } from "react/jsx-runtime";
8
- var BaseToggle = forwardRef(({
7
+ import { jsx } from "react/jsx-runtime";
8
+ var BaseTextarea = forwardRef(({
9
+ className = "",
10
+ ...props
11
+ }, ref) => {
12
+ return /* @__PURE__ */ jsx("textarea", { ref, className: `skipo-textarea ${className}`, ...props });
13
+ });
14
+ BaseTextarea.displayName = "BaseTextarea";
15
+
16
+ // src/components/base/BaseSelect.tsx
17
+ import { forwardRef as forwardRef2 } from "react";
18
+ import { jsx as jsx2 } from "react/jsx-runtime";
19
+ var BaseSelect = forwardRef2(({
20
+ options,
21
+ error,
22
+ className = "",
23
+ ...props
24
+ }, ref) => {
25
+ return /* @__PURE__ */ jsx2("select", { ref, className: `skipo-select ${className}`, "data-error": error, ...props, children: options.map((o) => /* @__PURE__ */ jsx2("option", { value: o.value, children: o.label }, o.value)) });
26
+ });
27
+ BaseSelect.displayName = "BaseSelect";
28
+
29
+ // src/components/base/BaseToggle.tsx
30
+ import { forwardRef as forwardRef3 } from "react";
31
+ import { jsx as jsx3, jsxs } from "react/jsx-runtime";
32
+ var BaseToggle = forwardRef3(({
9
33
  label,
10
34
  className = "",
11
35
  ...props
12
36
  }, ref) => {
13
37
  return /* @__PURE__ */ jsxs("label", { className: "skipo-toggle-label", children: [
14
- /* @__PURE__ */ jsx("input", { ref, type: "checkbox", className: `skipo-toggle ${className}`, ...props }),
15
- label && /* @__PURE__ */ jsx("span", { children: label })
38
+ /* @__PURE__ */ jsx3("input", { ref, type: "checkbox", className: `skipo-toggle ${className}`, ...props }),
39
+ label && /* @__PURE__ */ jsx3("span", { children: label })
16
40
  ] });
17
41
  });
18
42
  BaseToggle.displayName = "BaseToggle";
19
43
 
20
44
  // src/components/base/CredentialField.tsx
21
- import { forwardRef as forwardRef2, useState } from "react";
22
- import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
45
+ import { forwardRef as forwardRef4, useState } from "react";
46
+ import { Fragment, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
23
47
  var KNOWN_CREDENTIAL_URLS = {
24
48
  openai: { name: "OpenAI API Keys", url: "https://platform.openai.com/api-keys" },
25
49
  anthropic: { name: "Anthropic Console", url: "https://console.anthropic.com/settings/keys" },
@@ -36,7 +60,7 @@ var KNOWN_CREDENTIAL_URLS = {
36
60
  github: { name: "GitHub Personal Access Tokens", url: "https://github.com/settings/tokens" },
37
61
  openrouter: { name: "OpenRouter Keys", url: "https://openrouter.ai/keys" }
38
62
  };
39
- var CredentialField = forwardRef2(({
63
+ var CredentialField = forwardRef4(({
40
64
  serviceId,
41
65
  credentialUrl,
42
66
  serviceLabel,
@@ -58,7 +82,7 @@ var CredentialField = forwardRef2(({
58
82
  width: "100%"
59
83
  },
60
84
  children: [
61
- /* @__PURE__ */ jsx2(
85
+ /* @__PURE__ */ jsx4(
62
86
  "input",
63
87
  {
64
88
  ref,
@@ -79,7 +103,7 @@ var CredentialField = forwardRef2(({
79
103
  gap: "2px"
80
104
  },
81
105
  children: [
82
- /* @__PURE__ */ jsx2(BaseTooltip, { content: showSecret ? "HIDE SECRET CREDENTIAL" : "SHOW SECRET CREDENTIAL", children: /* @__PURE__ */ jsx2(
106
+ /* @__PURE__ */ jsx4(BaseTooltip, { content: showSecret ? "HIDE SECRET CREDENTIAL" : "SHOW SECRET CREDENTIAL", children: /* @__PURE__ */ jsx4(
83
107
  "button",
84
108
  {
85
109
  type: "button",
@@ -94,16 +118,16 @@ var CredentialField = forwardRef2(({
94
118
  display: "flex",
95
119
  alignItems: "center"
96
120
  },
97
- children: /* @__PURE__ */ jsx2("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: showSecret ? /* @__PURE__ */ jsxs2(Fragment, { children: [
98
- /* @__PURE__ */ jsx2("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }),
99
- /* @__PURE__ */ jsx2("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
121
+ children: /* @__PURE__ */ jsx4("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: showSecret ? /* @__PURE__ */ jsxs2(Fragment, { children: [
122
+ /* @__PURE__ */ jsx4("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }),
123
+ /* @__PURE__ */ jsx4("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
100
124
  ] }) : /* @__PURE__ */ jsxs2(Fragment, { children: [
101
- /* @__PURE__ */ jsx2("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
102
- /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "3" })
125
+ /* @__PURE__ */ jsx4("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
126
+ /* @__PURE__ */ jsx4("circle", { cx: "12", cy: "12", r: "3" })
103
127
  ] }) })
104
128
  }
105
129
  ) }),
106
- resolvedUrl && /* @__PURE__ */ jsx2(BaseTooltip, { content: `GET CREDENTIALS: OPEN ${resolvedLabel.toUpperCase()} (EXTERNAL LINK)`, children: /* @__PURE__ */ jsx2(
130
+ resolvedUrl && /* @__PURE__ */ jsx4(BaseTooltip, { content: `GET CREDENTIALS: OPEN ${resolvedLabel.toUpperCase()} (EXTERNAL LINK)`, children: /* @__PURE__ */ jsx4(
107
131
  "a",
108
132
  {
109
133
  href: resolvedUrl,
@@ -119,9 +143,9 @@ var CredentialField = forwardRef2(({
119
143
  textDecoration: "none"
120
144
  },
121
145
  children: /* @__PURE__ */ jsxs2("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
122
- /* @__PURE__ */ jsx2("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
123
- /* @__PURE__ */ jsx2("polyline", { points: "15 3 21 3 21 9" }),
124
- /* @__PURE__ */ jsx2("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
146
+ /* @__PURE__ */ jsx4("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
147
+ /* @__PURE__ */ jsx4("polyline", { points: "15 3 21 3 21 9" }),
148
+ /* @__PURE__ */ jsx4("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
125
149
  ] })
126
150
  }
127
151
  ) })
@@ -135,6 +159,8 @@ var CredentialField = forwardRef2(({
135
159
  CredentialField.displayName = "CredentialField";
136
160
 
137
161
  export {
162
+ BaseTextarea,
163
+ BaseSelect,
138
164
  BaseToggle,
139
165
  KNOWN_CREDENTIAL_URLS,
140
166
  CredentialField