@spaced-out/ui-design-system 0.5.17 → 0.5.19

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 (31) hide show
  1. package/.cspell/custom-words.txt +2 -0
  2. package/.github/workflows/publish-mcp.yml +81 -0
  3. package/CHANGELOG.md +16 -0
  4. package/COMPONENT_PROMPT_TEMPLATE.md +223 -0
  5. package/lib/components/Checklist/Checklist.d.ts +44 -0
  6. package/lib/components/Checklist/Checklist.d.ts.map +1 -0
  7. package/lib/components/Checklist/Checklist.js +146 -0
  8. package/lib/components/Checklist/Checklist.module.css +164 -0
  9. package/lib/components/Checklist/index.d.ts +2 -0
  10. package/lib/components/Checklist/index.d.ts.map +1 -0
  11. package/lib/components/Checklist/index.js +16 -0
  12. package/lib/components/PromptChip/PromptChip.d.ts +1 -0
  13. package/lib/components/PromptChip/PromptChip.d.ts.map +1 -1
  14. package/lib/components/PromptChip/PromptChip.js +14 -12
  15. package/lib/components/PromptChip/PromptChip.module.css +69 -37
  16. package/lib/components/TemplateCard/TemplateCard.d.ts +29 -0
  17. package/lib/components/TemplateCard/TemplateCard.d.ts.map +1 -0
  18. package/lib/components/TemplateCard/TemplateCard.js +92 -0
  19. package/lib/components/TemplateCard/TemplateCard.module.css +170 -0
  20. package/lib/components/TemplateCard/index.d.ts +2 -0
  21. package/lib/components/TemplateCard/index.d.ts.map +1 -0
  22. package/lib/components/TemplateCard/index.js +16 -0
  23. package/lib/components/index.d.ts +2 -0
  24. package/lib/components/index.d.ts.map +1 -1
  25. package/lib/components/index.js +22 -0
  26. package/mcp/README.md +306 -0
  27. package/mcp/build-mcp-data.js +247 -0
  28. package/mcp/index.js +1239 -0
  29. package/mcp/package.json +44 -0
  30. package/mcp/test-server.js +65 -0
  31. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ export * from '../../components/Checklist/Checklist';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Checklist/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _Checklist = require("./Checklist");
7
+ Object.keys(_Checklist).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _Checklist[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _Checklist[key];
14
+ }
15
+ });
16
+ });
@@ -37,6 +37,7 @@ export type PromptChipProps = {
37
37
  rightSlot?: React.ReactNode;
38
38
  showInfoIcon?: boolean;
39
39
  infoIconTooltip?: BaseTooltipProps;
40
+ isMultiline?: boolean;
40
41
  };
41
42
  export declare const PromptChip: Flow.AbstractComponent<PromptChipProps, HTMLDivElement>;
42
43
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"PromptChip.d.ts","sourceRoot":"","sources":["../../../src/components/PromptChip/PromptChip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAMrD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAElD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAM7D,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC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AS,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEJ,eAAO,MAAM,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAC7C,eAAe,EACf,cAAc,CA+If,CAAC"}
@@ -32,7 +32,8 @@ const PromptChip = exports.PromptChip = /*#__PURE__*/React.forwardRef((props, re
32
32
  dismissable,
33
33
  showInfoIcon,
34
34
  infoIconTooltip,
35
- testId
35
+ testId,
36
+ isMultiline
36
37
  } = props;
37
38
  // Type narrowing to safely access properties only when they exist
38
39
  const onDismiss = dismissable === true && 'onDismiss' in props ? props.onDismiss : undefined;
@@ -63,19 +64,20 @@ const PromptChip = exports.PromptChip = /*#__PURE__*/React.forwardRef((props, re
63
64
  role: "button",
64
65
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
65
66
  className: (0, _classify.classify)(_PromptChipModule.default.promptChipContainer, {
66
- [_PromptChipModule.default.promptChipContainerHover]: !!onClick
67
+ [_PromptChipModule.default.promptChipContainerHover]: !!onClick,
68
+ [_PromptChipModule.default.multilinePromptChipContainer]: !!isMultiline
67
69
  }, classNames?.container),
68
70
  "data-testid": (0, _qa.generateTestId)({
69
71
  base: testId,
70
72
  slot: 'content'
71
73
  }),
72
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
74
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
73
75
  className: (0, _classify.classify)(_PromptChipModule.default.leftSection, classNames?.leftSlot),
74
76
  "data-testid": (0, _qa.generateTestId)({
75
77
  base: testId,
76
78
  slot: 'left'
77
79
  }),
78
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
80
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
79
81
  size: _Icon.ICON_SIZE.small,
80
82
  name: iconName,
81
83
  type: iconType,
@@ -87,14 +89,14 @@ const PromptChip = exports.PromptChip = /*#__PURE__*/React.forwardRef((props, re
87
89
  base: testId,
88
90
  slot: 'icon'
89
91
  })
90
- }), !!children && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
91
- className: (0, _classify.classify)(_PromptChipModule.default.childrenWrapper, classNames?.children),
92
- "data-testid": (0, _qa.generateTestId)({
93
- base: testId,
94
- slot: 'text'
95
- }),
96
- children: children
97
- })]
92
+ })
93
+ }), !!children && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
94
+ className: (0, _classify.classify)(_PromptChipModule.default.childrenWrapper, classNames?.children),
95
+ "data-testid": (0, _qa.generateTestId)({
96
+ base: testId,
97
+ slot: 'text'
98
+ }),
99
+ children: children
98
100
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
99
101
  className: (0, _classify.classify)(_PromptChipModule.default.rightSection, classNames?.rightSlot),
