@dmsi/wedgekit-react 0.0.2
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/README.md +35 -0
- package/dist/chunk-27KIIUAR.js +59 -0
- package/dist/chunk-2G2E2JMA.js +123 -0
- package/dist/chunk-4C66DLIJ.js +51 -0
- package/dist/chunk-4RD5ZF2V.js +55 -0
- package/dist/chunk-4RJKB7LC.js +14 -0
- package/dist/chunk-4T7F5BZZ.js +26 -0
- package/dist/chunk-5GOBP2JS.js +53 -0
- package/dist/chunk-6ZY524ID.js +42 -0
- package/dist/chunk-AWQSSKCK.js +32 -0
- package/dist/chunk-BNHSAFMP.js +93 -0
- package/dist/chunk-BWRHL2AG.js +439 -0
- package/dist/chunk-DKKYR6DS.js +132 -0
- package/dist/chunk-E5ALT5W7.js +182 -0
- package/dist/chunk-FY7PTP6E.js +322 -0
- package/dist/chunk-GTCSRHPF.js +119 -0
- package/dist/chunk-I2UVVKQI.js +12 -0
- package/dist/chunk-IGQVA7SC.js +41 -0
- package/dist/chunk-K3IKUSZW.js +59 -0
- package/dist/chunk-KENSVWOY.js +151 -0
- package/dist/chunk-KX3O6GJ6.js +138 -0
- package/dist/chunk-L4UM372R.js +253 -0
- package/dist/chunk-ORMEWXMH.js +37 -0
- package/dist/chunk-Q3FKEKIN.js +23 -0
- package/dist/chunk-SEKKGFM6.js +28 -0
- package/dist/chunk-SY3HT54E.js +91 -0
- package/dist/chunk-TAW5ZZ4Z.js +346 -0
- package/dist/chunk-TRUPPHBQ.js +109 -0
- package/dist/chunk-TU55CHXU.js +30 -0
- package/dist/chunk-TWZZB4WO.js +114 -0
- package/dist/chunk-TYI74BSP.js +62 -0
- package/dist/chunk-U42SKNR6.js +104 -0
- package/dist/chunk-UU3FA6LV.js +72 -0
- package/dist/chunk-WVUIIBRR.js +51 -0
- package/dist/chunk-XUIPGYP5.js +39 -0
- package/dist/chunk-Z4UCFUF7.js +299 -0
- package/dist/components/Breadcrumbs.cjs +376 -0
- package/dist/components/Breadcrumbs.js +90 -0
- package/dist/components/Button.cjs +319 -0
- package/dist/components/Button.js +8 -0
- package/dist/components/CalendarRange.cjs +520 -0
- package/dist/components/CalendarRange.js +13 -0
- package/dist/components/Caption.cjs +283 -0
- package/dist/components/Caption.js +80 -0
- package/dist/components/Checkbox.cjs +378 -0
- package/dist/components/Checkbox.js +11 -0
- package/dist/components/ContentTab.cjs +382 -0
- package/dist/components/ContentTab.js +10 -0
- package/dist/components/ContentTabs.cjs +472 -0
- package/dist/components/ContentTabs.js +98 -0
- package/dist/components/DMSiLogo.cjs +79 -0
- package/dist/components/DMSiLogo.js +56 -0
- package/dist/components/DataGrid.cjs +3113 -0
- package/dist/components/DataGrid.js +758 -0
- package/dist/components/DataGridCell.cjs +1907 -0
- package/dist/components/DataGridCell.js +24 -0
- package/dist/components/DataTable.cjs +791 -0
- package/dist/components/DataTable.js +720 -0
- package/dist/components/DateInput.cjs +1130 -0
- package/dist/components/DateInput.js +170 -0
- package/dist/components/DateRangeInput.cjs +1131 -0
- package/dist/components/DateRangeInput.js +171 -0
- package/dist/components/DebugJson.cjs +50 -0
- package/dist/components/DebugJson.js +27 -0
- package/dist/components/Display.cjs +234 -0
- package/dist/components/Display.js +12 -0
- package/dist/components/EditingContext.cjs +73 -0
- package/dist/components/EditingContext.js +35 -0
- package/dist/components/FilterGroup.cjs +1431 -0
- package/dist/components/FilterGroup.js +231 -0
- package/dist/components/FullViewportBox.cjs +35 -0
- package/dist/components/FullViewportBox.js +12 -0
- package/dist/components/Grid.cjs +69 -0
- package/dist/components/Grid.js +36 -0
- package/dist/components/GridContainer.cjs +125 -0
- package/dist/components/GridContainer.js +92 -0
- package/dist/components/Heading.cjs +238 -0
- package/dist/components/Heading.js +14 -0
- package/dist/components/HorizontalDivider.cjs +33 -0
- package/dist/components/HorizontalDivider.js +10 -0
- package/dist/components/Icon.cjs +98 -0
- package/dist/components/Icon.js +7 -0
- package/dist/components/Input.cjs +672 -0
- package/dist/components/Input.js +21 -0
- package/dist/components/InputGroup.cjs +270 -0
- package/dist/components/InputGroup.js +60 -0
- package/dist/components/Label.cjs +223 -0
- package/dist/components/Label.js +8 -0
- package/dist/components/Link.cjs +262 -0
- package/dist/components/Link.js +8 -0
- package/dist/components/List.cjs +37 -0
- package/dist/components/List.js +14 -0
- package/dist/components/LiveChatComponent.cjs +63 -0
- package/dist/components/LiveChatComponent.js +40 -0
- package/dist/components/LogoAgilityTopBar.cjs +115 -0
- package/dist/components/LogoAgilityTopBar.js +92 -0
- package/dist/components/LogoDMSiTopBar.cjs +79 -0
- package/dist/components/LogoDMSiTopBar.js +7 -0
- package/dist/components/LogoMillworkTopBar.cjs +221 -0
- package/dist/components/LogoMillworkTopBar.js +198 -0
- package/dist/components/MainBar.cjs +211 -0
- package/dist/components/MainBar.js +65 -0
- package/dist/components/Menu.cjs +437 -0
- package/dist/components/Menu.js +11 -0
- package/dist/components/MenuOption.cjs +483 -0
- package/dist/components/MenuOption.js +13 -0
- package/dist/components/MobileDataGrid.cjs +658 -0
- package/dist/components/MobileDataGrid.js +125 -0
- package/dist/components/Modal.cjs +783 -0
- package/dist/components/Modal.js +245 -0
- package/dist/components/ModalButtons.cjs +385 -0
- package/dist/components/ModalButtons.js +10 -0
- package/dist/components/ModalContent.cjs +57 -0
- package/dist/components/ModalContent.js +7 -0
- package/dist/components/ModalHeader.cjs +426 -0
- package/dist/components/ModalHeader.js +11 -0
- package/dist/components/ModalScrim.cjs +64 -0
- package/dist/components/ModalScrim.js +7 -0
- package/dist/components/NavigationTab.cjs +431 -0
- package/dist/components/NavigationTab.js +10 -0
- package/dist/components/NavigationTabs.cjs +477 -0
- package/dist/components/NavigationTabs.js +56 -0
- package/dist/components/Notification.cjs +640 -0
- package/dist/components/Notification.js +117 -0
- package/dist/components/OptionPill.cjs +478 -0
- package/dist/components/OptionPill.js +11 -0
- package/dist/components/Paragraph.cjs +231 -0
- package/dist/components/Paragraph.js +8 -0
- package/dist/components/Password.cjs +700 -0
- package/dist/components/Password.js +53 -0
- package/dist/components/ProjectBar.cjs +242 -0
- package/dist/components/ProjectBar.js +63 -0
- package/dist/components/Radio.cjs +349 -0
- package/dist/components/Radio.js +131 -0
- package/dist/components/Search.cjs +767 -0
- package/dist/components/Search.js +12 -0
- package/dist/components/Select.cjs +758 -0
- package/dist/components/Select.js +12 -0
- package/dist/components/SideMenu.cjs +54 -0
- package/dist/components/SideMenu.js +21 -0
- package/dist/components/SideMenuGroup.cjs +422 -0
- package/dist/components/SideMenuGroup.js +83 -0
- package/dist/components/SideMenuItem.cjs +388 -0
- package/dist/components/SideMenuItem.js +70 -0
- package/dist/components/Stack.cjs +138 -0
- package/dist/components/Stack.js +7 -0
- package/dist/components/StatusPill.cjs +265 -0
- package/dist/components/StatusPill.js +52 -0
- package/dist/components/Stepper.cjs +885 -0
- package/dist/components/Stepper.js +105 -0
- package/dist/components/Subheader.cjs +226 -0
- package/dist/components/Subheader.js +8 -0
- package/dist/components/Surface.cjs +98 -0
- package/dist/components/Surface.js +40 -0
- package/dist/components/Swatch.cjs +1728 -0
- package/dist/components/Swatch.js +1319 -0
- package/dist/components/Textarea.cjs +269 -0
- package/dist/components/Textarea.js +96 -0
- package/dist/components/Theme.cjs +36 -0
- package/dist/components/Theme.js +7 -0
- package/dist/components/Time.cjs +1118 -0
- package/dist/components/Time.js +353 -0
- package/dist/components/Toast.cjs +644 -0
- package/dist/components/Toast.js +218 -0
- package/dist/components/Tooltip.cjs +273 -0
- package/dist/components/Tooltip.js +9 -0
- package/dist/components/TopBar.cjs +352 -0
- package/dist/components/TopBar.js +132 -0
- package/dist/components/useInfiniteScroll.cjs +57 -0
- package/dist/components/useInfiniteScroll.js +8 -0
- package/dist/components/useMatchesMedia.cjs +53 -0
- package/dist/components/useMatchesMedia.js +9 -0
- package/dist/components/useMenuSystem.cjs +358 -0
- package/dist/components/useMenuSystem.js +11 -0
- package/dist/components/useMounted.cjs +39 -0
- package/dist/components/useMounted.js +8 -0
- package/dist/fonts.css +21 -0
- package/dist/icons-light[FILL]-PPZXOLWS.woff2 +0 -0
- package/dist/icons-normal[FILL]-PPZXOLWS.woff2 +0 -0
- package/dist/index.css +4401 -0
- package/dist/open-sans-55T6A4JE.woff2 +0 -0
- package/dist/types.cjs +18 -0
- package/dist/types.js +0 -0
- package/package.json +66 -0
- package/src/brand.css +125 -0
- package/src/classNames.ts +144 -0
- package/src/components/Breadcrumbs.tsx +116 -0
- package/src/components/Button.tsx +210 -0
- package/src/components/CalendarRange.tsx +429 -0
- package/src/components/Caption.tsx +101 -0
- package/src/components/Checkbox.tsx +196 -0
- package/src/components/ContentTab.tsx +66 -0
- package/src/components/ContentTabs.tsx +103 -0
- package/src/components/DMSiLogo.tsx +32 -0
- package/src/components/DataGrid.tsx +948 -0
- package/src/components/DataGridCell.tsx +384 -0
- package/src/components/DataTable.tsx +835 -0
- package/src/components/DateInput.tsx +188 -0
- package/src/components/DateRangeInput.tsx +179 -0
- package/src/components/DebugJson.tsx +24 -0
- package/src/components/Display.tsx +60 -0
- package/src/components/EditingContext.tsx +40 -0
- package/src/components/FilterGroup.tsx +234 -0
- package/src/components/FullViewportBox.tsx +11 -0
- package/src/components/Grid.tsx +75 -0
- package/src/components/GridContainer.tsx +124 -0
- package/src/components/Heading.tsx +66 -0
- package/src/components/HorizontalDivider.tsx +3 -0
- package/src/components/Icon.tsx +36 -0
- package/src/components/Input.tsx +511 -0
- package/src/components/InputGroup.tsx +51 -0
- package/src/components/Label.tsx +40 -0
- package/src/components/Link.tsx +106 -0
- package/src/components/List.tsx +10 -0
- package/src/components/LiveChatComponent.tsx +56 -0
- package/src/components/LogoAgilityTopBar.tsx +53 -0
- package/src/components/LogoDMSiTopBar.tsx +32 -0
- package/src/components/LogoMillworkTopBar.tsx +118 -0
- package/src/components/MainBar.tsx +83 -0
- package/src/components/Menu.tsx +286 -0
- package/src/components/MenuOption.tsx +275 -0
- package/src/components/MobileDataGrid.tsx +135 -0
- package/src/components/Modal.tsx +271 -0
- package/src/components/ModalButtons.tsx +44 -0
- package/src/components/ModalContent.tsx +23 -0
- package/src/components/ModalHeader.tsx +41 -0
- package/src/components/ModalScrim.tsx +35 -0
- package/src/components/NavigationTab.tsx +89 -0
- package/src/components/NavigationTabs.tsx +63 -0
- package/src/components/Notification.tsx +120 -0
- package/src/components/OptionPill.tsx +114 -0
- package/src/components/Paragraph.tsx +49 -0
- package/src/components/Password.tsx +46 -0
- package/src/components/ProjectBar.tsx +76 -0
- package/src/components/Radio.tsx +140 -0
- package/src/components/Search.tsx +129 -0
- package/src/components/Select.tsx +104 -0
- package/src/components/SideMenu.tsx +21 -0
- package/src/components/SideMenuGroup.tsx +81 -0
- package/src/components/SideMenuItem.tsx +90 -0
- package/src/components/Stack.tsx +179 -0
- package/src/components/StatusPill.tsx +51 -0
- package/src/components/Stepper.tsx +91 -0
- package/src/components/Subheader.tsx +44 -0
- package/src/components/Surface.tsx +34 -0
- package/src/components/Swatch.tsx +1066 -0
- package/src/components/Textarea.tsx +101 -0
- package/src/components/Theme.tsx +13 -0
- package/src/components/Time.tsx +438 -0
- package/src/components/Toast.tsx +244 -0
- package/src/components/Tooltip.tsx +137 -0
- package/src/components/TopBar.tsx +124 -0
- package/src/components/useInfiniteScroll.tsx +40 -0
- package/src/components/useMatchesMedia.tsx +28 -0
- package/src/components/useMenuSystem.tsx +367 -0
- package/src/components/useMounted.tsx +14 -0
- package/src/darkmode.css +140 -0
- package/src/fonts.css +23 -0
- package/src/index.css +509 -0
- package/src/index.tsx +2 -0
- package/src/types.ts +149 -0
- package/src/utils/formatting.tsx +81 -0
- package/src/utils.ts +23 -0
|
@@ -0,0 +1,269 @@
|
|
|
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/Textarea.tsx
|
|
61
|
+
var Textarea_exports = {};
|
|
62
|
+
__export(Textarea_exports, {
|
|
63
|
+
Textarea: () => Textarea
|
|
64
|
+
});
|
|
65
|
+
module.exports = __toCommonJS(Textarea_exports);
|
|
66
|
+
var import_clsx2 = __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 paddingYUsingLayoutGroupGap = (0, import_clsx.default)(
|
|
137
|
+
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
138
|
+
);
|
|
139
|
+
var componentPadding = (0, import_clsx.default)(
|
|
140
|
+
"p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding"
|
|
141
|
+
);
|
|
142
|
+
var componentPaddingBottom = (0, import_clsx.default)(
|
|
143
|
+
"pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding"
|
|
144
|
+
);
|
|
145
|
+
var componentPaddingY = (0, import_clsx.default)(
|
|
146
|
+
"py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding"
|
|
147
|
+
);
|
|
148
|
+
var componentPaddingXUsingComponentGap = (0, import_clsx.default)(
|
|
149
|
+
"px-mobile-component-gap desktop:px-desktop-component-gap compact:px-desktop-compact-component-gap"
|
|
150
|
+
);
|
|
151
|
+
var componentPaddingYUsingComponentGap = (0, import_clsx.default)(
|
|
152
|
+
"py-mobile-component-gap desktop:py-desktop-component-gap compact:py-desktop-compact-component-gap"
|
|
153
|
+
);
|
|
154
|
+
var componentPaddingMinusBorder = (0, import_clsx.default)(
|
|
155
|
+
"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)]"
|
|
156
|
+
);
|
|
157
|
+
var componentPaddingMinus2pxBorder = (0, import_clsx.default)(
|
|
158
|
+
"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)]"
|
|
159
|
+
);
|
|
160
|
+
var layoutPaddingBottom = (0, import_clsx.default)(
|
|
161
|
+
"pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding"
|
|
162
|
+
);
|
|
163
|
+
var layoutPaddingY = (0, import_clsx.default)(
|
|
164
|
+
"py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding"
|
|
165
|
+
);
|
|
166
|
+
var containerPaddingX = (0, import_clsx.default)(
|
|
167
|
+
"px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
|
|
168
|
+
);
|
|
169
|
+
var containerPaddingY = (0, import_clsx.default)(
|
|
170
|
+
"py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding"
|
|
171
|
+
);
|
|
172
|
+
var layoutGroupGapPaddingY = (0, import_clsx.default)(
|
|
173
|
+
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
174
|
+
);
|
|
175
|
+
var layoutGroupGap = (0, import_clsx.default)(
|
|
176
|
+
"gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-desktop-compact-layout-group-gap"
|
|
177
|
+
);
|
|
178
|
+
var layoutGap = (0, import_clsx.default)(
|
|
179
|
+
"gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap"
|
|
180
|
+
);
|
|
181
|
+
var gapUsingContainerPadding = (0, import_clsx.default)(
|
|
182
|
+
"gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
// src/components/Textarea.tsx
|
|
186
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
187
|
+
var textareaComponentPaddingMinusBorder = (0, import_clsx2.default)(
|
|
188
|
+
"p-[calc(var(--spacing-mobile-component-padding)_+_var(--spacing-mobile-component-gap)_-_1px)]",
|
|
189
|
+
"desktop:p-[calc(var(--spacing-desktop-component-padding)_+_var(--spacing-desktop-component-gap)_-_1px)]",
|
|
190
|
+
"compact:p-[calc(var(--spacing-desktop-compact-component-padding)_+_var(--spacing-desktop-compact-component-gap)_-_1px)]"
|
|
191
|
+
);
|
|
192
|
+
var textareaBaseClass = (0, import_clsx2.default)(
|
|
193
|
+
"w-full min-h-19",
|
|
194
|
+
"rounded-base border border-border-primary-normal bg-background-primary-normal caret-text-action-normal",
|
|
195
|
+
"outline-transparent outline-2",
|
|
196
|
+
textareaComponentPaddingMinusBorder,
|
|
197
|
+
baseTransition
|
|
198
|
+
);
|
|
199
|
+
var textareaInvalidClass = (0, import_clsx2.default)(
|
|
200
|
+
"data-error:not-disabled:border-transparent data-error:not-focus:outline-border-primary-error data-error:not-focus:outline-1"
|
|
201
|
+
);
|
|
202
|
+
var textareaFocusClass = (0, import_clsx2.default)(
|
|
203
|
+
"focus:border-transparent focus:outline-border-primary-focus"
|
|
204
|
+
);
|
|
205
|
+
var textareaDisabledClass = (0, import_clsx2.default)(
|
|
206
|
+
"disabled:bg-background-action-secondary-disabled disabled:border-border-primary-normal"
|
|
207
|
+
);
|
|
208
|
+
var textareaReadOnlyClass = (0, import_clsx2.default)(
|
|
209
|
+
"read-only:outline-none read-only:bg-transparent read-only:border-transparent read-only:appearance-none read-only:resize-none read-only:not-disabled:pl-0"
|
|
210
|
+
);
|
|
211
|
+
var Textarea = (_a) => {
|
|
212
|
+
var _b = _a, {
|
|
213
|
+
label,
|
|
214
|
+
error,
|
|
215
|
+
caption
|
|
216
|
+
} = _b, props = __objRest(_b, [
|
|
217
|
+
"label",
|
|
218
|
+
"error",
|
|
219
|
+
"caption"
|
|
220
|
+
]);
|
|
221
|
+
const attributes = {
|
|
222
|
+
"data-error": error || null
|
|
223
|
+
};
|
|
224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
225
|
+
"label",
|
|
226
|
+
{
|
|
227
|
+
className: (0, import_clsx2.default)(
|
|
228
|
+
"block w-full space-y-desktop-component-gap",
|
|
229
|
+
"text-text-primary-normal has-disabled:text-text-primary-disabled",
|
|
230
|
+
!props.disabled && !props.readOnly && "has-[[data-error]]:text-text-primary-error"
|
|
231
|
+
),
|
|
232
|
+
children: [
|
|
233
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
234
|
+
"span",
|
|
235
|
+
{
|
|
236
|
+
className: (0, import_clsx2.default)(
|
|
237
|
+
typography.label,
|
|
238
|
+
"text-inherit",
|
|
239
|
+
props.disabled || props.readOnly ? "cursor-default" : "cursor-pointer",
|
|
240
|
+
"inline-block"
|
|
241
|
+
),
|
|
242
|
+
children: label
|
|
243
|
+
}
|
|
244
|
+
),
|
|
245
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
246
|
+
"textarea",
|
|
247
|
+
__spreadProps(__spreadValues(__spreadValues({}, props), attributes), {
|
|
248
|
+
id: props.id,
|
|
249
|
+
className: (0, import_clsx2.default)(
|
|
250
|
+
"disabled:text-text-primary-disabled",
|
|
251
|
+
typography.paragraph,
|
|
252
|
+
textareaBaseClass,
|
|
253
|
+
textareaInvalidClass,
|
|
254
|
+
textareaFocusClass,
|
|
255
|
+
textareaDisabledClass,
|
|
256
|
+
textareaReadOnlyClass
|
|
257
|
+
)
|
|
258
|
+
})
|
|
259
|
+
),
|
|
260
|
+
caption
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
);
|
|
264
|
+
};
|
|
265
|
+
Textarea.displayName = "Textarea";
|
|
266
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
267
|
+
0 && (module.exports = {
|
|
268
|
+
Textarea
|
|
269
|
+
});
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
baseTransition,
|
|
4
|
+
typography
|
|
5
|
+
} from "../chunk-KX3O6GJ6.js";
|
|
6
|
+
import {
|
|
7
|
+
__objRest,
|
|
8
|
+
__spreadProps,
|
|
9
|
+
__spreadValues
|
|
10
|
+
} from "../chunk-ORMEWXMH.js";
|
|
11
|
+
|
|
12
|
+
// src/components/Textarea.tsx
|
|
13
|
+
import clsx from "clsx";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
var textareaComponentPaddingMinusBorder = clsx(
|
|
16
|
+
"p-[calc(var(--spacing-mobile-component-padding)_+_var(--spacing-mobile-component-gap)_-_1px)]",
|
|
17
|
+
"desktop:p-[calc(var(--spacing-desktop-component-padding)_+_var(--spacing-desktop-component-gap)_-_1px)]",
|
|
18
|
+
"compact:p-[calc(var(--spacing-desktop-compact-component-padding)_+_var(--spacing-desktop-compact-component-gap)_-_1px)]"
|
|
19
|
+
);
|
|
20
|
+
var textareaBaseClass = clsx(
|
|
21
|
+
"w-full min-h-19",
|
|
22
|
+
"rounded-base border border-border-primary-normal bg-background-primary-normal caret-text-action-normal",
|
|
23
|
+
"outline-transparent outline-2",
|
|
24
|
+
textareaComponentPaddingMinusBorder,
|
|
25
|
+
baseTransition
|
|
26
|
+
);
|
|
27
|
+
var textareaInvalidClass = clsx(
|
|
28
|
+
"data-error:not-disabled:border-transparent data-error:not-focus:outline-border-primary-error data-error:not-focus:outline-1"
|
|
29
|
+
);
|
|
30
|
+
var textareaFocusClass = clsx(
|
|
31
|
+
"focus:border-transparent focus:outline-border-primary-focus"
|
|
32
|
+
);
|
|
33
|
+
var textareaDisabledClass = clsx(
|
|
34
|
+
"disabled:bg-background-action-secondary-disabled disabled:border-border-primary-normal"
|
|
35
|
+
);
|
|
36
|
+
var textareaReadOnlyClass = clsx(
|
|
37
|
+
"read-only:outline-none read-only:bg-transparent read-only:border-transparent read-only:appearance-none read-only:resize-none read-only:not-disabled:pl-0"
|
|
38
|
+
);
|
|
39
|
+
var Textarea = (_a) => {
|
|
40
|
+
var _b = _a, {
|
|
41
|
+
label,
|
|
42
|
+
error,
|
|
43
|
+
caption
|
|
44
|
+
} = _b, props = __objRest(_b, [
|
|
45
|
+
"label",
|
|
46
|
+
"error",
|
|
47
|
+
"caption"
|
|
48
|
+
]);
|
|
49
|
+
const attributes = {
|
|
50
|
+
"data-error": error || null
|
|
51
|
+
};
|
|
52
|
+
return /* @__PURE__ */ jsxs(
|
|
53
|
+
"label",
|
|
54
|
+
{
|
|
55
|
+
className: clsx(
|
|
56
|
+
"block w-full space-y-desktop-component-gap",
|
|
57
|
+
"text-text-primary-normal has-disabled:text-text-primary-disabled",
|
|
58
|
+
!props.disabled && !props.readOnly && "has-[[data-error]]:text-text-primary-error"
|
|
59
|
+
),
|
|
60
|
+
children: [
|
|
61
|
+
label && /* @__PURE__ */ jsx(
|
|
62
|
+
"span",
|
|
63
|
+
{
|
|
64
|
+
className: clsx(
|
|
65
|
+
typography.label,
|
|
66
|
+
"text-inherit",
|
|
67
|
+
props.disabled || props.readOnly ? "cursor-default" : "cursor-pointer",
|
|
68
|
+
"inline-block"
|
|
69
|
+
),
|
|
70
|
+
children: label
|
|
71
|
+
}
|
|
72
|
+
),
|
|
73
|
+
/* @__PURE__ */ jsx(
|
|
74
|
+
"textarea",
|
|
75
|
+
__spreadProps(__spreadValues(__spreadValues({}, props), attributes), {
|
|
76
|
+
id: props.id,
|
|
77
|
+
className: clsx(
|
|
78
|
+
"disabled:text-text-primary-disabled",
|
|
79
|
+
typography.paragraph,
|
|
80
|
+
textareaBaseClass,
|
|
81
|
+
textareaInvalidClass,
|
|
82
|
+
textareaFocusClass,
|
|
83
|
+
textareaDisabledClass,
|
|
84
|
+
textareaReadOnlyClass
|
|
85
|
+
)
|
|
86
|
+
})
|
|
87
|
+
),
|
|
88
|
+
caption
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
};
|
|
93
|
+
Textarea.displayName = "Textarea";
|
|
94
|
+
export {
|
|
95
|
+
Textarea
|
|
96
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/components/Theme.tsx
|
|
21
|
+
var Theme_exports = {};
|
|
22
|
+
__export(Theme_exports, {
|
|
23
|
+
Theme: () => Theme
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(Theme_exports);
|
|
26
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
+
function Theme({
|
|
28
|
+
theme,
|
|
29
|
+
children
|
|
30
|
+
}) {
|
|
31
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "contents", "data-theme": theme, children });
|
|
32
|
+
}
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
Theme
|
|
36
|
+
});
|