@dmsi/wedgekit-react 0.0.87 → 0.0.89

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 (92) hide show
  1. package/dist/{chunk-S3CQ5VFT.js → chunk-2XOQII4G.js} +1 -1
  2. package/dist/{chunk-TVDFTRGL.js → chunk-3JRVV6QY.js} +1 -1
  3. package/dist/{chunk-4N2PED4P.js → chunk-3NWBR3V3.js} +1 -1
  4. package/dist/chunk-5OHGKW4U.js +9 -0
  5. package/dist/chunk-5UH6QUFB.js +38 -0
  6. package/dist/{chunk-QUPHLL7D.js → chunk-6CS5ZBXO.js} +1 -1
  7. package/dist/{chunk-OW3SZEU5.js → chunk-EO3JJWFW.js} +4 -1
  8. package/dist/{chunk-SAMX4YGM.js → chunk-IMN6I5NV.js} +1 -1
  9. package/dist/chunk-JOMM4KBH.js +26 -0
  10. package/dist/{chunk-MZJS2ZAU.js → chunk-L364HTYC.js} +2 -1
  11. package/dist/{chunk-CKSDMI2Q.js → chunk-LYVH4YFE.js} +2 -2
  12. package/dist/{chunk-LP6AZST2.js → chunk-OB3URVCR.js} +1 -1
  13. package/dist/chunk-QDFQ3B4N.js +87 -0
  14. package/dist/{chunk-MQWWNAO3.js → chunk-QIHDPSOM.js} +4 -4
  15. package/dist/{chunk-724LJWFR.js → chunk-R5TLUWDD.js} +5 -35
  16. package/dist/chunk-RHADESKO.js +57 -0
  17. package/dist/chunk-SASEP5UE.js +235 -0
  18. package/dist/chunk-TTO4PL7Y.js +135 -0
  19. package/dist/{chunk-2BVSUYXU.js → chunk-Y4HUYAI5.js} +1 -1
  20. package/dist/components/Accordion.cjs +529 -0
  21. package/dist/components/Accordion.js +13 -0
  22. package/dist/components/Button.cjs +2 -1
  23. package/dist/components/Button.js +1 -1
  24. package/dist/components/Card.cjs +83 -0
  25. package/dist/components/Card.js +7 -0
  26. package/dist/components/ContentTab.cjs +2 -1
  27. package/dist/components/ContentTab.js +2 -2
  28. package/dist/components/ContentTabs.cjs +2 -1
  29. package/dist/components/ContentTabs.js +2 -2
  30. package/dist/components/DataGridCell.js +7 -6
  31. package/dist/components/DateInput.js +2 -1
  32. package/dist/components/DateRangeInput.js +2 -1
  33. package/dist/components/FilterGroup.cjs +2 -1
  34. package/dist/components/FilterGroup.js +6 -5
  35. package/dist/components/HorizontalDivider.js +3 -6
  36. package/dist/components/Input.js +2 -1
  37. package/dist/components/MenuOption.js +2 -2
  38. package/dist/components/MobileDataGrid.cjs +134 -133
  39. package/dist/components/MobileDataGrid.js +4 -4
  40. package/dist/components/Modal.cjs +2 -1
  41. package/dist/components/Modal.js +4 -4
  42. package/dist/components/ModalButtons.cjs +2 -1
  43. package/dist/components/ModalButtons.js +2 -2
  44. package/dist/components/ModalHeader.cjs +2 -1
  45. package/dist/components/ModalHeader.js +2 -2
  46. package/dist/components/NavigationTab.cjs +2 -1
  47. package/dist/components/NavigationTab.js +2 -2
  48. package/dist/components/NavigationTabs.cjs +2 -1
  49. package/dist/components/NavigationTabs.js +2 -2
  50. package/dist/components/NestedMenu.js +2 -2
  51. package/dist/components/Notification.cjs +3 -2
  52. package/dist/components/Notification.js +4 -4
  53. package/dist/components/OptionPill.cjs +2 -1
  54. package/dist/components/OptionPill.js +2 -2
  55. package/dist/components/PDFViewer.cjs +2 -1
  56. package/dist/components/PDFViewer.js +4 -4
  57. package/dist/components/Password.js +2 -1
  58. package/dist/components/PaymentOnAccountModal.cjs +2132 -0
  59. package/dist/components/PaymentOnAccountModal.js +31 -0
  60. package/dist/components/Radio.js +5 -130
  61. package/dist/components/Search.js +3 -2
  62. package/dist/components/Select.js +3 -2
  63. package/dist/components/SelectPaymentMethod.cjs +1170 -0
  64. package/dist/components/SelectPaymentMethod.js +20 -0
  65. package/dist/components/SideMenuGroup.cjs +1 -1
  66. package/dist/components/SideMenuGroup.js +3 -3
  67. package/dist/components/SideMenuItem.cjs +1 -1
  68. package/dist/components/SideMenuItem.js +1 -1
  69. package/dist/components/Stack.cjs +132 -4
  70. package/dist/components/Stack.js +2 -1
  71. package/dist/components/Stepper.cjs +2 -1
  72. package/dist/components/Stepper.js +3 -2
  73. package/dist/components/Swatch.cjs +1 -1
  74. package/dist/components/Swatch.js +5 -5
  75. package/dist/components/Time.cjs +1 -1
  76. package/dist/components/Time.js +5 -4
  77. package/dist/components/Toast.cjs +2 -1
  78. package/dist/components/Toast.js +1 -1
  79. package/dist/components/Upload.cjs +2 -1
  80. package/dist/components/Upload.js +1 -1
  81. package/dist/components/index.cjs +1053 -1
  82. package/dist/components/index.js +35 -11
  83. package/dist/index.css +42 -0
  84. package/package.json +1 -1
  85. package/src/components/Accordion.tsx +84 -0
  86. package/src/components/Button.tsx +2 -1
  87. package/src/components/Card.tsx +17 -0
  88. package/src/components/PaymentOnAccountModal.tsx +52 -0
  89. package/src/components/SelectPaymentMethod.tsx +263 -0
  90. package/src/components/Stack.tsx +2 -3
  91. package/src/components/index.ts +3 -0
  92. package/dist/{chunk-UPBBOZM3.js → chunk-VH3EJNVE.js} +3 -3
