@vlrc-fe/components 3.0.4 → 3.0.5
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/CHANGELOG.md +12 -0
- package/dist/ConfirmModal.cjs +40 -48
- package/dist/ConfirmModal.d.ts +5 -21
- package/dist/ConfirmModal.d.ts.map +1 -1
- package/dist/ConfirmModal.js +41 -48
- package/dist/Modal.cjs +12 -16
- package/dist/Modal.d.ts +2 -14
- package/dist/Modal.d.ts.map +1 -1
- package/dist/Modal.js +12 -16
- package/dist/MultiSelect/MultiSelect.cjs +0 -1
- package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/MultiSelect/MultiSelect.js +0 -1
- package/dist/MultiSelect/useMultiSelect.cjs +1 -0
- package/dist/MultiSelect/useMultiSelect.d.ts.map +1 -1
- package/dist/MultiSelect/useMultiSelect.js +1 -0
- package/dist/MultiSelect/utils.cjs +2 -2
- package/dist/MultiSelect/utils.js +2 -2
- package/dist/Typography/Link.cjs +3 -5
- package/dist/Typography/Link.d.ts +1 -1
- package/dist/Typography/Link.d.ts.map +1 -1
- package/dist/Typography/Link.js +3 -5
- package/dist/Typography/Paragraph.cjs +3 -5
- package/dist/Typography/Paragraph.d.ts +1 -1
- package/dist/Typography/Paragraph.d.ts.map +1 -1
- package/dist/Typography/Paragraph.js +3 -5
- package/dist/Typography/Text.cjs +3 -4
- package/dist/Typography/Text.d.ts +1 -1
- package/dist/Typography/Text.d.ts.map +1 -1
- package/dist/Typography/Text.js +4 -5
- package/dist/Typography/Title.cjs +4 -4
- package/dist/Typography/Title.d.ts +1 -1
- package/dist/Typography/Title.d.ts.map +1 -1
- package/dist/Typography/Title.js +5 -5
- package/dist/Typography/Typography.d.ts +8 -4
- package/dist/Typography/Typography.d.ts.map +1 -1
- package/dist/Typography/index.d.ts +0 -3
- package/dist/Typography/index.d.ts.map +1 -1
- package/dist/Typography/index.js +1 -4
- package/dist/Typography/types.d.ts +4 -0
- package/dist/Typography/types.d.ts.map +1 -1
- package/dist/assets/stylex.css +32 -8
- package/dist/astryx.cjs +1 -10
- package/dist/astryx.d.ts +0 -1
- package/dist/astryx.d.ts.map +1 -1
- package/dist/astryx.js +0 -2
- package/dist/index.cjs +2 -12
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -6
- package/dist/layout/Box.cjs +44 -67
- package/dist/layout/Box.d.ts +3 -5
- package/dist/layout/Box.d.ts.map +1 -1
- package/dist/layout/Box.js +44 -67
- package/dist/layout/Center.cjs +13 -24
- package/dist/layout/Center.d.ts +2 -2
- package/dist/layout/Center.d.ts.map +1 -1
- package/dist/layout/Center.js +13 -24
- package/dist/layout/Container.cjs +21 -10
- package/dist/layout/Container.d.ts +3 -5
- package/dist/layout/Container.d.ts.map +1 -1
- package/dist/layout/Container.js +21 -10
- package/dist/layout/Stack.cjs +55 -93
- package/dist/layout/Stack.d.ts +5 -5
- package/dist/layout/Stack.d.ts.map +1 -1
- package/dist/layout/Stack.js +55 -93
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/lazyLoad.cjs +1 -1
- package/dist/lazyLoad.d.ts.map +1 -1
- package/dist/lazyLoad.js +1 -1
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/zIndex.cjs +0 -2
- package/dist/theme/zIndex.d.ts +4 -4
- package/dist/theme/zIndex.d.ts.map +1 -1
- package/dist/theme.css +32 -8
- package/dist/ui/aspect-ratio.cjs +0 -1
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js +0 -1
- package/dist/ui/avatar.cjs +0 -1
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +0 -1
- package/dist/ui/calendar.cjs +0 -1
- package/dist/ui/calendar.d.ts.map +1 -1
- package/dist/ui/calendar.js +0 -1
- package/dist/ui/carousel.cjs +0 -1
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/carousel.js +0 -1
- package/dist/ui/checkbox.cjs +4 -8
- package/dist/ui/checkbox.d.ts +1 -1
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +5 -9
- package/dist/ui/circular-progress.cjs +25 -20
- package/dist/ui/circular-progress.d.ts +3 -3
- package/dist/ui/circular-progress.d.ts.map +1 -1
- package/dist/ui/circular-progress.js +25 -20
- package/dist/ui/code-block.cjs +180 -176
- package/dist/ui/code-block.d.ts +17 -9
- package/dist/ui/code-block.d.ts.map +1 -1
- package/dist/ui/code-block.js +181 -177
- package/dist/ui/collapsible.cjs +0 -1
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/collapsible.js +0 -1
- package/dist/ui/compare-slider.cjs +2 -3
- package/dist/ui/compare-slider.d.ts +3 -2
- package/dist/ui/compare-slider.d.ts.map +1 -1
- package/dist/ui/compare-slider.js +3 -4
- package/dist/ui/context-menu.cjs +0 -1
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +0 -1
- package/dist/ui/copy-button.cjs +2 -3
- package/dist/ui/copy-button.d.ts +1 -1
- package/dist/ui/copy-button.d.ts.map +1 -1
- package/dist/ui/copy-button.js +3 -4
- package/dist/ui/dialog.cjs +2 -0
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +2 -0
- package/dist/ui/drawer.cjs +2 -0
- package/dist/ui/drawer.d.ts.map +1 -1
- package/dist/ui/drawer.js +2 -0
- package/dist/ui/editable.cjs +1 -0
- package/dist/ui/editable.d.ts.map +1 -1
- package/dist/ui/editable.js +1 -0
- package/dist/ui/empty.cjs +37 -52
- package/dist/ui/empty.d.ts +5 -5
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/empty.js +38 -53
- package/dist/ui/file-upload.cjs +0 -1
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload.js +0 -1
- package/dist/ui/flex.cjs +3 -4
- package/dist/ui/flex.d.ts +3 -2
- package/dist/ui/flex.d.ts.map +1 -1
- package/dist/ui/flex.js +3 -4
- package/dist/ui/form.cjs +0 -1
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +0 -1
- package/dist/ui/gauge.cjs +2 -4
- package/dist/ui/gauge.d.ts +3 -2
- package/dist/ui/gauge.d.ts.map +1 -1
- package/dist/ui/gauge.js +2 -4
- package/dist/ui/grid.cjs +7 -7
- package/dist/ui/grid.d.ts +7 -3
- package/dist/ui/grid.d.ts.map +1 -1
- package/dist/ui/grid.js +7 -8
- package/dist/ui/hover-card.cjs +0 -1
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +0 -1
- package/dist/ui/input-group.cjs +17 -23
- package/dist/ui/input-group.d.ts +2 -2
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input-group.js +17 -23
- package/dist/ui/marker.cjs +78 -75
- package/dist/ui/marker.d.ts +7 -4
- package/dist/ui/marker.d.ts.map +1 -1
- package/dist/ui/marker.js +79 -76
- package/dist/ui/masonry.cjs +2 -4
- package/dist/ui/masonry.d.ts +1 -1
- package/dist/ui/masonry.d.ts.map +1 -1
- package/dist/ui/masonry.js +3 -5
- package/dist/ui/menubar.cjs +0 -1
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +0 -1
- package/dist/ui/progress.cjs +6 -5
- package/dist/ui/progress.d.ts +3 -3
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +6 -5
- package/dist/ui/questionnaire.cjs +138 -135
- package/dist/ui/questionnaire.d.ts +21 -11
- package/dist/ui/questionnaire.d.ts.map +1 -1
- package/dist/ui/questionnaire.js +139 -136
- package/dist/ui/rating.cjs +2 -3
- package/dist/ui/rating.d.ts +3 -2
- package/dist/ui/rating.d.ts.map +1 -1
- package/dist/ui/rating.js +3 -4
- package/dist/ui/resizable.cjs +0 -1
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/resizable.js +0 -1
- package/dist/ui/row-col.cjs +4 -6
- package/dist/ui/row-col.d.ts +6 -4
- package/dist/ui/row-col.d.ts.map +1 -1
- package/dist/ui/row-col.js +5 -7
- package/dist/ui/scroll-area.cjs +40 -53
- package/dist/ui/scroll-area.d.ts +1 -1
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/scroll-area.js +40 -53
- package/dist/ui/segmented.cjs +2 -3
- package/dist/ui/segmented.d.ts +3 -2
- package/dist/ui/segmented.d.ts.map +1 -1
- package/dist/ui/segmented.js +3 -4
- package/dist/ui/sheet.cjs +2 -0
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +2 -0
- package/dist/ui/sidebar.cjs +0 -1
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +0 -1
- package/dist/ui/signature-pad.cjs +148 -147
- package/dist/ui/signature-pad.d.ts +17 -9
- package/dist/ui/signature-pad.d.ts.map +1 -1
- package/dist/ui/signature-pad.js +149 -148
- package/dist/ui/stat.cjs +57 -71
- package/dist/ui/stat.d.ts +8 -8
- package/dist/ui/stat.d.ts.map +1 -1
- package/dist/ui/stat.js +57 -71
- package/dist/ui/switch.cjs +4 -8
- package/dist/ui/switch.d.ts +1 -1
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +5 -9
- package/dist/utils.cjs +1 -6
- package/dist/utils.d.ts +2 -12
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2,12 +2,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_tokens_stylex = require("./theme/tokens.stylex.cjs");
|
|
3
3
|
const require_Icons = require("./Icons/Icons.cjs");
|
|
4
4
|
const require_types = require("./Typography/types.cjs");
|
|
5
|
-
const require_spacing = require("./theme/spacing.cjs");
|
|
6
|
-
const require_utils = require("./Typography/utils.cjs");
|
|
7
5
|
const require_zIndex = require("./theme/zIndex.cjs");
|
|
8
6
|
const require_tooltip = require("./ui/tooltip.cjs");
|
|
9
|
-
const
|
|
10
|
-
const require_weightStyles = require("./Typography/weightStyles.cjs");
|
|
7
|
+
const require_spacing = require("./theme/spacing.cjs");
|
|
11
8
|
const require_Title = require("./Typography/Title.cjs");
|
|
12
9
|
const require_Paragraph = require("./Typography/Paragraph.cjs");
|
|
13
10
|
const require_Text = require("./Typography/Text.cjs");
|
|
@@ -241,8 +238,6 @@ exports.CompareSlider = require_compare_slider.CompareSlider;
|
|
|
241
238
|
exports.ComponentSpacingPresetMap = require_spacing.ComponentSpacingPresetMap;
|
|
242
239
|
exports.ComponentWidthPresetMap = require_width.ComponentWidthPresetMap;
|
|
243
240
|
exports.ConfirmModal = require_ConfirmModal.ConfirmModal;
|
|
244
|
-
exports.ConfirmModalDefault = require_ConfirmModal.ConfirmModal;
|
|
245
|
-
exports.ConfirmationDialog = require_ConfirmModal.ConfirmModal;
|
|
246
241
|
exports.Container = require_Container.Container;
|
|
247
242
|
exports.ContextMenu = require_context_menu.ContextMenu;
|
|
248
243
|
exports.ContextMenuCheckboxItem = require_context_menu.ContextMenuCheckboxItem;
|
|
@@ -414,6 +409,7 @@ exports.FormTextarea = require_Form.FormTextarea;
|
|
|
414
409
|
exports.Gauge = require_gauge.Gauge;
|
|
415
410
|
exports.Grid = require_grid.Grid;
|
|
416
411
|
exports.GridItem = require_grid.GridItem;
|
|
412
|
+
exports.GridRoot = require_grid.GridRoot;
|
|
417
413
|
Object.defineProperty(exports, "GridSpan", {
|
|
418
414
|
enumerable: true,
|
|
419
415
|
get: function() {
|
|
@@ -715,20 +711,15 @@ Object.defineProperty(exports, "getLocaleDirection", {
|
|
|
715
711
|
return _astryxdesign_core.getLocaleDirection;
|
|
716
712
|
}
|
|
717
713
|
});
|
|
718
|
-
exports.getTextFromChildren = require_tooltip$1.getTextFromChildren;
|
|
719
714
|
exports.gutters = require_tokens_stylex.gutters;
|
|
720
715
|
exports.isComponentSize = require_spacing.isComponentSize;
|
|
721
716
|
exports.lazyLoad = require_lazyLoad.lazyLoad;
|
|
722
717
|
exports.navigationMenuTriggerStyle = require_navigation_menu.navigationMenuTriggerStyle;
|
|
723
718
|
exports.radii = require_tokens_stylex.radii;
|
|
724
719
|
exports.radius = require_tokens_stylex.radius;
|
|
725
|
-
exports.renderWithTooltip = require_tooltip$1.renderWithTooltip;
|
|
726
|
-
exports.resolveCustomTypographyStyle = require_utils.resolveCustomTypographyStyle;
|
|
727
720
|
exports.resolveGap = require_spacing.resolveGap;
|
|
728
|
-
exports.resolveLetterSpacing = require_utils.resolveLetterSpacing;
|
|
729
721
|
exports.resolveSpacing = require_spacing.resolveSpacing;
|
|
730
722
|
exports.resolveSpacingPixel = require_spacing.resolveSpacingPixel;
|
|
731
|
-
exports.resolveTooltipContent = require_tooltip$1.resolveTooltipContent;
|
|
732
723
|
exports.resolveWidth = require_width.resolveWidth;
|
|
733
724
|
exports.responsiveMap = require_useBreakpoint.responsiveMap;
|
|
734
725
|
exports.shadow = require_tokens_stylex.shadow;
|
|
@@ -745,7 +736,6 @@ exports.toggleSizeStyles = require_toggle.toggleSizeStyles;
|
|
|
745
736
|
exports.toggleStyles = require_toggle.toggleStyles;
|
|
746
737
|
exports.toggleVariantStyles = require_toggle.toggleVariantStyles;
|
|
747
738
|
exports.typography = require_tokens_stylex.typography;
|
|
748
|
-
exports.typographyWeightStyles = require_weightStyles.typographyWeightStyles;
|
|
749
739
|
exports.useBreakpoint = require_useBreakpoint.useBreakpoint;
|
|
750
740
|
Object.defineProperty(exports, "useButtonGroup", {
|
|
751
741
|
enumerable: true,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export { ConfirmModal
|
|
2
|
-
export {
|
|
3
|
-
export type { ConfirmModalProps, ConfirmationDialogProps } from './ConfirmModal';
|
|
1
|
+
export { ConfirmModal } from './ConfirmModal';
|
|
2
|
+
export type { ConfirmModalProps } from './ConfirmModal';
|
|
4
3
|
export { Modal } from './Modal';
|
|
5
4
|
export type { ModalProps } from './Modal';
|
|
6
5
|
export { lazyLoad } from './lazyLoad';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACL,SAAS,EACT,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,cAAc,EACd,2BAA2B,EAC3B,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,cAAc,MAAM,CAAC;AACrB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAG3B,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,EAC3B,SAAS,EACT,YAAY,EACZ,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,8BAA8B,EAC9B,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EACV,iCAAiC,EACjC,gCAAgC,EAChC,YAAY,EACZ,cAAc,EACd,UAAU,EACV,MAAM,GACP,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { colors, duration, easing, gaps, gutters, radii, radius, shadow, spacing, textColors, typography } from "./theme/tokens.stylex.js";
|
|
2
2
|
import { Icons } from "./Icons/Icons.js";
|
|
3
3
|
import { TypographyWeightMap } from "./Typography/types.js";
|
|
4
|
-
import { ComponentSpacingPresetMap, isComponentSize, resolveGap, resolveSpacing, resolveSpacingPixel } from "./theme/spacing.js";
|
|
5
|
-
import { resolveCustomTypographyStyle, resolveLetterSpacing } from "./Typography/utils.js";
|
|
6
4
|
import { ZIndexContext, ZIndexProvider, Z_INDEX_LAYERS, useZIndex } from "./theme/zIndex.js";
|
|
7
5
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./ui/tooltip.js";
|
|
8
|
-
import {
|
|
9
|
-
import { typographyWeightStyles } from "./Typography/weightStyles.js";
|
|
6
|
+
import { ComponentSpacingPresetMap, isComponentSize, resolveGap, resolveSpacing, resolveSpacingPixel } from "./theme/spacing.js";
|
|
10
7
|
import { Title } from "./Typography/Title.js";
|
|
11
8
|
import { Paragraph } from "./Typography/Paragraph.js";
|
|
12
9
|
import { Text } from "./Typography/Text.js";
|
|
@@ -59,7 +56,7 @@ import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, For
|
|
|
59
56
|
import { Gauge } from "./ui/gauge.js";
|
|
60
57
|
import { BREAKPOINTS, getHighestBreakpoint, responsiveMap, useBreakpoint } from "./ui/useBreakpoint.js";
|
|
61
58
|
import { Col, Column, Row, RowContext, useRowContext } from "./ui/row-col.js";
|
|
62
|
-
import { Grid, GridItem } from "./ui/grid.js";
|
|
59
|
+
import { Grid, GridItem, GridRoot } from "./ui/grid.js";
|
|
63
60
|
import { HoverCard, HoverCardContent, HoverCardTrigger } from "./ui/hover-card.js";
|
|
64
61
|
import { Input } from "./ui/input.js";
|
|
65
62
|
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "./ui/input-group.js";
|
|
@@ -119,4 +116,4 @@ import { FileUpload } from "./Form/FormFileUpload/FileUpload.js";
|
|
|
119
116
|
import { FormFileUpload, FormFileUploader } from "./Form/FormFileUpload/index.js";
|
|
120
117
|
import { Dropdown, PopupMenu } from "./Dropdown/Dropdown.js";
|
|
121
118
|
import { DATE_FORMAT_LONG, DATE_FORMAT_MONTH_ONLY, DATE_FORMAT_MONTH_YEAR, DATE_FORMAT_SHORT, DATE_FORMAT_SHORT_WITH_WEEKDAY, DATE_FORMAT_SHORT_WITH_YEAR, DATE_FORMAT_WEEKDAY_ONLY, DATE_FORMAT_WITH_WEEKDAY, InternationalizationContext, InternationalizationProvider, getLocaleDirection, useCollator, useDirection, useLocale, useTranslator } from "@astryxdesign/core";
|
|
122
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarClose, ActionBarGroup, ActionBarItem, ActionBarSelection, ActionBarSeparator, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, AstryxField, AstryxFieldLabel, AstryxFieldStatus, AstryxGrid, Avatar, AvatarFallback, AvatarGroup, AvatarImage, AvatarStatusDot, BREAKPOINTS, Badge, BadgeOverflow, Blockquote, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, COMPONENT_SIZES, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Center, Checkbox, CircularProgress, Code, CodeBlock, CodeBlockContent, CodeBlockCopyButton, CodeBlockExpandButton, CodeBlockHeader, CodeBlockLanguage, CodeBlockTitle, CodeBlockWrapButton, Col, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CompareSlider, ComponentSpacingPresetMap, ComponentWidthPresetMap, ConfirmModal,
|
|
119
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarClose, ActionBarGroup, ActionBarItem, ActionBarSelection, ActionBarSeparator, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, AstryxField, AstryxFieldLabel, AstryxFieldStatus, AstryxGrid, Avatar, AvatarFallback, AvatarGroup, AvatarImage, AvatarStatusDot, BREAKPOINTS, Badge, BadgeOverflow, Blockquote, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, COMPONENT_SIZES, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Center, Checkbox, CircularProgress, Code, CodeBlock, CodeBlockContent, CodeBlockCopyButton, CodeBlockExpandButton, CodeBlockHeader, CodeBlockLanguage, CodeBlockTitle, CodeBlockWrapButton, Col, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CompareSlider, ComponentSpacingPresetMap, ComponentWidthPresetMap, ConfirmModal, Container, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, DATE_FORMAT_LONG, DATE_FORMAT_MONTH_ONLY, DATE_FORMAT_MONTH_YEAR, DATE_FORMAT_SHORT, DATE_FORMAT_SHORT_WITH_WEEKDAY, DATE_FORMAT_SHORT_WITH_YEAR, DATE_FORMAT_WEEKDAY_ONLY, DATE_FORMAT_WITH_WEEKDAY, DEFAULT_COMPONENT_SIZE, DataTable, DataTableColumnHeader, DataTableFacetedFilter, SingleDatePicker as DatePicker, RangeDatePicker as DateRangePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Divider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Dropdown, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editable, EditableArea, EditableCancel, EditableInput, EditablePreview, EditableSubmit, EditableToolbar, EditableTrigger, Empty, EmptyActions, EmptyDescription, EmptyImage, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FileUpload as FileDropzone, FileUploadRoot as FileUpload, FileUploadClear, FileUploadDropzone, FileUploadItem, FileUploadItemDelete, FileUploadItemMetadata, FileUploadItemPreview, FileUploadItemProgress, FileUploadList, FileUploadTrigger, FileUploader, Flex, Form, FormCheckbox, FormControl, FormDatePicker, FormDescription, FormField, FormFileUpload, FormFileUploader, FormInput, FormItem, FormLabel, FormMessage, FormMultiSelect, FormNumberInput, FormRadio as FormRadioGroup, FormSelect, FormSimpleSelect, FormSwitch, FormTextarea, Gauge, Grid, GridItem, GridRoot, GridSpan, HStack, Heading, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, Icons, Input, InputClearButton, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InternationalizationContext, InternationalizationProvider, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Link, Marker, MarkerContent, MarkerIcon, Masonry, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Modal, MultiSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Paragraph, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PopupMenu, Progress, Questionnaire, QuestionnaireActions, QuestionnaireContent, QuestionnaireDescription, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireSkip, QuestionnaireTitle, RadioGroup, RadioGroupItem, RangeDatePicker, Rating, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveDialog, ResponsiveDialogClose, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogFooter, ResponsiveDialogHeader, ResponsiveDialogTitle, ResponsiveDialogTrigger, Row, RowContext, ScrollArea, ScrollBar, Segmented, BaseSelect as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SignaturePad, SignaturePadArea, SignaturePadClear, SignaturePadControls, SignaturePadGuide, SignaturePadPlaceholder, SignaturePadRedo, SignaturePadUndo, SingleDatePicker, Skeleton, Slider, Spinner, Stack, StackItem, Stat, StatDescription, StatHeader, StatIndicator, StatLabel, StatTrend, StatValue, StatusDot, Stepper, StepperContent, StepperDescription, StepperIndicator, StepperItem, StepperList, StepperNext, StepperPrev, StepperSeparator, StepperText, StepperTitle, StepperTrigger, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagsInput, TagsInputClear, TagsInputInput, TagsInputItem, TagsInputItemDelete, TagsInputItemText, Text, Textarea, Timeline, TimelineConnector, TimelineContent, TimelineDescription, TimelineDot, TimelineHeader, TimelineItem, TimelineTime, TimelineTitle, TimelineTrack, Title, Toaster, Toggle, ToggleButton, ToggleButtonGroup, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, TypographyWeightMap, VStack, ZIndexContext, ZIndexProvider, Z_INDEX_LAYERS, alertVariants, badgeVariants, buttonVariants, cardVariants, colors, createApiUploadHandler, createExpanderColumn, createRowActionsColumn, createS3PresignedUploadHandler, createSelectionColumn, createUploadThingUploadHandler, duration, easing, formatFileSize, gaps, getHighestBreakpoint, getLocaleDirection, gutters, isComponentSize, lazyLoad, navigationMenuTriggerStyle, radii, radius, resolveGap, resolveSpacing, resolveSpacingPixel, resolveWidth, responsiveMap, shadow, sidebarMenuButtonVariants, spacing, textColors, theme_exports as theme, toggleSizeStyles, toggleStyles, toggleVariantStyles, typography, useBreakpoint, useButtonGroup, useCodeBlock, useCollator, useDirection, useFileUpload, useFormField, useLocale, useQuestionnaire, useResponsiveDialogContext, useRowContext, useSidebar, useSignaturePad, useTranslator, useUploadFile, useZIndex };
|
package/dist/layout/Box.cjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
-
const require_utils = require("../utils.cjs");
|
|
3
2
|
let _stylexjs_stylex = require("@stylexjs/stylex");
|
|
4
3
|
_stylexjs_stylex = require_runtime.__toESM(_stylexjs_stylex, 1);
|
|
5
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
-
let react = require("react");
|
|
7
5
|
let react_compiler_runtime = require("react/compiler-runtime");
|
|
8
6
|
// src/layout/Box.tsx
|
|
9
7
|
var styles = {
|
|
@@ -89,8 +87,8 @@ var styles = {
|
|
|
89
87
|
$$css: true
|
|
90
88
|
}
|
|
91
89
|
};
|
|
92
|
-
|
|
93
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
90
|
+
function Box(t0) {
|
|
91
|
+
const $ = (0, react_compiler_runtime.c)(30);
|
|
94
92
|
let as;
|
|
95
93
|
let children;
|
|
96
94
|
let className;
|
|
@@ -126,78 +124,57 @@ var Box = (0, react.forwardRef)((t0, ref) => {
|
|
|
126
124
|
style = $[9];
|
|
127
125
|
sx = $[10];
|
|
128
126
|
}
|
|
129
|
-
const Component = as
|
|
127
|
+
const Component = as ?? "div";
|
|
130
128
|
const pStyle = p ? styles[`p_${p}`] : null;
|
|
131
129
|
const mStyle = m ? styles[`m_${m}`] : null;
|
|
132
130
|
const mxStyle = mx === "auto" ? styles.mx_auto : null;
|
|
133
131
|
const myStyle = my === "auto" ? styles.my_auto : null;
|
|
134
|
-
let T0;
|
|
135
132
|
let t1;
|
|
133
|
+
if ($[11] !== mStyle || $[12] !== mxStyle || $[13] !== myStyle || $[14] !== pStyle || $[15] !== sx) {
|
|
134
|
+
t1 = _stylexjs_stylex.props(styles.base, pStyle, mStyle, mxStyle, myStyle, sx);
|
|
135
|
+
$[11] = mStyle;
|
|
136
|
+
$[12] = mxStyle;
|
|
137
|
+
$[13] = myStyle;
|
|
138
|
+
$[14] = pStyle;
|
|
139
|
+
$[15] = sx;
|
|
140
|
+
$[16] = t1;
|
|
141
|
+
} else t1 = $[16];
|
|
142
|
+
const resolvedProps = t1;
|
|
136
143
|
let t2;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
let t5;
|
|
140
|
-
let t6;
|
|
141
|
-
if ($[11] !== Component || $[12] !== className || $[13] !== mStyle || $[14] !== mxStyle || $[15] !== myStyle || $[16] !== pStyle || $[17] !== props || $[18] !== ref || $[19] !== style || $[20] !== sx) {
|
|
142
|
-
const resolvedProps = _stylexjs_stylex.props(styles.base, pStyle, mStyle, mxStyle, myStyle, sx);
|
|
143
|
-
T0 = Component;
|
|
144
|
-
t1 = ref;
|
|
145
|
-
t2 = "box";
|
|
146
|
-
t3 = props;
|
|
147
|
-
t4 = resolvedProps;
|
|
148
|
-
t5 = {
|
|
144
|
+
if ($[17] !== resolvedProps.style || $[18] !== style) {
|
|
145
|
+
t2 = {
|
|
149
146
|
...resolvedProps.style,
|
|
150
147
|
...style
|
|
151
148
|
};
|
|
152
|
-
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
$[
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
T0 = $[21];
|
|
172
|
-
t1 = $[22];
|
|
173
|
-
t2 = $[23];
|
|
174
|
-
t3 = $[24];
|
|
175
|
-
t4 = $[25];
|
|
176
|
-
t5 = $[26];
|
|
177
|
-
t6 = $[27];
|
|
178
|
-
}
|
|
179
|
-
let t7;
|
|
180
|
-
if ($[28] !== T0 || $[29] !== children || $[30] !== t1 || $[31] !== t2 || $[32] !== t3 || $[33] !== t4 || $[34] !== t5 || $[35] !== t6) {
|
|
181
|
-
t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(T0, {
|
|
182
|
-
ref: t1,
|
|
183
|
-
"data-slot": t2,
|
|
184
|
-
...t3,
|
|
185
|
-
...t4,
|
|
186
|
-
style: t5,
|
|
187
|
-
className: t6,
|
|
149
|
+
$[17] = resolvedProps.style;
|
|
150
|
+
$[18] = style;
|
|
151
|
+
$[19] = t2;
|
|
152
|
+
} else t2 = $[19];
|
|
153
|
+
let t3;
|
|
154
|
+
if ($[20] !== className || $[21] !== resolvedProps.className) {
|
|
155
|
+
t3 = className ? `${resolvedProps.className || ""} ${className}`.trim() : resolvedProps.className;
|
|
156
|
+
$[20] = className;
|
|
157
|
+
$[21] = resolvedProps.className;
|
|
158
|
+
$[22] = t3;
|
|
159
|
+
} else t3 = $[22];
|
|
160
|
+
let t4;
|
|
161
|
+
if ($[23] !== Component || $[24] !== children || $[25] !== props || $[26] !== resolvedProps || $[27] !== t2 || $[28] !== t3) {
|
|
162
|
+
t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
|
|
163
|
+
"data-slot": "box",
|
|
164
|
+
...props,
|
|
165
|
+
...resolvedProps,
|
|
166
|
+
style: t2,
|
|
167
|
+
className: t3,
|
|
188
168
|
children
|
|
189
169
|
});
|
|
190
|
-
$[
|
|
191
|
-
$[
|
|
192
|
-
$[
|
|
193
|
-
$[
|
|
194
|
-
$[
|
|
195
|
-
$[
|
|
196
|
-
$[
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
return t7;
|
|
201
|
-
});
|
|
202
|
-
Box.displayName = "Box";
|
|
170
|
+
$[23] = Component;
|
|
171
|
+
$[24] = children;
|
|
172
|
+
$[25] = props;
|
|
173
|
+
$[26] = resolvedProps;
|
|
174
|
+
$[27] = t2;
|
|
175
|
+
$[28] = t3;
|
|
176
|
+
$[29] = t4;
|
|
177
|
+
} else t4 = $[29];
|
|
178
|
+
return t4;
|
|
179
|
+
}
|
|
203
180
|
exports.Box = Box;
|
package/dist/layout/Box.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CSSProperties, ComponentPropsWithRef, ElementType, ReactNode } from 'react';
|
|
2
2
|
import * as stylex from '@stylexjs/stylex';
|
|
3
3
|
export type BoxSpacingTier = '0' | 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
4
4
|
export interface BoxProps<T extends ElementType = 'div'> {
|
|
@@ -12,8 +12,6 @@ export interface BoxProps<T extends ElementType = 'div'> {
|
|
|
12
12
|
mx?: 'auto';
|
|
13
13
|
my?: 'auto';
|
|
14
14
|
}
|
|
15
|
-
export type PolymorphicBoxProps<T extends ElementType> = BoxProps<T> & Omit<ComponentPropsWithRef<T>, keyof BoxProps<T>>;
|
|
16
|
-
export declare
|
|
17
|
-
ref?: Ref<any>;
|
|
18
|
-
}) => ReactElement | null;
|
|
15
|
+
export type PolymorphicBoxProps<T extends ElementType = 'div'> = BoxProps<T> & Omit<ComponentPropsWithRef<T>, keyof BoxProps<T>>;
|
|
16
|
+
export declare function Box<T extends ElementType = 'div'>({ as, children, className, style, sx, p, m, mx, my, ...props }: PolymorphicBoxProps<T>): import("react").JSX.Element;
|
|
19
17
|
//# sourceMappingURL=Box.d.ts.map
|
package/dist/layout/Box.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/layout/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/layout/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAqB,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1F,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAgC3C,MAAM,MAAM,cAAc,GAAG,GAAG,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAEpF,MAAM,WAAW,QAAQ,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK;IACrD,EAAE,CAAC,EAAE,CAAC,CAAC;IACP,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC;IACzB,CAAC,CAAC,EAAE,cAAc,CAAC;IACnB,CAAC,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,QAAQ,CAAC,CAAC,CAAC,GAC1E,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AAEpD,wBAAgB,GAAG,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,EACjD,EAAE,EACF,QAAQ,EACR,SAAS,EACT,KAAK,EACL,EAAE,EACF,CAAC,EACD,CAAC,EACD,EAAE,EACF,EAAE,EACF,GAAG,KAAK,EACT,EAAE,mBAAmB,CAAC,CAAC,CAAC,+BAyBxB"}
|
package/dist/layout/Box.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { cn } from "../utils.js";
|
|
2
1
|
import * as stylex from "@stylexjs/stylex";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { forwardRef } from "react";
|
|
5
3
|
import { c } from "react/compiler-runtime";
|
|
6
4
|
// src/layout/Box.tsx
|
|
7
5
|
var styles = {
|
|
@@ -87,8 +85,8 @@ var styles = {
|
|
|
87
85
|
$$css: true
|
|
88
86
|
}
|
|
89
87
|
};
|
|
90
|
-
|
|
91
|
-
const $ = c(
|
|
88
|
+
function Box(t0) {
|
|
89
|
+
const $ = c(30);
|
|
92
90
|
let as;
|
|
93
91
|
let children;
|
|
94
92
|
let className;
|
|
@@ -124,78 +122,57 @@ var Box = forwardRef((t0, ref) => {
|
|
|
124
122
|
style = $[9];
|
|
125
123
|
sx = $[10];
|
|
126
124
|
}
|
|
127
|
-
const Component = as
|
|
125
|
+
const Component = as ?? "div";
|
|
128
126
|
const pStyle = p ? styles[`p_${p}`] : null;
|
|
129
127
|
const mStyle = m ? styles[`m_${m}`] : null;
|
|
130
128
|
const mxStyle = mx === "auto" ? styles.mx_auto : null;
|
|
131
129
|
const myStyle = my === "auto" ? styles.my_auto : null;
|
|
132
|
-
let T0;
|
|
133
130
|
let t1;
|
|
131
|
+
if ($[11] !== mStyle || $[12] !== mxStyle || $[13] !== myStyle || $[14] !== pStyle || $[15] !== sx) {
|
|
132
|
+
t1 = stylex.props(styles.base, pStyle, mStyle, mxStyle, myStyle, sx);
|
|
133
|
+
$[11] = mStyle;
|
|
134
|
+
$[12] = mxStyle;
|
|
135
|
+
$[13] = myStyle;
|
|
136
|
+
$[14] = pStyle;
|
|
137
|
+
$[15] = sx;
|
|
138
|
+
$[16] = t1;
|
|
139
|
+
} else t1 = $[16];
|
|
140
|
+
const resolvedProps = t1;
|
|
134
141
|
let t2;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
let t5;
|
|
138
|
-
let t6;
|
|
139
|
-
if ($[11] !== Component || $[12] !== className || $[13] !== mStyle || $[14] !== mxStyle || $[15] !== myStyle || $[16] !== pStyle || $[17] !== props || $[18] !== ref || $[19] !== style || $[20] !== sx) {
|
|
140
|
-
const resolvedProps = stylex.props(styles.base, pStyle, mStyle, mxStyle, myStyle, sx);
|
|
141
|
-
T0 = Component;
|
|
142
|
-
t1 = ref;
|
|
143
|
-
t2 = "box";
|
|
144
|
-
t3 = props;
|
|
145
|
-
t4 = resolvedProps;
|
|
146
|
-
t5 = {
|
|
142
|
+
if ($[17] !== resolvedProps.style || $[18] !== style) {
|
|
143
|
+
t2 = {
|
|
147
144
|
...resolvedProps.style,
|
|
148
145
|
...style
|
|
149
146
|
};
|
|
150
|
-
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
$[
|
|
158
|
-
$[
|
|
159
|
-
$[
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
T0 = $[21];
|
|
170
|
-
t1 = $[22];
|
|
171
|
-
t2 = $[23];
|
|
172
|
-
t3 = $[24];
|
|
173
|
-
t4 = $[25];
|
|
174
|
-
t5 = $[26];
|
|
175
|
-
t6 = $[27];
|
|
176
|
-
}
|
|
177
|
-
let t7;
|
|
178
|
-
if ($[28] !== T0 || $[29] !== children || $[30] !== t1 || $[31] !== t2 || $[32] !== t3 || $[33] !== t4 || $[34] !== t5 || $[35] !== t6) {
|
|
179
|
-
t7 = /* @__PURE__ */ jsx(T0, {
|
|
180
|
-
ref: t1,
|
|
181
|
-
"data-slot": t2,
|
|
182
|
-
...t3,
|
|
183
|
-
...t4,
|
|
184
|
-
style: t5,
|
|
185
|
-
className: t6,
|
|
147
|
+
$[17] = resolvedProps.style;
|
|
148
|
+
$[18] = style;
|
|
149
|
+
$[19] = t2;
|
|
150
|
+
} else t2 = $[19];
|
|
151
|
+
let t3;
|
|
152
|
+
if ($[20] !== className || $[21] !== resolvedProps.className) {
|
|
153
|
+
t3 = className ? `${resolvedProps.className || ""} ${className}`.trim() : resolvedProps.className;
|
|
154
|
+
$[20] = className;
|
|
155
|
+
$[21] = resolvedProps.className;
|
|
156
|
+
$[22] = t3;
|
|
157
|
+
} else t3 = $[22];
|
|
158
|
+
let t4;
|
|
159
|
+
if ($[23] !== Component || $[24] !== children || $[25] !== props || $[26] !== resolvedProps || $[27] !== t2 || $[28] !== t3) {
|
|
160
|
+
t4 = /* @__PURE__ */ jsx(Component, {
|
|
161
|
+
"data-slot": "box",
|
|
162
|
+
...props,
|
|
163
|
+
...resolvedProps,
|
|
164
|
+
style: t2,
|
|
165
|
+
className: t3,
|
|
186
166
|
children
|
|
187
167
|
});
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
$[
|
|
191
|
-
$[
|
|
192
|
-
$[
|
|
193
|
-
$[
|
|
194
|
-
$[
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
return t7;
|
|
199
|
-
});
|
|
200
|
-
Box.displayName = "Box";
|
|
168
|
+
$[23] = Component;
|
|
169
|
+
$[24] = children;
|
|
170
|
+
$[25] = props;
|
|
171
|
+
$[26] = resolvedProps;
|
|
172
|
+
$[27] = t2;
|
|
173
|
+
$[28] = t3;
|
|
174
|
+
$[29] = t4;
|
|
175
|
+
} else t4 = $[29];
|
|
176
|
+
return t4;
|
|
177
|
+
}
|
|
201
178
|
export { Box };
|
package/dist/layout/Center.cjs
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
const require_utils = require("../utils.cjs");
|
|
2
1
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
-
let react = require("react");
|
|
4
2
|
let react_compiler_runtime = require("react/compiler-runtime");
|
|
5
3
|
let _astryxdesign_core = require("@astryxdesign/core");
|
|
6
4
|
// src/layout/Center.tsx
|
|
7
|
-
|
|
8
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
5
|
+
function Center(t0) {
|
|
6
|
+
const $ = (0, react_compiler_runtime.c)(10);
|
|
9
7
|
let children;
|
|
10
8
|
let className;
|
|
11
9
|
let props;
|
|
@@ -24,28 +22,19 @@ var Center = (0, react.forwardRef)((t0, ref) => {
|
|
|
24
22
|
sx = $[4];
|
|
25
23
|
}
|
|
26
24
|
let t1;
|
|
27
|
-
if ($[5] !== className) {
|
|
28
|
-
t1 =
|
|
29
|
-
$[5] = className;
|
|
30
|
-
$[6] = t1;
|
|
31
|
-
} else t1 = $[6];
|
|
32
|
-
let t2;
|
|
33
|
-
if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== sx || $[11] !== t1) {
|
|
34
|
-
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_astryxdesign_core.Center, {
|
|
35
|
-
ref,
|
|
25
|
+
if ($[5] !== children || $[6] !== className || $[7] !== props || $[8] !== sx) {
|
|
26
|
+
t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_astryxdesign_core.Center, {
|
|
36
27
|
xstyle: sx,
|
|
37
|
-
className
|
|
28
|
+
className,
|
|
38
29
|
...props,
|
|
39
30
|
children
|
|
40
31
|
});
|
|
41
|
-
$[
|
|
42
|
-
$[
|
|
43
|
-
$[
|
|
44
|
-
$[
|
|
45
|
-
$[
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
});
|
|
50
|
-
Center.displayName = "Center";
|
|
32
|
+
$[5] = children;
|
|
33
|
+
$[6] = className;
|
|
34
|
+
$[7] = props;
|
|
35
|
+
$[8] = sx;
|
|
36
|
+
$[9] = t1;
|
|
37
|
+
} else t1 = $[9];
|
|
38
|
+
return t1;
|
|
39
|
+
}
|
|
51
40
|
exports.Center = Center;
|
package/dist/layout/Center.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
2
|
import { Center as AstryxCenter } from '@astryxdesign/core';
|
|
3
3
|
import type * as stylex from '@stylexjs/stylex';
|
|
4
4
|
export type CenterAxis = 'both' | 'horizontal' | 'vertical';
|
|
5
5
|
export interface CenterProps extends Omit<ComponentProps<typeof AstryxCenter>, 'xstyle'> {
|
|
6
6
|
sx?: stylex.StyleXStyles;
|
|
7
7
|
}
|
|
8
|
-
export declare
|
|
8
|
+
export declare function Center({ sx, className, children, ...props }: CenterProps): import("react").JSX.Element;
|
|
9
9
|
//# sourceMappingURL=Center.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../src/layout/Center.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../src/layout/Center.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAEhD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,CAAC;AAE5D,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,EAAE,QAAQ,CAAC;IACtF,EAAE,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC;CAC1B;AAED,wBAAgB,MAAM,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,+BAMxE"}
|
package/dist/layout/Center.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { cn } from "../utils.js";
|
|
2
1
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
2
|
import { c } from "react/compiler-runtime";
|
|
5
3
|
import { Center } from "@astryxdesign/core";
|
|
6
4
|
// src/layout/Center.tsx
|
|
7
|
-
|
|
8
|
-
const $ = c(
|
|
5
|
+
function Center$1(t0) {
|
|
6
|
+
const $ = c(10);
|
|
9
7
|
let children;
|
|
10
8
|
let className;
|
|
11
9
|
let props;
|
|
@@ -24,28 +22,19 @@ var Center$1 = forwardRef((t0, ref) => {
|
|
|
24
22
|
sx = $[4];
|
|
25
23
|
}
|
|
26
24
|
let t1;
|
|
27
|
-
if ($[5] !== className) {
|
|
28
|
-
t1 =
|
|
29
|
-
$[5] = className;
|
|
30
|
-
$[6] = t1;
|
|
31
|
-
} else t1 = $[6];
|
|
32
|
-
let t2;
|
|
33
|
-
if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== sx || $[11] !== t1) {
|
|
34
|
-
t2 = /* @__PURE__ */ jsx(Center, {
|
|
35
|
-
ref,
|
|
25
|
+
if ($[5] !== children || $[6] !== className || $[7] !== props || $[8] !== sx) {
|
|
26
|
+
t1 = /* @__PURE__ */ jsx(Center, {
|
|
36
27
|
xstyle: sx,
|
|
37
|
-
className
|
|
28
|
+
className,
|
|
38
29
|
...props,
|
|
39
30
|
children
|
|
40
31
|
});
|
|
41
|
-
$[
|
|
42
|
-
$[
|
|
43
|
-
$[
|
|
44
|
-
$[
|
|
45
|
-
$[
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
});
|
|
50
|
-
Center$1.displayName = "Center";
|
|
32
|
+
$[5] = children;
|
|
33
|
+
$[6] = className;
|
|
34
|
+
$[7] = props;
|
|
35
|
+
$[8] = sx;
|
|
36
|
+
$[9] = t1;
|
|
37
|
+
} else t1 = $[9];
|
|
38
|
+
return t1;
|
|
39
|
+
}
|
|
51
40
|
export { Center$1 as Center };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
-
const require_utils = require("../utils.cjs");
|
|
3
2
|
let _stylexjs_stylex = require("@stylexjs/stylex");
|
|
4
3
|
_stylexjs_stylex = require_runtime.__toESM(_stylexjs_stylex, 1);
|
|
5
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
-
let react = require("react");
|
|
7
5
|
// src/layout/Container.tsx
|
|
8
6
|
var styles = {
|
|
9
7
|
base: {
|
|
@@ -58,13 +56,27 @@ var styles = {
|
|
|
58
56
|
$$css: true
|
|
59
57
|
}
|
|
60
58
|
};
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
var sizeStyles = {
|
|
60
|
+
xs: styles.sizeXs,
|
|
61
|
+
sm: styles.sizeSm,
|
|
62
|
+
md: styles.sizeMd,
|
|
63
|
+
lg: styles.sizeLg,
|
|
64
|
+
xl: styles.sizeXl,
|
|
65
|
+
"2xl": styles.size2Xl,
|
|
66
|
+
fluid: styles.sizeFluid
|
|
67
|
+
};
|
|
68
|
+
var gutterStyles = {
|
|
69
|
+
none: styles.gutterNone,
|
|
70
|
+
sm: styles.gutterSm,
|
|
71
|
+
md: styles.gutterMd,
|
|
72
|
+
lg: styles.gutterLg
|
|
73
|
+
};
|
|
74
|
+
function Container({ as, size = "xl", gutter = "md", children, className, style, sx, ...props }) {
|
|
75
|
+
const Component = as ?? "div";
|
|
76
|
+
const sizeStyle = sizeStyles[size] ?? styles.sizeXl;
|
|
77
|
+
const gutterStyle = gutterStyles[gutter] ?? styles.gutterMd;
|
|
65
78
|
const resolvedProps = _stylexjs_stylex.props(styles.base, sizeStyle, gutterStyle, sx);
|
|
66
79
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
|
|
67
|
-
ref,
|
|
68
80
|
"data-slot": "container",
|
|
69
81
|
"data-size": size,
|
|
70
82
|
...props,
|
|
@@ -73,9 +85,8 @@ var Container = (0, react.forwardRef)(({ as, size = "xl", gutter = "md", childre
|
|
|
73
85
|
...resolvedProps.style,
|
|
74
86
|
...style
|
|
75
87
|
},
|
|
76
|
-
className:
|
|
88
|
+
className: className ? `${resolvedProps.className || ""} ${className}`.trim() : resolvedProps.className,
|
|
77
89
|
children
|
|
78
90
|
});
|
|
79
|
-
}
|
|
80
|
-
Container.displayName = "Container";
|
|
91
|
+
}
|
|
81
92
|
exports.Container = Container;
|