@cognite/aura 1.46884.0 → 1.47174.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 (25) hide show
  1. package/DESIGN.md +5 -0
  2. package/dist/components/ui/core/banner/banner.gallery.d.ts +2 -0
  3. package/dist/components/ui/core/banner/banner.gallery.js +56 -0
  4. package/dist/components/ui/core/banner/banner.gallery.js.map +1 -0
  5. package/dist/components/ui/core/data-grid/data-grid.js +1 -19
  6. package/dist/components/ui/core/data-grid/data-grid.js.map +1 -1
  7. package/dist/components/ui/core/input/input.gallery.d.ts +2 -0
  8. package/dist/components/ui/core/input/input.gallery.js +89 -0
  9. package/dist/components/ui/core/input/input.gallery.js.map +1 -0
  10. package/dist/components/ui/core/label/label.gallery.d.ts +2 -0
  11. package/dist/components/ui/core/label/label.gallery.js +57 -0
  12. package/dist/components/ui/core/label/label.gallery.js.map +1 -0
  13. package/dist/components/ui/core/radio-group/radio-group.gallery.d.ts +2 -0
  14. package/dist/components/ui/core/radio-group/radio-group.gallery.js +44 -0
  15. package/dist/components/ui/core/radio-group/radio-group.gallery.js.map +1 -0
  16. package/dist/components/ui/core/textarea/textarea.gallery.d.ts +2 -0
  17. package/dist/components/ui/core/textarea/textarea.gallery.js +51 -0
  18. package/dist/components/ui/core/textarea/textarea.gallery.js.map +1 -0
  19. package/dist/styles.css +1 -1
  20. package/package.json +1 -1
  21. package/src/components/ui/core/banner/banner.md +51 -0
  22. package/src/components/ui/core/input/input.md +48 -0
  23. package/src/components/ui/core/label/label.md +35 -0
  24. package/src/components/ui/core/radio-group/radio-group.md +38 -0
  25. package/src/components/ui/core/textarea/textarea.md +42 -0