@@ -0,0 +1,135 @@
1
+ import {
2
+ Paragraph
3
+ } from "./chunk-VG4EPHJA.js";
4
+ import {
5
+ baseTransition,
6
+ componentGap
7
+ } from "./chunk-RDLEIAQU.js";
8
+ import {
9
+ __objRest,
10
+ __spreadValues
11
+ } from "./chunk-ORMEWXMH.js";
12
+
13
+ // src/components/Radio.tsx
14
+ import clsx from "clsx";
15
+ import { jsx, jsxs } from "react/jsx-runtime";
16
+ var Radio = (_a) => {
17
+ var _b = _a, {
18
+ className,
19
+ label,
20
+ error,
21
+ disabled,
22
+ checked,
23
+ readOnly,
24
+ id
25
+ } = _b, props = __objRest(_b, [
26
+ "className",
27
+ "label",
28
+ "error",
29
+ "disabled",
30
+ "checked",
31
+ "readOnly",
32
+ "id"
33
+ ]);
34
+ const radioId = id;
35
+ const paragraphColor = disabled ? "text-primary-disabled" : error ? "text-primary-error" : "text-primary-normal";
36
+ const defaultClassName = clsx(
37
+ !error && !disabled && "border-border-primary-normal peer-hover:border-border-action-hover peer-hover:bg-background-action-secondary-hover peer-focus:border-border-action-hover peer-focus:bg-background-action-secondary-hover peer-active:border-border-action-active peer-active:bg-background-action-secondary-active peer-checked:border-0 peer-checked:bg-background-action-secondary-hover"
38
+ );
39
+ const errorClassName = clsx(
40
+ error && !disabled && "border-border-action-critical-normal peer-hover:border-border-action-critical-hover peer-hover:bg-background-action-critical-secondary-hover peer-focus:border-border-action-critical-hover peer-focus:bg-background-action-critical-secondary-hover peer-active:border-border-action-critical-active peer-active:bg-background-action-secondary-active peer-checked:bg-background-action-critical-secondary-hover peer-checked:border-0 "
41
+ );
42
+ const disabledClassName = clsx(
43
+ disabled && "peer-disabled:bg-background-action-secondary-disabled peer-disabled:border-border-primary-normal peer-checked:border-0"
44
+ );
45
+ const readonlyClassName = clsx(
46
+ readOnly && "peer-read-only:bg-background-action-secondary-disabled peer-read-only:border-border-primary-normal peer-checked:border-0"
47
+ );
48
+ return /* @__PURE__ */ jsxs(
49
+ "label",
50
+ {
51
+ htmlFor: radioId,
52
+ className: clsx(
53
+ "flex items-center",
54
+ componentGap,
55
+ disabled ? "cursor-default" : "cursor-pointer",
56
+ className
57
+ ),
58
+ children: [
59
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
60
+ /* @__PURE__ */ jsx(
61
+ "input",
62
+ __spreadValues({
63
+ id: radioId,
64
+ type: "radio",
65
+ className: "sr-only peer",
66
+ disabled,
67
+ checked,
68
+ readOnly
69
+ }, props)
70
+ ),
71
+ /* @__PURE__ */ jsx(
72
+ "div",
73
+ {
74
+ className: clsx(
75
+ "size-6 rounded-full border flex items-center justify-center",
76
+ baseTransition,
77
+ defaultClassName,
78
+ errorClassName,
79
+ disabledClassName,
80
+ readonlyClassName
81
+ ),
82
+ children: checked && /* @__PURE__ */ jsx(
83
+ RadioIcon,
84
+ {
85
+ className: clsx(
86
+ "transition-colors",
87
+ !error && !disabled && "text-icon-on-action-secondary-normal hover:text-icon-on-action-secondary-hover active:text-icon-on-action-secondary-active peer-hover:text-icon-on-action-secondary-hover peer-focus:text-icon-on-action-secondary-hover peer-active:text-icon-on-action-secondary-active",
88
+ error && !disabled && "text-icon-action-critical-secondary-normal hover:text-icon-action-critical-secondary-hover active:text-icon-action-critical-secondary-active peer-hover:text-icon-action-critical-secondary-hover peer-focus:text-icon-action-critical-secondary-hover peer-active:text-icon-action-critical-secondary-active",
89
+ disabled && "text-icon-on-action-secondary-disabled",
90
+ readOnly && "text-icon-on-action-secondary-disabled"
91
+ )
92
+ }
93
+ )
94
+ }
95
+ )
96
+ ] }),
97
+ label && /* @__PURE__ */ jsx(Paragraph, { id: `${radioId}-label`, padded: true, color: paragraphColor, children: label })
98
+ ]
99
+ }
100
+ );
101
+ };
102
+ Radio.displayName = "Radio";
103
+ var RadioIcon = ({ className }) => {
104
+ return /* @__PURE__ */ jsxs(
105
+ "svg",
106
+ {
107
+ className,
108
+ xmlns: "http://www.w3.org/2000/svg",
109
+ width: "24",
110
+ height: "24",
111
+ viewBox: "0 0 24 24",
112
+ fill: "none",
113
+ children: [
114
+ /* @__PURE__ */ jsx(
115
+ "rect",
116
+ {
117
+ x: "1",
118
+ y: "1",
119
+ width: "22",
120
+ height: "22",
121
+ rx: "11",
122
+ stroke: "currentColor",
123
+ strokeWidth: "2"
124
+ }
125
+ ),
126
+ /* @__PURE__ */ jsx("rect", { x: "4", y: "4", width: "16", height: "16", rx: "8", fill: "currentColor" })
127
+ ]
128
+ }
129
+ );
130
+ };
131
+ RadioIcon.displayName = "RadioIcon";
132
+
133
+ export {
134
+ Radio
135
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InputBase
3
- } from "./chunk-724LJWFR.js";
3
+ } from "./chunk-R5TLUWDD.js";
4
4
  import {
5
5
  Icon
6
6
  } from "./chunk-IGQVA7SC.js";
