@cognite/aura 1.47321.0 → 1.47367.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.
- package/DESIGN.md +3 -0
- package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.d.ts +2 -0
- package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.js +31 -0
- package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.js.map +1 -0
- package/dist/components/ui/core/button-group/button-group.gallery.d.ts +2 -0
- package/dist/components/ui/core/button-group/button-group.gallery.js +62 -0
- package/dist/components/ui/core/button-group/button-group.gallery.js.map +1 -0
- package/dist/components/ui/core/collapsible/collapsible.gallery.d.ts +2 -0
- package/dist/components/ui/core/collapsible/collapsible.gallery.js +39 -0
- package/dist/components/ui/core/collapsible/collapsible.gallery.js.map +1 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/ui/core/breadcrumb/breadcrumb.md +45 -0
- package/src/components/ui/core/button-group/button-group.md +38 -0
- package/src/components/ui/core/collapsible/collapsible.md +42 -0
package/DESIGN.md
CHANGED
|
@@ -1201,6 +1201,7 @@ Persistent or dismissible message scoped at page or section level — stronger t
|
|
|
1201
1201
|
|
|
1202
1202
|
**Storybook-slug:** breadcrumb
|
|
1203
1203
|
**Docs-slug:** breadcrumbs
|
|
1204
|
+
**Full guidance:** [breadcrumb.md](./src/components/ui/core/breadcrumb/breadcrumb.md)
|
|
1204
1205
|
|
|
1205
1206
|
**Definition**
|
|
1206
1207
|
Hierarchical navigation aid that shows users their current location within the product's structure. Location-based, not path-based.
|
|
@@ -1260,6 +1261,7 @@ Primary control for discrete actions.
|
|
|
1260
1261
|
#### Button Group
|
|
1261
1262
|
|
|
1262
1263
|
**Storybook-slug:** button-group
|
|
1264
|
+
**Full guidance:** [button-group.md](./src/components/ui/core/button-group/button-group.md)
|
|
1263
1265
|
|
|
1264
1266
|
**Definition**
|
|
1265
1267
|
Visually joins related buttons into a connected row, clarifying that the actions belong to the same context.
|
|
@@ -1349,6 +1351,7 @@ Enables users to independently select one or multiple options. Can appear standa
|
|
|
1349
1351
|
|
|
1350
1352
|
**Storybook-slug:** collapsible
|
|
1351
1353
|
**Docs-slug:** collapsible
|
|
1354
|
+
**Full guidance:** [collapsible.md](./src/components/ui/core/collapsible/collapsible.md)
|
|
1352
1355
|
|
|
1353
1356
|
**Definition**
|
|
1354
1357
|
A single inline expandable block that toggles content visibility. Designed for one independent optional section, not multiple stacked areas.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./breadcrumb.js";
|
|
3
|
+
export function BreadcrumbGallery() {
|
|
4
|
+
return /*#__PURE__*/ _jsx(Breadcrumb, {
|
|
5
|
+
children: /*#__PURE__*/ _jsxs(BreadcrumbList, {
|
|
6
|
+
children: [
|
|
7
|
+
/*#__PURE__*/ _jsx(BreadcrumbItem, {
|
|
8
|
+
children: /*#__PURE__*/ _jsx(BreadcrumbLink, {
|
|
9
|
+
href: "/",
|
|
10
|
+
children: "Home"
|
|
11
|
+
})
|
|
12
|
+
}),
|
|
13
|
+
/*#__PURE__*/ _jsx(BreadcrumbSeparator, {}),
|
|
14
|
+
/*#__PURE__*/ _jsx(BreadcrumbItem, {
|
|
15
|
+
children: /*#__PURE__*/ _jsx(BreadcrumbLink, {
|
|
16
|
+
href: "/projects",
|
|
17
|
+
children: "Projects"
|
|
18
|
+
})
|
|
19
|
+
}),
|
|
20
|
+
/*#__PURE__*/ _jsx(BreadcrumbSeparator, {}),
|
|
21
|
+
/*#__PURE__*/ _jsx(BreadcrumbItem, {
|
|
22
|
+
children: /*#__PURE__*/ _jsx(BreadcrumbPage, {
|
|
23
|
+
children: "Project Alpha"
|
|
24
|
+
})
|
|
25
|
+
})
|
|
26
|
+
]
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=breadcrumb.gallery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/ui/core/breadcrumb/breadcrumb.gallery.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\n\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from './breadcrumb';\n\nexport function BreadcrumbGallery(): ReactElement {\n return (\n <Breadcrumb>\n <BreadcrumbList>\n <BreadcrumbItem>\n <BreadcrumbLink href=\"/\">Home</BreadcrumbLink>\n </BreadcrumbItem>\n <BreadcrumbSeparator />\n <BreadcrumbItem>\n <BreadcrumbLink href=\"/projects\">Projects</BreadcrumbLink>\n </BreadcrumbItem>\n <BreadcrumbSeparator />\n <BreadcrumbItem>\n <BreadcrumbPage>Project Alpha</BreadcrumbPage>\n </BreadcrumbItem>\n </BreadcrumbList>\n </Breadcrumb>\n );\n}\n"],"names":["Breadcrumb","BreadcrumbItem","BreadcrumbLink","BreadcrumbList","BreadcrumbPage","BreadcrumbSeparator","BreadcrumbGallery","href"],"mappings":";AAEA,SACEA,UAAU,EACVC,cAAc,EACdC,cAAc,EACdC,cAAc,EACdC,cAAc,EACdC,mBAAmB,QACd,kBAAe;AAEtB,OAAO,SAASC;IACd,qBACE,KAACN;kBACC,cAAA,MAACG;;8BACC,KAACF;8BACC,cAAA,KAACC;wBAAeK,MAAK;kCAAI;;;8BAE3B,KAACF;8BACD,KAACJ;8BACC,cAAA,KAACC;wBAAeK,MAAK;kCAAY;;;8BAEnC,KAACF;8BACD,KAACJ;8BACC,cAAA,KAACG;kCAAe;;;;;;AAK1B"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from "../button/button.js";
|
|
3
|
+
import { ButtonGroup } from "./button-group.js";
|
|
4
|
+
export function ButtonGroupGallery() {
|
|
5
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
6
|
+
className: "flex flex-col gap-8",
|
|
7
|
+
children: [
|
|
8
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
9
|
+
children: [
|
|
10
|
+
/*#__PURE__*/ _jsx("h3", {
|
|
11
|
+
className: "mb-3 font-semibold text-sm",
|
|
12
|
+
children: "Horizontal"
|
|
13
|
+
}),
|
|
14
|
+
/*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
15
|
+
orientation: "horizontal",
|
|
16
|
+
children: [
|
|
17
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
18
|
+
variant: "outline",
|
|
19
|
+
children: "First"
|
|
20
|
+
}),
|
|
21
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
22
|
+
variant: "outline",
|
|
23
|
+
children: "Second"
|
|
24
|
+
}),
|
|
25
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
26
|
+
variant: "outline",
|
|
27
|
+
children: "Third"
|
|
28
|
+
})
|
|
29
|
+
]
|
|
30
|
+
})
|
|
31
|
+
]
|
|
32
|
+
}),
|
|
33
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
34
|
+
children: [
|
|
35
|
+
/*#__PURE__*/ _jsx("h3", {
|
|
36
|
+
className: "mb-3 font-semibold text-sm",
|
|
37
|
+
children: "Vertical"
|
|
38
|
+
}),
|
|
39
|
+
/*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
40
|
+
orientation: "vertical",
|
|
41
|
+
children: [
|
|
42
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
43
|
+
variant: "outline",
|
|
44
|
+
children: "First"
|
|
45
|
+
}),
|
|
46
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
47
|
+
variant: "outline",
|
|
48
|
+
children: "Second"
|
|
49
|
+
}),
|
|
50
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
51
|
+
variant: "outline",
|
|
52
|
+
children: "Third"
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
})
|
|
58
|
+
]
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
//# sourceMappingURL=button-group.gallery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/ui/core/button-group/button-group.gallery.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\n\nimport { Button } from '../button/button';\n\nimport { ButtonGroup } from './button-group';\n\nexport function ButtonGroupGallery(): ReactElement {\n return (\n <div className=\"flex flex-col gap-8\">\n <div>\n <h3 className=\"mb-3 font-semibold text-sm\">Horizontal</h3>\n <ButtonGroup orientation=\"horizontal\">\n <Button variant=\"outline\">First</Button>\n <Button variant=\"outline\">Second</Button>\n <Button variant=\"outline\">Third</Button>\n </ButtonGroup>\n </div>\n <div>\n <h3 className=\"mb-3 font-semibold text-sm\">Vertical</h3>\n <ButtonGroup orientation=\"vertical\">\n <Button variant=\"outline\">First</Button>\n <Button variant=\"outline\">Second</Button>\n <Button variant=\"outline\">Third</Button>\n </ButtonGroup>\n </div>\n </div>\n );\n}\n"],"names":["Button","ButtonGroup","ButtonGroupGallery","div","className","h3","orientation","variant"],"mappings":";AAEA,SAASA,MAAM,QAAQ,sBAAmB;AAE1C,SAASC,WAAW,QAAQ,oBAAiB;AAE7C,OAAO,SAASC;IACd,qBACE,MAACC;QAAIC,WAAU;;0BACb,MAACD;;kCACC,KAACE;wBAAGD,WAAU;kCAA6B;;kCAC3C,MAACH;wBAAYK,aAAY;;0CACvB,KAACN;gCAAOO,SAAQ;0CAAU;;0CAC1B,KAACP;gCAAOO,SAAQ;0CAAU;;0CAC1B,KAACP;gCAAOO,SAAQ;0CAAU;;;;;;0BAG9B,MAACJ;;kCACC,KAACE;wBAAGD,WAAU;kCAA6B;;kCAC3C,MAACH;wBAAYK,aAAY;;0CACvB,KAACN;gCAAOO,SAAQ;0CAAU;;0CAC1B,KAACP;gCAAOO,SAAQ;0CAAU;;0CAC1B,KAACP;gCAAOO,SAAQ;0CAAU;;;;;;;;AAKpC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { IconSelector } from "@tabler/icons-react";
|
|
3
|
+
import { Badge } from "../badge/badge.js";
|
|
4
|
+
import { Button } from "../button/button.js";
|
|
5
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./collapsible.js";
|
|
6
|
+
export function CollapsibleGallery() {
|
|
7
|
+
return /*#__PURE__*/ _jsxs(Collapsible, {
|
|
8
|
+
className: "w-120 max-w-full space-y-2",
|
|
9
|
+
children: [
|
|
10
|
+
/*#__PURE__*/ _jsx(CollapsibleTrigger, {
|
|
11
|
+
render: /*#__PURE__*/ _jsxs(Button, {
|
|
12
|
+
variant: "ghost",
|
|
13
|
+
className: "h-9 w-full justify-between rounded-sm px-3 py-2 gap-2",
|
|
14
|
+
children: [
|
|
15
|
+
/*#__PURE__*/ _jsx("span", {
|
|
16
|
+
className: "flex-1 text-left",
|
|
17
|
+
children: "What is a collapsible?"
|
|
18
|
+
}),
|
|
19
|
+
/*#__PURE__*/ _jsx(Badge, {
|
|
20
|
+
className: "h-5 bg-decorative-background-mountain px-1 text-decorative-foreground-mountain",
|
|
21
|
+
children: "Badge"
|
|
22
|
+
}),
|
|
23
|
+
/*#__PURE__*/ _jsx(IconSelector, {
|
|
24
|
+
className: "h-4 w-4 transition-transform duration-200 group-data-panel-open/collapsible-trigger:rotate-180"
|
|
25
|
+
})
|
|
26
|
+
]
|
|
27
|
+
})
|
|
28
|
+
}),
|
|
29
|
+
/*#__PURE__*/ _jsx(CollapsibleContent, {
|
|
30
|
+
children: /*#__PURE__*/ _jsx("div", {
|
|
31
|
+
className: "px-3 py-0",
|
|
32
|
+
children: "A collapsible is an interactive component that expands and collapses to show or hide content. Multiple collapsibles can be open at the same time, unlike accordions which are mutually exclusive."
|
|
33
|
+
})
|
|
34
|
+
})
|
|
35
|
+
]
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=collapsible.gallery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/ui/core/collapsible/collapsible.gallery.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\n\nimport { IconSelector } from '@tabler/icons-react';\n\nimport { Badge } from '../badge/badge';\nimport { Button } from '../button/button';\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from './collapsible';\n\nexport function CollapsibleGallery(): ReactElement {\n return (\n <Collapsible className=\"w-120 max-w-full space-y-2\">\n <CollapsibleTrigger\n render={\n <Button\n variant=\"ghost\"\n className=\"h-9 w-full justify-between rounded-sm px-3 py-2 gap-2\"\n >\n <span className=\"flex-1 text-left\">What is a collapsible?</span>\n <Badge className=\"h-5 bg-decorative-background-mountain px-1 text-decorative-foreground-mountain\">\n Badge\n </Badge>\n <IconSelector className=\"h-4 w-4 transition-transform duration-200 group-data-panel-open/collapsible-trigger:rotate-180\" />\n </Button>\n }\n />\n <CollapsibleContent>\n <div className=\"px-3 py-0\">\n A collapsible is an interactive component that expands and collapses\n to show or hide content. Multiple collapsibles can be open at the same\n time, unlike accordions which are mutually exclusive.\n </div>\n </CollapsibleContent>\n </Collapsible>\n );\n}\n"],"names":["IconSelector","Badge","Button","Collapsible","CollapsibleContent","CollapsibleTrigger","CollapsibleGallery","className","render","variant","span","div"],"mappings":";AAEA,SAASA,YAAY,QAAQ,sBAAsB;AAEnD,SAASC,KAAK,QAAQ,oBAAiB;AACvC,SAASC,MAAM,QAAQ,sBAAmB;AAE1C,SACEC,WAAW,EACXC,kBAAkB,EAClBC,kBAAkB,QACb,mBAAgB;AAEvB,OAAO,SAASC;IACd,qBACE,MAACH;QAAYI,WAAU;;0BACrB,KAACF;gBACCG,sBACE,MAACN;oBACCO,SAAQ;oBACRF,WAAU;;sCAEV,KAACG;4BAAKH,WAAU;sCAAmB;;sCACnC,KAACN;4BAAMM,WAAU;sCAAiF;;sCAGlG,KAACP;4BAAaO,WAAU;;;;;0BAI9B,KAACH;0BACC,cAAA,KAACO;oBAAIJ,WAAU;8BAAY;;;;;AAQnC"}
|