100
102
  "data-testid": (0, _qa.generateTestId)({
@@ -1,29 +1,32 @@
1
1
  @value (
2
- spaceSmall,
3
- spaceXSmall,
4
- spaceFluid
2
+ spaceSmall,
3
+ spaceXSmall,
4
+ spaceFluid
5
5
  ) from '../../styles/variables/_space.css';
6
+
6
7
  @value (
7
- colorDataViz2,
8
- colorFillPrimary,
9
- colorInformation,
10
- colorFocusPrimary,
11
- colorFillSecondary,
12
- colorTextClickable,
13
- colorNeutralLightest,
14
- colorBackgroundTertiary,
15
- colorInformationLightest
16
- ) from '../../styles/variables/_color.css';
8
+ colorDataViz2,
9
+ colorFillPrimary,
10
+ colorInformation,
11
+ colorFocusPrimary,
12
+ colorFillSecondary,
13
+ colorTextClickable,
14
+ colorNeutralLightest,
15
+ colorBackgroundTertiary,
16
+ colorInformationLightest
17
+ ) from '../../styles/variables/_color.css';
18
+
17
19
  @value (
18
- borderWidthNone,
19
- borderRadiusMedium,
20
- borderWidthPrimary,
21
- borderWidthTertiary
22
- ) from '../../styles/variables/_border.css';
20
+ borderWidthNone,
21
+ borderRadiusMedium,
22
+ borderWidthPrimary,
23
+ borderWidthTertiary
24
+ ) from '../../styles/variables/_border.css';
25
+
23
26
  @value (
24
- opacity0,
25
- opacity100
26
- ) from '../../styles/variables/_opacity.css';
27
+ opacity0,
28
+ opacity100
29
+ ) from '../../styles/variables/_opacity.css';
27
30
 
28
31
  .promptChipWrapper {
29
32
  composes: boxShadow2 from '../../styles/shadow.module.css';
@@ -53,41 +56,70 @@
53
56
  background-color: colorNeutralLightest;
54
57
  }
55
58
 
