@pglevy/sailwind 0.4.0 → 0.5.1

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 (64) hide show
  1. package/README.md +19 -2
  2. package/dist/components/Button/Button.stories.d.ts +13 -0
  3. package/dist/components/Button/Button.stories.d.ts.map +1 -1
  4. package/dist/components/Button/ButtonWidget.d.ts.map +1 -1
  5. package/dist/components/Button/ButtonWidget.js +67 -61
  6. package/dist/components/Card/Card.stories.d.ts +30 -0
  7. package/dist/components/Card/Card.stories.d.ts.map +1 -1
  8. package/dist/components/Checkbox/Checkbox.stories.d.ts +22 -0
  9. package/dist/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
  10. package/dist/components/Checkbox/CheckboxField.js +63 -60
  11. package/dist/components/Dialog/Dialog.stories.d.ts +10 -0
  12. package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
  13. package/dist/components/Dropdown/Dropdown.stories.d.ts +10 -0
  14. package/dist/components/Dropdown/Dropdown.stories.d.ts.map +1 -1
  15. package/dist/components/Heading/Heading.stories.d.ts +29 -0
  16. package/dist/components/Heading/Heading.stories.d.ts.map +1 -1
  17. package/dist/components/MessageBanner/MessageBanner.stories.d.ts +20 -0
  18. package/dist/components/MessageBanner/MessageBanner.stories.d.ts.map +1 -1
  19. package/dist/components/Milestone/Milestone.stories.d.ts +17 -0
  20. package/dist/components/Milestone/Milestone.stories.d.ts.map +1 -1
  21. package/dist/components/Milestone/MilestoneField.d.ts.map +1 -1
  22. package/dist/components/Milestone/MilestoneField.js +43 -42
  23. package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
  24. package/dist/components/ProgressBar/ProgressBar.js +35 -34
  25. package/dist/components/ProgressBar/ProgressBar.stories.d.ts +13 -0
  26. package/dist/components/ProgressBar/ProgressBar.stories.d.ts.map +1 -1
  27. package/dist/components/RadioButton/RadioButton.stories.d.ts +22 -0
  28. package/dist/components/RadioButton/RadioButton.stories.d.ts.map +1 -1
  29. package/dist/components/ReadOnlyGrid/GridColumn.d.ts +35 -0
  30. package/dist/components/ReadOnlyGrid/GridColumn.d.ts.map +1 -0
  31. package/dist/components/ReadOnlyGrid/GridColumn.js +5 -0
  32. package/dist/components/ReadOnlyGrid/ReadOnlyGrid.d.ts +52 -0
  33. package/dist/components/ReadOnlyGrid/ReadOnlyGrid.d.ts.map +1 -0
  34. package/dist/components/ReadOnlyGrid/ReadOnlyGrid.js +277 -0
  35. package/dist/components/ReadOnlyGrid/ReadOnlyGrid.stories.d.ts +65 -0
  36. package/dist/components/ReadOnlyGrid/ReadOnlyGrid.stories.d.ts.map +1 -0
  37. package/dist/components/ReadOnlyGrid/index.d.ts +5 -0
  38. package/dist/components/ReadOnlyGrid/index.d.ts.map +1 -0
  39. package/dist/components/RichText/RichText.stories.d.ts +18 -0
  40. package/dist/components/RichText/RichText.stories.d.ts.map +1 -1
  41. package/dist/components/Slider/SliderField.d.ts.map +1 -1
  42. package/dist/components/Slider/SliderField.js +69 -68
  43. package/dist/components/Stamp/Stamp.stories.d.ts +24 -0
  44. package/dist/components/Stamp/Stamp.stories.d.ts.map +1 -1
  45. package/dist/components/Stamp/StampField.js +5 -5
  46. package/dist/components/Switch/Switch.stories.d.ts.map +1 -1
  47. package/dist/components/Tabs/Tabs.stories.d.ts +17 -0
  48. package/dist/components/Tabs/Tabs.stories.d.ts.map +1 -1
  49. package/dist/components/Tag/Tag.stories.d.ts +10 -0
  50. package/dist/components/Tag/Tag.stories.d.ts.map +1 -1
  51. package/dist/components/Tag/TagField.d.ts.map +1 -1
  52. package/dist/components/Tag/TagField.js +1 -0
  53. package/dist/components/TextField/TextField.stories.d.ts +10 -0
  54. package/dist/components/TextField/TextField.stories.d.ts.map +1 -1
  55. package/dist/components/Toggle/Toggle.stories.d.ts.map +1 -1
  56. package/dist/components/Toggle/ToggleField.js +20 -20
  57. package/dist/components/index.d.ts +1 -0
  58. package/dist/components/index.d.ts.map +1 -1
  59. package/dist/index.js +40 -36
  60. package/dist/test/setup.d.ts +1 -0
  61. package/dist/test/setup.d.ts.map +1 -0
  62. package/dist/types/sail.d.ts +15 -0
  63. package/dist/types/sail.d.ts.map +1 -1
  64. package/package.json +23 -8
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Sailwind
2
2
 