@@ -0,0 +1,44 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { RadioGroup, RadioGroupItem, RadioGroupItemControl, RadioGroupItemLabel } from "./radio-group.js";
3
+ export function RadioGroupGallery() {
4
+ return /*#__PURE__*/ _jsxs(RadioGroup, {
5
+ defaultValue: "option1",
6
+ children: [
7
+ /*#__PURE__*/ _jsxs(RadioGroupItem, {
8
+ children: [
9
+ /*#__PURE__*/ _jsx(RadioGroupItemControl, {
10
+ value: "option1",
11
+ "aria-label": "Option 1"
12
+ }),
13
+ /*#__PURE__*/ _jsx(RadioGroupItemLabel, {
14
+ children: "Option 1"
15
+ })
16
+ ]
17
+ }),
18
+ /*#__PURE__*/ _jsxs(RadioGroupItem, {
19
+ children: [
20
+ /*#__PURE__*/ _jsx(RadioGroupItemControl, {
21
+ value: "option2",
22
+ "aria-label": "Option 2"
23
+ }),
24
+ /*#__PURE__*/ _jsx(RadioGroupItemLabel, {
25
+ children: "Option 2"
26
+ })
27
+ ]
28
+ }),
29
+ /*#__PURE__*/ _jsxs(RadioGroupItem, {
30
+ children: [
31
+ /*#__PURE__*/ _jsx(RadioGroupItemControl, {
32
+ value: "option3",
33
+ "aria-label": "Option 3"
34
+ }),
35
+ /*#__PURE__*/ _jsx(RadioGroupItemLabel, {
36
+ children: "Option 3"
37
+ })
38
+ ]
39
+ })
40
+ ]
41
+ });
42
+ }
43
+
44
+ //# sourceMappingURL=radio-group.gallery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/radio-group/radio-group.gallery.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\n\nimport {\n RadioGroup,\n RadioGroupItem,\n RadioGroupItemControl,\n RadioGroupItemLabel,\n} from './radio-group';\n\nexport function RadioGroupGallery(): ReactElement {\n return (\n <RadioGroup defaultValue=\"option1\">\n <RadioGroupItem>\n <RadioGroupItemControl value=\"option1\" aria-label=\"Option 1\" />\n <RadioGroupItemLabel>Option 1</RadioGroupItemLabel>\n </RadioGroupItem>\n <RadioGroupItem>\n <RadioGroupItemControl value=\"option2\" aria-label=\"Option 2\" />\n <RadioGroupItemLabel>Option 2</RadioGroupItemLabel>\n </RadioGroupItem>\n <RadioGroupItem>\n <RadioGroupItemControl value=\"option3\" aria-label=\"Option 3\" />\n <RadioGroupItemLabel>Option 3</RadioGroupItemLabel>\n </RadioGroupItem>\n </RadioGroup>\n );\n}\n"],"names":["RadioGroup","RadioGroupItem","RadioGroupItemControl","RadioGroupItemLabel","RadioGroupGallery","defaultValue","value","aria-label"],"mappings":";AAEA,SACEA,UAAU,EACVC,cAAc,EACdC,qBAAqB,EACrBC,mBAAmB,QACd,mBAAgB;AAEvB,OAAO,SAASC;IACd,qBACE,MAACJ;QAAWK,cAAa;;0BACvB,MAACJ;;kCACC,KAACC;wBAAsBI,OAAM;wBAAUC,cAAW;;kCAClD,KAACJ;kCAAoB;;;;0BAEvB,MAACF;;kCACC,KAACC;wBAAsBI,OAAM;wBAAUC,cAAW;;kCAClD,KAACJ;kCAAoB;;;;0BAEvB,MAACF;;kCACC,KAACC;wBAAsBI,OAAM;wBAAUC,cAAW;;kCAClD,KAACJ;kCAAoB;;;;;;AAI7B"}
@@ -0,0 +1,2 @@
1
+ import { type ReactElement } from "react";
2
+ export declare function TextareaGallery(): ReactElement;
@@ -0,0 +1,51 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useId } from "react";
3
+ import { HelperText } from "../helper-text/helper-text.js";
4
+ import { Label } from "../label/label.js";
5
+ import { Textarea } from "./textarea.js";
6
+ export function TextareaGallery() {
7
+ const id = useId();
8
+ return /*#__PURE__*/ _jsxs("div", {
9
+ className: "w-88 space-y-4",
10
+ children: [
11
+ /*#__PURE__*/ _jsxs("div", {
12
+ className: "grid w-full gap-1.5",
13
+ children: [
14
+ /*#__PURE__*/ _jsx(Label, {
15
+ htmlFor: `${id}-message`,
16
+ children: "Your message"
17
+ }),
18
+ /*#__PURE__*/ _jsx(Textarea, {
19
+ id: `${id}-message`,
20
+ placeholder: "Type your message here..."
21
+ }),
22
+ /*#__PURE__*/ _jsx(HelperText, {
23
+ className: "pt-2",
24
+ children: "Visible to everyone on the team."
25
+ })
26
+ ]
27
+ }),
28
+ /*#__PURE__*/ _jsxs("div", {
29
+ className: "grid w-full gap-1.5",
30
+ children: [
31
+ /*#__PURE__*/ _jsx(Label, {
32
+ htmlFor: `${id}-comments`,
33
+ children: "Comments"
34
+ }),
35
+ /*#__PURE__*/ _jsx(Textarea, {
36
+ id: `${id}-comments`,
37
+ defaultValue: "Too short",
38
+ "aria-invalid": true
39
+ }),
40
+ /*#__PURE__*/ _jsx(HelperText, {
41
+ className: "pt-2",
42
+ isError: true,
43
+ children: "Enter at least 20 characters."
44
+ })
45
+ ]
46
+ })
47
+ ]
48
+ });
49
+ }
50
+
51
+ //# sourceMappingURL=textarea.gallery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/textarea/textarea.gallery.tsx"],"sourcesContent":["import { type ReactElement, useId } from 'react';\n\nimport { HelperText } from '../helper-text/helper-text';\nimport { Label } from '../label/label';\n\nimport { Textarea } from './textarea';\n\nexport function TextareaGallery(): ReactElement {\n const id = useId();\n\n return (\n <div className=\"w-88 space-y-4\">\n <div className=\"grid w-full gap-1.5\">\n <Label htmlFor={`${id}-message`}>Your message</Label>\n <Textarea\n id={`${id}-message`}\n placeholder=\"Type your message here...\"\n />\n <HelperText className=\"pt-2\">\n Visible to everyone on the team.\n </HelperText>\n </div>\n <div className=\"grid w-full gap-1.5\">\n <Label htmlFor={`${id}-comments`}>Comments</Label>\n <Textarea id={`${id}-comments`} defaultValue=\"Too short\" aria-invalid />\n <HelperText className=\"pt-2\" isError>\n Enter at least 20 characters.\n </HelperText>\n </div>\n </div>\n );\n}\n"],"names":["useId","HelperText","Label","Textarea","TextareaGallery","id","div","className","htmlFor","placeholder","defaultValue","aria-invalid","isError"],"mappings":";AAAA,SAA4BA,KAAK,QAAQ,QAAQ;AAEjD,SAASC,UAAU,QAAQ,gCAA6B;AACxD,SAASC,KAAK,QAAQ,oBAAiB;AAEvC,SAASC,QAAQ,QAAQ,gBAAa;AAEtC,OAAO,SAASC;IACd,MAAMC,KAAKL;IAEX,qBACE,MAACM;QAAIC,WAAU;;0BACb,MAACD;gBAAIC,WAAU;;kCACb,KAACL;wBAAMM,SAAS,GAAGH,GAAG,QAAQ,CAAC;kCAAE;;kCACjC,KAACF;wBACCE,IAAI,GAAGA,GAAG,QAAQ,CAAC;wBACnBI,aAAY;;kCAEd,KAACR;wBAAWM,WAAU;kCAAO;;;;0BAI/B,MAACD;gBAAIC,WAAU;;kCACb,KAACL;wBAAMM,SAAS,GAAGH,GAAG,SAAS,CAAC;kCAAE;;kCAClC,KAACF;wBAASE,IAAI,GAAGA,GAAG,SAAS,CAAC;wBAAEK,cAAa;wBAAYC,cAAY;;kCACrE,KAACV;wBAAWM,WAAU;wBAAOK,OAAO;kCAAC;;;;;;AAM7C"}