aidos-ui 3.0.12 → 3.0.14

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 (45) hide show
  1. package/dist/BaseButton.d.ts +1 -0
  2. package/dist/BaseButton.js +2 -1
  3. package/dist/BaseButton.js.map +1 -1
  4. package/dist/BaseLink.d.ts +1 -0
  5. package/dist/BaseLink.js +2 -1
  6. package/dist/BaseLink.js.map +1 -1
  7. package/dist/Button.d.ts +1 -0
  8. package/dist/Button.js +2 -2
  9. package/dist/Button.js.map +1 -1
  10. package/dist/DarkMode.js +1 -1
  11. package/dist/DarkMode.js.map +1 -1
  12. package/dist/DesignBook.js +2 -2
  13. package/dist/DesignBook.js.map +1 -1
  14. package/dist/Dialog.js +1 -1
  15. package/dist/Dialog.js.map +1 -1
  16. package/dist/Interactable.d.ts +3 -2
  17. package/dist/Interactable.js +62 -20
  18. package/dist/Interactable.js.map +1 -1
  19. package/dist/Link.d.ts +1 -0
  20. package/dist/Link.js +2 -2
  21. package/dist/Link.js.map +1 -1
  22. package/dist/ListButtonItem.js +2 -2
  23. package/dist/ListButtonItem.js.map +1 -1
  24. package/dist/ListLinkItem.js +1 -1
  25. package/dist/ListLinkItem.js.map +1 -1
  26. package/dist/Sublist.js +1 -1
  27. package/dist/Sublist.js.map +1 -1
  28. package/dist/Tabs.js +1 -1
  29. package/dist/Tabs.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/BaseButton.tsx +3 -0
  32. package/src/BaseLink.tsx +3 -0
  33. package/src/Button.tsx +7 -1
  34. package/src/DarkMode.tsx +1 -1
  35. package/src/DesignBook.tsx +10 -10
  36. package/src/Dialog.tsx +1 -1
  37. package/src/Interactable.tsx +69 -20
  38. package/src/Link.tsx +8 -2
  39. package/src/ListButtonItem.tsx +2 -2
  40. package/src/ListLinkItem.tsx +1 -1
  41. package/src/Sublist.tsx +1 -2
  42. package/src/Tabs.tsx +1 -1
  43. package/src/docs/searchIndex.ts +1 -1
  44. package/src/pages/Button.mdx +53 -5
  45. package/src/pages/Link.mdx +37 -5
package/dist/Tabs.js CHANGED
@@ -6,7 +6,7 @@ import { useNavigation } from "./useNavigation";
6
6
  import { Text } from "./Text";