3
- React component library for prototyping Appian applications with SAIL-compatible syntax.
3
+ [![npm version](https://img.shields.io/npm/v/@pglevy/sailwind)](https://www.npmjs.com/package/@pglevy/sailwind)
4
+
5
+ A React component library for vibe coding that speaks Appian SAIL
4
6
 
5
7
  ## Overview
6
8
 
@@ -20,6 +22,20 @@ Browse the **[Component Reference](https://pglevy.github.io/sailwind/)** to see
20
22
  npm install @pglevy/sailwind
21
23
  ```
22
24
 
25
+ ### Peer Dependencies
26
+
27
+ Sailwind requires React 18 or 19 as a peer dependency:
28
+
29
+ ```bash
30
+ npm install react react-dom
31
+ ```
32
+
33
+ Supported versions:
34
+ - `react` — `^18.0.0 || ^19.0.0`
35
+ - `react-dom` — `^18.0.0 || ^19.0.0`
36
+
37
+ These are listed as `peerDependencies` in the package, so your project needs to provide them.
38
+
23
39
  ### Setup
24
40
 
25
41
  Import the CSS in your main entry file (e.g., `main.tsx` or `App.tsx`):
@@ -122,7 +138,8 @@ a!tagField(
122
138
 
123
139
  - **[Component Reference](https://pglevy.github.io/sailwind/)** — Live Storybook with all components
124
140
  - **[TAILWIND-SAIL-MAPPING.md](TAILWIND-SAIL-MAPPING.md)** — Tailwind to SAIL style mappings
125
- - **[CLAUDE.md](CLAUDE.md)** — Instructions for LLM-assisted development
141
+ - **[CONTRIBUTING.md](CONTRIBUTING.md)** — How to contribute to the project
142
+ - **[AGENTS.md](AGENTS.md)** — Guidance for AI agents working with the library
126
143
  - **[SAIL Docs](https://docs.appian.com/suite/help/25.3/)** — Official Appian SAIL reference
127
144
 
128
145
  ## License
@@ -6,6 +6,19 @@ declare const meta: {
6
6
  parameters: {
7
7
  layout: string;
8
8
  };
9
+ argTypes: {
10
+ style: {
11
+ control: "select";
12
+ options: string[];
13
+ };
14
+ color: {
15
+ control: "text";
16
+ };
17
+ size: {
18
+ control: "select";
19
+ options: string[];
20
+ };
21
+ };
9
22
  };
10
23
  export default meta;
11
24
  type Story = StoryObj<typeof meta>;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAI3D,QAAA,MAAM,IAAI;;;;;;;CAK2B,CAAA;AAErC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAYjC,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,KAYnC,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAW1B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAWzB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAU5B,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAU9B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KASzB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAA"}
1
+ {"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAK3D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;CAU2B,CAAA;AAErC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAerB,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAYjC,CAAA;AAED,eAAO,MAAM,qBAA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,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,IAAI,CAAA;IAC/B,wFAAwF;IACxF,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAgNpD,CAAA"}
@@ -1,28 +1,28 @@
1
- import { jsxs as R, jsx as l } from "react/jsx-runtime";
1
+ import { jsxs as j, jsx as c } from "react/jsx-runtime";
2
2
  import "react";
3
- import * as w from "lucide-react";
4
- import { mergeClasses as M } from "../../utils/classNames.js";
5
- const j = ({
6
- label: a,
7
- style: e = "OUTLINE",
8
- color: t = "ACCENT",
9
- size: d = "STANDARD",
10
- width: p,
11
- disabled: b = !1,
12
- submit: c = !1,
13
- showWhen: f = !0,
14
- icon: i,
15
- iconPosition: g = "START",
16
- accessibilityText: h,
17
- tooltip: C,
18
- loadingIndicator: o = !1,
19
- saveInto: A,
20
- onClick: x,
21
- value: E,
22
- className: N
3
+ import * as W from "lucide-react";
4
+ import { mergeClasses as Y } from "../../utils/classNames.js";
5
+ const K = ({
6
+ label: i,
7
+ style: t = "OUTLINE",
8
+ color: e = "ACCENT",
9
+ size: u = "STANDARD",
10
+ width: A,
11
+ disabled: l = !1,
12
+ submit: x = !1,
13
+ showWhen: E = !0,
14
+ icon: s,
15
+ iconPosition: p = "START",
16
+ accessibilityText: N,
17
+ tooltip: f,
18
+ loadingIndicator: n = !1,
19
+ saveInto: T,
20
+ onClick: S,
21
+ value: I,
22
+ className: m
23
23
  }) => {
24
- if (!f) return null;
25
- const T = {
24
+ if (!E) return null;
25
+ const v = {
26
26
  SMALL: "px-3 py-2 text-sm",
27
27
  // 12px horizontal, 8px vertical
28
28
  STANDARD: "px-4 py-2 text-base",
@@ -31,80 +31,86 @@ const j = ({
31
31
  // 24px horizontal, 12px vertical
32
32
  LARGE: "px-10 py-4 text-xl"
33
33
  // 40px horizontal, 16px vertical
34
- }, S = p === "FILL" ? "w-full" : "w-auto", m = () => {
35
- if (!t.startsWith("#")) return;
34
+ }, D = A === "FILL" ? "w-full" : "w-auto", y = (r) => {
35
+ const o = parseInt(r.slice(1, 3), 16), h = parseInt(r.slice(3, 5), 16), b = parseInt(r.slice(5, 7), 16), d = ($) => {
36
+ const g = $ / 255;
37
+ return g <= 0.04045 ? g / 12.92 : Math.pow((g + 0.055) / 1.055, 2.4);
38
+ }, C = 0.2126 * d(o) + 0.7152 * d(h) + 0.0722 * d(b), V = (1 + 0.05) / (C + 0.05), U = (C + 0.05) / (0 + 0.05);
39
+ return V >= U ? "#ffffff" : "#000000";
40
+ }, L = () => {
41
+ if (!e.startsWith("#")) return;
36
42
  const r = {};
37
- return e === "SOLID" ? (r.backgroundColor = t, r.borderColor = "transparent", r.color = "#ffffff") : e === "OUTLINE" ? (r.borderColor = t, r.color = t, r.backgroundColor = "#ffffff") : (e === "GHOST" || e === "LINK") && (r.color = t, r.borderColor = "transparent"), Object.keys(r).length > 0 ? r : void 0;
38
- }, I = () => {
39
- if (t.startsWith("#"))
43
+ return t === "SOLID" ? (r.backgroundColor = e, r.borderColor = "transparent", r.color = y(e)) : t === "OUTLINE" ? (r.borderColor = e, r.color = e, r.backgroundColor = "#ffffff") : (t === "GHOST" || t === "LINK") && (r.color = e, r.borderColor = "transparent"), Object.keys(r).length > 0 ? r : void 0;
44
+ }, O = () => {
45
+ if (e.startsWith("#"))
40
46
  return "border";
41
- const r = t;
42
- return e === "SOLID" ? {
47
+ const r = e;
48
+ return t === "SOLID" ? {
43
49
  ACCENT: "border border-transparent bg-blue-500 text-white hover:bg-blue-700",
44
50
  POSITIVE: "border border-transparent bg-green-700 text-white hover:bg-green-900",
45
51
  NEGATIVE: "border border-transparent bg-red-700 text-white hover:bg-red-900",
46
52
  SECONDARY: "border border-transparent bg-gray-700 text-white hover:bg-gray-900",
47
53
  STANDARD: "border border-transparent bg-gray-900 text-white hover:bg-gray-700"
48
- }[r] : e === "OUTLINE" ? {
54
+ }[r] : t === "OUTLINE" ? {
49
55
  ACCENT: "border border-blue-500 text-blue-500 bg-white hover:bg-blue-100",
50
56
  POSITIVE: "border border-green-700 text-green-700 bg-white hover:bg-green-100",
51
57
  NEGATIVE: "border border-red-700 text-red-700 bg-white hover:bg-red-100",
52
58
  SECONDARY: "border border-gray-700 text-gray-700 bg-white hover:bg-gray-100",
53
59
  STANDARD: "border border-gray-900 text-gray-900 bg-white hover:bg-gray-100"
54
- }[r] : e === "GHOST" ? {
60
+ }[r] : t === "GHOST" ? {
55
61
  ACCENT: "border border-transparent text-blue-500 hover:bg-blue-100",
56
62
  POSITIVE: "border border-transparent text-green-700 hover:bg-green-100",
57
63
  NEGATIVE: "border border-transparent text-red-700 hover:bg-red-100",
58
64
  SECONDARY: "border border-transparent text-gray-700 hover:bg-gray-100",
59
65
  STANDARD: "border border-transparent text-gray-900 hover:bg-gray-100"
60
- }[r] : e === "LINK" ? {
66
+ }[r] : t === "LINK" ? {
61
67
  ACCENT: "border border-transparent text-blue-500 hover:underline",
62
68
  POSITIVE: "border border-transparent text-green-700 hover:underline",
63
69
  NEGATIVE: "border border-transparent text-red-700 hover:underline",
64
70
  SECONDARY: "border border-transparent text-gray-700 hover:underline",
65
71
  STANDARD: "border border-transparent text-gray-900 hover:underline"
66
72
  }[r] : "";
67
- }, D = () => "", v = `
73
+ }, w = () => "", R = `
68
74
  inline-flex items-center justify-center gap-1
69
75
  font-medium transition-colors h-auto rounded-sm
70
76
  focus:outline-none focus:ring-2 focus:ring-sky-500 focus:ring-offset-2
71
- ${T[d]}
72
- ${S}
73
- ${D()}
74
- ${I()}
75
- ${b || o ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
76
- `.replace(/\s+/g, " ").trim(), y = M(v, N), L = () => {
77
- const r = x || A;
78
- r && !b && !o && r(E);
79
- }, s = (() => {
80
- if (!i) return null;
81
- const r = i.split("-").map((u) => u.charAt(0).toUpperCase() + u.slice(1)).join(""), n = w[r];
82
- return n ? /* @__PURE__ */ l(n, { size: {
77
+ ${v[u]}
78
+ ${D}
79
+ ${w()}
80
+ ${O()}
81
+ ${l || n ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
82
+ `.replace(/\s+/g, " ").trim(), M = Y(R, m), k = () => {
83
+ const r = S || T;
84
+ r && !l && !n && r(I);
85
+ }, a = (() => {
86
+ if (!s) return null;
87
+ const r = s.split("-").map((b) => b.charAt(0).toUpperCase() + b.slice(1)).join(""), o = W[r];
88
+ return o ? /* @__PURE__ */ c(o, { size: {
83
89
  SMALL: 14,
84
90
  STANDARD: 16,
85
91
  MEDIUM: 18,
86
92
  LARGE: 20
87
- }[d], "aria-hidden": "true" }) : (console.warn(`Icon "${i}" not found in Lucide icons`), null);
88
- })(), O = m();
89
- return /* @__PURE__ */ R(
93
+ }[u], "aria-hidden": "true" }) : (console.warn(`Icon "${s}" not found in Lucide icons`), null);
94
+ })(), G = L();
95
+ return /* @__PURE__ */ j(
90
96
  "button",
91
97
  {
92
- type: c ? "submit" : "button",
93
- onClick: L,
94
- disabled: b || o,
95
- className: y,
96
- style: O,
97
- "aria-label": h || a,
98
- title: C,
98
+ type: x ? "submit" : "button",
99
+ onClick: k,
100
+ disabled: l || n,
101
+ className: M,
102
+ style: G,
103
+ "aria-label": N || i || f || (s ? s.replace(/-/g, " ") : void 0),
104
+ title: f,
99
105
  children: [
100
- o && /* @__PURE__ */ l("span", { className: "animate-spin", "aria-label": "loading", children: "⟳" }),
101
- !o && s && g === "START" && s,
102
- a && /* @__PURE__ */ l("span", { children: a }),
103
- !o && s && g === "END" && s
106
+ n && /* @__PURE__ */ c("span", { className: "animate-spin", "aria-label": "loading", children: "⟳" }),
107
+ !n && a && p === "START" && a,
108
+ i && /* @__PURE__ */ c("span", { children: i }),
109
+ !n && a && p === "END" && a
104
110
  ]
105
111
  }
106
112
  );
107
113
  };
108
114
  export {
109
- j as ButtonWidget
115
+ K as ButtonWidget
110
116
  };
@@ -6,6 +6,36 @@ declare const meta: {
6
6
  parameters: {
7
7
  layout: string;
8
8
  };
9
+ argTypes: {
10
+ shape: {
11
+ control: "select";
12
+ options: string[];
13
+ };
14
+ padding: {
15
+ control: "select";
16
+ options: string[];
17
+ };
18
+ style: {
19
+ control: "select";
20
+ options: string[];
21
+ };
22
+ decorativeBarPosition: {
23
+ control: "select";
24
+ options: string[];
25
+ };
26
+ decorativeBarColor: {
27
+ control: "select";
28
+ options: string[];
29
+ };
30
+ marginAbove: {
31
+ control: "select";
32
+ options: string[];
33
+ };
34
+ marginBelow: {
35
+ control: "select";
36
+ options: string[];
37
+ };
38
+ };
9
39
  };
10
40
  export default meta;
11
41
  type Story = StoryObj<typeof meta>;
@@ -1 +1 @@
1
- {"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAG3D,QAAA,MAAM,IAAI;;;;;;;CAKyB,CAAA;AAEnC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAarB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAe9B,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAehC,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAqBjC,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAkBpB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAcxB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAaxB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAc7B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAwBxB,CAAA"}
1
+ {"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAG3D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcyB,CAAA;AAEnC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAarB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAe9B,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAehC,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAqBjC,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAkBpB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAcxB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAaxB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAc7B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAwBxB,CAAA"}
@@ -6,6 +6,28 @@ declare const meta: {
6
6
  parameters: {
7
7
  layout: string;
8
8
  };
9
+ argTypes: {
10
+ labelPosition: {
11
+ control: "select";
12
+ options: string[];
13
+ };
14
+ choiceLayout: {
15
+ control: "select";
16
+ options: string[];
17
+ };
18
+ choiceStyle: {
19
+ control: "select";
20
+ options: string[];
21
+ };
22
+ choicePosition: {
23
+ control: "select";
24
+ options: string[];
25
+ };
26
+ spacing: {
27
+ control: "select";
28
+ options: string[];
29
+ };
30
+ };
9
31
  };
10
32
  export default meta;
11
33
  type Story = StoryObj<typeof meta>;
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAI3D,QAAA,MAAM,IAAI;;;;;;;CAK4B,CAAA;AAEtC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAmBxB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,KAWvC,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KA8B/B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAkB/B,CAAA"}
1
+ {"version":3,"file":"Checkbox.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAK3D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAY4B,CAAA;AAEtC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAqBrB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAmBxB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,KAWvC,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAQ/B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAkB/B,CAAA"}
@@ -1,79 +1,82 @@
1
- import { jsx as r, jsxs as N, Fragment as y } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as x, Fragment as P } from "react/jsx-runtime";
2
2
  import "react";
3
- import { FieldWrapper as P } from "../shared/FieldWrapper.js";
4
- const Y = ({
3
+ import { FieldWrapper as H } from "../shared/FieldWrapper.js";
4
+ const X = ({
5
5
  label: C,
6
- instructions: g,
7
- required: m = !1,
8
- disabled: a = !1,
9
- choiceLabels: x,
10
- choiceValues: R,
6
+ instructions: m,
7
+ required: g = !1,
8
+ disabled: n = !1,
9
+ choiceLabels: R,
10
+ choiceValues: b,
11
11
  value: i = [],
12
12
  validations: u = [],
13
- saveInto: b,
14
- onChange: T,
15
- validationGroup: H,
16
- requiredMessage: A,
17
- align: D,
18
- labelPosition: S = "ABOVE",
19
- helpTooltip: j,
13
+ saveInto: T,
14
+ onChange: S,
15
+ validationGroup: L,
16
+ requiredMessage: h,
17
+ align: A,
18
+ labelPosition: j = "ABOVE",
19
+ helpTooltip: k,
20
20
  choiceLayout: c = "STACKED",
21
- accessibilityText: k,
22
- showWhen: w = !0,
23
- choiceStyle: t = "STANDARD",
24
- spacing: h = "STANDARD",
21
+ accessibilityText: w,
22
+ showWhen: M = !0,
23
+ choiceStyle: a = "STANDARD",
24
+ spacing: D = "STANDARD",
25
25
  data: U,
26
26
  sort: W,
27
27
  marginAbove: v = "NONE",
28
- marginBelow: M = "STANDARD",
28
+ marginBelow: B = "STANDARD",
29
29
  choicePosition: O
30
30
  }) => {
31
- if (!w) return null;
32
- const s = `checkboxfield-${Math.random().toString(36).substr(2, 9)}`, $ = O ?? (t === "CARDS" ? "END" : "START"), B = {
31
+ if (!M) return null;
32
+ const s = `checkboxfield-${Math.random().toString(36).substr(2, 9)}`, $ = O ?? (a === "CARDS" ? "END" : "START"), F = {
33
33
  STANDARD: c === "STACKED" ? "gap-2" : "gap-4",
34
34
  MORE: c === "STACKED" ? "gap-4" : "gap-6",
35
35
  EVEN_MORE: c === "STACKED" ? "gap-6" : "gap-8"
36
- }, F = {
36
+ }, K = {
37
37
  STANDARD: "gap-2",
38
38
  MORE: "gap-4",
39
39
  EVEN_MORE: "gap-6"
40
- }, K = {
40
+ }, V = {
41
41
  LEFT: "justify-start",
42
42
  START: "justify-start",
43
43
  CENTER: "justify-center",
44
44
  RIGHT: "justify-end",
45
45
  END: "justify-end"
46
- }, E = (o, e) => {
47
- const n = T || b;
48
- if (!n) return;
49
- const l = e ? [...i, o] : i.filter((d) => d !== o);
50
- n(l);
51
- }, p = u.length > 0, V = m && !i.length && A, _ = /* @__PURE__ */ r(
46
+ }, E = (t, e) => {
47
+ const o = S || T;
48
+ if (!o) return;
49
+ const l = e ? [...i, t] : i.filter((d) => d !== t);
50
+ o(l);
51
+ }, p = u.length > 0, _ = g && !i.length && h, y = /* @__PURE__ */ r(
52
52
  "div",
53
53
  {
54
54
  className: [
55
55
  c === "STACKED" ? "flex flex-col" : "flex flex-wrap",
56
- B[h],
57
- D && K[D]
56
+ F[D],
57
+ A && V[A]
58
58
  ].filter(Boolean).join(" "),
59
59
  role: "group",
60
- "aria-describedby": g ? `${s}-instructions` : void 0,
61
- children: x.map((o, e) => {
62
- const n = R[e], l = i.includes(n), d = `${s}-choice-${e}`, I = [
60
+ "aria-describedby": m ? `${s}-instructions` : void 0,
61
+ children: R.map((t, e) => {
62
+ const o = b[e], l = i.includes(o), d = `${s}-choice-${e}`, I = [
63
63
  "flex",
64
64
  "items-center",
65
- F[h],
65
+ K[D],
66
66
  $ === "END" && "flex-row-reverse",
67
- t === "CARDS" && "border border-gray-200 rounded-sm p-4 hover:border-blue-500 transition-colors cursor-pointer",
68
- t === "CARDS" && l && "border-blue-500 bg-blue-50",
69
- a && "opacity-50 cursor-not-allowed"
67
+ a === "CARDS" && "border border-gray-200 rounded-sm p-4 hover:border-blue-500 transition-colors cursor-pointer",
68
+ a === "CARDS" && l && "border-blue-500 bg-blue-50",
69
+ n && "opacity-50 cursor-not-allowed"
70
70
  ].filter(Boolean).join(" ");
71
- return /* @__PURE__ */ N(
71
+ return /* @__PURE__ */ x(
72
72
  "div",
73
73
  {
74
74
  className: I,
75
75
  onClick: (f) => {
76
- t === "CARDS" && !a && f.target.tagName !== "INPUT" && E(n, !l);
76
+ if (a === "CARDS" && !n) {
77
+ const N = f.target;
78
+ N.tagName !== "INPUT" && N.tagName !== "LABEL" && E(o, !l);
79
+ }
77
80
  },
78
81
  children: [
79
82
  /* @__PURE__ */ r(
@@ -82,11 +85,11 @@ const Y = ({
82
85
  id: d,
83
86
  type: "checkbox",
84
87
  checked: l,
85
- disabled: a,
86
- onChange: (f) => E(n, f.target.checked),
88
+ disabled: n,
89
+ onChange: (f) => E(o, f.target.checked),
87
90
  className: [
88
91
  "h-4 w-4 rounded border-gray-200 text-blue-500 focus:ring-blue-500",
89
- a ? "cursor-not-allowed" : "cursor-pointer"
92
+ n ? "cursor-not-allowed" : "cursor-pointer"
90
93
  ].filter(Boolean).join(" "),
91
94
  "aria-invalid": p,
92
95
  "aria-errormessage": p ? `${s}-error` : void 0
@@ -95,13 +98,13 @@ const Y = ({
95
98
  /* @__PURE__ */ r(
96
99
  "label",
97
100
  {
98
- htmlFor: t === "CARDS" ? void 0 : d,
101
+ htmlFor: d,
99
102
  className: [
100
103
  "text-base text-gray-900",
101
- t === "CARDS" && "flex-1",
102
- a ? "cursor-not-allowed" : "cursor-pointer"
104
+ a === "CARDS" && "flex-1",
105
+ n ? "cursor-not-allowed" : "cursor-pointer"
103
106
  ].filter(Boolean).join(" "),
104
- children: o
107
+ children: t
105
108
  }
106
109
  )
107
110
  ]
@@ -110,27 +113,27 @@ const Y = ({
110
113
  );
111
114
  })
112
115
  }
113
- ), G = /* @__PURE__ */ N(y, { children: [
114
- p && /* @__PURE__ */ r("div", { id: `${s}-error`, className: "mt-2", role: "alert", children: u.map((o, e) => /* @__PURE__ */ r("p", { className: "text-sm text-red-700", children: o }, e)) }),
115
- V && /* @__PURE__ */ r("p", { className: "text-sm text-red-700 mt-2", role: "alert", children: A })
116
+ ), G = /* @__PURE__ */ x(P, { children: [
117
+ p && /* @__PURE__ */ r("div", { id: `${s}-error`, className: "mt-2", role: "alert", children: u.map((t, e) => /* @__PURE__ */ r("p", { className: "text-sm text-red-700", children: t }, e)) }),
118
+ _ && /* @__PURE__ */ r("p", { className: "text-sm text-red-700 mt-2", role: "alert", children: h })
116
119
  ] });
117
120
  return /* @__PURE__ */ r(
118
- P,
121
+ H,
119
122
  {
120
123
  label: C,
121
- labelPosition: S,
122
- required: m,
123
- instructions: g,
124
- helpTooltip: j,
125
- accessibilityText: k,
124
+ labelPosition: j,
125
+ required: g,
126
+ instructions: m,
127
+ helpTooltip: k,
128
+ accessibilityText: w,
126
129
  inputId: s,
127
130
  marginAbove: v,
128
- marginBelow: M,
131
+ marginBelow: B,
129
132
  footer: G,
130
- children: _
133
+ children: y
131
134
  }
132
135
  );
133
136
  };
134
137
  export {
135
- Y as CheckboxField
138
+ X as CheckboxField
136
139
  };
@@ -6,6 +6,16 @@ declare const meta: {
6
6
  parameters: {
7
7
  layout: string;
8
8
  };
9
+ argTypes: {
10
+ width: {
11
+ control: "select";
12
+ options: string[];
13
+ };
14
+ height: {
15
+ control: "select";
16
+ options: string[];
17
+ };
18
+ };
9
19
  };
10
20
  export default meta;
11
21
  type Story = StoryObj<typeof meta>;
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAM3D,QAAA,MAAM,IAAI;;;;;;;CAK0B,CAAA;AAEpC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAuDxB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KA6ChC,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAiBxB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAqBxB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAgB1B,CAAA"}
1
+ {"version":3,"file":"Dialog.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAO3D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;CAS0B,CAAA;AAEpC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAiCrB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAuExB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KA4DhC,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAiBxB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAqBxB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAgB1B,CAAA"}
@@ -6,6 +6,16 @@ declare const meta: {
6
6
  parameters: {
7
7
  layout: string;
8
8
  };
9
+ argTypes: {
10
+ labelPosition: {
11
+ control: "select";
12
+ options: string[];
13
+ };
14
+ searchDisplay: {
15
+ control: "select";
16
+ options: string[];
17
+ };
18
+ };
9
19
  };
10
20
  export default meta;
11
21
  type Story = StoryObj<typeof meta>;
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAK3D,QAAA,MAAM,IAAI;;;;;;;CAK4B,CAAA;AAEtC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAoBrB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAiBhC,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAwBxB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAmB7B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAmB/B,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KA6BhC,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAc9B,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,KAkBnC,CAAA"}
1
+ {"version":3,"file":"Dropdown.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAM3D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;CAS4B,CAAA;AAEtC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAkCrB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAiBhC,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAuCxB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAuC7B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAsB/B,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KA2BhC,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAgB9B,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,KAoBnC,CAAA"}
@@ -9,6 +9,35 @@ declare const meta: {
9
9
  args: {
10
10
  text: string;
11
11
  };
12
+ argTypes: {
13
+ size: {
14
+ control: "select";
15
+ options: string[];
16
+ };
17
+ headingTag: {
18
+ control: "select";
19
+ options: string[];
20
+ };
21
+ fontWeight: {
22
+ control: "select";
23
+ options: string[];
24
+ };
25
+ align: {
26
+ control: "select";
27
+ options: string[];
28
+ };
29
+ marginAbove: {
30
+ control: "select";
31
+ options: string[];
32
+ };
33
+ marginBelow: {
34
+ control: "select";
35
+ options: string[];
36
+ };
37
+ color: {
38
+ control: "text";
39
+ };
40
+ };
12
41
  };
13
42
  export default meta;
14
43
  type Story = StoryObj<typeof meta>;
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/Heading.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAG3D,QAAA,MAAM,IAAI;;;;;;;;;;CAQ2B,CAAA;AAErC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAWnB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAU5B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAK5B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KASzB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAWzB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAA"}
1
+ {"version":3,"file":"Heading.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/Heading.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAG3D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB2B,CAAA;AAErC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAWnB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAU5B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAK5B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KASzB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAWzB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAA"}