braid-design-system 34.2.0 → 34.4.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 (69) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/dist/lib/components/Autosuggest/Autosuggest.playroom.d.cts +2 -2
  3. package/dist/lib/components/Autosuggest/Autosuggest.playroom.d.mts +2 -2
  4. package/dist/lib/components/Box/BoxRenderer.d.cts +2 -2
  5. package/dist/lib/components/Box/BoxRenderer.d.mts +2 -2
  6. package/dist/lib/components/BraidTestProvider/BraidTestProvider.d.cts +2 -2
  7. package/dist/lib/components/BraidTestProvider/BraidTestProvider.d.mts +2 -2
  8. package/dist/lib/components/Button/Button.cjs +9 -24
  9. package/dist/lib/components/Button/Button.css.cjs +2 -25
  10. package/dist/lib/components/Button/Button.css.mjs +4 -26
  11. package/dist/lib/components/Button/Button.d.cts +1 -0
  12. package/dist/lib/components/Button/Button.d.mts +2 -0
  13. package/dist/lib/components/Button/Button.mjs +10 -25
  14. package/dist/lib/components/Button/ButtonLoader.cjs +33 -0
  15. package/dist/lib/components/Button/ButtonLoader.css.cjs +12 -0
  16. package/dist/lib/components/Button/ButtonLoader.css.mjs +11 -0
  17. package/dist/lib/components/Button/ButtonLoader.mjs +32 -0
  18. package/dist/lib/components/ButtonIcon/ButtonIcon.cjs +17 -4
  19. package/dist/lib/components/ButtonIcon/ButtonIcon.d.cts +3 -1
  20. package/dist/lib/components/ButtonIcon/ButtonIcon.d.mts +3 -1
  21. package/dist/lib/components/ButtonIcon/ButtonIcon.mjs +17 -4
  22. package/dist/lib/components/Dialog/Dialog.d.mts +1 -0
  23. package/dist/lib/components/Drawer/Drawer.d.mts +1 -0
  24. package/dist/lib/components/Inline/Inline.cjs +4 -4
  25. package/dist/lib/components/Inline/Inline.css.cjs +4 -1
  26. package/dist/lib/components/Inline/Inline.css.mjs +3 -1
  27. package/dist/lib/components/Inline/Inline.d.cts +1 -0
  28. package/dist/lib/components/Inline/Inline.d.mts +1 -0
  29. package/dist/lib/components/Inline/Inline.mjs +5 -5
  30. package/dist/lib/components/MenuItem/useMenuItem.d.mts +1 -0
  31. package/dist/lib/components/MenuRenderer/MenuRenderer.d.mts +1 -0
  32. package/dist/lib/components/MonthPicker/MonthPicker.d.cts +2 -2
  33. package/dist/lib/components/MonthPicker/MonthPicker.d.mts +2 -2
  34. package/dist/lib/components/RadioGroup/RadioGroup.d.cts +2 -2
  35. package/dist/lib/components/RadioGroup/RadioGroup.d.mts +2 -2
  36. package/dist/lib/components/Stepper/StepperContext.d.mts +1 -0
  37. package/dist/lib/components/Tag/Tag.playroom.d.cts +2 -2
  38. package/dist/lib/components/Tag/Tag.playroom.d.mts +2 -2
  39. package/dist/lib/components/TextDropdown/TextDropdown.d.cts +2 -2
  40. package/dist/lib/components/TextDropdown/TextDropdown.d.mts +2 -2
  41. package/dist/lib/components/TextLink/TextLink.d.mts +1 -0
  42. package/dist/lib/components/Textarea/Textarea.cjs +1 -0
  43. package/dist/lib/components/Textarea/Textarea.css.cjs +5 -1
  44. package/dist/lib/components/Textarea/Textarea.css.mjs +5 -2
  45. package/dist/lib/components/Textarea/Textarea.mjs +2 -1
  46. package/dist/lib/components/TooltipRenderer/TooltipRenderer.d.mts +1 -0
  47. package/dist/lib/components/icons/IconContainer.d.mts +1 -0
  48. package/dist/lib/components/private/Field/Field.d.mts +1 -0
  49. package/dist/lib/components/private/FieldGroup/FieldGroup.d.mts +1 -0
  50. package/dist/lib/components/private/Modal/ModalContent.d.mts +1 -0
  51. package/dist/lib/components/private/Typography/Typography.d.mts +1 -0
  52. package/dist/lib/hooks/useFallbackId.cjs +1 -1
  53. package/dist/lib/hooks/useFallbackId.mjs +1 -1
  54. package/dist/lib/playroom/FrameComponent.d.cts +2 -2
  55. package/dist/lib/playroom/FrameComponent.d.mts +2 -2
  56. package/dist/lib/playroom/components/Placeholder/Placeholder.d.cts +2 -2
  57. package/dist/lib/playroom/components/Placeholder/Placeholder.d.mts +2 -2
  58. package/dist/lib/playroom/components/PlaceholderHeader/PlaceholderHeader.d.cts +4 -4
  59. package/dist/lib/playroom/components/PlaceholderHeader/PlaceholderHeader.d.mts +4 -4
  60. package/dist/lib/playroom/playroomState.d.mts +1 -0
  61. package/dist/lib/playroom/snippets/ButtonIcon.cjs +4 -0
  62. package/dist/lib/playroom/snippets/ButtonIcon.mjs +4 -0
  63. package/dist/lib/playroom/snippets/Inline.cjs +4 -0
  64. package/dist/lib/playroom/snippets/Inline.mjs +4 -0
  65. package/dist/lib/playroom/snippets/SteppedSection.cjs +1 -1
  66. package/dist/lib/playroom/snippets/SteppedSection.mjs +1 -1
  67. package/dist/lib/themes/baseTokens/nvl.cjs +8 -8
  68. package/dist/lib/themes/baseTokens/nvl.mjs +8 -8
  69. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
