@pglevy/sailwind 0.5.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.
- package/README.md +19 -2
- package/dist/components/Button/Button.stories.d.ts +13 -0
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/Button/ButtonWidget.d.ts.map +1 -1
- package/dist/components/Button/ButtonWidget.js +67 -61
- package/dist/components/Card/Card.stories.d.ts +30 -0
- package/dist/components/Card/Card.stories.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +22 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/dist/components/Checkbox/CheckboxField.js +63 -60
- package/dist/components/Dialog/Dialog.stories.d.ts +10 -0
- package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.stories.d.ts +10 -0
- package/dist/components/Dropdown/Dropdown.stories.d.ts.map +1 -1
- package/dist/components/Heading/Heading.stories.d.ts +29 -0
- package/dist/components/Heading/Heading.stories.d.ts.map +1 -1
- package/dist/components/MessageBanner/MessageBanner.stories.d.ts +20 -0
- package/dist/components/MessageBanner/MessageBanner.stories.d.ts.map +1 -1
- package/dist/components/Milestone/Milestone.stories.d.ts +17 -0
- package/dist/components/Milestone/Milestone.stories.d.ts.map +1 -1
- package/dist/components/Milestone/MilestoneField.d.ts.map +1 -1
- package/dist/components/Milestone/MilestoneField.js +43 -42
- package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.js +35 -34
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +13 -0
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts.map +1 -1
- package/dist/components/RadioButton/RadioButton.stories.d.ts +22 -0
- package/dist/components/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/dist/components/ReadOnlyGrid/ReadOnlyGrid.js +54 -54
- package/dist/components/ReadOnlyGrid/ReadOnlyGrid.stories.d.ts +30 -0
- package/dist/components/ReadOnlyGrid/ReadOnlyGrid.stories.d.ts.map +1 -1
- package/dist/components/RichText/RichText.stories.d.ts +18 -0
- package/dist/components/RichText/RichText.stories.d.ts.map +1 -1
- package/dist/components/Slider/SliderField.d.ts.map +1 -1
- package/dist/components/Slider/SliderField.js +69 -68
- package/dist/components/Stamp/Stamp.stories.d.ts +24 -0
- package/dist/components/Stamp/Stamp.stories.d.ts.map +1 -1
- package/dist/components/Stamp/StampField.js +5 -5
- package/dist/components/Switch/Switch.stories.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.stories.d.ts +17 -0
- package/dist/components/Tabs/Tabs.stories.d.ts.map +1 -1
- package/dist/components/Tag/Tag.stories.d.ts +10 -0
- package/dist/components/Tag/Tag.stories.d.ts.map +1 -1
- package/dist/components/Tag/TagField.d.ts.map +1 -1
- package/dist/components/Tag/TagField.js +1 -0
- package/dist/components/TextField/TextField.stories.d.ts +10 -0
- package/dist/components/TextField/TextField.stories.d.ts.map +1 -1
- package/dist/components/Toggle/Toggle.stories.d.ts.map +1 -1
- package/dist/components/Toggle/ToggleField.js +20 -20
- package/package.json +16 -8
|
@@ -6,6 +6,23 @@ declare const meta: {
|
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
9
|
+
argTypes: {
|
|
10
|
+
size: {
|
|
11
|
+
control: "select";
|
|
12
|
+
options: string[];
|
|
13
|
+
};
|
|
14
|
+
color: {
|
|
15
|
+
control: "text";
|
|
16
|
+
};
|
|
17
|
+
orientation: {
|
|
18
|
+
control: "select";
|
|
19
|
+
options: string[];
|
|
20
|
+
};
|
|
21
|
+
activationMode: {
|
|
22
|
+
control: "select";
|
|
23
|
+
options: string[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
9
26
|
};
|
|
10
27
|
export default meta;
|
|
11
28
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAQ3D,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAQ3D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;CAWwB,CAAA;AAElC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAoBlC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAA;AAED,eAAO,MAAM,0BAA0B,EAAE,KA8ExC,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KA6DjC,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KASvB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KASvB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAU3B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAU3B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAU5B,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAU9B,CAAA"}
|
|
@@ -13,6 +13,16 @@ declare const meta: {
|
|
|
13
13
|
backgroundColor: string;
|
|
14
14
|
}[];
|
|
15
15
|
};
|
|
16
|
+
argTypes: {
|
|
17
|
+
size: {
|
|
18
|
+
control: "select";
|
|
19
|
+
options: string[];
|
|
20
|
+
};
|
|
21
|
+
marginBelow: {
|
|
22
|
+
control: "select";
|
|
23
|
+
options: string[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
16
26
|
};
|
|
17
27
|
export default meta;
|
|
18
28
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAG3D,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"Tag.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAG3D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;CAeuB,CAAA;AAEjC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAA;AAEhC,eAAO,MAAM,cAAc,EAAE,KAS5B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAS7B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagField.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/TagField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAqB,MAAM,kBAAkB,CAAA;AAIjH;;GAEG;AACH,KAAK,OAAO,GAAG,OAAO,CAAC,QAAQ,EAAE,OAAO,GAAG,UAAU,CAAC,CAAA;AAEtD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,oCAAoC;IACpC,IAAI,EAAE,YAAY,EAAE,CAAA;IACpB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iDAAiD;IACjD,aAAa,CAAC,EAAE,iBAAiB,CAAA;IACjC,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mCAAmC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,yCAAyC;IACzC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,uBAAuB;IACvB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,gCAAgC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mCAAmC;IACnC,WAAW,CAAC,EAAE,cAAc,CAAA;IAC5B,mCAAmC;IACnC,WAAW,CAAC,EAAE,cAAc,CAAA;IAC5B,wFAAwF;IACxF,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"TagField.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/TagField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAqB,MAAM,kBAAkB,CAAA;AAIjH;;GAEG;AACH,KAAK,OAAO,GAAG,OAAO,CAAC,QAAQ,EAAE,OAAO,GAAG,UAAU,CAAC,CAAA;AAEtD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,oCAAoC;IACpC,IAAI,EAAE,YAAY,EAAE,CAAA;IACpB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iDAAiD;IACjD,aAAa,CAAC,EAAE,iBAAiB,CAAA;IACjC,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mCAAmC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,yCAAyC;IACzC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,uBAAuB;IACvB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,gCAAgC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mCAAmC;IACnC,WAAW,CAAC,EAAE,cAAc,CAAA;IAC5B,mCAAmC;IACnC,WAAW,CAAC,EAAE,cAAc,CAAA;IAC5B,wFAAwF;IACxF,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA+I5C,CAAA"}
|
|
@@ -32,6 +32,16 @@ declare const meta: {
|
|
|
32
32
|
marginAbove?: import('../..').SAILMarginSize | undefined;
|
|
33
33
|
marginBelow?: import('../..').SAILMarginSize | undefined;
|
|
34
34
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
35
|
+
argTypes: {
|
|
36
|
+
labelPosition: {
|
|
37
|
+
control: "select";
|
|
38
|
+
options: string[];
|
|
39
|
+
};
|
|
40
|
+
align: {
|
|
41
|
+
control: "select";
|
|
42
|
+
options: string[];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
35
45
|
};
|
|
36
46
|
export default meta;
|
|
37
47
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.stories.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"TextField.stories.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAI3D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBwB,CAAA;AAElC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAQhC,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAOpB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAO1B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAQ7B,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAsBjC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/Toggle.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"Toggle.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/Toggle.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAK3D,QAAA,MAAM,IAAI;;;;;;;CAK0B,CAAA;AAEpC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAqBrB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAYxB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAY1B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAYxB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAazB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAavB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAYzB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAY3B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAY3B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAY5B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAA"}
|
|
@@ -8,7 +8,7 @@ const J = ({
|
|
|
8
8
|
text: d,
|
|
9
9
|
instructions: h,
|
|
10
10
|
required: c = !1,
|
|
11
|
-
disabled:
|
|
11
|
+
disabled: g = !1,
|
|
12
12
|
value: p = !1,
|
|
13
13
|
validations: u = [],
|
|
14
14
|
saveInto: S,
|
|
@@ -23,12 +23,12 @@ const J = ({
|
|
|
23
23
|
marginBelow: L = "STANDARD",
|
|
24
24
|
size: G = "STANDARD",
|
|
25
25
|
color: E = "ACCENT",
|
|
26
|
-
style:
|
|
27
|
-
icon:
|
|
26
|
+
style: s = "OUTLINE",
|
|
27
|
+
icon: o,
|
|
28
28
|
iconPosition: x = "START"
|
|
29
29
|
}) => {
|
|
30
30
|
if (!y) return null;
|
|
31
|
-
const
|
|
31
|
+
const n = `togglefield-${Math.random().toString(36).substr(2, 9)}`, U = {
|
|
32
32
|
SMALL: "px-3 py-1.5 text-sm",
|
|
33
33
|
STANDARD: "px-4 py-2.5 text-base",
|
|
34
34
|
MEDIUM: "px-6 py-3 text-lg",
|
|
@@ -37,17 +37,17 @@ const J = ({
|
|
|
37
37
|
if (E.startsWith("#"))
|
|
38
38
|
return "border-2";
|
|
39
39
|
const e = E;
|
|
40
|
-
return
|
|
40
|
+
return s === "SOLID" ? {
|
|
41
41
|
ACCENT: "border-2 border-blue-500 bg-white text-blue-500 data-[state=on]:bg-blue-500 data-[state=on]:text-white data-[state=on]:border-blue-500 hover:bg-blue-50 data-[state=on]:hover:bg-blue-700",
|
|
42
42
|
POSITIVE: "border-2 border-green-700 bg-white text-green-700 data-[state=on]:bg-green-700 data-[state=on]:text-white data-[state=on]:border-green-700 hover:bg-green-50 data-[state=on]:hover:bg-green-900",
|
|
43
43
|
NEGATIVE: "border-2 border-red-700 bg-white text-red-700 data-[state=on]:bg-red-700 data-[state=on]:text-white data-[state=on]:border-red-700 hover:bg-red-50 data-[state=on]:hover:bg-red-900",
|
|
44
44
|
SECONDARY: "border-2 border-gray-700 bg-white text-gray-700 data-[state=on]:bg-gray-700 data-[state=on]:text-white data-[state=on]:border-gray-700 hover:bg-gray-50 data-[state=on]:hover:bg-gray-900"
|
|
45
|
-
}[e] :
|
|
45
|
+
}[e] : s === "OUTLINE" ? {
|
|
46
46
|
ACCENT: "border-2 border-blue-500 text-blue-500 bg-white data-[state=on]:bg-blue-100 hover:bg-blue-50",
|
|
47
47
|
POSITIVE: "border-2 border-green-700 text-green-700 bg-white data-[state=on]:bg-green-100 hover:bg-green-50",
|
|
48
48
|
NEGATIVE: "border-2 border-red-700 text-red-700 bg-white data-[state=on]:bg-red-100 hover:bg-red-50",
|
|
49
49
|
SECONDARY: "border-2 border-gray-700 text-gray-700 bg-white data-[state=on]:bg-gray-100 hover:bg-gray-50"
|
|
50
|
-
}[e] :
|
|
50
|
+
}[e] : s === "GHOST" ? {
|
|
51
51
|
ACCENT: "border-2 border-transparent text-blue-500 bg-transparent data-[state=on]:bg-blue-100 hover:bg-blue-50",
|
|
52
52
|
POSITIVE: "border-2 border-transparent text-green-700 bg-transparent data-[state=on]:bg-green-100 hover:bg-green-50",
|
|
53
53
|
NEGATIVE: "border-2 border-transparent text-red-700 bg-transparent data-[state=on]:bg-red-100 hover:bg-red-50",
|
|
@@ -55,7 +55,7 @@ const J = ({
|
|
|
55
55
|
}[e] : "";
|
|
56
56
|
}, V = (e) => {
|
|
57
57
|
const r = v || S;
|
|
58
|
-
r && !
|
|
58
|
+
r && !g && r(e);
|
|
59
59
|
}, C = (e) => {
|
|
60
60
|
const T = ((j) => j.split("-").map((f) => f.charAt(0).toUpperCase() + f.slice(1)).join(""))(e);
|
|
61
61
|
if (T in a)
|
|
@@ -76,32 +76,32 @@ const J = ({
|
|
|
76
76
|
ARROW_DOWN: "ArrowDown"
|
|
77
77
|
}[e];
|
|
78
78
|
return i && i in a ? a[i] : a.Circle;
|
|
79
|
-
},
|
|
79
|
+
}, b = u.length > 0, W = c && !p && m, F = /* @__PURE__ */ I(
|
|
80
80
|
_.Root,
|
|
81
81
|
{
|
|
82
|
-
id:
|
|
82
|
+
id: n,
|
|
83
83
|
pressed: p,
|
|
84
84
|
onPressedChange: V,
|
|
85
|
-
disabled:
|
|
85
|
+
disabled: g,
|
|
86
86
|
className: [
|
|
87
87
|
"inline-flex items-center justify-center gap-2",
|
|
88
88
|
"font-medium transition-colors rounded-sm",
|
|
89
89
|
U[G],
|
|
90
90
|
M(),
|
|
91
|
-
|
|
91
|
+
g ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
|
|
92
92
|
].filter(Boolean).join(" "),
|
|
93
|
-
"aria-label": A || d || l,
|
|
94
|
-
"aria-describedby": h ? `${
|
|
95
|
-
"aria-invalid":
|
|
96
|
-
"aria-errormessage":
|
|
93
|
+
"aria-label": A || d || l || (o ? o.replace(/-/g, " ") : void 0),
|
|
94
|
+
"aria-describedby": h ? `${n}-instructions` : void 0,
|
|
95
|
+
"aria-invalid": b,
|
|
96
|
+
"aria-errormessage": b ? `${n}-error` : void 0,
|
|
97
97
|
children: [
|
|
98
|
-
|
|
98
|
+
o && x === "START" && /* @__PURE__ */ t("span", { "aria-hidden": "true", children: N.createElement(C(o), { size: 16 }) }),
|
|
99
99
|
d && /* @__PURE__ */ t("span", { children: d }),
|
|
100
|
-
|
|
100
|
+
o && x === "END" && /* @__PURE__ */ t("span", { "aria-hidden": "true", children: N.createElement(C(o), { size: 16 }) })
|
|
101
101
|
]
|
|
102
102
|
}
|
|
103
103
|
), P = /* @__PURE__ */ I(H, { children: [
|
|
104
|
-
|
|
104
|
+
b && /* @__PURE__ */ t("div", { id: `${n}-error`, className: "mt-2", role: "alert", children: u.map((e, r) => /* @__PURE__ */ t("p", { className: "text-sm text-red-700", children: e }, r)) }),
|
|
105
105
|
W && /* @__PURE__ */ t("p", { className: "text-sm text-red-700 mt-2", role: "alert", children: m })
|
|
106
106
|
] });
|
|
107
107
|
return /* @__PURE__ */ t(
|
|
@@ -113,7 +113,7 @@ const J = ({
|
|
|
113
113
|
instructions: h,
|
|
114
114
|
helpTooltip: O,
|
|
115
115
|
accessibilityText: A,
|
|
116
|
-
inputId:
|
|
116
|
+
inputId: n,
|
|
117
117
|
marginAbove: D,
|
|
118
118
|
marginBelow: L,
|
|
119
119
|
footer: P,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pglevy/sailwind",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Appian SAIL components for React - Pre-release version under active development",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -54,7 +54,10 @@
|
|
|
54
54
|
"version:minor": "npm version minor",
|
|
55
55
|
"version:major": "npm version major",
|
|
56
56
|
"release": "npm run build:lib && npm publish --access public",
|
|
57
|
-
"test": "vitest --run"
|
|
57
|
+
"test": "vitest --run",
|
|
58
|
+
"test-storybook": "vitest --run --project=storybook",
|
|
59
|
+
"test:unit": "vitest --run --project=unit",
|
|
60
|
+
"a11y-audit": "node scripts/a11y-audit.cjs"
|
|
58
61
|
},
|
|
59
62
|
"peerDependencies": {
|
|
60
63
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -72,10 +75,11 @@
|
|
|
72
75
|
},
|
|
73
76
|
"devDependencies": {
|
|
74
77
|
"@eslint/js": "^9.36.0",
|
|
75
|
-
"@storybook/addon-a11y": "^10.2.
|
|
76
|
-
"@storybook/addon-docs": "^10.2.
|
|
77
|
-
"@storybook/addon-themes": "^10.2.
|
|
78
|
-
"@storybook/
|
|
78
|
+
"@storybook/addon-a11y": "^10.2.19",
|
|
79
|
+
"@storybook/addon-docs": "^10.2.19",
|
|
80
|
+
"@storybook/addon-themes": "^10.2.19",
|
|
81
|
+
"@storybook/addon-vitest": "^10.2.19",
|
|
82
|
+
"@storybook/react-vite": "^10.2.19",
|
|
79
83
|
"@tailwindcss/postcss": "^4.1.14",
|
|
80
84
|
"@testing-library/jest-dom": "^6.9.1",
|
|
81
85
|
"@testing-library/react": "^16.3.2",
|
|
@@ -83,7 +87,10 @@
|
|
|
83
87
|
"@types/react": "^19.1.13",
|
|
84
88
|
"@types/react-dom": "^19.1.9",
|
|
85
89
|
"@vitejs/plugin-react": "^5.0.3",
|
|
90
|
+
"@vitest/browser-playwright": "^4.0.18",
|
|
91
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
86
92
|
"autoprefixer": "^10.4.21",
|
|
93
|
+
"baseline-browser-mapping": "^2.10.8",
|
|
87
94
|
"eslint": "^9.36.0",
|
|
88
95
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
89
96
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
@@ -94,12 +101,13 @@
|
|
|
94
101
|
"postcss": "^8.5.6",
|
|
95
102
|
"react": "^19.1.1",
|
|
96
103
|
"react-dom": "^19.1.1",
|
|
97
|
-
"storybook": "^10.2.
|
|
104
|
+
"storybook": "^10.2.19",
|
|
98
105
|
"tailwindcss": "^4.1.14",
|
|
99
106
|
"typescript": "~5.8.3",
|
|
100
107
|
"typescript-eslint": "^8.44.0",
|
|
101
108
|
"vite": "^7.1.7",
|
|
102
109
|
"vite-plugin-dts": "^4.5.4",
|
|
103
|
-
"vitest": "^4.0.18"
|
|
110
|
+
"vitest": "^4.0.18",
|
|
111
|
+
"eslint-plugin-storybook": "10.2.19"
|
|
104
112
|
}
|
|
105
113
|
}
|