@pglevy/sailwind 0.1.0 → 0.3.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 (99) hide show
  1. package/README.md +52 -173
  2. package/dist/components/ApplicationHeader/ApplicationHeader.d.ts +34 -0
  3. package/dist/components/ApplicationHeader/ApplicationHeader.d.ts.map +1 -0
  4. package/dist/components/ApplicationHeader/ApplicationHeader.js +236 -0
  5. package/dist/components/ApplicationHeader/ApplicationHeader.stories.d.ts +18 -0
  6. package/dist/components/ApplicationHeader/ApplicationHeader.stories.d.ts.map +1 -0
  7. package/dist/components/ApplicationHeader/index.d.ts +3 -0
  8. package/dist/components/ApplicationHeader/index.d.ts.map +1 -0
  9. package/dist/components/Button/Button.stories.d.ts +21 -0
  10. package/dist/components/Button/Button.stories.d.ts.map +1 -0
  11. package/dist/components/Button/ButtonArrayLayout.d.ts +0 -8
  12. package/dist/components/Button/ButtonArrayLayout.d.ts.map +1 -1
  13. package/dist/components/Button/ButtonWidget.d.ts +3 -10
  14. package/dist/components/Button/ButtonWidget.d.ts.map +1 -1
  15. package/dist/components/Button/ButtonWidget.js +81 -72
  16. package/dist/components/Card/Card.stories.d.ts +21 -0
  17. package/dist/components/Card/Card.stories.d.ts.map +1 -0
  18. package/dist/components/Card/CardLayout.d.ts +0 -9
  19. package/dist/components/Card/CardLayout.d.ts.map +1 -1
  20. package/dist/components/Checkbox/Checkbox.stories.d.ts +20 -0
  21. package/dist/components/Checkbox/Checkbox.stories.d.ts.map +1 -0
  22. package/dist/components/Dialog/Dialog.stories.d.ts +18 -0
  23. package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -0
  24. package/dist/components/Dropdown/Dropdown.stories.d.ts +22 -0
  25. package/dist/components/Dropdown/Dropdown.stories.d.ts.map +1 -0
  26. package/dist/components/Dropdown/DropdownField.d.ts +0 -27
  27. package/dist/components/Dropdown/DropdownField.d.ts.map +1 -1
  28. package/dist/components/Dropdown/MultipleDropdownField.d.ts +0 -25
  29. package/dist/components/Dropdown/MultipleDropdownField.d.ts.map +1 -1
  30. package/dist/components/Heading/Heading.stories.d.ts +23 -0
  31. package/dist/components/Heading/Heading.stories.d.ts.map +1 -0
  32. package/dist/components/Image/Image.stories.d.ts +21 -0
  33. package/dist/components/Image/Image.stories.d.ts.map +1 -0
  34. package/dist/components/Image/UserImage.d.ts +0 -14
  35. package/dist/components/Image/UserImage.d.ts.map +1 -1
  36. package/dist/components/MessageBanner/MessageBanner.stories.d.ts +35 -0
  37. package/dist/components/MessageBanner/MessageBanner.stories.d.ts.map +1 -0
  38. package/dist/components/Milestone/Milestone.stories.d.ts +20 -0
  39. package/dist/components/Milestone/Milestone.stories.d.ts.map +1 -0
  40. package/dist/components/Milestone/MilestoneField.d.ts +0 -8
  41. package/dist/components/Milestone/MilestoneField.d.ts.map +1 -1
  42. package/dist/components/ProgressBar/ProgressBar.stories.d.ts +34 -0
  43. package/dist/components/ProgressBar/ProgressBar.stories.d.ts.map +1 -0
  44. package/dist/components/RadioButton/RadioButton.stories.d.ts +20 -0
  45. package/dist/components/RadioButton/RadioButton.stories.d.ts.map +1 -0
  46. package/dist/components/RichText/RichText.stories.d.ts +19 -0
  47. package/dist/components/RichText/RichText.stories.d.ts.map +1 -0
  48. package/dist/components/Slider/Slider.stories.d.ts +26 -0
  49. package/dist/components/Slider/Slider.stories.d.ts.map +1 -0
  50. package/dist/components/Stamp/Stamp.stories.d.ts +19 -0
  51. package/dist/components/Stamp/Stamp.stories.d.ts.map +1 -0
  52. package/dist/components/Switch/Switch.stories.d.ts +26 -0
  53. package/dist/components/Switch/Switch.stories.d.ts.map +1 -0
  54. package/dist/components/Tabs/Tabs.stories.d.ts +21 -0
  55. package/dist/components/Tabs/Tabs.stories.d.ts.map +1 -0
  56. package/dist/components/Tag/Tag.stories.d.ts +23 -0
  57. package/dist/components/Tag/Tag.stories.d.ts.map +1 -0
  58. package/dist/components/Tag/TagField.d.ts +0 -8
  59. package/dist/components/Tag/TagField.d.ts.map +1 -1
  60. package/dist/components/TextField/TextField.d.ts +0 -10
  61. package/dist/components/TextField/TextField.d.ts.map +1 -1
  62. package/dist/components/TextField/TextField.stories.d.ts +46 -0
  63. package/dist/components/TextField/TextField.stories.d.ts.map +1 -0
  64. package/dist/components/Toggle/Toggle.stories.d.ts +24 -0
  65. package/dist/components/Toggle/Toggle.stories.d.ts.map +1 -0
  66. package/dist/components/index.d.ts +1 -1
  67. package/dist/components/index.d.ts.map +1 -1
  68. package/dist/images/icon-app.svg +1 -0
  69. package/dist/images/icon-appian-header.png +0 -0
  70. package/dist/images/icon-expression-rule.svg +1 -0
  71. package/dist/images/icon-interface.svg +1 -0
  72. package/dist/images/icon-record-type.svg +1 -0
  73. package/dist/index.js +30 -30
  74. package/dist/stories/Welcome.stories.d.ts +11 -0
  75. package/dist/stories/Welcome.stories.d.ts.map +1 -0
  76. package/dist/stories/pages/ApplicationHeaderDemo.stories.d.ts +13 -0
  77. package/dist/stories/pages/ApplicationHeaderDemo.stories.d.ts.map +1 -0
  78. package/dist/stories/pages/ButtonTextFieldTest.stories.d.ts +13 -0
  79. package/dist/stories/pages/ButtonTextFieldTest.stories.d.ts.map +1 -0
  80. package/dist/stories/pages/ESGConferenceRegistration.stories.d.ts +13 -0
  81. package/dist/stories/pages/ESGConferenceRegistration.stories.d.ts.map +1 -0
  82. package/dist/stories/pages/InsuranceQuoteWizard.stories.d.ts +13 -0
  83. package/dist/stories/pages/InsuranceQuoteWizard.stories.d.ts.map +1 -0
  84. package/dist/stories/patterns/ApplicationStatus.stories.d.ts +12 -0
  85. package/dist/stories/patterns/ApplicationStatus.stories.d.ts.map +1 -0
  86. package/dist/stories/patterns/DocumentReview.stories.d.ts +12 -0
  87. package/dist/stories/patterns/DocumentReview.stories.d.ts.map +1 -0
  88. package/dist/stories/patterns/FormEntry.stories.d.ts +12 -0
  89. package/dist/stories/patterns/FormEntry.stories.d.ts.map +1 -0
  90. package/dist/stories/patterns/Publications.stories.d.ts +12 -0
  91. package/dist/stories/patterns/Publications.stories.d.ts.map +1 -0
  92. package/dist/stories/patterns/TaskDashboard.stories.d.ts +12 -0
  93. package/dist/stories/patterns/TaskDashboard.stories.d.ts.map +1 -0
  94. package/dist/stories/patterns/UserProfile.stories.d.ts +12 -0
  95. package/dist/stories/patterns/UserProfile.stories.d.ts.map +1 -0
  96. package/package.json +14 -4
  97. package/dist/components/TableOfContents.d.ts +0 -2
  98. package/dist/components/TableOfContents.d.ts.map +0 -1
  99. package/dist/components/TableOfContents.js +0 -142