@@ -0,0 +1,529 @@
1
+ "use strict";
2
+ "use client";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __defProps = Object.defineProperties;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
8
+ var __getOwnPropNames = Object.getOwnPropertyNames;
9
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
10
+ var __getProtoOf = Object.getPrototypeOf;
11
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
12
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
13
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14
+ var __spreadValues = (a, b) => {
15
+ for (var prop in b || (b = {}))
16
+ if (__hasOwnProp.call(b, prop))
17
+ __defNormalProp(a, prop, b[prop]);
18
+ if (__getOwnPropSymbols)
19
+ for (var prop of __getOwnPropSymbols(b)) {
20
+ if (__propIsEnum.call(b, prop))
21
+ __defNormalProp(a, prop, b[prop]);
22
+ }
23
+ return a;
24
+ };
25
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26
+ var __objRest = (source, exclude) => {
27
+ var target = {};
28
+ for (var prop in source)
29
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
30
+ target[prop] = source[prop];
31
+ if (source != null && __getOwnPropSymbols)
32
+ for (var prop of __getOwnPropSymbols(source)) {
33
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
34
+ target[prop] = source[prop];
35
+ }
36
+ return target;
37
+ };
38
+ var __export = (target, all) => {
39
+ for (var name in all)
40
+ __defProp(target, name, { get: all[name], enumerable: true });
41
+ };
42
+ var __copyProps = (to, from, except, desc) => {
43
+ if (from && typeof from === "object" || typeof from === "function") {
44
+ for (let key of __getOwnPropNames(from))
45
+ if (!__hasOwnProp.call(to, key) && key !== except)
46
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
47
+ }
48
+ return to;
49
+ };
50
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
51
+ // If the importer is in node compatibility mode or this is not an ESM
52
+ // file that has been converted to a CommonJS file using a Babel-
53
+ // compatible transform (i.e. "__esModule" has not been set), then set
54
+ // "default" to the CommonJS "module.exports" for node compatibility.
55
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
56
+ mod
57
+ ));
58
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
59
+
60
+ // src/components/Accordion.tsx
61
+ var Accordion_exports = {};
62
+ __export(Accordion_exports, {
63
+ Accordion: () => Accordion
64
+ });
65
+ module.exports = __toCommonJS(Accordion_exports);
66
+ var import_clsx6 = __toESM(require("clsx"), 1);
67
+
68
+ // src/classNames.ts
69
+ var import_clsx = __toESM(require("clsx"), 1);
70
+ var typography = {
71
+ display1: (0, import_clsx.default)(
72
+ "font-sans font-semibold",
73
+ "text-display-1-mobile desktop:text-display-1-desktop compact:text-display-1-desktop-compact",
74
+ "leading-display-1-mobile desktop:leading-display-1-desktop"
75
+ ),
76
+ display2: (0, import_clsx.default)(
77
+ "font-sans font-bold",
78
+ "text-display-2-mobile desktop:text-display-2-desktop compact:text-display-2-desktop-compact",
79
+ "leading-display-2-mobile desktop:leading-display-2-desktop"
80
+ ),
81
+ heading1: (0, import_clsx.default)(
82
+ "font-sans font-semibold",
83
+ "text-heading-1-mobile desktop:text-heading-1-desktop compact:text-heading-1-desktop-compact",
84
+ "leading-heading-1-mobile desktop:leading-heading-1-desktop"
85
+ ),
86
+ heading2: (0, import_clsx.default)(
87
+ "font-sans font-normal",
88
+ "text-heading-2-mobile desktop:text-heading-2-desktop compact:text-heading-2-desktop-compact",
89
+ "leading-heading-2-mobile desktop:leading-heading-2-desktop"
90
+ ),
91
+ heading3: (0, import_clsx.default)(
92
+ "font-sans font-semibold",
93
+ "text-heading-3-mobile desktop:text-heading-3-desktop compact:text-heading-3-desktop-compact",
94
+ "leading-heading-3-mobile desktop:leading-heading-3-desktop"
95
+ ),
96
+ subheader: (0, import_clsx.default)(
97
+ "font-sans font-semibold",
98
+ "text-subheader-mobile desktop:text-subheader-desktop compact:text-subheader-desktop-compact",
99
+ "leading-subheader-mobile desktop:leading-subheader-desktop"
100
+ ),
101
+ link: (0, import_clsx.default)(
102
+ "font-sans font-normal",
103
+ "text-link-mobile desktop:text-link-desktop compact:text-link-desktop-compact",
104
+ "leading-link-mobile desktop:leading-link-desktop"
105
+ ),
106
+ buttonLabel: (0, import_clsx.default)(
107
+ "font-sans font-semibold",
108
+ "text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
109
+ "leading-label-mobile desktop:leading-label-desktop"
110
+ ),
111
+ label: (0, import_clsx.default)(
112
+ "font-sans font-semibold",
113
+ "text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
114
+ "leading-label-mobile desktop:leading-label-desktop"
115
+ ),
116
+ paragraph: (0, import_clsx.default)(
117
+ "font-sans font-normal",
118
+ "text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
119
+ "leading-paragraph-mobile desktop:leading-paragraph-desktop"
120
+ ),
121
+ caption: (0, import_clsx.default)(
122
+ "font-sans font-normal",
123
+ "text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
124
+ "leading-caption-mobile desktop:leading-caption-desktop"
125
+ )
126
+ };
127
+ var baseTransition = (0, import_clsx.default)(
128
+ "transition-colors duration-100 ease-in-out"
129
+ );
130
+ var componentGap = (0, import_clsx.default)(
131
+ "gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-desktop-compact-component-gap"
132
+ );
133
+ var paddingUsingComponentGap = (0, import_clsx.default)(
134
+ "p-mobile-component-gap desktop:p-desktop-component-gap compact:p-desktop-compact-component-gap"
135
+ );
136
+ var paddingXUsingLayoutGroupGap = (0, import_clsx.default)(
137
+ "px-mobile-layout-group-gap desktop:px-desktop-layout-group-gap compact:px-desktop-compact-layout-group-gap"
138
+ );
139
+ var paddingYUsingLayoutGroupGap = (0, import_clsx.default)(
140
+ "py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
141
+ );
142
+ var componentPadding = (0, import_clsx.default)(
143
+ "p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding"
144
+ );
145
+ var componentPaddingBottom = (0, import_clsx.default)(
146
+ "pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding"
147
+ );
148
+ var componentPaddingX = (0, import_clsx.default)(
149
+ "px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding"
150
+ );
151
+ var componentPaddingY = (0, import_clsx.default)(
152
+ "py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding"
153
+ );
154
+ var componentPaddingXUsingComponentGap = (0, import_clsx.default)(
155
+ "px-mobile-component-gap desktop:px-desktop-component-gap compact:px-desktop-compact-component-gap"
156
+ );
157
+ var componentPaddingYUsingComponentGap = (0, import_clsx.default)(
158
+ "py-mobile-component-gap desktop:py-desktop-component-gap compact:py-desktop-compact-component-gap"
159
+ );
160
+ var componentPaddingMinusBorder = (0, import_clsx.default)(
161
+ "p-[calc(var(--spacing-mobile-component-padding)_-_1px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_1px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_1px)]"
162
+ );
163
+ var componentPaddingMinus2pxBorder = (0, import_clsx.default)(
164
+ "p-[calc(var(--spacing-mobile-component-padding)_-_2px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_2px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_2px)]"
165
+ );
166
+ var layoutPaddding = (0, import_clsx.default)(
167
+ "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding"
168
+ );
169
+ var layoutPaddingBottom = (0, import_clsx.default)(
170
+ "pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding"
171
+ );
172
+ var layoutPaddingY = (0, import_clsx.default)(
173
+ "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding"
174
+ );
175
+ var containerPaddingX = (0, import_clsx.default)(
176
+ "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
177
+ );
178
+ var containerPaddingY = (0, import_clsx.default)(
179
+ "py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding"
180
+ );
181
+ var layoutGroupGapPaddingY = (0, import_clsx.default)(
182
+ "py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
183
+ );
184
+ var layoutGroupGap = (0, import_clsx.default)(
185
+ "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-desktop-compact-layout-group-gap"
186
+ );
187
+ var layoutGap = (0, import_clsx.default)(
188
+ "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap"
189
+ );
190
+ var gapUsingContainerPadding = (0, import_clsx.default)(
191
+ "gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
192
+ );
193
+
194
+ // src/components/Card.tsx
195
+ var import_clsx2 = __toESM(require("clsx"), 1);
196
+ var import_jsx_runtime = require("react/jsx-runtime");
197
+ function Card(props) {
198
+ const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
199
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
200
+ "div",
201
+ __spreadProps(__spreadValues({}, rest), {
202
+ className: (0, import_clsx2.default)(
203
+ "border rounded-sm border-border-primary-normal p-desktop-layout-padding",
204
+ rest.className
205
+ ),
206
+ children
207
+ })
208
+ );
209
+ }
210
+
211
+ // src/components/Icon.tsx
212
+ var import_clsx3 = __toESM(require("clsx"), 1);
213
+ var import_jsx_runtime2 = require("react/jsx-runtime");
214
+ function Icon(_a) {
215
+ var _b = _a, {
216
+ name,
217
+ size = 24,
218
+ variant = "outline"
219
+ } = _b, props = __objRest(_b, [
220
+ "name",
221
+ "size",
222
+ "variant"
223
+ ]);
224
+ const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
225
+ const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
226
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
227
+ "span",
228
+ __spreadProps(__spreadValues({}, props), {
229
+ className: (0, import_clsx3.default)(
230
+ "icon",
231
+ `icon-${size}`,
232
+ // size === 16 ? "font-normal" : "font-light", // size 16 font weight is not working as normal from before
233
+ props.className
234
+ ),
235
+ style: __spreadValues({
236
+ fontVariationSettings: variantStyle + `, ${weightStyle}`
237
+ }, props.style),
238
+ children: name
239
+ })
240
+ );
241
+ }
242
+
243
+ // src/components/Stack.tsx
244
+ var import_clsx4 = __toESM(require("clsx"), 1);
245
+ var import_jsx_runtime3 = require("react/jsx-runtime");
246
+ var getFlexClassNames = ({ items, justify, grow }) => (0, import_clsx4.default)(
247
+ "flex",
248
+ items === "start" && "items-start",
249
+ grow && "grow",
250
+ items === "start" && "items-start",
251
+ items === "center" && "items-center",
252
+ items === "end" && "items-end",
253
+ items === "start-center" && "items-start desktop:items-center",
254
+ justify === "start" && "justify-start",
255
+ justify === "center" && "justify-center",
256
+ justify === "end" && "justify-end",
257
+ justify === "end" && "justify-end",
258
+ justify === "between" && "justify-between",
259
+ justify === "around" && "justify-around"
260
+ );
261
+ var useGapClassNames = (sizing) => {
262
+ return (0, import_clsx4.default)(
263
+ sizing === "layout-group" && "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-compact-layout-group-gap",
264
+ sizing === "layout" && "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-compact-layout-gap",
265
+ sizing === "container" && "gap-mobile-container-gap desktop:gap-desktop-container-gap compact:gap-compact-container-gap",
266
+ sizing === "component" && "gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-compact-component-gap"
267
+ );
268
+ };
269
+ var Stack = (_a) => {
270
+ var _b = _a, {
271
+ children,
272
+ items,
273
+ justify,
274
+ grow,
275
+ padding,
276
+ paddingX,
277
+ paddingY,
278
+ margin,
279
+ marginX,
280
+ marginY,
281
+ horizontal,
282
+ horizontalMobile,
283
+ elevation = 0,
284
+ rounded,
285
+ centered,
286
+ width,
287
+ minHeight,
288
+ maxWidth,
289
+ minWidth,
290
+ height,
291
+ maxHeight,
292
+ borderColor,
293
+ backgroundColor,
294
+ sizing = "none",
295
+ overflowY = "inherit",
296
+ overflowX = "inherit",
297
+ flexShrink,
298
+ flexGrow,
299
+ position,
300
+ top,
301
+ left,
302
+ id,
303
+ noGap,
304
+ marginTop,
305
+ marginBottom
306
+ } = _b, props = __objRest(_b, [
307
+ "children",
308
+ "items",
309
+ "justify",
310
+ "grow",
311
+ "padding",
312
+ "paddingX",
313
+ "paddingY",
314
+ "margin",
315
+ "marginX",
316
+ "marginY",
317
+ "horizontal",
318
+ "horizontalMobile",
319
+ "elevation",
320
+ "rounded",
321
+ "centered",
322
+ "width",
323
+ "minHeight",
324
+ "maxWidth",
325
+ "minWidth",
326
+ "height",
327
+ "maxHeight",
328
+ "borderColor",
329
+ "backgroundColor",
330
+ "sizing",
331
+ "overflowY",
332
+ "overflowX",
333
+ "flexShrink",
334
+ "flexGrow",
335
+ "position",
336
+ "top",
337
+ "left",
338
+ "id",
339
+ "noGap",
340
+ "marginTop",
341
+ "marginBottom"
342
+ ]);
343
+ const flexClassNames = getFlexClassNames({ items, justify, grow });
344
+ const gapClassNames = useGapClassNames(sizing);
345
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
346
+ "div",
347
+ __spreadProps(__spreadValues({
348
+ id
349
+ }, props), {
350
+ style: {
351
+ height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
352
+ maxHeight: maxHeight !== void 0 ? `${maxHeight}px` : void 0,
353
+ minHeight: minHeight !== void 0 ? `${minHeight}px` : void 0,
354
+ maxWidth: maxWidth !== void 0 ? `${maxWidth}px` : void 0,
355
+ width: width !== void 0 && typeof width === "number" ? `${width}px` : void 0,
356
+ minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
357
+ border: borderColor ? `1px solid var(--color-${borderColor})` : void 0,
358
+ backgroundColor: backgroundColor ? `var(--color-${backgroundColor})` : void 0,
359
+ flexGrow: flexGrow !== void 0 ? flexGrow : void 0,
360
+ flexShrink: flexShrink !== void 0 ? flexShrink : void 0,
361
+ position: position !== void 0 ? position : void 0,
362
+ top: top !== void 0 ? `${top}px` : void 0,
363
+ left: left !== void 0 ? `${left}px` : void 0
364
+ },
365
+ className: (0, import_clsx4.default)(
366
+ "scrollbar-thin",
367
+ "max-w-screen",
368
+ width !== "fit" && "w-full",
369
+ width === "full" && "w-full",
370
+ width === "max" && "w-max",
371
+ centered && "mx-auto",
372
+ overflowY == "auto" && "overflow-y-auto",
373
+ overflowY == "hidden" && "overflow-y-hidden",
374
+ overflowY == "scroll" && "overflow-y-scroll",
375
+ overflowX == "auto" && "overflow-x-auto",
376
+ overflowX == "hidden" && "overflow-x-hidden",
377
+ overflowX == "scroll" && "overflow-x-scroll",
378
+ padding && sizing === "container" && "p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding",
379
+ padding && sizing === "layout" && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
380
+ padding && sizing === "layout-group" && "p-mobile-layout-group-padding desktop:p-desktop-layout-group-padding compact:p-desktop-compact-layout-group-padding",
381
+ padding && sizing === "component" && "p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding",
382
+ paddingX && sizing === "container" && "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding",
383
+ paddingX && sizing === "layout" && "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding",
384
+ paddingX && sizing === "layout-group" && "px-mobile-layout-group-padding desktop:px-desktop-layout-group-padding compact:px-desktop-compact-layout-group-padding",
385
+ paddingX && sizing === "component" && "px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding",
386
+ paddingY && sizing === "container" && "py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding",
387
+ paddingY && sizing === "layout" && "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding",
388
+ paddingY && sizing === "layout-group" && paddingYUsingLayoutGroupGap,
389
+ paddingY && sizing === "component" && "py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding",
390
+ margin && sizing === "container" && "m-mobile-container-padding desktop:m-desktop-container-padding compact:m-compact-container-padding",
391
+ marginX && sizing === "container" && "mx-mobile-container-padding desktop:mx-desktop-container-padding compact:mx-compact-container-padding",
392
+ marginTop && sizing === "container" && "mt-mobile-container-padding desktop:mt-desktop-container-padding compact:mt-compact-container-padding",
393
+ marginBottom && sizing === "container" && "mb-mobile-container-padding desktop:mb-desktop-container-padding compact:mb-compact-container-padding",
394
+ marginY && sizing === "container" && "my-mobile-container-padding desktop:my-desktop-container-padding compact:my-compact-container-padding",
395
+ horizontal ? "desktop:flex-row" : "desktop:flex-col",
396
+ horizontalMobile ? "flex-row" : "flex-col",
397
+ flexClassNames,
398
+ !noGap && gapClassNames,
399
+ elevation === 0 && "shadow-none",
400
+ elevation === 2 && "shadow-2",
401
+ elevation === 4 && "shadow-4",
402
+ elevation === 16 && "shadow-16",
403
+ rounded && "rounded"
404
+ ),
405
+ children
406
+ })
407
+ );
408
+ };
409
+
410
+ // src/components/Paragraph.tsx
411
+ var import_clsx5 = __toESM(require("clsx"), 1);
412
+ var import_jsx_runtime4 = require("react/jsx-runtime");
413
+ var Paragraph = (_a) => {
414
+ var _b = _a, {
415
+ className,
416
+ color,
417
+ padded,
418
+ align = "left",
419
+ tall,
420
+ addOverflow,
421
+ children,
422
+ as = "p",
423
+ id
424
+ } = _b, props = __objRest(_b, [
425
+ "className",
426
+ "color",
427
+ "padded",
428
+ "align",
429
+ "tall",
430
+ "addOverflow",
431
+ "children",
432
+ "as",
433
+ "id"
434
+ ]);
435
+ const Element = as;
436
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
437
+ Element,
438
+ __spreadProps(__spreadValues({
439
+ id
440
+ }, props), {
441
+ className: (0, import_clsx5.default)(
442
+ typography.paragraph,
443
+ className,
444
+ padded && componentPaddingXUsingComponentGap,
445
+ align === "left" && "text-left",
446
+ align === "center" && "text-center",
447
+ align === "right" && "text-right",
448
+ tall && "!leading-6",
449
+ addOverflow && "whitespace-nowrap text-ellipsis overflow-hidden"
450
+ ),
451
+ style: __spreadProps(__spreadValues({}, props.style), {
452
+ color: color ? `var(--color-${color})` : void 0
453
+ }),
454
+ children
455
+ })
456
+ );
457
+ };
458
+ Paragraph.displayName = "Paragraph";
459
+
460
+ // src/components/Accordion.tsx
461
+ var import_jsx_runtime5 = require("react/jsx-runtime");
462
+ function Accordion(props) {
463
+ const { isOpen, onClick, className } = props;
464
+ const {
465
+ title,
466
+ before,
467
+ after = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
468
+ Icon,
469
+ {
470
+ name: "expand_more",
471
+ className: (0, import_clsx6.default)(
472
+ "text-icon-primary-normal transform transition-all duration-300 ease-in-out",
473
+ isOpen ? "rotate-180" : "rotate-0"
474
+ )
475
+ }
476
+ ),
477
+ children
478
+ } = props;
479
+ function handleClick(e) {
480
+ e.stopPropagation();
481
+ e.preventDefault();
482
+ onClick == null ? void 0 : onClick();
483
+ }
484
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
485
+ Card,
486
+ {
487
+ className: (0, import_clsx6.default)(
488
+ "overflow-hidden select-none cursor-pointer",
489
+ className,
490
+ isOpen && "border-2 !border-border-primary-focus"
491
+ ),
492
+ onClick: handleClick,
493
+ children: [
494
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Stack, { sizing: "component", horizontal: true, justify: "between", items: "center", children: [
495
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Stack, { sizing: "layout-group", horizontal: true, items: "center", children: [
496
+ before,
497
+ typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Paragraph, { className: "text-text-primary-normal", children: title }) : title
498
+ ] }),
499
+ after
500
+ ] }),
501
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
502
+ "div",
503
+ {
504
+ className: (0, import_clsx6.default)("grid transition-all duration-300 ease-in-out"),
505
+ style: {
506
+ gridTemplateRows: isOpen ? "1fr" : "0fr"
507
+ },
508
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
509
+ "div",
510
+ {
511
+ className: (0, import_clsx6.default)(
512
+ typography.paragraph,
513
+ "text-text-primary-normal desktop:pt-desktop-layout-gap",
514
+ "flex flex-col gap-desktop-layout-gap"
515
+ ),
516
+ onClick: (e) => e.stopPropagation(),
517
+ children
518
+ }
519
+ ) })
520
+ }
521
+ )
522
+ ]
523
+ }
524
+ );
525
+ }
526
+ // Annotate the CommonJS export names for ESM import in node:
527
+ 0 && (module.exports = {
528
+ Accordion
529
+ });
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ import {
3
+ Accordion
4
+ } from "../chunk-QDFQ3B4N.js";
5
+ import "../chunk-EO3JJWFW.js";
6
+ import "../chunk-JOMM4KBH.js";
7
+ import "../chunk-VG4EPHJA.js";
8
+ import "../chunk-IGQVA7SC.js";
9
+ import "../chunk-RDLEIAQU.js";
10
+ import "../chunk-ORMEWXMH.js";
11
+ export {
12
+ Accordion
13
+ };