+ import * as react from "react";
1
2
  import { FC } from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/lib/playroom/components/PlaceholderHeader/PlaceholderHeader.d.ts
5
5
  declare const logoForBrand: {
6
- seek: react_jsx_runtime0.JSX.Element;
7
- jobsdb: react_jsx_runtime0.JSX.Element;
8
- jobstreet: react_jsx_runtime0.JSX.Element;
6
+ seek: react.JSX.Element;
7
+ jobsdb: react.JSX.Element;
8
+ jobstreet: react.JSX.Element;
9
9
  };
10
10
  interface PlaceholderHeaderProps {
11
11
  brand?: keyof typeof logoForBrand;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from "react";
2
+
2
3
  //#region src/lib/playroom/playroomState.d.ts
3
4
  interface StateProp {
4
5
  stateName?: string;
@@ -5,6 +5,10 @@ const snippets = [
5
5
  description: "Soft",
6
6
  code: "<ButtonIcon variant=\"soft\" icon={<IconBookmark />} label=\"Bookmark\" />"
7
7
  },
8
+ {
9
+ description: "Solid",
10
+ code: "<ButtonIcon variant=\"solid\" icon={<IconBookmark />} label=\"Bookmark\" />"
11
+ },
8
12
  {
9
13
  description: "Transparent",
10
14
  code: "<ButtonIcon variant=\"transparent\" icon={<IconHelp />} label=\"Help\" />"
@@ -4,6 +4,10 @@ const snippets = [
4
4
  description: "Soft",
5
5
  code: "<ButtonIcon variant=\"soft\" icon={<IconBookmark />} label=\"Bookmark\" />"
6
6
  },
7
+ {
8
+ description: "Solid",
9
+ code: "<ButtonIcon variant=\"solid\" icon={<IconBookmark />} label=\"Bookmark\" />"
10
+ },
7
11
  {
8
12
  description: "Transparent",
9
13
  code: "<ButtonIcon variant=\"transparent\" icon={<IconHelp />} label=\"Help\" />"
@@ -12,6 +12,10 @@ const snippets = [
12
12
  {
13
13
  description: "Responsive space",
14
14
  code: "<Inline space={{ mobile: \"small\", tablet: \"large\" }}>\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n</Inline>"
15
+ },
16
+ {
17
+ description: "No wrap",
18
+ code: "<Inline space=\"small\" noWrap>\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n</Inline>"
15
19
  }
16
20
  ];
17
21
 
@@ -11,6 +11,10 @@ const snippets = [
11
11
  {
12
12
  description: "Responsive space",
13
13
  code: "<Inline space={{ mobile: \"small\", tablet: \"large\" }}>\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n</Inline>"
14
+ },
15
+ {
16
+ description: "No wrap",
17
+ code: "<Inline space=\"small\" noWrap>\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n</Inline>"
14
18
  }
15
19
  ];
16
20
 
@@ -3,7 +3,7 @@
3
3
  const snippets = [{
4
4
  group: "Sections",
5
5
  name: "Stepped Section",
6
- code: "<PageBlock width=\"medium\">\n {setDefaultState(\"progress\", 1)}\n {setDefaultState(\"activeStep\", 1)}\n <Stack space=\"large\">\n <Stepper\n label=\"Stepped Block\"\n align=\"left\"\n progress={getState(\"progress\")}\n activeStep={getState(\"activeStep\")}\n onStepClick={({ stepNumber }) => setState(\"activeStep\", stepNumber)}\n >\n <Step>Step 1</Step>\n <Step>Step 2</Step>\n <Step>Step 3</Step>\n <Step>Step 4</Step>\n <Step>Step 5</Step>\n </Stepper>\n\n {getState(\"activeStep\") === 1 && (\n <Placeholder label=\"Step content 1\" height={400} />\n )}\n {getState(\"activeStep\") === 2 && (\n <Placeholder label=\"Step content 2\" height={400} />\n )}\n {getState(\"activeStep\") === 3 && (\n <Placeholder label=\"Step content 3\" height={400} />\n )}\n {getState(\"activeStep\") === 4 && (\n <Placeholder label=\"Step content 4\" height={400} />\n )}\n {getState(\"activeStep\") === 5 && (\n <Placeholder label=\"Step content 5\" height={400} />\n )}\n\n <Columns space=\"small\">\n <Column>\n {getState(\"activeStep\") > 1 && (\n <Actions>\n <Button\n icon={<IconArrow direction=\"left\" />}\n onClick={() => setState(\"activeStep\", getState(\"activeStep\") - 1)}\n >\n Back\n </Button>\n </Actions>\n )}\n </Column>\n <Column width=\"content\">\n {getState(\"activeStep\") < 5 && (\n <Actions>\n <Button\n variant=\"solid\"\n tone=\"formAccent\"\n icon={<IconArrow direction=\"right\" />}\n iconPosition=\"trailing\"\n onClick={() => {\n const newStep = getState(\"activeStep\") + 1\n setState(\"activeStep\", newStep)\n if (newStep > getState(\"progress\")) {\n setState(\"progress\", newStep)\n }\n }}\n >\n Continue\n </Button>\n </Actions>\n )}\n </Column>\n </Columns>\n </Stack>\n</PageBlock>"
6
+ code: "<PageBlock width=\"medium\">\n {setDefaultState(\"progress\", 1)}\n {setDefaultState(\"activeStep\", 1)}\n <Stack space=\"large\">\n <Stepper\n label=\"Stepped Block\"\n align=\"left\"\n progress={getState(\"progress\")}\n activeStep={getState(\"activeStep\")}\n onStepClick={({ stepNumber }) => setState(\"activeStep\", stepNumber)}\n >\n <Step>Step 1</Step>\n <Step>Step 2</Step>\n <Step>Step 3</Step>\n <Step>Step 4</Step>\n </Stepper>\n\n {getState(\"activeStep\") === 1 && (\n <Placeholder label=\"Step content 1\" height={400} />\n )}\n {getState(\"activeStep\") === 2 && (\n <Placeholder label=\"Step content 2\" height={400} />\n )}\n {getState(\"activeStep\") === 3 && (\n <Placeholder label=\"Step content 3\" height={400} />\n )}\n {getState(\"activeStep\") === 4 && (\n <Placeholder label=\"Step content 4\" height={400} />\n )}\n\n <Spread space=\"small\">\n <Actions>\n {getState(\"activeStep\") > 1 && (\n <Button\n variant=\"soft\"\n icon={<IconArrow direction=\"left\" />}\n onClick={() => setState(\"activeStep\", getState(\"activeStep\") - 1)}\n >\n Back\n </Button>\n )}\n </Actions>\n <Actions>\n {getState(\"activeStep\") < 4 ? (\n <Button\n variant=\"solid\"\n tone=\"formAccent\"\n icon={<IconArrow direction=\"right\" />}\n iconPosition=\"trailing\"\n onClick={() => {\n const newStep = getState(\"activeStep\") + 1\n setState(\"activeStep\", newStep)\n if (newStep > getState(\"progress\")) {\n setState(\"progress\", newStep)\n }\n }}\n >\n Continue\n </Button>\n ) : (\n <Button\n variant=\"solid\"\n tone=\"brandAccent\"\n icon={<IconSend />}\n iconPosition=\"trailing\"\n >\n Submit\n </Button>\n )}\n </Actions>\n </Spread>\n </Stack>\n</PageBlock>"
7
7
  }];
8
8
 
9
9
  //#endregion
@@ -2,7 +2,7 @@
2
2
  const snippets = [{
3
3
  group: "Sections",
4
4
  name: "Stepped Section",
5
- code: "<PageBlock width=\"medium\">\n {setDefaultState(\"progress\", 1)}\n {setDefaultState(\"activeStep\", 1)}\n <Stack space=\"large\">\n <Stepper\n label=\"Stepped Block\"\n align=\"left\"\n progress={getState(\"progress\")}\n activeStep={getState(\"activeStep\")}\n onStepClick={({ stepNumber }) => setState(\"activeStep\", stepNumber)}\n >\n <Step>Step 1</Step>\n <Step>Step 2</Step>\n <Step>Step 3</Step>\n <Step>Step 4</Step>\n <Step>Step 5</Step>\n </Stepper>\n\n {getState(\"activeStep\") === 1 && (\n <Placeholder label=\"Step content 1\" height={400} />\n )}\n {getState(\"activeStep\") === 2 && (\n <Placeholder label=\"Step content 2\" height={400} />\n )}\n {getState(\"activeStep\") === 3 && (\n <Placeholder label=\"Step content 3\" height={400} />\n )}\n {getState(\"activeStep\") === 4 && (\n <Placeholder label=\"Step content 4\" height={400} />\n )}\n {getState(\"activeStep\") === 5 && (\n <Placeholder label=\"Step content 5\" height={400} />\n )}\n\n <Columns space=\"small\">\n <Column>\n {getState(\"activeStep\") > 1 && (\n <Actions>\n <Button\n icon={<IconArrow direction=\"left\" />}\n onClick={() => setState(\"activeStep\", getState(\"activeStep\") - 1)}\n >\n Back\n </Button>\n </Actions>\n )}\n </Column>\n <Column width=\"content\">\n {getState(\"activeStep\") < 5 && (\n <Actions>\n <Button\n variant=\"solid\"\n tone=\"formAccent\"\n icon={<IconArrow direction=\"right\" />}\n iconPosition=\"trailing\"\n onClick={() => {\n const newStep = getState(\"activeStep\") + 1\n setState(\"activeStep\", newStep)\n if (newStep > getState(\"progress\")) {\n setState(\"progress\", newStep)\n }\n }}\n >\n Continue\n </Button>\n </Actions>\n )}\n </Column>\n </Columns>\n </Stack>\n</PageBlock>"
5
+ code: "<PageBlock width=\"medium\">\n {setDefaultState(\"progress\", 1)}\n {setDefaultState(\"activeStep\", 1)}\n <Stack space=\"large\">\n <Stepper\n label=\"Stepped Block\"\n align=\"left\"\n progress={getState(\"progress\")}\n activeStep={getState(\"activeStep\")}\n onStepClick={({ stepNumber }) => setState(\"activeStep\", stepNumber)}\n >\n <Step>Step 1</Step>\n <Step>Step 2</Step>\n <Step>Step 3</Step>\n <Step>Step 4</Step>\n </Stepper>\n\n {getState(\"activeStep\") === 1 && (\n <Placeholder label=\"Step content 1\" height={400} />\n )}\n {getState(\"activeStep\") === 2 && (\n <Placeholder label=\"Step content 2\" height={400} />\n )}\n {getState(\"activeStep\") === 3 && (\n <Placeholder label=\"Step content 3\" height={400} />\n )}\n {getState(\"activeStep\") === 4 && (\n <Placeholder label=\"Step content 4\" height={400} />\n )}\n\n <Spread space=\"small\">\n <Actions>\n {getState(\"activeStep\") > 1 && (\n <Button\n variant=\"soft\"\n icon={<IconArrow direction=\"left\" />}\n onClick={() => setState(\"activeStep\", getState(\"activeStep\") - 1)}\n >\n Back\n </Button>\n )}\n </Actions>\n <Actions>\n {getState(\"activeStep\") < 4 ? (\n <Button\n variant=\"solid\"\n tone=\"formAccent\"\n icon={<IconArrow direction=\"right\" />}\n iconPosition=\"trailing\"\n onClick={() => {\n const newStep = getState(\"activeStep\") + 1\n setState(\"activeStep\", newStep)\n if (newStep > getState(\"progress\")) {\n setState(\"progress\", newStep)\n }\n }}\n >\n Continue\n </Button>\n ) : (\n <Button\n variant=\"solid\"\n tone=\"brandAccent\"\n icon={<IconSend />}\n iconPosition=\"trailing\"\n >\n Submit\n </Button>\n )}\n </Actions>\n </Spread>\n </Stack>\n</PageBlock>"
6
6
  }];
7
7
 
8
8
  //#endregion
@@ -40,41 +40,41 @@ const makeTokens = ({ name, displayName, brandAccent, brandAccentLight, brandAcc
40
40
  "1": {
41
41
  mobile: {
42
42
  fontSize: 28,
43
- lineGap: 11
43
+ lineGap: 17
44
44
  },
45
45
  tablet: {
46
46
  fontSize: 36,
47
- lineGap: 14
47
+ lineGap: 22
48
48
  }
49
49
  },
50
50
  "2": {
51
51
  mobile: {
52
52
  fontSize: 24,
53
- lineGap: 11
53
+ lineGap: 15
54
54
  },
55
55
  tablet: {
56
56
  fontSize: 30,
57
- lineGap: 13
57
+ lineGap: 18
58
58
  }
59
59
  },
60
60
  "3": {
61
61
  mobile: {
62
62
  fontSize: 22,
63
- lineGap: 10
63
+ lineGap: 14
64
64
  },
65
65
  tablet: {
66
66
  fontSize: 24,
67
- lineGap: 11
67
+ lineGap: 15
68
68
  }
69
69
  },
70
70
  "4": {
71
71
  mobile: {
72
72
  fontSize: 20,
73
- lineGap: 9
73
+ lineGap: 12
74
74
  },
75
75
  tablet: {
76
76
  fontSize: 20,
77
- lineGap: 9
77
+ lineGap: 12
78
78
  }
79
79
  }
80
80
  }
@@ -39,41 +39,41 @@ const makeTokens = ({ name, displayName, brandAccent, brandAccentLight, brandAcc
39
39
  "1": {
40
40
  mobile: {
41
41
  fontSize: 28,
42
- lineGap: 11
42
+ lineGap: 17
43
43
  },
44
44
  tablet: {
45
45
  fontSize: 36,
46
- lineGap: 14
46
+ lineGap: 22
47
47
  }
48
48
  },
49
49
  "2": {
50
50
  mobile: {
51
51
  fontSize: 24,
52
- lineGap: 11
52
+ lineGap: 15
53
53
  },
54
54
  tablet: {
55
55
  fontSize: 30,
56
- lineGap: 13
56
+ lineGap: 18
57
57
  }
58
58
  },
59
59
  "3": {
60
60
  mobile: {
61
61
  fontSize: 22,
62
- lineGap: 10
62
+ lineGap: 14
63
63
  },
64
64
  tablet: {
65
65
  fontSize: 24,
66
- lineGap: 11
66
+ lineGap: 15
67
67
  }
68
68
  },
69
69
  "4": {
70
70
  mobile: {
71
71
  fontSize: 20,
72
- lineGap: 9
72
+ lineGap: 12
73
73
  },
74
74
  tablet: {
75
75
  fontSize: 20,
76
- lineGap: 9
76
+ lineGap: 12
77
77
  }
78
78
  }
79
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-design-system",
3
- "version": "34.2.0",
3
+ "version": "34.4.0",
4
4
  "description": "Themeable design system for the SEEK Group",
5
5
  "homepage": "https://seek-oss.github.io/braid-design-system/",
6
6
  "bugs": {