@cognite/aura 1.46766.0 → 1.46840.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 (29) hide show
  1. package/DESIGN.md +12 -0
  2. package/dist/components/ui/core/alert/alert.gallery.d.ts +2 -0
  3. package/dist/components/ui/core/alert/alert.gallery.js +54 -0
  4. package/dist/components/ui/core/alert/alert.gallery.js.map +1 -0
  5. package/dist/components/ui/core/avatar/avatar.gallery.d.ts +2 -0
  6. package/dist/components/ui/core/avatar/avatar.gallery.js +67 -0
  7. package/dist/components/ui/core/avatar/avatar.gallery.js.map +1 -0
  8. package/dist/components/ui/core/badge/badge.gallery.d.ts +2 -0
  9. package/dist/components/ui/core/badge/badge.gallery.js +64 -0
  10. package/dist/components/ui/core/badge/badge.gallery.js.map +1 -0
  11. package/dist/components/ui/core/checkbox/checkbox.gallery.d.ts +2 -0
  12. package/dist/components/ui/core/checkbox/checkbox.gallery.js +36 -0
  13. package/dist/components/ui/core/checkbox/checkbox.gallery.js.map +1 -0
  14. package/dist/components/ui/core/message/message-response-default-streamdown-controls.d.ts +4 -5
  15. package/dist/components/ui/core/message/message-response-default-streamdown-controls.js +5 -6
  16. package/dist/components/ui/core/message/message-response-default-streamdown-controls.js.map +1 -1
  17. package/dist/components/ui/core/message/message.js +6 -1
  18. package/dist/components/ui/core/message/message.js.map +1 -1
  19. package/dist/components/ui/core/switch/switch.gallery.d.ts +2 -0
  20. package/dist/components/ui/core/switch/switch.gallery.js +67 -0
  21. package/dist/components/ui/core/switch/switch.gallery.js.map +1 -0
  22. package/dist/styles.css +1 -1
  23. package/dist/styles.source.css +14 -0
  24. package/package.json +2 -2
  25. package/src/components/ui/core/alert/alert.md +46 -0
  26. package/src/components/ui/core/avatar/avatar.md +30 -0
  27. package/src/components/ui/core/badge/badge.md +32 -0
  28. package/src/components/ui/core/checkbox/checkbox.md +37 -0
  29. package/src/components/ui/core/switch/switch.md +26 -0
@@ -0,0 +1,67 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Label } from "../label/label.js";
3
+ import { Switch } from "./switch.js";
4
+ export function SwitchGallery() {
5
+ return /*#__PURE__*/ _jsxs("div", {
6
+ className: "flex w-48 flex-col items-start",
7
+ children: [
8
+ /*#__PURE__*/ _jsxs("div", {
9
+ className: "flex h-9 w-full items-center gap-3",
10
+ children: [
11
+ /*#__PURE__*/ _jsx(Label, {
12
+ htmlFor: "default-email",
13
+ className: "flex-1 pb-0",
14
+ children: "Email"
15
+ }),
16
+ /*#__PURE__*/ _jsx(Switch, {
17
+ id: "default-email",
18
+ defaultChecked: true
19
+ })
20
+ ]
21
+ }),
22
+ /*#__PURE__*/ _jsxs("div", {
23
+ className: "flex h-9 w-full items-center gap-3",
24
+ children: [
25
+ /*#__PURE__*/ _jsx(Label, {
26
+ htmlFor: "default-slack",
27
+ className: "flex-1 pb-0",
28
+ children: "Slack"
29
+ }),
30
+ /*#__PURE__*/ _jsx(Switch, {
31
+ id: "default-slack"
32
+ })
33
+ ]
34
+ }),
35
+ /*#__PURE__*/ _jsxs("div", {
36
+ className: "flex h-9 w-full items-center gap-3",
37
+ children: [
38
+ /*#__PURE__*/ _jsx(Label, {
39
+ htmlFor: "default-in-app",
40
+ className: "flex-1 pb-0",
41
+ children: "In app"
42
+ }),
43
+ /*#__PURE__*/ _jsx(Switch, {
44
+ id: "default-in-app",
45
+ defaultChecked: true
46
+ })
47
+ ]
48
+ }),
49
+ /*#__PURE__*/ _jsxs("div", {
50
+ className: "flex h-9 w-full items-center gap-3",
51
+ children: [
52
+ /*#__PURE__*/ _jsx(Label, {
53
+ htmlFor: "default-sms",
54
+ className: "flex-1 pb-0",
55
+ children: "SMS"
56
+ }),
57
+ /*#__PURE__*/ _jsx(Switch, {
58
+ id: "default-sms",
59
+ disabled: true
60
+ })
61
+ ]
62
+ })
63
+ ]
64
+ });
65
+ }
66
+
67
+ //# sourceMappingURL=switch.gallery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/switch/switch.gallery.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\n\nimport { Label } from '../label/label';\n\nimport { Switch } from './switch';\n\nexport function SwitchGallery(): ReactElement {\n return (\n <div className=\"flex w-48 flex-col items-start\">\n <div className=\"flex h-9 w-full items-center gap-3\">\n <Label htmlFor=\"default-email\" className=\"flex-1 pb-0\">\n Email\n </Label>\n <Switch id=\"default-email\" defaultChecked />\n </div>\n <div className=\"flex h-9 w-full items-center gap-3\">\n <Label htmlFor=\"default-slack\" className=\"flex-1 pb-0\">\n Slack\n </Label>\n <Switch id=\"default-slack\" />\n </div>\n <div className=\"flex h-9 w-full items-center gap-3\">\n <Label htmlFor=\"default-in-app\" className=\"flex-1 pb-0\">\n In app\n </Label>\n <Switch id=\"default-in-app\" defaultChecked />\n </div>\n <div className=\"flex h-9 w-full items-center gap-3\">\n <Label htmlFor=\"default-sms\" className=\"flex-1 pb-0\">\n SMS\n </Label>\n <Switch id=\"default-sms\" disabled />\n </div>\n </div>\n );\n}\n"],"names":["Label","Switch","SwitchGallery","div","className","htmlFor","id","defaultChecked","disabled"],"mappings":";AAEA,SAASA,KAAK,QAAQ,oBAAiB;AAEvC,SAASC,MAAM,QAAQ,cAAW;AAElC,OAAO,SAASC;IACd,qBACE,MAACC;QAAIC,WAAU;;0BACb,MAACD;gBAAIC,WAAU;;kCACb,KAACJ;wBAAMK,SAAQ;wBAAgBD,WAAU;kCAAc;;kCAGvD,KAACH;wBAAOK,IAAG;wBAAgBC,cAAc;;;;0BAE3C,MAACJ;gBAAIC,WAAU;;kCACb,KAACJ;wBAAMK,SAAQ;wBAAgBD,WAAU;kCAAc;;kCAGvD,KAACH;wBAAOK,IAAG;;;;0BAEb,MAACH;gBAAIC,WAAU;;kCACb,KAACJ;wBAAMK,SAAQ;wBAAiBD,WAAU;kCAAc;;kCAGxD,KAACH;wBAAOK,IAAG;wBAAiBC,cAAc;;;;0BAE5C,MAACJ;gBAAIC,WAAU;;kCACb,KAACJ;wBAAMK,SAAQ;wBAAcD,WAAU;kCAAc;;kCAGrD,KAACH;wBAAOK,IAAG;wBAAcE,QAAQ;;;;;;AAIzC"}