@grantbii/design-system 1.25.0 → 1.27.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 (41) hide show
  1. package/README.md +1 -1
  2. package/core/archive/RadioButtons.d.ts +1 -1
  3. package/core/archive/TallyModal.d.ts +1 -1
  4. package/core/archive/YesNoOptions.d.ts +1 -1
  5. package/core/atoms/BrandLogo.d.ts +1 -1
  6. package/core/integrations/registry.d.ts +1 -1
  7. package/core/molecules/Badge.d.ts +2 -2
  8. package/core/molecules/Button.d.ts +4 -4
  9. package/core/molecules/Button.js.map +1 -1
  10. package/core/molecules/Checkbox.d.ts +1 -1
  11. package/core/molecules/Input.d.ts +1 -1
  12. package/core/molecules/PageLoader.d.ts +1 -1
  13. package/core/molecules/RadioButton.d.ts +1 -1
  14. package/core/molecules/index.d.ts +1 -1
  15. package/core/molecules/index.js +1 -1
  16. package/core/molecules/index.js.map +1 -1
  17. package/core/organisms/Dropdown.d.ts +1 -1
  18. package/core/organisms/FileDrop.d.ts +1 -1
  19. package/core/organisms/SearchBar.d.ts +11 -8
  20. package/core/organisms/SearchBar.js +17 -28
  21. package/core/organisms/SearchBar.js.map +1 -1
  22. package/core/organisms/index.d.ts +1 -1
  23. package/core/organisms/index.js.map +1 -1
  24. package/core/templates/ErrorFallback.d.ts +1 -1
  25. package/core/templates/GrantMatch/ActiveQueryFiles.d.ts +1 -1
  26. package/core/templates/GrantMatch/GrantMatchModal.d.ts +1 -1
  27. package/core/templates/GrantMatch/OpenModalButton.d.ts +1 -1
  28. package/core/templates/GrantMatch/index.d.ts +1 -1
  29. package/core/templates/GrantMatch/index.js +16 -8
  30. package/core/templates/GrantMatch/index.js.map +1 -1
  31. package/package.json +21 -21
  32. package/stories/archive/RadioButtons.stories.d.ts +1 -1
  33. package/stories/archive/TallyModal.stories.d.ts +1 -1
  34. package/stories/organisms/Dropdown.stories.d.ts +1 -1
  35. package/stories/organisms/FileDrop.stories.d.ts +1 -1
  36. package/stories/organisms/Modal.stories.d.ts +1 -1
  37. package/stories/organisms/SearchBar.stories.d.ts +1 -0
  38. package/stories/organisms/SearchBar.stories.js +10 -9
  39. package/stories/organisms/SearchBar.stories.js.map +1 -1
  40. package/stories/templates/GrantMatch.stories.d.ts +1 -1
  41. package/tsconfig.tsbuildinfo +1 -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.25.0",
5
+ "version": "1.27.0",
6
6
  "description": "Grantbii's Design System",
7
7
  "homepage": "https://design.grantbii.com",
8
8
  "repository": {
@@ -21,12 +21,12 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@phosphor-icons/react": "2.1.10",
24
- "country-flag-icons": "1.6.17",
24
+ "country-flag-icons": "1.6.19",
25
25
  "react-dropzone": "15.0.0",
26
26
  "react-spinners": "0.17.0"
27
27
  },