7
7
  export function Tabs({ tabs, gap = "none", padding = "none", tabPadding = "medium", labelSize = "large", jsStyle, tabJSStyle, ["aria-controls"]: ariaControls, ...otherProps }) {
8
8
  const root = useNavigation();
9
- return (_jsx(Row, { role: "tablist", jsStyle: jsStyle, gap: gap, padding: padding, ref: root, ...otherProps, children: tabs.map(({ label, href, onClick, selected, addOn, addOnPosition = "start", }) => (_jsxs(BaseLink, { "aria-controls": ariaControls, role: "tab", "aria-selected": selected ? "true" : undefined, bare: true, color: selected ? "positive" : "secondary", href: href, onClick: onClick, animateInteraction: false, jsStyle: [
9
+ return (_jsx(Row, { role: "tablist", jsStyle: jsStyle, gap: gap, padding: padding, ref: root, ...otherProps, children: tabs.map(({ label, href, onClick, selected, addOn, addOnPosition = "start", }) => (_jsxs(BaseLink, { "aria-controls": ariaControls, role: "tab", "aria-selected": selected ? "true" : undefined, bare: true, color: selected ? "positive" : "primary", href: href, onClick: onClick, animateInteraction: false, jsStyle: [
10
10
  {
11
11
  textDecoration: "none",
12
12
  borderBottom: selected
package/dist/Tabs.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../src/Tabs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,GAAG,EAAY,MAAM,OAAO,CAAC;AACtC,OAAO,EAA0B,MAAM,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAqB9B,MAAM,UAAU,IAAI,CAAC,EACnB,IAAI,EACJ,GAAG,GAAG,MAAM,EACZ,OAAO,GAAG,MAA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C,QAAQ,qBACQ,YAAY,EAC3B,IAAI,EAAC,KAAK,mBACK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAE5C,IAAI,QACJ,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,EACxC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,kBAAkB,EAAE,KAAK,EACzB,OAAO,EAAE;gBACP;oBACE,cAAc,EAAE,MAAM;oBACtB,YAAY,EAAE,QAAQ;wBACpB,CAAC,CAAC,aAAa,MAAM,CAAC,aAAa,CAAC,EAAE;wBACtC,CAAC,CAAC,uBAAuB;oBAC3B,cAAc,EAAE;wBACd,SAAS,EAAE,aAAa;qBACzB;oBACD,cAAc,EAAE;wBACd,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,CAAC;qBACjD;oBACD,aAAa,EAAE;wBACb,oBAAoB,EAAE,MAAM,CAAC,mBAAmB,CAAC;qBAClD;oBACD,QAAQ,EAAE;wBACR,eAAe,EAAE,MAAM,CAAC,sBAAsB,CAAC;qBAChD;oBACD,eAAe,EAAE;wBACf,eAAe,EAAE,MAAM,CAAC,sBAAsB,CAAC;qBAChD;iBACF;gBACD,UAAU,CAAC,UAAU,CAAC;gBACtB,UAAU;aACX,aAEA,aAAa,KAAK,OAAO,IAAI,KAAK,EACnC,KAAC,IAAI,IAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,YAC7D,KAAK,GACD,EACN,aAAa,KAAK,KAAK,IAAI,KAAK,KApC5B,KAAK,CAqCD,CACZ,CACF,GACG,CACP,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidos-ui",
3
- "version": "3.0.12",
3
+ "version": "3.0.14",
4
4
  "description": "A simple UI framework",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -8,6 +8,7 @@ export interface BaseButtonProps
8
8
  jsStyle?: JSStyle;
9
9
  color: InteractableColor;
10
10
  bare?: boolean;
11
+ border?: boolean;
11
12
  className?: undefined;
12
13
  animateInteraction?: boolean;
13
14
  padding?: Padding;
@@ -21,6 +22,7 @@ export const BaseButton = React.forwardRef(
21
22
  jsStyle,
22
23
  color,
23
24
  bare = false,
25
+ border = false,
24
26
  disabled,
25
27
  animateInteraction = true,
26
28
  padding,
@@ -44,6 +46,7 @@ export const BaseButton = React.forwardRef(
44
46
  ...getInteractableJSStyles({
45
47
  color,
46
48
  bare,
49
+ border,
47
50
  disabled,
48
51
  animateInteraction,
49
52
  padding,
package/src/BaseLink.tsx CHANGED
@@ -11,6 +11,7 @@ export interface BaseLinkProps
11
11
  href: string;
12
12
  disabled?: boolean;
13
13
  bare?: boolean;
14
+ border?: boolean;
14
15
  className?: undefined;
15
16
  animateInteraction?: boolean;
16
17
  padding?: Padding;
@@ -33,6 +34,7 @@ export const BaseLink = React.forwardRef(
33
34
  animateInteraction = true,
34
35
  padding,
35
36
  href,
37
+ border,
36
38
  role = "link",
37
39
  ...otherProps
38
40
  }: BaseLinkProps,
@@ -61,6 +63,7 @@ export const BaseLink = React.forwardRef(
61
63
  className={jss([
62
64
  ...getInteractableJSStyles({
63
65
  color,
66
+ border,
64
67
  bare,
65
68
  disabled,
66
69
  animateInteraction,
package/src/Button.tsx CHANGED
@@ -21,6 +21,7 @@ export interface ButtonProps extends BaseButtonProps {
21
21
  align?: Align;
22
22
  gap?: Gap;
23
23
  justify?: Justify;
24
+ bold?: boolean;
24
25
  }
25
26
 
26
27
  export const Button = React.forwardRef(
@@ -38,6 +39,7 @@ export const Button = React.forwardRef(
38
39
  justify = "center",
39
40
  jsStyle,
40
41
  size = "medium",
42
+ bold,
41
43
  ...otherProps
42
44
  }: ButtonProps,
43
45
  ref?: React.Ref<HTMLButtonElement>
@@ -67,7 +69,11 @@ export const Button = React.forwardRef(
67
69
  color={getGlyphColor(color, disabled, bare)}
68
70
  />
69
71
  )}
70
- <Text size={size} color={getGlyphColor(color, disabled, bare)}>
72
+ <Text
73
+ bold={bold}
74
+ size={size}
75
+ color={getGlyphColor(color, disabled, bare)}
76
+ >
71
77
  {label}
72
78
  </Text>
73
79
  {icon && iconPosition === "right" && (
package/src/DarkMode.tsx CHANGED
@@ -93,7 +93,7 @@ export function DarkModeToggle() {
93
93
  icon={darkMode.enabled ? "fa-sun-o" : "fa-moon-o"}
94
94
  size="medium"
95
95
  onClick={darkMode.toggle}
96
- color="secondary"
96
+ color="primary"
97
97
  bare
98
98
  />
99
99
  );
@@ -109,7 +109,7 @@ export function DesignBook() {
109
109
  <Button
110
110
  style={{ position: "relative" }}
111
111
  label="Secondary button"
112
- color="secondary"
112
+ color="primary"
113
113
  onClick={() => {
114
114
  toggle(undefined);
115
115
  }}
@@ -192,7 +192,7 @@ export function DesignBook() {
192
192
  <Button
193
193
  bare={true}
194
194
  label="Bare secondary button"
195
- color="secondary"
195
+ color="primary"
196
196
  onClick={() => {}}
197
197
  />
198
198
  </Row>
@@ -223,7 +223,7 @@ export function DesignBook() {
223
223
  </Row>
224
224
 
225
225
  <Row gap="medium">
226
- <Link label="Secondary link" color="secondary" href="/" />
226
+ <Link label="Secondary link" color="primary" href="/" />
227
227
  </Row>
228
228
 
229
229
  <Row gap="medium">
@@ -250,7 +250,7 @@ export function DesignBook() {
250
250
  <Link
251
251
  bare={true}
252
252
  label="Bare secondary Link"
253
- color="secondary"
253
+ color="primary"
254
254
  href="/"
255
255
  />
256
256
  </Row>
@@ -365,39 +365,39 @@ export function DesignBook() {
365
365
  <IconButton
366
366
  size="large"
367
367
  icon="fa-info"
368
- color="secondary"
368
+ color="primary"
369
369
  onClick={() => {}}
370
370
  />
371
371
  <IconButton
372
372
  size="medium"
373
373
  icon="fa-info"
374
- color="secondary"
374
+ color="primary"
375
375
  onClick={() => {}}
376
376
  />
377
377
  <IconButton
378
378
  size="small"
379
379
  icon="fa-info"
380
- color="secondary"
380
+ color="primary"
381
381
  onClick={() => {}}
382
382
  />
383
383
  <IconButton
384
384
  size="large"
385
385
  icon="fa-info"
386
- color="secondary"
386
+ color="primary"
387
387
  onClick={() => {}}
388
388
  bare={true}
389
389
  />
390
390
  <IconButton
391
391
  size="medium"
392
392
  icon="fa-info"
393
- color="secondary"
393
+ color="primary"
394
394
  onClick={() => {}}
395
395
  bare={true}
396
396
  />
397
397
  <IconButton
398
398
  size="small"
399
399
  icon="fa-info"
400
- color="secondary"
400
+ color="primary"
401
401
  onClick={() => {}}
402
402
  bare={true}
403
403
  />
package/src/Dialog.tsx CHANGED
@@ -56,7 +56,7 @@ export const Dialog = ({
56
56
  icon="fa-close"
57
57
  size="medium"
58
58
  onClick={close}
59
- color="secondary"
59
+ color="primary"
60
60
  />
61
61
  </Row>
62
62
  <ListDivider />
@@ -1,6 +1,11 @@
1
1
  import { JSStyle, Padding, TextColor, cssVar, getPadding } from "./jss";
2
2
 
3
- export type InteractableColor = "positive" | "secondary" | "negative";
3
+ export type InteractableColor =
4
+ | "positive"
5
+ | "primary"
6
+ | "negative"
7
+ | "dark"
8
+ | "light";
4
9
 
5
10
  const jsStyles = {
6
11
  root: {
@@ -8,10 +13,10 @@ const jsStyles = {
8
13
  display: "inline-flex",
9
14
  alignItems: "center",
10
15
  transition: "opacity 0.1s ease-in",
11
- outlineColor: "var(--outline)",
16
+ outlineColor: cssVar("--outline"),
12
17
  "[aria-disabled=true]": {
13
- color: "var(--secondary-text)",
14
- backgroundColor: "var(--background-button-secondary)",
18
+ color: cssVar("--secondary-text"),
19
+ backgroundColor: cssVar("--background-button-secondary"),
15
20
  },
16
21
  ":focus-visible": {
17
22
  outlineWidth: "2px",
@@ -19,22 +24,34 @@ const jsStyles = {
19
24
  outlineOffset: -2,
20
25
  },
21
26
  },
27
+ dark: {
28
+ backgroundColor: "black",
29
+ "[aria-disabled=true]": {
30
+ backgroundColor: cssVar("--background-button-disabled"),
31
+ },
32
+ },
33
+ light: {
34
+ backgroundColor: "white",
35
+ "[aria-disabled=true]": {
36
+ backgroundColor: cssVar("--background-button-disabled"),
37
+ },
38
+ },
22
39
  positive: {
23
- backgroundColor: "var(--background-button-positive)",
40
+ backgroundColor: cssVar("--background-button-positive"),
24
41
  "[aria-disabled=true]": {
25
- backgroundColor: "var(--background-button-disabled)",
42
+ backgroundColor: cssVar("--background-button-disabled"),
26
43
  },
27
44
  },
28
- secondary: {
29
- backgroundColor: "var(--background-button-secondary)",
45
+ primary: {
46
+ backgroundColor: cssVar("--background-button-secondary"),
30
47
  "[aria-disabled=true]": {
31
- backgroundColor: "var(--background-button-disabled)",
48
+ backgroundColor: cssVar("--background-button-disabled"),
32
49
  },
33
50
  },
34
51
  negative: {
35
- backgroundColor: "var(--background-button-negative)",
52
+ backgroundColor: cssVar("--background-button-negative"),
36
53
  "[aria-disabled=true]": {
37
- backgroundColor: "var(--background-button-disabled)",
54
+ backgroundColor: cssVar("--background-button-disabled"),
38
55
  },
39
56
  },
40
57
  disabled: {
@@ -42,7 +59,7 @@ const jsStyles = {
42
59
  },
43
60
  bare: {
44
61
  backgroundColor: "inherit",
45
- outlineColor: "var(--outline)",
62
+ outlineColor: cssVar("--outline"),
46
63
  "[aria-disabled=true]": {
47
64
  backgroundColor: "inherit",
48
65
  },
@@ -50,6 +67,24 @@ const jsStyles = {
50
67
  backgroundColor: "inherit",
51
68
  },
52
69
  },
70
+ borderDark: {
71
+ border: "1px solid black",
72
+ },
73
+ borderLight: {
74
+ border: "1px solid white",
75
+ },
76
+ borderPositive: {
77
+ border: `1px solid ${cssVar("--highlight-text")}`,
78
+ },
79
+ borderNegative: {
80
+ border: `1px solid ${cssVar("--negative-text")}`,
81
+ },
82
+ borderPrimary: {
83
+ border: `1px solid ${cssVar("--primary-text")}`,
84
+ },
85
+ borderDisabled: {
86
+ border: `1px solid ${cssVar("--subtle-text")}`,
87
+ },
53
88
  opacityHover: {
54
89
  ":hover": {
55
90
  opacity: 0.8,
@@ -67,18 +102,28 @@ export function getInteractableJSStyles({
67
102
  disabled,
68
103
  animateInteraction,
69
104
  padding,
105
+ border,
70
106
  }: {
71
107
  color: InteractableColor;
72
108
  bare: boolean;
73
109
  disabled: boolean;
74
110
  animateInteraction: boolean;
75
111
  padding: Padding;
112
+ border: boolean;
76
113
  }): Array<JSStyle> {
77
114
  return [
78
115
  jsStyles.root,
116
+ color === "dark" && jsStyles.dark,
117
+ color === "light" && jsStyles.light,
79
118
  color === "positive" && jsStyles.positive,
80
- color === "secondary" && jsStyles.secondary,
119
+ color === "primary" && jsStyles.primary,
81
120
  color === "negative" && jsStyles.negative,
121
+ border && !disabled && color === "positive" && jsStyles.borderPositive,
122
+ border && !disabled && color === "negative" && jsStyles.borderNegative,
123
+ border && !disabled && color === "primary" && jsStyles.borderPrimary,
124
+ border && !disabled && color === "dark" && jsStyles.borderDark,
125
+ border && !disabled && color === "light" && jsStyles.borderLight,
126
+ border && disabled && jsStyles.borderDisabled,
82
127
  bare && jsStyles.bare,
83
128
  disabled && jsStyles.disabled,
84
129
  !bare && jsStyles.opacityHover,
@@ -112,8 +157,12 @@ export const getGlyphColor = (
112
157
  return bare ? "highlight" : "light";
113
158
  case "negative":
114
159
  return bare ? "negative" : "light";
115
- case "secondary":
160
+ case "primary":
116
161
  return bare ? "primary" : "secondary";
162
+ case "dark":
163
+ return bare ? "primary" : "light";
164
+ case "light":
165
+ return bare ? "light" : "primary";
117
166
  }
118
167
  };
119
168
 
@@ -131,16 +180,16 @@ export const getInteractableListItemJSStyles = ({
131
180
  borderRadius: bare ? cssVar("--border-radius-m") : null,
132
181
  textDecoration: "none",
133
182
  ":hover": {
134
- backgroundColor: "var(--hovered-background)",
183
+ backgroundColor: cssVar("--hovered-background"),
135
184
  },
136
185
  ":active:hover": {
137
- backgroundColor: "var(--pressed-background)",
186
+ backgroundColor: cssVar("--pressed-background"),
138
187
  },
139
188
  "[aria-disabled=true]": {
140
- backgroundColor: "var(--primary-background)",
189
+ backgroundColor: cssVar("--primary-background"),
141
190
  },
142
191
  "[aria-disabled=true]:active:hover": {
143
- backgroundColor: "var(--primary-background)",
192
+ backgroundColor: cssVar("--primary-background"),
144
193
  },
145
194
  },
146
195
  selected && {
@@ -149,10 +198,10 @@ export const getInteractableListItemJSStyles = ({
149
198
  : cssVar("--selected-background"),
150
199
  boxShadow: bare ? "" : "inset 1px 1px 2px -1px #0000004a",
151
200
  ":hover": {
152
- backgroundColor: "var(--hovered-background)",
201
+ backgroundColor: cssVar("--hovered-background"),
153
202
  },
154
203
  ":active:hover": {
155
- backgroundColor: "var(--pressed-background)",
204
+ backgroundColor: cssVar("--pressed-background"),
156
205
  },
157
206
  },
158
207
  ];
package/src/Link.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { ReactElement } from "react";
2
2
 
3
3
  import { BaseLink, BaseLinkProps } from "./BaseLink";
4
4
  import { Text } from "./Text";
@@ -21,6 +21,7 @@ export interface LinkProps extends BaseLinkProps {
21
21
  align?: Align;
22
22
  gap?: Gap;
23
23
  justify?: Justify;
24
+ bold?: boolean;
24
25
  }
25
26
 
26
27
  export const Link = React.forwardRef(
@@ -38,6 +39,7 @@ export const Link = React.forwardRef(
38
39
  justify = "center",
39
40
  jsStyle,
40
41
  size = "medium",
42
+ bold,
41
43
  ...otherProps
42
44
  }: LinkProps,
43
45
  ref?: React.Ref<HTMLAnchorElement>
@@ -69,7 +71,11 @@ export const Link = React.forwardRef(
69
71
  color={getGlyphColor(color, disabled, bare)}
70
72
  />
71
73
  )}
72
- <Text size={size} color={getGlyphColor(color, disabled, bare)}>
74
+ <Text
75
+ bold={bold}
76
+ size={size}
77
+ color={getGlyphColor(color, disabled, bare)}
78
+ >
73
79
  {label}
74
80
  </Text>
75
81
  {icon && iconPosition === "right" && (
@@ -24,7 +24,7 @@ export const ListButtonItem = React.forwardRef(
24
24
  (
25
25
  {
26
26
  onClick,
27
- color = "secondary",
27
+ color = "primary",
28
28
  disabled = false,
29
29
  padding = "medium",
30
30
  jsStyle,
@@ -55,7 +55,7 @@ export const ListButtonItem = React.forwardRef(
55
55
  disabled={disabled}
56
56
  animateInteraction={false}
57
57
  bare={true}
58
- color={bare ? "secondary" : color}
58
+ color={bare ? "primary" : color}
59
59
  ref={ref}
60
60
  jsStyle={getInteractableListItemJSStyles({ bare, selected })}
61
61
  onClick={onClick}
@@ -32,7 +32,7 @@ export const ListLinkItem = React.forwardRef(
32
32
  jsStyle,
33
33
  gap,
34
34
  selected,
35
- color = "secondary",
35
+ color = "primary",
36
36
  target,
37
37
  ...otherProps
38
38
  }: ListLinkItemProps,
package/src/Sublist.tsx CHANGED
@@ -4,7 +4,6 @@ import { Icon } from "./Icon";
4
4
  import { Box } from "./Box";
5
5
  import { Row } from "./Row";
6
6
  import { JSStyle } from "./jss";
7
- import { useListContext } from "./List";
8
7
 
9
8
  export function Sublist({
10
9
  children,
@@ -54,7 +53,7 @@ export function Sublist({
54
53
  </Row>
55
54
  }
56
55
  addOnPosition="end"
57
- color="secondary"
56
+ color="primary"
58
57
  />
59
58
  {collapsed ? null : children}
60
59
  </>
package/src/Tabs.tsx CHANGED
@@ -60,7 +60,7 @@ export function Tabs({
60
60
  aria-selected={selected ? "true" : undefined}
61
61
  key={label}
62
62
  bare
63
- color={selected ? "positive" : "secondary"}
63
+ color={selected ? "positive" : "primary"}
64
64
  href={href}
65
65
  onClick={onClick}
66
66
  animateInteraction={false}