@atom-learning/components 11.1.0 → 11.2.0-beta.1
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/dist/components/accordion/Accordion.js +1 -1
- package/dist/components/avatar/Avatar.js +2 -1
- package/dist/components/avatar/Avatar.js.map +1 -1
- package/dist/components/banner/banner-regular/BannerRegularActions.js +1 -1
- package/dist/components/banner/banner-slim/BannerSlimButton.js +1 -1
- package/dist/components/banner/banner-slim/BannerSlimContainer.js +2 -1
- package/dist/components/banner/banner-slim/BannerSlimContainer.js.map +1 -1
- package/dist/components/button/Button.js +3 -0
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/calendar/Calendar.js +2 -1
- package/dist/components/calendar/Calendar.js.map +1 -1
- package/dist/components/carousel/Carousel.js +1 -1
- package/dist/components/carousel/CarouselPagination.js +2 -1
- package/dist/components/carousel/CarouselPagination.js.map +1 -1
- package/dist/components/carousel/CarouselSlide.js +1 -1
- package/dist/components/carousel/CarouselSlider.js +1 -1
- package/dist/components/data-table/DataTableGlobalFilter.js +1 -1
- package/dist/components/data-table/DataTableHead.js +1 -1
- package/dist/components/data-table/DataTableHeaderCell.js +2 -1
- package/dist/components/data-table/DataTableHeaderCell.js.map +1 -1
- package/dist/components/data-table/DataTableRow.js +2 -1
- package/dist/components/data-table/DataTableRow.js.map +1 -1
- package/dist/components/data-table/DataTableTable.js +2 -1
- package/dist/components/data-table/DataTableTable.js.map +1 -1
- package/dist/components/data-table/drag-and-drop/DragAndDropTable.js +1 -1
- package/dist/components/dialog/DialogHeading.js +2 -2
- package/dist/components/dialog/DialogHeading.js.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuLabel.js +1 -1
- package/dist/components/field-wrapper/FieldDescription.js +1 -1
- package/dist/components/field-wrapper/FieldWrapper.d.ts +9 -2
- package/dist/components/field-wrapper/FieldWrapper.js +4 -2
- package/dist/components/field-wrapper/FieldWrapper.js.map +1 -1
- package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
- package/dist/components/file-input/FileInput.js +1 -1
- package/dist/components/image/ImageCredit.js +1 -1
- package/dist/components/loader/Loader.js +2 -1
- package/dist/components/loader/Loader.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownList.js +1 -1
- package/dist/components/markdown-content/components/MarkdownThematicBreak.js +1 -1
- package/dist/components/navigation/NavigationMenu.js +2 -1
- package/dist/components/navigation/NavigationMenu.js.map +1 -1
- package/dist/components/navigation/NavigationMenuDropdownTrigger.js +2 -1
- package/dist/components/navigation/NavigationMenuDropdownTrigger.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItem.js +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItemContent.js +1 -1
- package/dist/components/number-input/NumberInput.js +2 -1
- package/dist/components/number-input/NumberInput.js.map +1 -1
- package/dist/components/pagination/Pagination.js +1 -1
- package/dist/components/password-field/PasswordField.js +1 -1
- package/dist/components/password-input/PasswordInput.js +1 -1
- package/dist/components/radio-card/RadioCardGroup.js +1 -1
- package/dist/components/search-input/SearchInput.js +2 -1
- package/dist/components/search-input/SearchInput.js.map +1 -1
- package/dist/components/section-message/SectionMessageDescription.js +1 -1
- package/dist/components/section-message/SectionMessageDismiss.js +1 -1
- package/dist/components/section-message/SectionMessageIcon.js +1 -1
- package/dist/components/section-message/SectionMessageLayout.js +2 -1
- package/dist/components/section-message/SectionMessageLayout.js.map +1 -1
- package/dist/components/segmented-control/SegmentedControlBadge.js +1 -1
- package/dist/components/select-menu/SelectMenu.d.ts +1 -1
- package/dist/components/select-menu/SelectMenu.js +1 -1
- package/dist/components/select-menu/SelectMenuItem.js +1 -1
- package/dist/components/select-menu/SelectMenuItem.js.map +1 -1
- package/dist/components/select-menu/SelectMenuLabel.js +1 -1
- package/dist/components/select-menu/SelectMenuTrigger.d.ts +1 -1
- package/dist/components/select-menu/SelectMenuTrigger.js.map +1 -1
- package/dist/components/select-menu-field/SelectMenuField.js +5 -1
- package/dist/components/select-menu-field/SelectMenuField.js.map +1 -1
- package/dist/components/side-bar/SideBar.js +2 -1
- package/dist/components/side-bar/SideBar.js.map +1 -1
- package/dist/components/skeleton-loader/SkeletonBarChart.js +1 -1
- package/dist/components/skeleton-loader/SkeletonButton.js +1 -1
- package/dist/components/skeleton-loader/SkeletonCard.js +1 -1
- package/dist/components/skeleton-loader/SkeletonColumnChart.js +1 -1
- package/dist/components/skeleton-loader/SkeletonDoughnutChart.js +1 -1
- package/dist/components/skeleton-loader/SkeletonHeading.js +1 -1
- package/dist/components/skeleton-loader/SkeletonPanelList.js +1 -1
- package/dist/components/skeleton-loader/SkeletonSubjectList.js +1 -1
- package/dist/components/skeleton-loader/SkeletonTable.js +3 -3
- package/dist/components/skeleton-loader/SkeletonTable.js.map +1 -1
- package/dist/components/skeleton-loader/SkeletonTabs.js +1 -1
- package/dist/components/sortable/SortableItem.js +1 -1
- package/dist/components/stepper/Stepper.js +1 -1
- package/dist/components/table/Table.js +2 -1
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/TableStickyColumnsContainer.js +1 -1
- package/dist/components/tile-toggle-group/TileToggleGroupRoot.js +1 -1
- package/dist/components/toast/ToastCloseButton.js +1 -1
- package/dist/components/toggle-group/ToggleGroupRoot.js +2 -1
- package/dist/components/toggle-group/ToggleGroupRoot.js.map +1 -1
- package/dist/components/top-bar/TopBar.js +1 -1
- package/dist/components/top-bar/TopBar.js.map +1 -1
- package/dist/components/top-bar/TopBarBrand.js +2 -1
- package/dist/components/top-bar/TopBarBrand.js.map +1 -1
- package/dist/components/tree/TreeCollapsibleContent.js +1 -1
- package/dist/components/tree/TreeCollapsibleTrigger.js +2 -1
- package/dist/components/tree/TreeCollapsibleTrigger.js.map +1 -1
- package/dist/components/tree/TreeIcon.js +1 -1
- package/dist/components/tree/TreeListItem.js +1 -1
- package/dist/components/tree/TreeText.js +1 -1
- package/dist/docgen.json +1 -1
- package/dist/index.cjs.js +136 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/styled.d.ts +2 -3
- package/dist/styled.js +51 -19
- package/dist/styled.js.map +1 -1
- package/dist/utilities/tw-merge/index.d.ts +11 -0
- package/dist/utilities/tw-merge/index.js +86 -0
- package/dist/utilities/tw-merge/index.js.map +1 -0
- package/package.json +2 -33
- package/scripts/generate-responsive-variant-classes.mjs +103 -32
- package/src/responsive-variant-classes.css +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -36,8 +36,8 @@ react = __toESM(react, 1);
|
|
|
36
36
|
let _radix_ui_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
37
37
|
let clsx = require("clsx");
|
|
38
38
|
clsx = __toESM(clsx, 1);
|
|
39
|
-
let tailwind_merge = require("tailwind-merge");
|
|
40
39
|
let tailwind_variants = require("tailwind-variants");
|
|
40
|
+
let tailwind_merge = require("tailwind-merge");
|
|
41
41
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
42
42
|
let _atom_learning_icons = require("@atom-learning/icons");
|
|
43
43
|
let _radix_ui_react_slot = require("@radix-ui/react-slot");
|
|
@@ -88,13 +88,74 @@ let _radix_ui_react_tabs = require("@radix-ui/react-tabs");
|
|
|
88
88
|
let react_hot_toast = require("react-hot-toast");
|
|
89
89
|
let react_player_vimeo_js = require("react-player/vimeo.js");
|
|
90
90
|
react_player_vimeo_js = __toESM(react_player_vimeo_js, 1);
|
|
91
|
-
//#region src/
|
|
92
|
-
tailwind_variants.defaultConfig.twMerge = false;
|
|
91
|
+
//#region src/utilities/tw-merge/index.ts
|
|
93
92
|
var ARBITRARY_NUMBER_RE = /^\[[\d.]+\]$/;
|
|
94
93
|
var isArbitraryNumber = (value) => ARBITRARY_NUMBER_RE.test(value) || !Number.isNaN(Number(value));
|
|
95
|
-
var
|
|
94
|
+
var SAFE_AREA_VALUE_RE = /^safe(-(or|offset)-(\d+|\[\d+\]))?$/;
|
|
95
|
+
var SAFE_HEIGHT_VALUE_RE = /^(screen|dvh|svh|lvh|vh|fill)-safe$/;
|
|
96
|
+
var SAFE_OFFSET_HEIGHT_VALUE_RE = /^safe-offset-top-(\d+|\[\d+\])$/;
|
|
97
|
+
var isSafeAreaValue = (value) => SAFE_AREA_VALUE_RE.test(value);
|
|
98
|
+
var isSafeHeightValue = (value) => SAFE_HEIGHT_VALUE_RE.test(value);
|
|
99
|
+
var isSafeOffsetHeightValue = (value) => SAFE_OFFSET_HEIGHT_VALUE_RE.test(value);
|
|
100
|
+
/**
|
|
101
|
+
* tailwind-merge configured for this library's own utilities (capsize,
|
|
102
|
+
* `h-safe-offset-top-*`) and for the tailwindcss-safe-area plugin. Classes not
|
|
103
|
+
* registered in a class group are passed through untouched and never enter
|
|
104
|
+
* conflict resolution, so any utility we add outside core Tailwind has to be
|
|
105
|
+
* declared here or a later conflicting class cannot reset it.
|
|
106
|
+
*/
|
|
96
107
|
var twMerge = (0, tailwind_merge.extendTailwindMerge)({ extend: {
|
|
97
108
|
classGroups: {
|
|
109
|
+
...Object.fromEntries([
|
|
110
|
+
"p",
|
|
111
|
+
"px",
|
|
112
|
+
"py",
|
|
113
|
+
"ps",
|
|
114
|
+
"pe",
|
|
115
|
+
"pt",
|
|
116
|
+
"pr",
|
|
117
|
+
"pb",
|
|
118
|
+
"pl",
|
|
119
|
+
"m",
|
|
120
|
+
"mx",
|
|
121
|
+
"my",
|
|
122
|
+
"ms",
|
|
123
|
+
"me",
|
|
124
|
+
"mt",
|
|
125
|
+
"mr",
|
|
126
|
+
"mb",
|
|
127
|
+
"ml",
|
|
128
|
+
"scroll-p",
|
|
129
|
+
"scroll-px",
|
|
130
|
+
"scroll-py",
|
|
131
|
+
"scroll-ps",
|
|
132
|
+
"scroll-pe",
|
|
133
|
+
"scroll-pt",
|
|
134
|
+
"scroll-pr",
|
|
135
|
+
"scroll-pb",
|
|
136
|
+
"scroll-pl",
|
|
137
|
+
"scroll-m",
|
|
138
|
+
"scroll-mx",
|
|
139
|
+
"scroll-my",
|
|
140
|
+
"scroll-ms",
|
|
141
|
+
"scroll-me",
|
|
142
|
+
"scroll-mt",
|
|
143
|
+
"scroll-mr",
|
|
144
|
+
"scroll-mb",
|
|
145
|
+
"scroll-ml",
|
|
146
|
+
"inset",
|
|
147
|
+
"inset-x",
|
|
148
|
+
"inset-y",
|
|
149
|
+
"top",
|
|
150
|
+
"right",
|
|
151
|
+
"bottom",
|
|
152
|
+
"left",
|
|
153
|
+
"start",
|
|
154
|
+
"end"
|
|
155
|
+
].map((group) => [group, [{ [group]: [isSafeAreaValue] }]])),
|
|
156
|
+
h: [{ h: [isSafeHeightValue, isSafeOffsetHeightValue] }],
|
|
157
|
+
"min-h": [{ "min-h": [isSafeHeightValue] }],
|
|
158
|
+
"max-h": [{ "max-h": [isSafeHeightValue] }],
|
|
98
159
|
capsize: [{ capsize: ["none", isArbitraryNumber] }],
|
|
99
160
|
"capsize-before": [{ "capsize-before": [isArbitraryNumber] }],
|
|
100
161
|
"capsize-after": [{ "capsize-after": [isArbitraryNumber] }]
|
|
@@ -105,7 +166,21 @@ var twMerge = (0, tailwind_merge.extendTailwindMerge)({ extend: {
|
|
|
105
166
|
"capsize-after": ["capsize"]
|
|
106
167
|
}
|
|
107
168
|
} });
|
|
169
|
+
/** Compose class names (clsx) and resolve Tailwind conflicts (twMerge). */
|
|
108
170
|
var cn = (...inputs) => twMerge((0, clsx.default)(inputs));
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region src/styled.tsx
|
|
173
|
+
tailwind_variants.defaultConfig.twMerge = false;
|
|
174
|
+
var DATA_STATE_VARIANT_RE = /^data-\[state=[^\]]+\]:/;
|
|
175
|
+
var BREAKPOINTS = [
|
|
176
|
+
"@initial",
|
|
177
|
+
"@sm",
|
|
178
|
+
"@md",
|
|
179
|
+
"@lg",
|
|
180
|
+
"@xl"
|
|
181
|
+
];
|
|
182
|
+
var isResponsiveValue = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
183
|
+
var atBreakpoint = (breakpoint, cls) => breakpoint === "@initial" ? cls : `${breakpoint.replace("@", "")}:${cls}`;
|
|
109
184
|
var Theme = ({ children, theme }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
110
185
|
className: "contents",
|
|
111
186
|
style: theme,
|
|
@@ -117,6 +192,11 @@ function styled(el, styles, options) {
|
|
|
117
192
|
const variantKeySet = new Set(variantKeys);
|
|
118
193
|
const enableResponsiveVariants = options?.enableResponsiveVariants === true;
|
|
119
194
|
const tvFn = (0, tailwind_variants.tv)(styles);
|
|
195
|
+
const compoundVariants = styles.compoundVariants ?? [];
|
|
196
|
+
const tvFnWithoutCompoundVariants = enableResponsiveVariants && compoundVariants.length > 0 ? (0, tailwind_variants.tv)({
|
|
197
|
+
...styles,
|
|
198
|
+
compoundVariants: []
|
|
199
|
+
}) : null;
|
|
120
200
|
const Comp = (props) => {
|
|
121
201
|
const { ref } = props;
|
|
122
202
|
const additionalStyles = enableResponsiveVariants ? variantKeys.flatMap((variantKey) => {
|
|
@@ -132,7 +212,39 @@ function styled(el, styles, options) {
|
|
|
132
212
|
});
|
|
133
213
|
return [];
|
|
134
214
|
}) : [];
|
|
135
|
-
const
|
|
215
|
+
const hasResponsiveVariantProp = enableResponsiveVariants && variantKeys.some((variantKey) => isResponsiveValue(props[variantKey]));
|
|
216
|
+
const variantValueAt = (variantKey, breakpoint) => {
|
|
217
|
+
const value = props[variantKey];
|
|
218
|
+
const fallback = styles.defaultVariants?.[variantKey];
|
|
219
|
+
if (!isResponsiveValue(value)) return value ?? fallback;
|
|
220
|
+
for (let i = BREAKPOINTS.indexOf(breakpoint); i >= 0; i--) {
|
|
221
|
+
const valueAtBreakpoint = value[BREAKPOINTS[i]];
|
|
222
|
+
if (valueAtBreakpoint !== void 0) return valueAtBreakpoint;
|
|
223
|
+
}
|
|
224
|
+
return fallback;
|
|
225
|
+
};
|
|
226
|
+
const compoundStyles = hasResponsiveVariantProp ? (() => {
|
|
227
|
+
const breakpoints = BREAKPOINTS.filter((breakpoint) => breakpoint === "@initial" || variantKeys.some((variantKey) => {
|
|
228
|
+
const value = props[variantKey];
|
|
229
|
+
return isResponsiveValue(value) && breakpoint in value;
|
|
230
|
+
}));
|
|
231
|
+
return compoundVariants.flatMap(({ class: compoundClass, ...conditions }) => {
|
|
232
|
+
if (!compoundClass) return [];
|
|
233
|
+
const classes = Array.isArray(compoundClass) ? compoundClass : [compoundClass];
|
|
234
|
+
let matchedBelow = false;
|
|
235
|
+
return breakpoints.flatMap((breakpoint) => {
|
|
236
|
+
const matches = Object.entries(conditions).every(([variantKey, condition]) => {
|
|
237
|
+
const value = String(variantValueAt(variantKey, breakpoint));
|
|
238
|
+
return Array.isArray(condition) ? condition.some((option) => String(option) === value) : String(condition) === value;
|
|
239
|
+
});
|
|
240
|
+
const alreadyEmitted = matchedBelow;
|
|
241
|
+
matchedBelow = matches;
|
|
242
|
+
if (!matches || alreadyEmitted) return [];
|
|
243
|
+
return classes.map((cls) => atBreakpoint(breakpoint, cls));
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
})() : [];
|
|
247
|
+
const propsForTv = variantKeys.length > 0 ? Object.fromEntries(Object.entries(props).flatMap(([key, value]) => {
|
|
136
248
|
if (!variantKeySet.has(key)) return [];
|
|
137
249
|
const variantConfig = styles.variants?.[key];
|
|
138
250
|
if (variantConfig && "true" in variantConfig && "false" in variantConfig) {
|
|
@@ -140,9 +252,10 @@ function styled(el, styles, options) {
|
|
|
140
252
|
return [[key, null]];
|
|
141
253
|
}
|
|
142
254
|
return [[key, value]];
|
|
143
|
-
})) : {}
|
|
255
|
+
})) : {};
|
|
256
|
+
const cls = (hasResponsiveVariantProp && tvFnWithoutCompoundVariants ? tvFnWithoutCompoundVariants : tvFn)(propsForTv);
|
|
144
257
|
const filteredProps = Object.fromEntries(Object.entries(props).filter(([key]) => !variantKeySet.has(key) && key !== "as" && key !== "__wrapperClasses"));
|
|
145
|
-
const mergedClassName = (0, clsx.default)(cls, additionalStyles).trim();
|
|
258
|
+
const mergedClassName = (0, clsx.default)(cls, additionalStyles, compoundStyles).trim();
|
|
146
259
|
const propsClassName = props.className;
|
|
147
260
|
const wrapperClasses = props.__wrapperClasses;
|
|
148
261
|
if (typeof el === "string" || typeof el === "function" || el && typeof el === "object") {
|
|
@@ -775,6 +888,9 @@ var StyledButton = styled("button", {
|
|
|
775
888
|
"ease-out",
|
|
776
889
|
"whitespace-nowrap",
|
|
777
890
|
"w-max",
|
|
891
|
+
"select-none",
|
|
892
|
+
"[-webkit-touch-callout:none]",
|
|
893
|
+
"[-webkit-tap-highlight-color:transparent]",
|
|
778
894
|
"disabled:cursor-not-allowed",
|
|
779
895
|
"disabled:opacity-30"
|
|
780
896
|
],
|
|
@@ -3719,19 +3835,21 @@ var Combobox = /* @__PURE__ */ Object.assign(_reach_combobox.Combobox, {
|
|
|
3719
3835
|
});
|
|
3720
3836
|
//#endregion
|
|
3721
3837
|
//#region src/components/field-wrapper/FieldWrapper.tsx
|
|
3722
|
-
var FieldWrapper = ({ children, error, fieldId, label, prompt, description, required, hideLabel, appearance, ...rest }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3838
|
+
var FieldWrapper = ({ children, error, fieldId, label, labelId, prompt, description, required, hideLabel, appearance, ...rest }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3723
3839
|
...rest,
|
|
3724
3840
|
children: [
|
|
3725
3841
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3726
3842
|
className: cn("mb-3", "flex", "items-center", "justify-between", hideLabel && "sr-only"),
|
|
3727
3843
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Label, {
|
|
3728
3844
|
htmlFor: fieldId,
|
|
3845
|
+
id: labelId,
|
|
3729
3846
|
required,
|
|
3730
3847
|
appearance,
|
|
3731
3848
|
children: label
|
|
3732
3849
|
}), prompt && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Link, {
|
|
3733
3850
|
href: prompt?.link,
|
|
3734
3851
|
onClick: prompt?.onClick,
|
|
3852
|
+
reloadDocument: prompt?.reloadDocument,
|
|
3735
3853
|
size: "sm",
|
|
3736
3854
|
children: prompt.label
|
|
3737
3855
|
})]
|
|
@@ -6570,7 +6688,7 @@ var DialogFooter = styled("footer", { base: [
|
|
|
6570
6688
|
var DialogHeading = ({ className, ...rest }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Heading, {
|
|
6571
6689
|
size: "sm",
|
|
6572
6690
|
...rest,
|
|
6573
|
-
className: cn("border-b", "border-b-grey-200", "pb-8", "pt-0", "px-8", "mb-8", "-mx-8", "box-content", className)
|
|
6691
|
+
className: cn("border-b", "border-b-grey-200", "pb-8", "pt-0", "px-8", "mb-8", "-mx-8", "box-content", "[&_*]:box-border", className)
|
|
6574
6692
|
});
|
|
6575
6693
|
//#endregion
|
|
6576
6694
|
//#region src/components/dialog/DialogNavigationBar.tsx
|
|
@@ -8629,7 +8747,7 @@ var SelectMenuItem = ({ children, textValue, ...rest }) => {
|
|
|
8629
8747
|
const { size } = useSelectMenuContext();
|
|
8630
8748
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Item, {
|
|
8631
8749
|
size,
|
|
8632
|
-
textValue: textValue ?? (typeof children === "string" ? children : void 0),
|
|
8750
|
+
textValue: textValue ?? (typeof children === "string" || typeof children === "number" ? String(children) : void 0),
|
|
8633
8751
|
...rest,
|
|
8634
8752
|
children: ({ isSelected }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
8635
8753
|
className: "absolute left-2 inline-flex items-center",
|
|
@@ -8777,6 +8895,7 @@ var SelectMenuField = ({ className, hideLabel, children, name, label, validation
|
|
|
8777
8895
|
const context = useFormCustomContext();
|
|
8778
8896
|
const { error } = useFieldError(name);
|
|
8779
8897
|
const formTheme = context?.theme ?? theme;
|
|
8898
|
+
const labelId = `${name}-label`;
|
|
8780
8899
|
const { field: { ref, onChange, value } } = (0, react_hook_form.useController)({
|
|
8781
8900
|
name,
|
|
8782
8901
|
control,
|
|
@@ -8790,10 +8909,11 @@ var SelectMenuField = ({ className, hideLabel, children, name, label, validation
|
|
|
8790
8909
|
fieldId: name,
|
|
8791
8910
|
hideLabel,
|
|
8792
8911
|
label,
|
|
8912
|
+
labelId,
|
|
8793
8913
|
prompt,
|
|
8794
8914
|
required: Boolean(validation?.required),
|
|
8795
8915
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SelectMenu, {
|
|
8796
|
-
"aria-
|
|
8916
|
+
"aria-labelledby": labelId,
|
|
8797
8917
|
selectedKey: value === "" ? null : value,
|
|
8798
8918
|
onSelectionChange: onChange,
|
|
8799
8919
|
size,
|
|
@@ -8803,6 +8923,8 @@ var SelectMenuField = ({ className, hideLabel, children, name, label, validation
|
|
|
8803
8923
|
...rest,
|
|
8804
8924
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SelectMenu.Trigger, {
|
|
8805
8925
|
ref,
|
|
8926
|
+
id: name,
|
|
8927
|
+
"aria-labelledby": labelId,
|
|
8806
8928
|
placeholder
|
|
8807
8929
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SelectMenu.Content, { children })]
|
|
8808
8930
|
})
|
|
@@ -9188,10 +9310,10 @@ var SkeletonTable = ({ numberOfColumns = 4, numberOfRows = 4, columnWidth, class
|
|
|
9188
9310
|
size: "md",
|
|
9189
9311
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Table.Header, {
|
|
9190
9312
|
theme: "white",
|
|
9191
|
-
children: Array.from({ length: numberOfColumns }, (_, index) => index).map((columnIndex) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Table.HeaderCell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SkeletonLoader, {
|
|
9313
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Table.Row, { children: Array.from({ length: numberOfColumns }, (_, index) => index).map((columnIndex) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Table.HeaderCell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SkeletonLoader, {
|
|
9192
9314
|
style: { "--width": columnWidth?.[columnIndex] || "100px" },
|
|
9193
9315
|
className: "h-4 w-(--width) rounded-xl"
|
|
9194
|
-
}) }, columnIndex))
|
|
9316
|
+
}) }, columnIndex)) })
|
|
9195
9317
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Table.Body, {
|
|
9196
9318
|
striped: false,
|
|
9197
9319
|
children: Array.from({ length: numberOfRows }, (_, index) => index).map((rowIndex) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Table.Row, { children: Array.from({ length: numberOfColumns }, (_, index) => index).map((columnIndex) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Table.Cell, {
|
|
@@ -10612,7 +10734,7 @@ var StyledRoot = styled("header", {
|
|
|
10612
10734
|
standard: [
|
|
10613
10735
|
"w-screen",
|
|
10614
10736
|
"max-w-full",
|
|
10615
|
-
"top-
|
|
10737
|
+
"top-0",
|
|
10616
10738
|
"border-b",
|
|
10617
10739
|
"border-b-(--border-bottom)"
|
|
10618
10740
|
],
|