28
28
  "peerDependencies": {
29
- "@grantbii/ui-core": "^1.8",
29
+ "@grantbii/ui-core": "^1.10",
30
30
  "next": "^16.2",
31
31
  "react": ">=18 <20",
32
32
  "react-dom": ">=18 <20",
@@ -35,32 +35,32 @@
35
35
  "devDependencies": {
36
36
  "@chromatic-com/storybook": "5.2.1",
37
37
  "@grantbii/ui-core": "1.10.0",
38
- "@storybook/addon-a11y": "10.4.2",
39
- "@storybook/addon-docs": "10.4.2",
40
- "@storybook/addon-onboarding": "10.4.2",
41
- "@storybook/addon-vitest": "10.4.2",
42
- "@storybook/nextjs-vite": "10.4.2",
38
+ "@storybook/addon-a11y": "10.4.6",
39
+ "@storybook/addon-docs": "10.4.6",
40
+ "@storybook/addon-onboarding": "10.4.6",
41
+ "@storybook/addon-vitest": "10.4.6",
42
+ "@storybook/nextjs-vite": "10.4.6",
43
43
  "@types/node": "22.19.17",
44
- "@types/react": "19.2.14",
44
+ "@types/react": "19.2.17",
45
45
  "@types/react-dom": "19.2.3",
46
- "@vitest/browser": "4.1.8",
47
- "@vitest/browser-playwright": "4.1.8",
48
- "@vitest/coverage-v8": "4.1.8",
46
+ "@vitest/browser": "4.1.9",
47
+ "@vitest/browser-playwright": "4.1.9",
48
+ "@vitest/coverage-v8": "4.1.9",
49
49
  "eslint": "9.39.4",
50
- "eslint-config-next": "16.2.7",
50
+ "eslint-config-next": "16.2.9",
51
51
  "eslint-config-prettier": "10.1.8",
52
- "eslint-plugin-storybook": "10.4.2",
52
+ "eslint-plugin-storybook": "10.4.6",
53
53
  "husky": "9.1.7",
54
- "lint-staged": "17.0.7",
55
- "next": "16.2.7",
56
- "playwright": "1.60.0",
57
- "prettier": "3.8.3",
54
+ "lint-staged": "17.0.8",
55
+ "next": "16.2.9",
56
+ "playwright": "1.61.1",
57
+ "prettier": "3.9.4",
58
58
  "react": "19.2.7",
59
59
  "react-dom": "19.2.7",
60
- "storybook": "10.4.2",
61
- "styled-components": "6.4.2",
60
+ "storybook": "10.4.6",
61
+ "styled-components": "6.4.3",
62
62
  "typescript": "6.0.3",
63
- "vitest": "4.1.8"
63
+ "vitest": "4.1.9"
64
64
  },
65
65
  "lint-staged": {
66
66
  "**/*.{html,css,json,md,yaml}": [
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/nextjs-vite";
2
2
  type ExampleProps = {
3
3
  controlled: boolean;
4
4
  };
5
- declare const RadioButtonsExample: ({ controlled }: ExampleProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const RadioButtonsExample: ({ controlled }: ExampleProps) => import("react").JSX.Element;
6
6
  declare const meta: Meta<typeof RadioButtonsExample>;
7
7
  export default meta;
8
8
  type Story = StoryObj<typeof meta>;
@@ -5,7 +5,7 @@ type TallyModalExampleProps = {
5
5
  tallyId: string;
6
6
  prefilledFieldsQueryParams?: string;
7
7
  };
8
- declare const TallyModalExample: (props: TallyModalExampleProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const TallyModalExample: (props: TallyModalExampleProps) => import("react").JSX.Element;
9
9
  declare const meta: Meta<typeof TallyModalExample>;
10
10
  export default meta;
11
11
  type Story = StoryObj<typeof meta>;
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/nextjs-vite";
2
2
  type ExampleProps = {
3
3
  controlled: boolean;
4
4
  };
5
- declare const DropdownExample: ({ controlled }: ExampleProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const DropdownExample: ({ controlled }: ExampleProps) => import("react").JSX.Element;
6
6
  declare const meta: Meta<typeof DropdownExample>;
7
7
  export default meta;
8
8
  type Story = StoryObj<typeof meta>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from "@storybook/nextjs-vite";
2
- declare const FileDropExample: () => import("react/jsx-runtime").JSX.Element;
2
+ declare const FileDropExample: () => import("react").JSX.Element;
3
3
  declare const meta: Meta<typeof FileDropExample>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -7,7 +7,7 @@ type ModalExampleProps = {
7
7
  width?: string;
8
8
  height?: string;
9
9
  };
10
- declare const ModalExample: (props: ModalExampleProps) => import("react/jsx-runtime").JSX.Element;
10
+ declare const ModalExample: (props: ModalExampleProps) => JSX.Element;
11
11
  declare const meta: Meta<typeof ModalExample>;
12
12
  export default meta;
13
13
  type Story = StoryObj<typeof meta>;
@@ -5,3 +5,4 @@ export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const Small: Story;
7
7
  export declare const Medium: Story;
8
+ export declare const OutlineSearchButton: Story;
@@ -1,16 +1,14 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { SearchBar } from "@/.";
3
3
  import { useState } from "react";
4
- const SearchBarExample = ({ size }) => {
5
- const [activeQuery, setActiveQuery] = useState(emptyQuery);
6
- const updateActiveQuery = (newQuery) => setActiveQuery(newQuery);
4
+ const SearchBarExample = ({ size, searchButtonVariant, }) => {
7
5
  const [queryText, setQueryText] = useState("");
8
- const updateQueryText = (newText) => setQueryText(newText);
9
- return (_jsx(SearchBar, { activeQuery: activeQuery, updateActiveQuery: updateActiveQuery, queryText: queryText, updateQueryText: updateQueryText, size: size }));
10
- };
11
- const emptyQuery = {
12
- text: "",
13
- files: [],
6
+ const performSearch = () => {
7
+ if (queryText.trim() !== "") {
8
+ alert(`Searching for ${queryText}`);
9
+ }
10
+ };
11
+ return (_jsx(SearchBar, { queryText: queryText, onClickReset: () => setQueryText(""), onClickSearch: () => performSearch(), handlePressEnter: () => performSearch(), onChangeQueryText: (event) => setQueryText(event.target.value), searchButtonVariant: searchButtonVariant, size: size }));
14
12
  };
15
13
  const meta = {
16
14
  title: "Organisms/SearchBar",
@@ -27,4 +25,7 @@ export const Small = {
27
25
  export const Medium = {
28
26
  args: { size: "medium" },
29
27
  };
28
+ export const OutlineSearchButton = {
29
+ args: { size: "medium", searchButtonVariant: "outline" },
30
+ };
30
31
  //# sourceMappingURL=SearchBar.stories.js.map
@@ -1 +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;AAMjC,MAAM,gBAAgB,GAAG,CAAC,EAAE,IAAI,EAAyB,EAAE,EAAE;IAC3D,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,EAChC,IAAI,EAAE,IAAI,GACV,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,KAAK,GAAU;IAC1B,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAU;IAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CACzB,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\ntype SearchBarExampleProps = {\n size?: \"small\" | \"medium\";\n};\n\nconst SearchBarExample = ({ size }: SearchBarExampleProps) => {\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 size={size}\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 Small: Story = {\n args: { size: \"small\" },\n};\n\nexport const Medium: Story = {\n args: { size: \"medium\" },\n};\n"]}
1
+ {"version":3,"file":"SearchBar.stories.js","sourceRoot":"","sources":["../../../stories/organisms/SearchBar.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAA0C,MAAM,KAAK,CAAC;AAExE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAOjC,MAAM,gBAAgB,GAAG,CAAC,EACxB,IAAI,EACJ,mBAAmB,GACG,EAAE,EAAE;IAC1B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAE/C,MAAM,aAAa,GAAG,GAAG,EAAE;QACzB,IAAI,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;YAC5B,KAAK,CAAC,iBAAiB,SAAS,EAAE,CAAC,CAAC;QACtC,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,SAAS,IACR,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,EACpC,aAAa,EAAE,GAAG,EAAE,CAAC,aAAa,EAAE,EACpC,gBAAgB,EAAE,GAAG,EAAE,CAAC,aAAa,EAAE,EACvC,iBAAiB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAC9D,mBAAmB,EAAE,mBAAmB,EACxC,IAAI,EAAE,IAAI,GACV,CACH,CAAC;AACJ,CAAC,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,KAAK,GAAU;IAC1B,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAU;IAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAU;IACxC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,mBAAmB,EAAE,SAAS,EAAE;CACzD,CAAC","sourcesContent":["import { SearchBar, type ButtonVariant, type SearchBarSize } from \"@/.\";\nimport type { Meta, StoryObj } from \"@storybook/nextjs-vite\";\nimport { useState } from \"react\";\n\ntype SearchBarExampleProps = {\n size?: SearchBarSize;\n searchButtonVariant?: ButtonVariant;\n};\n\nconst SearchBarExample = ({\n size,\n searchButtonVariant,\n}: SearchBarExampleProps) => {\n const [queryText, setQueryText] = useState(\"\");\n\n const performSearch = () => {\n if (queryText.trim() !== \"\") {\n alert(`Searching for ${queryText}`);\n }\n };\n\n return (\n <SearchBar\n queryText={queryText}\n onClickReset={() => setQueryText(\"\")}\n onClickSearch={() => performSearch()}\n handlePressEnter={() => performSearch()}\n onChangeQueryText={(event) => setQueryText(event.target.value)}\n searchButtonVariant={searchButtonVariant}\n size={size}\n />\n );\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 Small: Story = {\n args: { size: \"small\" },\n};\n\nexport const Medium: Story = {\n args: { size: \"medium\" },\n};\n\nexport const OutlineSearchButton: Story = {\n args: { size: \"medium\", searchButtonVariant: \"outline\" },\n};\n"]}
@@ -5,7 +5,7 @@ type Callbacks = {
5
5
  closeModalCallback?: () => void;
6
6
  openModalCallback?: () => void;
7
7
  };
8
- declare const GrantMatchExample: (callbacks: Callbacks) => import("react/jsx-runtime").JSX.Element;
8
+ declare const GrantMatchExample: (callbacks: Callbacks) => import("react").JSX.Element;
9
9
  declare const meta: Meta<typeof GrantMatchExample>;
10
10
  export default meta;
11
11
  type Story = StoryObj<typeof meta>;