@@ -0,0 +1,12 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: () => import("react/jsx-runtime").JSX.Element;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ };
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const Default: Story;
12
+ //# sourceMappingURL=TaskDashboard.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskDashboard.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/patterns/TaskDashboard.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAG3D,QAAA,MAAM,IAAI;;;;;;CAI4B,CAAA;AAEtC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: () => import("react/jsx-runtime").JSX.Element;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ };
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const Default: Story;
12
+ //# sourceMappingURL=UserProfile.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserProfile.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/patterns/UserProfile.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAG3D,QAAA,MAAM,IAAI;;;;;;CAI0B,CAAA;AAEpC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pglevy/sailwind",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Appian SAIL components for React - Pre-release version under active development",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -42,9 +42,15 @@
42
42
  "build:lib": "vite build --mode library",
43
43
  "lint": "eslint .",
44
44
  "preview": "vite preview",
45
+ "storybook": "storybook dev -p 6006",
46
+ "build-storybook": "storybook build",
45
47
  "check-page": "node scripts/quick-check.cjs",
46
48
  "check-page:full": "node scripts/full-check.cjs",
47
- "prepublishOnly": "npm run build:lib"
49
+ "prepublishOnly": "npm run build:lib",
50
+ "version:patch": "npm version patch",
51
+ "version:minor": "npm version minor",
52
+ "version:major": "npm version major",
53
+ "release": "npm run build:lib && npm publish --access public"
48
54
  },
