@grantbii/design-system 1.19.6 → 1.20.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 (40) hide show
  1. package/core/archive/Badges.js +1 -1
  2. package/core/archive/Badges.js.map +1 -1
  3. package/core/archive/RadioButtons.js +1 -1
  4. package/core/archive/RadioButtons.js.map +1 -1
  5. package/core/archive/TallyModal.js +7 -2
  6. package/core/archive/TallyModal.js.map +1 -1
  7. package/core/integrations/registry.js +1 -1
  8. package/core/integrations/registry.js.map +1 -1
  9. package/core/molecules/PageLoader.js +1 -1
  10. package/core/molecules/PageLoader.js.map +1 -1
  11. package/core/molecules/RadioButton.d.ts +1 -1
  12. package/core/molecules/RadioButton.js +1 -1
  13. package/core/molecules/RadioButton.js.map +1 -1
  14. package/core/organisms/Dropdown.js +1 -1
  15. package/core/organisms/Dropdown.js.map +1 -1
  16. package/core/organisms/FileDrop.js +2 -2
  17. package/core/organisms/FileDrop.js.map +1 -1
  18. package/core/organisms/Modal.js +1 -1
  19. package/core/organisms/Modal.js.map +1 -1
  20. package/core/organisms/SearchBar.d.ts +10 -0
  21. package/core/organisms/SearchBar.js +86 -0
  22. package/core/organisms/SearchBar.js.map +1 -0
  23. package/core/organisms/index.d.ts +1 -0
  24. package/core/organisms/index.js +1 -0
  25. package/core/organisms/index.js.map +1 -1
  26. package/core/templates/GrantMatch/OpenModalButton.d.ts +5 -0
  27. package/core/templates/GrantMatch/OpenModalButton.js +62 -0
  28. package/core/templates/GrantMatch/OpenModalButton.js.map +1 -0
  29. package/core/templates/GrantMatch/index.js +31 -4
  30. package/core/templates/GrantMatch/index.js.map +1 -1
  31. package/package.json +1 -1
  32. package/stories/organisms/SearchBar.stories.d.ts +6 -0
  33. package/stories/organisms/SearchBar.stories.js +27 -0
  34. package/stories/organisms/SearchBar.stories.js.map +1 -0
  35. package/tsconfig.tsbuildinfo +1 -1
  36. package/vitest.config.js +3 -3
  37. package/vitest.config.js.map +1 -1
  38. package/core/templates/GrantMatch/SearchBar.d.ts +0 -6
  39. package/core/templates/GrantMatch/SearchBar.js +0 -165
  40. package/core/templates/GrantMatch/SearchBar.js.map +0 -1
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@grantbii/design-system",
3
3
  "author": "Grantbii",
4
4
  "license": "UNLICENSED",
5
- "version": "1.19.6",
5
+ "version": "1.20.1",
6
6
  "description": "Grantbii's Design System",
7
7
  "homepage": "https://design.grantbii.com",
8
8
  "repository": {
@@ -0,0 +1,6 @@
1
+ import { SearchBar } from "@/.";
2
+ import type { Meta, StoryObj } from "@storybook/nextjs-vite";
3
+ declare const meta: Meta<typeof SearchBar>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { SearchBar } from "@/.";
3
+ import { useState } from "react";
4
+ const SearchBarExample = () => {
5
+ const [activeQuery, setActiveQuery] = useState(emptyQuery);
6
+ const updateActiveQuery = (newQuery) => setActiveQuery(newQuery);
7
+ const [queryText, setQueryText] = useState("");
8
+ const updateQueryText = (newText) => setQueryText(newText);
9
+ return (_jsx(SearchBar, { activeQuery: activeQuery, updateActiveQuery: updateActiveQuery, queryText: queryText, updateQueryText: updateQueryText }));
10
+ };
11
+ const emptyQuery = {
12
+ text: "",
13
+ files: [],
14
+ };
15
+ const meta = {
16
+ title: "Organisms/SearchBar",
17
+ component: SearchBarExample,
18
+ tags: ["autodocs"],
19
+ parameters: {
20
+ layout: "fullscreen",
21
+ },
22
+ };
23
+ export default meta;
24
+ export const Default = {
25
+ args: {},
26
+ };
27
+ //# sourceMappingURL=SearchBar.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchBar.stories.js","sourceRoot":"","sources":["../../../stories/organisms/SearchBar.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAGhC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IAC5B,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAkB,UAAU,CAAC,CAAC;IAC5E,MAAM,iBAAiB,GAAG,CAAC,QAAyB,EAAE,EAAE,CACtD,cAAc,CAAC,QAAQ,CAAC,CAAC;IAE3B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC/C,MAAM,eAAe,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAEnE,OAAO,CACL,KAAC,SAAS,IACR,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,iBAAiB,EACpC,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,GAChC,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;CACV,CAAC;AAEF,MAAM,IAAI,GAA2B;IACnC,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,gBAAgB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;CACT,CAAC","sourcesContent":["import { SearchBar } from \"@/.\";\nimport type { GrantMatchQuery } from \"@grantbii/ui-core/match/entities\";\nimport type { Meta, StoryObj } from \"@storybook/nextjs-vite\";\nimport { useState } from \"react\";\n\nconst SearchBarExample = () => {\n const [activeQuery, setActiveQuery] = useState<GrantMatchQuery>(emptyQuery);\n const updateActiveQuery = (newQuery: GrantMatchQuery) =>\n setActiveQuery(newQuery);\n\n const [queryText, setQueryText] = useState(\"\");\n const updateQueryText = (newText: string) => setQueryText(newText);\n\n return (\n <SearchBar\n activeQuery={activeQuery}\n updateActiveQuery={updateActiveQuery}\n queryText={queryText}\n updateQueryText={updateQueryText}\n />\n );\n};\n\nconst emptyQuery = {\n text: \"\",\n files: [],\n};\n\nconst meta: Meta<typeof SearchBar> = {\n title: \"Organisms/SearchBar\",\n component: SearchBarExample,\n tags: [\"autodocs\"],\n parameters: {\n layout: \"fullscreen\",\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const Default: Story = {\n args: {},\n};\n"]}