59
+ /* ---- Grid Layout for Content ---- */
56
60
  .promptChipContainer {
57
- display: flex;
61
+ display: grid;
58
62
  width: spaceFluid;
59
63
  gap: spaceSmall;
60
64
  padding: spaceXSmall;
61
65
  padding-left: spaceSmall;
62
66
  align-items: center;
63
67
  border-radius: borderRadiusMedium;
64
- justify-content: space-between;
65
68
 
66
- & .chipIconDefaultColor {
69
+ .chipIconDefaultColor {
67
70
  color: colorDataViz2;
68
71
  }
69
- }
70
72
 
71
- .promptChipContainerHover:hover {
72
- background-image: linear-gradient(
73
- to right,
74
- colorFillSecondary,
75
- colorInformationLightest
76
- );
77
- cursor: pointer;
78
-
79
- & .chipIconDefaultColor {
80
- color: colorTextClickable;
73
+ /*
74
+ NORMAL MODE (when isMultiline={false}):
75
+ - single row, 3 columns: icon | children | right
76
+ */
77
+ &:not(.multilinePromptChipContainer) {
78
+ grid-template-columns: auto 1fr auto;
79
+ grid-template-areas: 'leftSection childrenWrapper rightSection';
80
+ }
81
+
82
+ /*
83
+ MULTILINE MODE (when isMultiline={true}):
84
+ - 2 rows: first row for icon (leftSection) and actions (rightSection)
85
+ - children on second row spanning full width
86
+ */
87
+ &.multilinePromptChipContainer {
88
+ grid-template-columns: auto 1fr auto;
89
+ grid-template-areas:
90
+ 'leftSection . rightSection'
91
+ 'childrenWrapper childrenWrapper childrenWrapper';
92
+ }
93
+
94
+ &.promptChipContainerHover:hover {
95
+ background-image: linear-gradient(
96
+ to right,
97
+ colorFillSecondary,
98
+ colorInformationLightest
99
+ );
100
+ cursor: pointer;
101
+
102
+ .chipIconDefaultColor {
103
+ color: colorTextClickable;
104
+ }
81
105
  }
82
106
  }
83
107
 
84
- .leftSection,
85
- .rightSection {
108
+ .leftSection {
109
+ grid-area: leftSection;
86
110
  display: flex;
87
111
  gap: spaceSmall;
88
112
  align-items: center;
89
113
  }
90
114
 
91
115
  .childrenWrapper {
116
+ grid-area: childrenWrapper;
92
117
  composes: bodyMedium from '../../styles/typography.module.css';
93
118
  }
119
+
120
+ .rightSection {
121
+ grid-area: rightSection;
122
+ display: flex;
123
+ gap: spaceSmall;
124
+ align-items: center;
125
+ }
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+ import type { IconType } from '../../components/Icon';
3
+ export declare const TEMPLATE_CARD_HEADER_COLOR: Readonly<{
4
+ information: "information";
5
+ success: "success";
6
+ warning: "warning";
7
+ error: "error";
8
+ neutral: "neutral";
9
+ pending: "pending";
10
+ }>;
11
+ export type HeaderColorType = (typeof TEMPLATE_CARD_HEADER_COLOR)[keyof typeof TEMPLATE_CARD_HEADER_COLOR];
12
+ type ClassNames = Readonly<{
13
+ wrapper?: string;
14
+ header?: string;
15
+ content?: string;
16
+ footer?: string;
17
+ }>;
18
+ export interface TemplateCardProps {
19
+ headerColor?: HeaderColorType;
20
+ iconName: string;
21
+ iconType?: IconType;
22
+ footer?: React.ReactNode;
23
+ children?: React.ReactNode;
24
+ classNames?: ClassNames;
25
+ testId?: string;
26
+ }
27
+ export declare const TemplateCard: React.ForwardRefExoticComponent<TemplateCardProps & React.RefAttributes<HTMLDivElement>>;
28
+ export {};
29
+ //# sourceMappingURL=TemplateCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TemplateCard.d.ts","sourceRoot":"","sources":["../../../src/components/TemplateCard/TemplateCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAMlD,eAAO,MAAM,0BAA0B;;;;;;;EAOrC,CAAC;AAEH,MAAM,MAAM,eAAe,GACzB,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC;AAE/E,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC,CAAC;AAEH,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,0FAsExB,CAAC"}
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TemplateCard = exports.TEMPLATE_CARD_HEADER_COLOR = void 0;
7
+ var React = _interopRequireWildcard(require("react"));
8
+ var _classify = _interopRequireDefault(require("../../utils/classify"));
9
+ var _qa = require("../../utils/qa");
10
+ var _Icon = require("../Icon");
11
+ var _TemplateCardModule = _interopRequireDefault(require("./TemplateCard.module.css"));
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
15
+ const TEMPLATE_CARD_HEADER_COLOR = exports.TEMPLATE_CARD_HEADER_COLOR = Object.freeze({
16
+ information: 'information',
17
+ success: 'success',
18
+ warning: 'warning',
19
+ error: 'error',
20
+ neutral: 'neutral',
21
+ pending: 'pending'
22
+ });
23
+ const TemplateCard = exports.TemplateCard = /*#__PURE__*/React.forwardRef((_ref, ref) => {
24
+ let {
25
+ headerColor = 'neutral',
26
+ iconName,
27
+ iconType = 'solid',
28
+ footer,
29
+ children,
30
+ classNames,
31
+ testId
32
+ } = _ref;
33
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
34
+ className: (0, _classify.default)(_TemplateCardModule.default.wrapper, classNames?.wrapper),
35
+ "data-testid": (0, _qa.generateTestId)({
36
+ base: testId,
37
+ slot: 'wrapper'
38
+ }),
39
+ ref: ref,
40
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
41
+ className: (0, _classify.default)(_TemplateCardModule.default.header, _TemplateCardModule.default[headerColor], classNames?.header),
42
+ "data-testid": (0, _qa.generateTestId)({
43
+ base: testId,
44
+ slot: 'header'
45
+ }),
46
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
47
+ className: (0, _classify.default)(_TemplateCardModule.default.iconContainer, _TemplateCardModule.default[headerColor]),
48
+ "data-testid": (0, _qa.generateTestId)({
49
+ base: testId,
50
+ slot: 'icon-container'
51
+ }),
52
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
53
+ name: iconName,
54
+ type: iconType,
55
+ size: "large",
56
+ className: _TemplateCardModule.default[headerColor],
57
+ testId: (0, _qa.generateTestId)({
58
+ base: testId,
59
+ slot: 'icon'
60
+ })
61
+ })
62
+ })
63
+ }), children && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
64
+ className: (0, _classify.default)(_TemplateCardModule.default.content, classNames?.content),
65
+ "data-testid": (0, _qa.generateTestId)({
66
+ base: testId,
67
+ slot: 'content'
68
+ }),
69
+ children: children
70
+ }), footer && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
71
+ className: (0, _classify.default)(_TemplateCardModule.default.footer, classNames?.footer),
72
+ "data-testid": (0, _qa.generateTestId)({
73
+ base: testId,
74
+ slot: 'footer'
75
+ }),
76
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
77
+ className: _TemplateCardModule.default.footerSeparator,
78
+ "data-testid": (0, _qa.generateTestId)({
79
+ base: testId,
80
+ slot: 'footer-separator'
81
+ })
82
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
83
+ className: _TemplateCardModule.default.footerContent,
84
+ "data-testid": (0, _qa.generateTestId)({
85
+ base: testId,
86
+ slot: 'footer-content'
87
+ }),
88
+ children: footer
89
+ })]
90
+ })]
91
+ });
92
+ });
@@ -0,0 +1,170 @@
1
+ @value (
2
+ colorBorderPrimary,
3
+ colorBackgroundTertiary,
4
+ colorNeutralLightest,
5
+ colorNeutral,
6
+ colorInformationLightest,
7
+ colorInformation,
8
+ colorSuccessLightest,
9
+ colorSuccess,
10
+ colorDangerLightest,
11
+ colorDanger,
12
+ colorWarningLightest,
13
+ colorWarning
14
+ ) from '../../styles/variables/_color.css';
15
+
16
+ @value (
17
+ size58,
18
+ sizeFluid
19
+ ) from '../../styles/variables/_size.css';
20
+
21
+ @value (
22
+ spaceSmall,
23
+ spaceMedium,
24
+ spaceLarge
25
+ ) from '../../styles/variables/_space.css';
26
+
27
+ @value (
28
+ borderRadiusSmall,
29
+ borderRadiusCircle,
30
+ borderWidthPrimary,
31
+ borderWidthSecondary
32
+ ) from '../../styles/variables/_border.css';
33
+
34
+ .wrapper {
35
+ display: flex;
36
+ flex-direction: column;
37
+ width: sizeFluid;
38
+ background-color: colorBackgroundTertiary;
39
+ border-radius: borderRadiusSmall;
40
+ border: borderWidthPrimary solid colorBorderPrimary;
41
+ overflow: hidden;
42
+ }
43
+
44
+ .header {
45
+ position: relative;
46
+ width: sizeFluid;
47
+ height: 49px;
48
+ display: flex;
49
+ align-items: flex-start;
50
+ }
51
+
52
+ /* Header background colors for each state */
53
+ .header.neutral {
54
+ background-color: colorNeutralLightest;
55
+ }
56
+
57
+ .header.information {
58
+ background-color: colorInformationLightest;
59
+ }
60
+
61
+ .header.success {
62
+ background-color: colorSuccessLightest;
63
+ }
64
+
65
+ .header.warning {
66
+ background-color: colorWarningLightest;
67
+ }
68
+
69
+ .header.error {
70
+ background-color: colorDangerLightest;
71
+ }
72
+
73
+ .header.pending {
74
+ background-color: colorWarningLightest;
75
+ }
76
+
77
+ .iconContainer {
78
+ position: absolute;
79
+ left: spaceSmall;
80
+ top: spaceSmall;
81
+ width: size58;
82
+ height: size58;
83
+ min-width: size58;
84
+ min-height: size58;
85
+ border-radius: borderRadiusCircle;
86
+ border: borderWidthSecondary solid colorBackgroundTertiary;
87
+ display: flex;
88
+ align-items: center;
89
+ justify-content: center;
90
+ }
91
+
92
+ /* Icon container background colors for each state */
93
+ .iconContainer.neutral {
94
+ background-color: colorNeutralLightest;
95
+ }
96
+
97
+ .iconContainer.information {
98
+ background-color: colorInformationLightest;
99
+ }
100
+
101
+ .iconContainer.success {
102
+ background-color: colorSuccessLightest;
103
+ }
104
+
105
+ .iconContainer.warning {
106
+ background-color: colorWarningLightest;
107
+ }
108
+
109
+ .iconContainer.error {
110
+ background-color: colorDangerLightest;
111
+ }
112
+
113
+ .iconContainer.pending {
114
+ background-color: colorWarningLightest;
115
+ }
116
+
117
+ /* Icon colors using descendant selectors */
118
+ .iconContainer .neutral {
119
+ color: colorNeutral;
120
+ }
121
+
122
+ .iconContainer .information {
123
+ color: colorInformation;
124
+ }
125
+
126
+ .iconContainer .success {
127
+ color: colorSuccess;
128
+ }
129
+
130
+ .iconContainer .warning {
131
+ color: colorWarning;
132
+ }
133
+
134
+ .iconContainer .error {
135
+ color: colorDanger;
136
+ }
137
+
138
+ .iconContainer .pending {
139
+ color: colorWarning;
140
+ }
141
+
142
+ .content {
143
+ display: flex;
144
+ flex-direction: column;
145
+ background-color: colorBackgroundTertiary;
146
+ padding: spaceSmall spaceMedium;
147
+ padding-top: spaceLarge;
148
+ }
149
+
150
+ .footer {
151
+ display: flex;
152
+ flex-direction: column;
153
+ background-color: colorBackgroundTertiary;
154
+ padding: spaceSmall spaceMedium;
155
+ padding-top: 0;
156
+ gap: spaceSmall;
157
+ }
158
+
159
+ .footerSeparator {
160
+ width: sizeFluid;
161
+ height: 0;
162
+ composes: borderTopPrimary from '../../styles/border.module.css';
163
+ }
164
+
165
+ .footerContent {
166
+ display: flex;
167
+ align-items: center;
168
+ justify-content: space-between;
169
+ width: sizeFluid;
170
+ }
@@ -0,0 +1,2 @@
1
+ export * from '../../components/TemplateCard/TemplateCard';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TemplateCard/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _TemplateCard = require("./TemplateCard");
7
+ Object.keys(_TemplateCard).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _TemplateCard[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _TemplateCard[key];
14
+ }
15
+ });
16
+ });
@@ -12,6 +12,7 @@ export * from '../components/Card';
12
12
  export * from '../components/Charts';
