aidos-ui 3.0.2 → 3.0.4
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.
- package/dist/BaseListItem.js +3 -2
- package/dist/BaseListItem.js.map +1 -1
- package/dist/List.d.ts +1 -0
- package/dist/List.js +2 -2
- package/dist/List.js.map +1 -1
- package/dist/jss.js +1 -1
- package/package.json +1 -1
- package/src/BaseListItem.tsx +11 -10
- package/src/List.tsx +2 -2
- package/src/docs/pages.ts +10 -8
- package/src/jss.tsx +1 -1
- package/src/pages/_app.tsx +1 -1
package/dist/BaseListItem.js
CHANGED
|
@@ -7,10 +7,11 @@ import { TextPairing } from "./TextPairing";
|
|
|
7
7
|
import { BaseView } from "./BaseView";
|
|
8
8
|
import { useListContext } from "./List";
|
|
9
9
|
export const BaseListItem = React.forwardRef(({ children, jsStyle, withDivider = true, headline, headlineSize = "medium", headlineColor = "primary", headlineAddOn, body, bodySize = "small", bodyColor = "secondary", addOn, addOnPosition, outerAddOn, disabled = false, padding = "medium", gap = "medium", selected, headlineBold, ...otherProps }, ref) => {
|
|
10
|
-
const { bare } = useListContext();
|
|
10
|
+
const { bare, carded } = useListContext();
|
|
11
11
|
const content = (_jsx(TextPairing, { headlineBold: headlineBold, padding: padding, gap: gap, addOn: addOn, addOnPosition: addOnPosition, headline: headline, headlineSize: headlineSize, headlineColor: disabled ? "subtle" : bare && selected ? "highlight" : headlineColor, headlineAddOn: headlineAddOn, body: body, bodySize: bodySize, bodyColor: disabled ? "subtle" : bodyColor, grow: true, shrink: false }));
|
|
12
12
|
return (_jsxs(_Fragment, { children: [_jsxs(Row, { ...otherProps, ref: ref, relative: true, tag: "li", role: "row", jsStyle: [
|
|
13
|
-
!bare &&
|
|
13
|
+
!bare &&
|
|
14
|
+
carded && {
|
|
14
15
|
[":first-child *"]: {
|
|
15
16
|
borderTopLeftRadius: cssVar("--border-radius-l"),
|
|
16
17
|
borderTopRightRadius: cssVar("--border-radius-l"),
|
package/dist/BaseListItem.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseListItem.js","sourceRoot":"","sources":["../src/BaseListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAY,MAAM,OAAO,CAAC;AACtC,OAAO,EAA+C,MAAM,EAAE,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAwBxC,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAC1C,CACE,EACE,QAAQ,EACR,OAAO,EACP,WAAW,GAAG,IAAI,EAClB,QAAQ,EACR,YAAY,GAAG,QAAQ,EACvB,aAAa,GAAG,SAAS,EACzB,aAAa,EACb,IAAI,EACJ,QAAQ,GAAG,OAAO,EAClB,SAAS,GAAG,WAAW,EACvB,KAAK,EACL,aAAa,EACb,UAAU,EACV,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,QAAQ,EAClB,GAAG,GAAG,QAAQ,EACd,QAAQ,EACR,YAAY,EACZ,GAAG,UAAU,EACK,EACpB,GAA4B,EAC5B,EAAE;IACF,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseListItem.js","sourceRoot":"","sources":["../src/BaseListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAY,MAAM,OAAO,CAAC;AACtC,OAAO,EAA+C,MAAM,EAAE,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,WAA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,GAAG,EAAE,GAAG,EACR,QAAQ,QACR,GAAG,EAAC,IAAI,EACR,IAAI,EAAC,KAAK,EACV,OAAO,EAAE;oBACP,CAAC,IAAI;wBACH,MAAM,IAAI;wBACR,CAAC,gBAAgB,CAAC,EAAE;4BAClB,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,CAAC;4BAChD,oBAAoB,EAAE,MAAM,CAAC,mBAAmB,CAAC;yBAClD;wBACD,CAAC,eAAe,CAAC,EAAE;4BACjB,sBAAsB,EAAE,MAAM,CAAC,mBAAmB,CAAC;4BACnD,uBAAuB,EAAE,MAAM,CAAC,mBAAmB,CAAC;yBACrD;qBACF;oBACH,OAAO;iBACR,aAED,KAAC,GAAG,IACF,IAAI,QACJ,IAAI,EAAC,UAAU,EACf,OAAO,EAAE;4BACP,QAAQ,EAAE,QAAQ;yBACnB,YAEA,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC,GAClB,EACL,UAAU,IAAI,KAAC,QAAQ,IAAC,IAAI,EAAC,UAAU,YAAE,UAAU,GAAY,IAC5D,EACL,WAAW,IAAI,KAAC,WAAW,KAAG,IAC9B,CACJ,CAAC;AACJ,CAAC,CACF,CAAC"}
|
package/dist/List.d.ts
CHANGED
|
@@ -10,5 +10,6 @@ interface ListProps extends BaseListProps {
|
|
|
10
10
|
export declare function List({ ariaLabel, jsStyle, autofocus, navigation, bare, carded, ...otherProps }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export declare const useListContext: () => {
|
|
12
12
|
bare: boolean;
|
|
13
|
+
carded: boolean;
|
|
13
14
|
};
|
|
14
15
|
export {};
|
package/dist/List.js
CHANGED
|
@@ -3,10 +3,10 @@ import React, { useContext, useMemo } from "react";
|
|
|
3
3
|
import { BaseList } from "./BaseList";
|
|
4
4
|
import { useNavigation } from "./useNavigation";
|
|
5
5
|
import { cssVar } from "./jss";
|
|
6
|
-
const ListContext = React.createContext({ bare: false });
|
|
6
|
+
const ListContext = React.createContext({ bare: false, carded: true });
|
|
7
7
|
export function List({ ariaLabel, jsStyle, autofocus = false, navigation = true, bare, carded = true, ...otherProps }) {
|
|
8
8
|
const rootRef = useNavigation({ autofocus, enabled: navigation });
|
|
9
|
-
const contextValue = useMemo(() => ({ bare }), [bare]);
|
|
9
|
+
const contextValue = useMemo(() => ({ bare, carded }), [bare, carded]);
|
|
10
10
|
return (_jsx(ListContext.Provider, { value: contextValue, children: _jsx(BaseList, { role: "grid", "aria-label": ariaLabel, ref: rootRef, jsStyle: [
|
|
11
11
|
{ overflow: "hidden" },
|
|
12
12
|
!bare && {
|
package/dist/List.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.js","sourceRoot":"","sources":["../src/List.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAW/B,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"List.js","sourceRoot":"","sources":["../src/List.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAW/B,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AAEvE,MAAM,UAAU,IAAI,CAAC,EACnB,SAAS,EACT,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,UAAU,GAAG,IAAI,EACjB,IAAI,EACJ,MAAM,GAAG,IAAI,EACb,GAAG,UAAU,EACH;IACV,MAAM,OAAO,GAAG,aAAa,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;IAClE,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IAEvE,OAAO,CACL,KAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YACvC,KAAC,QAAQ,IACP,IAAI,EAAC,MAAM,gBACC,SAAS,EACrB,GAAG,EAAE,OAAO,EACZ,OAAO,EAAE;gBACP,EAAE,QAAQ,EAAE,QAAQ,EAAE;gBACtB,CAAC,IAAI,IAAI;oBACP,eAAe,EAAE,MAAM,CAAC,sBAAsB,CAAC;iBAChD;gBACD,CAAC,IAAI;oBACH,CAAC,MAAM,IAAI;oBACT,YAAY,EAAE,aAAa,MAAM,CAAC,WAAW,CAAC,EAAE;oBAChD,SAAS,EAAE,aAAa,MAAM,CAAC,WAAW,CAAC,EAAE;iBAC9C;gBACH,CAAC,IAAI;oBACH,MAAM,IAAI;oBACR,MAAM,EAAE,aAAa,MAAM,CAAC,WAAW,CAAC,EAAE;oBAC1C,YAAY,EAAE,MAAM,CAAC,mBAAmB,CAAC;iBAC1C;gBACH,OAAO;aACR,KACG,UAAU,GACd,GACmB,CACxB,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC"}
|
package/dist/jss.js
CHANGED
|
@@ -276,7 +276,7 @@ export const lightTheme = {
|
|
|
276
276
|
};
|
|
277
277
|
export const darkTheme = {
|
|
278
278
|
/* Background */
|
|
279
|
-
["--overlay-background"]: "rgb(
|
|
279
|
+
["--overlay-background"]: "rgb(35, 36, 37)",
|
|
280
280
|
["--primary-background"]: "rgb(42, 43, 46)",
|
|
281
281
|
["--secondary-background"]: "rgb(65, 66, 67)",
|
|
282
282
|
["--divider"]: "rgb(70, 72, 73)",
|
package/package.json
CHANGED
package/src/BaseListItem.tsx
CHANGED
|
@@ -55,7 +55,7 @@ export const BaseListItem = React.forwardRef(
|
|
|
55
55
|
}: BaseListItemProps,
|
|
56
56
|
ref?: React.Ref<HTMLElement>
|
|
57
57
|
) => {
|
|
58
|
-
const { bare } = useListContext();
|
|
58
|
+
const { bare, carded } = useListContext();
|
|
59
59
|
|
|
60
60
|
const content = (
|
|
61
61
|
<TextPairing
|
|
@@ -87,16 +87,17 @@ export const BaseListItem = React.forwardRef(
|
|
|
87
87
|
tag="li"
|
|
88
88
|
role="row"
|
|
89
89
|
jsStyle={[
|
|
90
|
-
!bare &&
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
!bare &&
|
|
91
|
+
carded && {
|
|
92
|
+
[":first-child *"]: {
|
|
93
|
+
borderTopLeftRadius: cssVar("--border-radius-l"),
|
|
94
|
+
borderTopRightRadius: cssVar("--border-radius-l"),
|
|
95
|
+
},
|
|
96
|
+
[":last-child *"]: {
|
|
97
|
+
borderBottomLeftRadius: cssVar("--border-radius-l"),
|
|
98
|
+
borderBottomRightRadius: cssVar("--border-radius-l"),
|
|
99
|
+
},
|
|
94
100
|
},
|
|
95
|
-
[":last-child *"]: {
|
|
96
|
-
borderBottomLeftRadius: cssVar("--border-radius-l"),
|
|
97
|
-
borderBottomRightRadius: cssVar("--border-radius-l"),
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
101
|
jsStyle,
|
|
101
102
|
]}
|
|
102
103
|
>
|
package/src/List.tsx
CHANGED
|
@@ -12,7 +12,7 @@ interface ListProps extends BaseListProps {
|
|
|
12
12
|
carded?: boolean;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
const ListContext = React.createContext({ bare: false });
|
|
15
|
+
const ListContext = React.createContext({ bare: false, carded: true });
|
|
16
16
|
|
|
17
17
|
export function List({
|
|
18
18
|
ariaLabel,
|
|
@@ -24,7 +24,7 @@ export function List({
|
|
|
24
24
|
...otherProps
|
|
25
25
|
}: ListProps) {
|
|
26
26
|
const rootRef = useNavigation({ autofocus, enabled: navigation });
|
|
27
|
-
const contextValue = useMemo(() => ({ bare }), [bare]);
|
|
27
|
+
const contextValue = useMemo(() => ({ bare, carded }), [bare, carded]);
|
|
28
28
|
|
|
29
29
|
return (
|
|
30
30
|
<ListContext.Provider value={contextValue}>
|
package/src/docs/pages.ts
CHANGED
|
@@ -31,9 +31,13 @@ export const pages: Array<Page> = [
|
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
type: "section",
|
|
34
|
-
label: "
|
|
34
|
+
label: "Layout",
|
|
35
|
+
content: [{ type: "link", page: "FlexLayout" }],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: "section",
|
|
39
|
+
label: "Text",
|
|
35
40
|
content: [
|
|
36
|
-
{ type: "link", page: "FlexLayout" },
|
|
37
41
|
{ type: "link", page: "Text" },
|
|
38
42
|
{ type: "link", page: "TextPairing" },
|
|
39
43
|
{ type: "link", page: "Icon" },
|
|
@@ -41,11 +45,12 @@ export const pages: Array<Page> = [
|
|
|
41
45
|
},
|
|
42
46
|
{
|
|
43
47
|
type: "section",
|
|
44
|
-
label: "
|
|
48
|
+
label: "Actions",
|
|
45
49
|
content: [
|
|
46
50
|
{ type: "link", page: "Button" },
|
|
47
51
|
{ type: "link", page: "Link" },
|
|
48
52
|
{ type: "link", page: "IconButton" },
|
|
53
|
+
{ type: "link", page: "Tabs" },
|
|
49
54
|
],
|
|
50
55
|
},
|
|
51
56
|
{
|
|
@@ -87,11 +92,8 @@ export const pages: Array<Page> = [
|
|
|
87
92
|
},
|
|
88
93
|
{
|
|
89
94
|
type: "section",
|
|
90
|
-
label: "
|
|
91
|
-
content: [
|
|
92
|
-
{ type: "link", page: "Tabs" },
|
|
93
|
-
{ type: "link", page: "Calendar" },
|
|
94
|
-
],
|
|
95
|
+
label: "Time",
|
|
96
|
+
content: [{ type: "link", page: "Calendar" }],
|
|
95
97
|
},
|
|
96
98
|
{
|
|
97
99
|
type: "section",
|
package/src/jss.tsx
CHANGED
|
@@ -430,7 +430,7 @@ export const lightTheme: Theme = {
|
|
|
430
430
|
|
|
431
431
|
export const darkTheme: Theme = {
|
|
432
432
|
/* Background */
|
|
433
|
-
["--overlay-background"]: "rgb(
|
|
433
|
+
["--overlay-background"]: "rgb(35, 36, 37)",
|
|
434
434
|
["--primary-background"]: "rgb(42, 43, 46)",
|
|
435
435
|
["--secondary-background"]: "rgb(65, 66, 67)",
|
|
436
436
|
["--divider"]: "rgb(70, 72, 73)",
|
package/src/pages/_app.tsx
CHANGED
|
@@ -289,7 +289,7 @@ export default function App({ Component, pageProps }: AppProps) {
|
|
|
289
289
|
aria-haspopup="grid"
|
|
290
290
|
aria-expanded={isQuerying ? "true" : "false"}
|
|
291
291
|
aria-controls=""
|
|
292
|
-
placeholder="
|
|
292
|
+
placeholder="Semantic search (⌘K)"
|
|
293
293
|
value={query}
|
|
294
294
|
onValueChange={(value) => {
|
|
295
295
|
setQuery(value);
|