49
55
  "peerDependencies": {
50
56
  "react": "^18.0.0 || ^19.0.0",
@@ -58,11 +64,14 @@
58
64
  "@radix-ui/react-switch": "^1.2.6",
59
65
  "@radix-ui/react-tabs": "^1.1.13",
60
66
  "@radix-ui/react-toggle": "^1.1.10",
61
- "lucide-react": "^0.545.0",
62
- "wouter": "^3.7.1"
67
+ "lucide-react": "^0.545.0"
63
68
  },
64
69
  "devDependencies": {
65
70
  "@eslint/js": "^9.36.0",
71
+ "@storybook/addon-a11y": "^10.2.8",
72
+ "@storybook/addon-docs": "^10.2.8",
73
+ "@storybook/addon-themes": "^10.2.8",
74
+ "@storybook/react-vite": "^10.2.8",
66
75
  "@tailwindcss/postcss": "^4.1.14",
67
76
  "@types/react": "^19.1.13",
68
77
  "@types/react-dom": "^19.1.9",
@@ -76,6 +85,7 @@
76
85
  "postcss": "^8.5.6",
77
86
  "react": "^19.1.1",
78
87
  "react-dom": "^19.1.1",
88
+ "storybook": "^10.2.8",
79
89
  "tailwindcss": "^4.1.14",
80
90
  "typescript": "~5.8.3",
81
91
  "typescript-eslint": "^8.44.0",
@@ -1,2 +0,0 @@
1
- export declare const TableOfContents: () => import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=TableOfContents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableOfContents.d.ts","sourceRoot":"","sources":["../../src/components/TableOfContents.tsx"],"names":[],"mappings":"AA6HA,eAAO,MAAM,eAAe,+CA4B3B,CAAA"}
@@ -1,142 +0,0 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import { useLocation as c } from "wouter";
3
- import { CardLayout as d } from "./Card/CardLayout.js";
4
- import { HeadingField as s } from "./Heading/HeadingField.js";
5
- import { RichTextDisplayField as l } from "./RichText/RichTextDisplayField.js";
6
- import { TextItem as r } from "./RichText/TextItem.js";
7
- import "react";
8
- import "lucide-react";
9
- const n = [
10
- {
11
- title: "Component Library",
12
- items: [
13
- {
14
- title: "Components",
15
- path: "/components",
16
- description: "Interactive component demos and documentation"
17
- }
18
- ]
19
- },
20
- {
21
- title: "Interface Patterns",
22
- items: [
23
- {
24
- title: "Task Dashboard",
25
- path: "/patterns/taskdashboard",
26
- description: "Task management interface with status tracking"
27
- },
28
- {
29
- title: "Application Status",
30
- path: "/patterns/applicationstatus",
31
- description: "Application review and approval workflow"
32
- },
33
- {
34
- title: "Document Review",
35
- path: "/patterns/documentreview",
36
- description: "Document approval and feedback interface"
37
- },
38
- {
39
- title: "User Profile",
40
- path: "/patterns/userprofile",
41
- description: "User information and settings management"
42
- },
43
- {
44
- title: "Form Entry",
45
- path: "/patterns/formentry",
46
- description: "Data entry form with validation"
47
- },
48
- {
49
- title: "Publications",
50
- path: "/patterns/publications",
51
- description: "List of items in a card with tags and filtering"
52
- }
53
- ]
54
- },
55
- {
56
- title: "Pages",
57
- items: [
58
- {
59
- title: "ESG Conference Registration",
60
- path: "/esgconferenceregistration",
61
- description: "Event registration with multiple steps"
62
- },
63
- {
64
- title: "Insurance Quote Wizard",
65
- path: "/insurancequotewizard",
66
- description: "Multi-step insurance quote process"
67
- }
68
- ]
69
- }
70
- ], m = ({ item: e }) => {
71
- const [, a] = c();
72
- return /* @__PURE__ */ t("div", { className: "mb-4", children: /* @__PURE__ */ t(
73
- l,
74
- {
75
- value: [
76
- /* @__PURE__ */ t(
77
- r,
78
- {
79
- text: e.title,
80
- color: "ACCENT",
81
- size: "MEDIUM",
82
- link: () => a(e.path),
83
- linkStyle: "STANDALONE"
84
- },
85
- "title"
86
- ),
87
- /* @__PURE__ */ t("br", {}),
88
- /* @__PURE__ */ t(
89
- r,
90
- {
91
- text: e.description,
92
- color: "SECONDARY",
93
- size: "STANDARD"
94
- },
95
- "desc"
96
- )
97
- ],
98
- marginBelow: "EVEN_LESS"
99
- }
100
- ) });
101
- }, o = ({ group: e }) => /* @__PURE__ */ i("div", { children: [
102
- /* @__PURE__ */ t(
103
- s,
104
- {
105
- text: e.title,
106
- size: "MEDIUM",
107
- fontWeight: "SEMI_BOLD",
108
- headingTag: "H2",
109
- marginBelow: "STANDARD"
110
- }
111
- ),
112
- /* @__PURE__ */ t("div", { className: "space-y-2", children: e.items.map((a, p) => /* @__PURE__ */ t(m, { item: a }, p)) })
113
- ] }), T = () => /* @__PURE__ */ i("div", { className: "max-w-4xl mx-auto", children: [
114
- /* @__PURE__ */ t(
115
- s,
116
- {
117
- text: "Table of Contents",
118
- size: "LARGE",
119
- headingTag: "H2",
120
- align: "CENTER",
121
- marginBelow: "EVEN_LESS"
122
- }
123
- ),
124
- /* @__PURE__ */ t(
125
- l,
126
- {
127
- value: ["Explore the available components and example interfaces"],
128
- align: "CENTER",
129
- marginBelow: "MORE"
130
- }
131
- ),
132
- /* @__PURE__ */ t(d, { padding: "MORE", marginBelow: "NONE", showBorder: !1, showShadow: !0, children: /* @__PURE__ */ i("div", { className: "grid gap-8 md:grid-cols-2", children: [
133
- /* @__PURE__ */ i("div", { className: "space-y-8", children: [
134
- /* @__PURE__ */ t(o, { group: n[0] }),
135
- /* @__PURE__ */ t(o, { group: n[1] })
136
- ] }),
137
- /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(o, { group: n[2] }) })
138
- ] }) })
139
- ] });
140
- export {
141
- T as TableOfContents
142
- };