13
13
  export * from '../components/ChatBubble';
14
14
  export * from '../components/Checkbox';
15
+ export * from '../components/Checklist';
15
16
  export * from '../components/Chip';
16
17
  export * from '../components/CircularLoader';
17
18
  export * from '../components/CollapsibleCard';
@@ -62,6 +63,7 @@ export * from '../components/StickyBar';
62
63
  export * from '../components/SubMenu';
63
64
  export * from '../components/Table';
64
65
  export * from '../components/Tabs';
66
+ export * from '../components/TemplateCard';
65
67
  export * from '../components/Text';
66
68
  export * from '../components/Textarea';
67
69
  export * from '../components/TextTile';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AAC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AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yCAAyC,CAAC;AACxD,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC"}
@@ -157,6 +157,17 @@ Object.keys(_Checkbox).forEach(function (key) {
157
157
  }
158
158
  });
159
159
  });
160
+ var _Checklist = require("./Checklist");
161
+ Object.keys(_Checklist).forEach(function (key) {
162
+ if (key === "default" || key === "__esModule") return;
163
+ if (key in exports && exports[key] === _Checklist[key]) return;
164
+ Object.defineProperty(exports, key, {
165
+ enumerable: true,
166
+ get: function () {
167
+ return _Checklist[key];
168
+ }
169
+ });
170
+ });
160
171
  var _Chip = require("./Chip");
161
172
  Object.keys(_Chip).forEach(function (key) {
162
173
  if (key === "default" || key === "__esModule") return;
@@ -707,6 +718,17 @@ Object.keys(_Tabs).forEach(function (key) {
707
718
  }
708
719
  });
709
720
  });
721
+ var _TemplateCard = require("./TemplateCard");
722
+ Object.keys(_TemplateCard).forEach(function (key) {
723
+ if (key === "default" || key === "__esModule") return;
724
+ if (key in exports && exports[key] === _TemplateCard[key]) return;
725
+ Object.defineProperty(exports, key, {
726
+ enumerable: true,
727
+ get: function () {
728
+ return _TemplateCard[key];
729
+ }
730
+ });
731
+ });
710
732
  var _Text = require("./Text");
711
733
  Object.keys(_Text).forEach(function (key) {
712
734
  if (key === "default" || key === "__esModule") return;