@arbor-education/design-system.components 0.16.1 → 0.17.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 (73) hide show
  1. package/.gather/instructions/project-overview.md +0 -4
  2. package/.gather/skills/aroo-hunni/SKILL.md +58 -0
  3. package/CHANGELOG.md +31 -0
  4. package/CONTRIBUTING.md +1 -0
  5. package/dist/components/arborLogo/ArborLogo.d.ts +9 -0
  6. package/dist/components/arborLogo/ArborLogo.d.ts.map +1 -0
  7. package/dist/components/arborLogo/ArborLogo.js +17 -0
  8. package/dist/components/arborLogo/ArborLogo.js.map +1 -0
  9. package/dist/components/arborLogo/ArborLogo.stories.d.ts +94 -0
  10. package/dist/components/arborLogo/ArborLogo.stories.d.ts.map +1 -0
  11. package/dist/components/arborLogo/ArborLogo.stories.js +418 -0
  12. package/dist/components/arborLogo/ArborLogo.stories.js.map +1 -0
  13. package/dist/components/arborLogo/ArborLogo.test.d.ts +2 -0
  14. package/dist/components/arborLogo/ArborLogo.test.d.ts.map +1 -0
  15. package/dist/components/arborLogo/ArborLogo.test.js +32 -0
  16. package/dist/components/arborLogo/ArborLogo.test.js.map +1 -0
  17. package/dist/components/dataViewCard/DataViewCard.d.ts +19 -0
  18. package/dist/components/dataViewCard/DataViewCard.d.ts.map +1 -0
  19. package/dist/components/dataViewCard/DataViewCard.js +13 -0
  20. package/dist/components/dataViewCard/DataViewCard.js.map +1 -0
  21. package/dist/components/dataViewCard/DataViewCard.stories.d.ts +100 -0
  22. package/dist/components/dataViewCard/DataViewCard.stories.d.ts.map +1 -0
  23. package/dist/components/dataViewCard/DataViewCard.stories.js +317 -0
  24. package/dist/components/dataViewCard/DataViewCard.stories.js.map +1 -0
  25. package/dist/components/dataViewCard/DataViewCard.test.d.ts +2 -0
  26. package/dist/components/dataViewCard/DataViewCard.test.d.ts.map +1 -0
  27. package/dist/components/dataViewCard/DataViewCard.test.js +67 -0
  28. package/dist/components/dataViewCard/DataViewCard.test.js.map +1 -0
  29. package/dist/components/row/Row.d.ts +2 -1
  30. package/dist/components/row/Row.d.ts.map +1 -1
  31. package/dist/components/row/Row.js +2 -2
  32. package/dist/components/row/Row.js.map +1 -1
  33. package/dist/components/treeRow/TreeRow.d.ts +32 -0
  34. package/dist/components/treeRow/TreeRow.d.ts.map +1 -0
  35. package/dist/components/treeRow/TreeRow.js +19 -0
  36. package/dist/components/treeRow/TreeRow.js.map +1 -0
  37. package/dist/components/treeRow/TreeRow.stories.d.ts +13 -0
  38. package/dist/components/treeRow/TreeRow.stories.d.ts.map +1 -0
  39. package/dist/components/treeRow/TreeRow.stories.js +774 -0
  40. package/dist/components/treeRow/TreeRow.stories.js.map +1 -0
  41. package/dist/components/treeRow/TreeRow.test.d.ts +2 -0
  42. package/dist/components/treeRow/TreeRow.test.d.ts.map +1 -0
  43. package/dist/components/treeRow/TreeRow.test.js +262 -0
  44. package/dist/components/treeRow/TreeRow.test.js.map +1 -0
  45. package/dist/components/treeRow/TreeRowSection.d.ts +12 -0
  46. package/dist/components/treeRow/TreeRowSection.d.ts.map +1 -0
  47. package/dist/components/treeRow/TreeRowSection.js +20 -0
  48. package/dist/components/treeRow/TreeRowSection.js.map +1 -0
  49. package/dist/index.css +146 -1
  50. package/dist/index.css.map +1 -1
  51. package/dist/index.d.ts +4 -1
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +4 -1
  54. package/dist/index.js.map +1 -1
  55. package/package.json +2 -1
  56. package/src/components/arborLogo/ArborLogo.stories.tsx +663 -0
  57. package/src/components/arborLogo/ArborLogo.test.tsx +36 -0
  58. package/src/components/arborLogo/ArborLogo.tsx +92 -0
  59. package/src/components/arborLogo/__snapshots__/ArborLogo.test.tsx.snap +424 -0
  60. package/src/components/dataViewCard/DataViewCard.stories.tsx +464 -0
  61. package/src/components/dataViewCard/DataViewCard.test.tsx +127 -0
  62. package/src/components/dataViewCard/DataViewCard.tsx +62 -0
  63. package/src/components/dataViewCard/dataViewCard.scss +25 -0
  64. package/src/components/row/Row.tsx +4 -1
  65. package/src/components/row/row.scss +9 -1
  66. package/src/components/treeRow/TreeRow.stories.tsx +870 -0
  67. package/src/components/treeRow/TreeRow.test.tsx +371 -0
  68. package/src/components/treeRow/TreeRow.tsx +85 -0
  69. package/src/components/treeRow/TreeRowSection.tsx +56 -0
  70. package/src/components/treeRow/treeRow.scss +134 -0
  71. package/src/docs/Contributing.mdx +1 -0
  72. package/src/index.scss +2 -0
  73. package/src/index.ts +4 -1
@@ -1,10 +1,11 @@
1
1
  import classNames from 'classnames';
2
2
  import { Icon } from 'Components/icon/Icon';
3
- import type { MouseEvent, MouseEventHandler } from 'react';
3
+ import type { CSSProperties, MouseEvent, MouseEventHandler } from 'react';
4
4
  import { ENTER_KEY, SPACE_KEY } from 'Utils/keyboardConstants';
5
5
 
6
6
  export type RowProps = {
7
7
  className?: string;
8
+ style?: CSSProperties;
8
9
  label?: string;
9
10
  value?: string;
10
11
  note?: string;
@@ -14,6 +15,7 @@ export type RowProps = {
14
15
  export const Row = (props: RowProps) => {
15
16
  const {
16
17
  className,
18
+ style,
17
19
  label,
18
20
  value,
19
21
  note,
@@ -31,6 +33,7 @@ export const Row = (props: RowProps) => {
31
33
  },
32
34
  className,
33
35
  )}
36
+ style={style}
34
37
  onClick={onClick}
35
38
  onKeyDown={(e) => {
36
39
  if (isClickable && [ENTER_KEY, SPACE_KEY].includes(e.key)) {
@@ -47,15 +47,23 @@
47
47
  }
48
48
 
49
49
  &__label {
50
- min-width: 190px;
50
+ flex-basis: 30%;
51
+ max-width: 190px;
51
52
  font-weight: var(--font-weight-semi-bold);
52
53
  }
53
54
 
54
55
  &__value {
55
56
  flex-grow: 1;
57
+ flex-basis: 70%;
58
+
59
+ &:has(+ .ds-row__note) {
60
+ flex-basis: 50%;
61
+ }
56
62
  }
57
63
 
58
64
  &__note {
59
65
  font-style: italic;
66
+ flex-basis: 20%;
67
+ text-align: right;
60
68
  }
61
69
  }