@seed-design/react 2.0.4 → 2.1.0
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/LICENSE +201 -0
- package/NOTICE +20 -0
- package/lib/components/ContentDialog/ContentDialog.cjs +105 -0
- package/lib/components/ContentDialog/ContentDialog.d.ts +50 -0
- package/lib/components/ContentDialog/ContentDialog.d.ts.map +1 -0
- package/lib/components/ContentDialog/ContentDialog.js +91 -0
- package/lib/components/ContentDialog/ContentDialog.namespace.cjs +24 -0
- package/lib/components/ContentDialog/ContentDialog.namespace.d.ts +2 -0
- package/lib/components/ContentDialog/ContentDialog.namespace.d.ts.map +1 -0
- package/lib/components/ContentDialog/ContentDialog.namespace.js +19 -0
- package/lib/components/ContentDialog/index.cjs +21 -0
- package/lib/components/ContentDialog/index.d.ts +3 -0
- package/lib/components/ContentDialog/index.d.ts.map +1 -0
- package/lib/components/ContentDialog/index.js +3 -0
- package/lib/components/Dialog/Dialog.d.ts +1 -1
- package/lib/components/Dialog/Dialog.d.ts.map +1 -1
- package/lib/components/Dialog/index.d.ts.map +1 -1
- package/lib/components/QuantityPicker/QuantityPicker.cjs +120 -0
- package/lib/components/QuantityPicker/QuantityPicker.d.ts +25 -0
- package/lib/components/QuantityPicker/QuantityPicker.d.ts.map +1 -0
- package/lib/components/QuantityPicker/QuantityPicker.js +113 -0
- package/lib/components/QuantityPicker/QuantityPicker.namespace.cjs +17 -0
- package/lib/components/QuantityPicker/QuantityPicker.namespace.d.ts +2 -0
- package/lib/components/QuantityPicker/QuantityPicker.namespace.d.ts.map +1 -0
- package/lib/components/QuantityPicker/QuantityPicker.namespace.js +12 -0
- package/lib/components/QuantityPicker/QuantityPicker.test.d.ts +2 -0
- package/lib/components/QuantityPicker/QuantityPicker.test.d.ts.map +1 -0
- package/lib/components/QuantityPicker/index.cjs +14 -0
- package/lib/components/QuantityPicker/index.d.ts +3 -0
- package/lib/components/QuantityPicker/index.d.ts.map +1 -0
- package/lib/components/QuantityPicker/index.js +3 -0
- package/lib/components/ResponsiveDialog/ResponsiveDialog.cjs +196 -0
- package/lib/components/ResponsiveDialog/ResponsiveDialog.d.ts +72 -0
- package/lib/components/ResponsiveDialog/ResponsiveDialog.d.ts.map +1 -0
- package/lib/components/ResponsiveDialog/ResponsiveDialog.js +181 -0
- package/lib/components/ResponsiveDialog/ResponsiveDialog.namespace.cjs +25 -0
- package/lib/components/ResponsiveDialog/ResponsiveDialog.namespace.d.ts +2 -0
- package/lib/components/ResponsiveDialog/ResponsiveDialog.namespace.d.ts.map +1 -0
- package/lib/components/ResponsiveDialog/ResponsiveDialog.namespace.js +20 -0
- package/lib/components/ResponsiveDialog/index.cjs +23 -0
- package/lib/components/ResponsiveDialog/index.d.ts +3 -0
- package/lib/components/ResponsiveDialog/index.d.ts.map +1 -0
- package/lib/components/ResponsiveDialog/index.js +3 -0
- package/lib/components/Select/Select.cjs +191 -0
- package/lib/components/Select/Select.d.ts +89 -0
- package/lib/components/Select/Select.d.ts.map +1 -0
- package/lib/components/Select/Select.js +171 -0
- package/lib/components/Select/Select.namespace.cjs +30 -0
- package/lib/components/Select/Select.namespace.d.ts +2 -0
- package/lib/components/Select/Select.namespace.d.ts.map +1 -0
- package/lib/components/Select/Select.namespace.js +25 -0
- package/lib/components/Select/Select.test.d.ts +2 -0
- package/lib/components/Select/Select.test.d.ts.map +1 -0
- package/lib/components/Select/index.cjs +27 -0
- package/lib/components/Select/index.d.ts +3 -0
- package/lib/components/Select/index.d.ts.map +1 -0
- package/lib/components/Select/index.js +3 -0
- package/lib/components/index.cjs +81 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +9 -1
- package/lib/index.cjs +82 -1
- package/lib/index.js +10 -2
- package/package.json +39 -34
- package/src/components/ContentDialog/ContentDialog.namespace.ts +26 -0
- package/src/components/ContentDialog/ContentDialog.tsx +222 -0
- package/src/components/ContentDialog/index.ts +33 -0
- package/src/components/Dialog/Dialog.tsx +1 -3
- package/src/components/Dialog/index.ts +5 -0
- package/src/components/QuantityPicker/QuantityPicker.namespace.ts +12 -0
- package/src/components/QuantityPicker/QuantityPicker.test.tsx +108 -0
- package/src/components/QuantityPicker/QuantityPicker.tsx +214 -0
- package/src/components/QuantityPicker/index.ts +14 -0
- package/src/components/ResponsiveDialog/ResponsiveDialog.namespace.ts +28 -0
- package/src/components/ResponsiveDialog/ResponsiveDialog.tsx +327 -0
- package/src/components/ResponsiveDialog/index.ts +31 -0
- package/src/components/Select/Select.namespace.ts +38 -0
- package/src/components/Select/Select.test.tsx +451 -0
- package/src/components/Select/Select.tsx +443 -0
- package/src/components/Select/index.ts +40 -0
- package/src/components/index.ts +4 -0
package/lib/index.cjs
CHANGED
|
@@ -26,6 +26,8 @@ const require_ChipTabs = require("./components/ChipTabs/ChipTabs.cjs");
|
|
|
26
26
|
const require_ChipTabs_namespace = require("./components/ChipTabs/ChipTabs.namespace.cjs");
|
|
27
27
|
const require_Columns = require("./components/Columns/Columns.cjs");
|
|
28
28
|
const require_ConsistentWidth = require("./components/ConsistentWidth/ConsistentWidth.cjs");
|
|
29
|
+
const require_ContentDialog = require("./components/ContentDialog/ContentDialog.cjs");
|
|
30
|
+
const require_ContentDialog_namespace = require("./components/ContentDialog/ContentDialog.namespace.cjs");
|
|
29
31
|
const require_ContentPlaceholder = require("./components/ContentPlaceholder/ContentPlaceholder.cjs");
|
|
30
32
|
const require_ContentPlaceholder_namespace = require("./components/ContentPlaceholder/ContentPlaceholder.namespace.cjs");
|
|
31
33
|
const require_ContextualFloatingButton = require("./components/ContextualFloatingButton/ContextualFloatingButton.cjs");
|
|
@@ -95,14 +97,18 @@ const require_ProgressCircle = require("./components/ProgressCircle/ProgressCirc
|
|
|
95
97
|
const require_ProgressCircle_namespace = require("./components/ProgressCircle/ProgressCircle.namespace.cjs");
|
|
96
98
|
const require_PullToRefresh = require("./components/PullToRefresh/PullToRefresh.cjs");
|
|
97
99
|
const require_PullToRefresh_namespace = require("./components/PullToRefresh/PullToRefresh.namespace.cjs");
|
|
100
|
+
const require_QuantityPicker = require("./components/QuantityPicker/QuantityPicker.cjs");
|
|
101
|
+
const require_QuantityPicker_namespace = require("./components/QuantityPicker/QuantityPicker.namespace.cjs");
|
|
98
102
|
const require_RadioGroup = require("./components/RadioGroup/RadioGroup.cjs");
|
|
99
103
|
const require_RadioGroup_namespace = require("./components/RadioGroup/RadioGroup.namespace.cjs");
|
|
100
104
|
const require_RadioGroupField = require("./components/RadioGroupField/RadioGroupField.cjs");
|
|
101
105
|
const require_RadioGroupField_namespace = require("./components/RadioGroupField/RadioGroupField.namespace.cjs");
|
|
102
106
|
const require_ReactionButton = require("./components/ReactionButton/ReactionButton.cjs");
|
|
103
|
-
const require_ResponsivePair = require("./components/ResponsivePair/ResponsivePair.cjs");
|
|
104
107
|
const require_useBreakpoint = require("./hooks/useBreakpoint.cjs");
|
|
105
108
|
const require_useBreakpointValue = require("./hooks/useBreakpointValue.cjs");
|
|
109
|
+
const require_ResponsiveDialog = require("./components/ResponsiveDialog/ResponsiveDialog.cjs");
|
|
110
|
+
const require_ResponsiveDialog_namespace = require("./components/ResponsiveDialog/ResponsiveDialog.namespace.cjs");
|
|
111
|
+
const require_ResponsivePair = require("./components/ResponsivePair/ResponsivePair.cjs");
|
|
106
112
|
const require_SidePanel = require("./components/SidePanel/SidePanel.cjs");
|
|
107
113
|
const require_SidePanel_namespace = require("./components/SidePanel/SidePanel.namespace.cjs");
|
|
108
114
|
const require_ResponsiveSidePanel = require("./components/ResponsiveSidePanel/ResponsiveSidePanel.cjs");
|
|
@@ -110,6 +116,8 @@ const require_ResponsiveSidePanel_namespace = require("./components/ResponsiveSi
|
|
|
110
116
|
const require_ScrollFog = require("./components/ScrollFog/ScrollFog.cjs");
|
|
111
117
|
const require_SegmentedControl = require("./components/SegmentedControl/SegmentedControl.cjs");
|
|
112
118
|
const require_SegmentedControl_namespace = require("./components/SegmentedControl/SegmentedControl.namespace.cjs");
|
|
119
|
+
const require_Select = require("./components/Select/Select.cjs");
|
|
120
|
+
const require_Select_namespace = require("./components/Select/Select.namespace.cjs");
|
|
113
121
|
const require_CheckSelectBox = require("./components/SelectBox/CheckSelectBox.cjs");
|
|
114
122
|
const require_RadioSelectBox = require("./components/SelectBox/RadioSelectBox.cjs");
|
|
115
123
|
const require_CheckSelectBox_namespace = require("./components/SelectBox/CheckSelectBox.namespace.cjs");
|
|
@@ -332,6 +340,24 @@ exports.ChipTabsTrigger = require_ChipTabs.ChipTabsTrigger;
|
|
|
332
340
|
exports.Column = require_Columns.Column;
|
|
333
341
|
exports.Columns = require_Columns.Columns;
|
|
334
342
|
exports.ConsistentWidth = require_ConsistentWidth.ConsistentWidth;
|
|
343
|
+
Object.defineProperty(exports, "ContentDialog", {
|
|
344
|
+
enumerable: true,
|
|
345
|
+
get: function() {
|
|
346
|
+
return require_ContentDialog_namespace.ContentDialog_namespace_exports;
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
exports.ContentDialogAction = require_ContentDialog.ContentDialogAction;
|
|
350
|
+
exports.ContentDialogBackdrop = require_ContentDialog.ContentDialogBackdrop;
|
|
351
|
+
exports.ContentDialogBody = require_ContentDialog.ContentDialogBody;
|
|
352
|
+
exports.ContentDialogCloseButton = require_ContentDialog.ContentDialogCloseButton;
|
|
353
|
+
exports.ContentDialogContent = require_ContentDialog.ContentDialogContent;
|
|
354
|
+
exports.ContentDialogDescription = require_ContentDialog.ContentDialogDescription;
|
|
355
|
+
exports.ContentDialogFooter = require_ContentDialog.ContentDialogFooter;
|
|
356
|
+
exports.ContentDialogHeader = require_ContentDialog.ContentDialogHeader;
|
|
357
|
+
exports.ContentDialogPositioner = require_ContentDialog.ContentDialogPositioner;
|
|
358
|
+
exports.ContentDialogRoot = require_ContentDialog.ContentDialogRoot;
|
|
359
|
+
exports.ContentDialogTitle = require_ContentDialog.ContentDialogTitle;
|
|
360
|
+
exports.ContentDialogTrigger = require_ContentDialog.ContentDialogTrigger;
|
|
335
361
|
Object.defineProperty(exports, "ContentPlaceholder", {
|
|
336
362
|
enumerable: true,
|
|
337
363
|
get: function() {
|
|
@@ -642,6 +668,17 @@ Object.defineProperty(exports, "PullToRefresh", {
|
|
|
642
668
|
exports.PullToRefreshContent = require_PullToRefresh.PullToRefreshContent;
|
|
643
669
|
exports.PullToRefreshIndicator = require_PullToRefresh.PullToRefreshIndicator;
|
|
644
670
|
exports.PullToRefreshRoot = require_PullToRefresh.PullToRefreshRoot;
|
|
671
|
+
Object.defineProperty(exports, "QuantityPicker", {
|
|
672
|
+
enumerable: true,
|
|
673
|
+
get: function() {
|
|
674
|
+
return require_QuantityPicker_namespace.QuantityPicker_namespace_exports;
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
exports.QuantityPickerDecrementButton = require_QuantityPicker.QuantityPickerDecrementButton;
|
|
678
|
+
exports.QuantityPickerHiddenInput = require_QuantityPicker.QuantityPickerHiddenInput;
|
|
679
|
+
exports.QuantityPickerIncrementButton = require_QuantityPicker.QuantityPickerIncrementButton;
|
|
680
|
+
exports.QuantityPickerRoot = require_QuantityPicker.QuantityPickerRoot;
|
|
681
|
+
exports.QuantityPickerValueDisplay = require_QuantityPicker.QuantityPickerValueDisplay;
|
|
645
682
|
Object.defineProperty(exports, "RadioGroup", {
|
|
646
683
|
enumerable: true,
|
|
647
684
|
get: function() {
|
|
@@ -684,6 +721,25 @@ exports.RadioSelectBoxItem = require_RadioSelectBox.RadioSelectBoxItem;
|
|
|
684
721
|
exports.RadioSelectBoxLabel = require_RadioSelectBox.RadioSelectBoxLabel;
|
|
685
722
|
exports.RadioSelectBoxTrigger = require_RadioSelectBox.RadioSelectBoxTrigger;
|
|
686
723
|
exports.ReactionButton = require_ReactionButton.ReactionButton;
|
|
724
|
+
Object.defineProperty(exports, "ResponsiveDialog", {
|
|
725
|
+
enumerable: true,
|
|
726
|
+
get: function() {
|
|
727
|
+
return require_ResponsiveDialog_namespace.ResponsiveDialog_namespace_exports;
|
|
728
|
+
}
|
|
729
|
+
});
|
|
730
|
+
exports.ResponsiveDialogAction = require_ResponsiveDialog.ResponsiveDialogAction;
|
|
731
|
+
exports.ResponsiveDialogBackdrop = require_ResponsiveDialog.ResponsiveDialogBackdrop;
|
|
732
|
+
exports.ResponsiveDialogBody = require_ResponsiveDialog.ResponsiveDialogBody;
|
|
733
|
+
exports.ResponsiveDialogCloseButton = require_ResponsiveDialog.ResponsiveDialogCloseButton;
|
|
734
|
+
exports.ResponsiveDialogContent = require_ResponsiveDialog.ResponsiveDialogContent;
|
|
735
|
+
exports.ResponsiveDialogDescription = require_ResponsiveDialog.ResponsiveDialogDescription;
|
|
736
|
+
exports.ResponsiveDialogFooter = require_ResponsiveDialog.ResponsiveDialogFooter;
|
|
737
|
+
exports.ResponsiveDialogHandle = require_ResponsiveDialog.ResponsiveDialogHandle;
|
|
738
|
+
exports.ResponsiveDialogHeader = require_ResponsiveDialog.ResponsiveDialogHeader;
|
|
739
|
+
exports.ResponsiveDialogPositioner = require_ResponsiveDialog.ResponsiveDialogPositioner;
|
|
740
|
+
exports.ResponsiveDialogRoot = require_ResponsiveDialog.ResponsiveDialogRoot;
|
|
741
|
+
exports.ResponsiveDialogTitle = require_ResponsiveDialog.ResponsiveDialogTitle;
|
|
742
|
+
exports.ResponsiveDialogTrigger = require_ResponsiveDialog.ResponsiveDialogTrigger;
|
|
687
743
|
exports.ResponsivePair = require_ResponsivePair.ResponsivePair;
|
|
688
744
|
Object.defineProperty(exports, "ResponsiveSidePanel", {
|
|
689
745
|
enumerable: true,
|
|
@@ -714,6 +770,30 @@ exports.SegmentedControlIndicator = require_SegmentedControl.SegmentedControlInd
|
|
|
714
770
|
exports.SegmentedControlItem = require_SegmentedControl.SegmentedControlItem;
|
|
715
771
|
exports.SegmentedControlItemHiddenInput = require_SegmentedControl.SegmentedControlItemHiddenInput;
|
|
716
772
|
exports.SegmentedControlRoot = require_SegmentedControl.SegmentedControlRoot;
|
|
773
|
+
Object.defineProperty(exports, "Select", {
|
|
774
|
+
enumerable: true,
|
|
775
|
+
get: function() {
|
|
776
|
+
return require_Select_namespace.Select_namespace_exports;
|
|
777
|
+
}
|
|
778
|
+
});
|
|
779
|
+
exports.SelectContent = require_Select.SelectContent;
|
|
780
|
+
exports.SelectGroup = require_Select.SelectGroup;
|
|
781
|
+
exports.SelectGroupLabel = require_Select.SelectGroupLabel;
|
|
782
|
+
exports.SelectHiddenSelect = require_Select.SelectHiddenSelect;
|
|
783
|
+
exports.SelectItem = require_Select.SelectItem;
|
|
784
|
+
exports.SelectItemBody = require_Select.SelectItemBody;
|
|
785
|
+
exports.SelectItemDescription = require_Select.SelectItemDescription;
|
|
786
|
+
exports.SelectItemIndicator = require_Select.SelectItemIndicator;
|
|
787
|
+
exports.SelectItemLabel = require_Select.SelectItemLabel;
|
|
788
|
+
exports.SelectItemPrefixIcon = require_Select.SelectItemPrefixIcon;
|
|
789
|
+
exports.SelectPlaceholder = require_Select.SelectPlaceholder;
|
|
790
|
+
exports.SelectPositioner = require_Select.SelectPositioner;
|
|
791
|
+
exports.SelectPrefixIcon = require_Select.SelectPrefixIcon;
|
|
792
|
+
exports.SelectRoot = require_Select.SelectRoot;
|
|
793
|
+
exports.SelectScrollArea = require_Select.SelectScrollArea;
|
|
794
|
+
exports.SelectSuffixIcon = require_Select.SelectSuffixIcon;
|
|
795
|
+
exports.SelectTrigger = require_Select.SelectTrigger;
|
|
796
|
+
exports.SelectValue = require_Select.SelectValue;
|
|
717
797
|
Object.defineProperty(exports, "SideNavigation", {
|
|
718
798
|
enumerable: true,
|
|
719
799
|
get: function() {
|
|
@@ -877,6 +957,7 @@ Object.defineProperty(exports, "tabsCarouselPreventDrag", {
|
|
|
877
957
|
});
|
|
878
958
|
exports.useBreakpoint = require_useBreakpoint.useBreakpoint;
|
|
879
959
|
exports.useBreakpointValue = require_useBreakpointValue.useBreakpointValue;
|
|
960
|
+
exports.useResponsiveDialogContext = require_ResponsiveDialog.useResponsiveDialogContext;
|
|
880
961
|
exports.useResponsiveSidePanelContext = require_ResponsiveSidePanel.useResponsiveSidePanelContext;
|
|
881
962
|
exports.useSnackbarAdapter = require_useSnackbarAdapter.useSnackbarAdapter;
|
|
882
963
|
Object.defineProperty(exports, "useSnackbarContext", {
|
package/lib/index.js
CHANGED
|
@@ -24,6 +24,8 @@ import { ChipTabsCarousel, ChipTabsCarouselCamera, ChipTabsContent, ChipTabsList
|
|
|
24
24
|
import { ChipTabs_namespace_exports } from "./components/ChipTabs/ChipTabs.namespace.js";
|
|
25
25
|
import { Column, Columns } from "./components/Columns/Columns.js";
|
|
26
26
|
import { ConsistentWidth } from "./components/ConsistentWidth/ConsistentWidth.js";
|
|
27
|
+
import { ContentDialogAction, ContentDialogBackdrop, ContentDialogBody, ContentDialogCloseButton, ContentDialogContent, ContentDialogDescription, ContentDialogFooter, ContentDialogHeader, ContentDialogPositioner, ContentDialogRoot, ContentDialogTitle, ContentDialogTrigger } from "./components/ContentDialog/ContentDialog.js";
|
|
28
|
+
import { ContentDialog_namespace_exports } from "./components/ContentDialog/ContentDialog.namespace.js";
|
|
27
29
|
import { ContentPlaceholderAsset, ContentPlaceholderRoot } from "./components/ContentPlaceholder/ContentPlaceholder.js";
|
|
28
30
|
import { ContentPlaceholder_namespace_exports } from "./components/ContentPlaceholder/ContentPlaceholder.namespace.js";
|
|
29
31
|
import { ContextualFloatingButton } from "./components/ContextualFloatingButton/ContextualFloatingButton.js";
|
|
@@ -95,14 +97,18 @@ import { ProgressCircle_namespace_exports } from "./components/ProgressCircle/Pr
|
|
|
95
97
|
import { PullToRefreshContent, PullToRefreshIndicator, PullToRefreshRoot } from "./components/PullToRefresh/PullToRefresh.js";
|
|
96
98
|
import { PullToRefresh_namespace_exports } from "./components/PullToRefresh/PullToRefresh.namespace.js";
|
|
97
99
|
import { pullToRefreshPreventPull } from "./components/PullToRefresh/index.js";
|
|
100
|
+
import { QuantityPickerDecrementButton, QuantityPickerHiddenInput, QuantityPickerIncrementButton, QuantityPickerRoot, QuantityPickerValueDisplay } from "./components/QuantityPicker/QuantityPicker.js";
|
|
101
|
+
import { QuantityPicker_namespace_exports } from "./components/QuantityPicker/QuantityPicker.namespace.js";
|
|
98
102
|
import { RadioGroupItem, RadioGroupItemControl, RadioGroupItemHiddenInput, RadioGroupItemIndicator, RadioGroupItemLabel, RadioGroupRoot } from "./components/RadioGroup/RadioGroup.js";
|
|
99
103
|
import { RadioGroup_namespace_exports } from "./components/RadioGroup/RadioGroup.namespace.js";
|
|
100
104
|
import { RadioGroupFieldDescription, RadioGroupFieldErrorMessage, RadioGroupFieldFooter, RadioGroupFieldHeader, RadioGroupFieldIndicatorText, RadioGroupFieldLabel, RadioGroupFieldRequiredIndicator, RadioGroupFieldRoot } from "./components/RadioGroupField/RadioGroupField.js";
|
|
101
105
|
import { RadioGroupField_namespace_exports } from "./components/RadioGroupField/RadioGroupField.namespace.js";
|
|
102
106
|
import { ReactionButton } from "./components/ReactionButton/ReactionButton.js";
|
|
103
|
-
import { ResponsivePair } from "./components/ResponsivePair/ResponsivePair.js";
|
|
104
107
|
import { useBreakpoint } from "./hooks/useBreakpoint.js";
|
|
105
108
|
import { useBreakpointValue } from "./hooks/useBreakpointValue.js";
|
|
109
|
+
import { ResponsiveDialogAction, ResponsiveDialogBackdrop, ResponsiveDialogBody, ResponsiveDialogCloseButton, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogFooter, ResponsiveDialogHandle, ResponsiveDialogHeader, ResponsiveDialogPositioner, ResponsiveDialogRoot, ResponsiveDialogTitle, ResponsiveDialogTrigger, useResponsiveDialogContext } from "./components/ResponsiveDialog/ResponsiveDialog.js";
|
|
110
|
+
import { ResponsiveDialog_namespace_exports } from "./components/ResponsiveDialog/ResponsiveDialog.namespace.js";
|
|
111
|
+
import { ResponsivePair } from "./components/ResponsivePair/ResponsivePair.js";
|
|
106
112
|
import { SidePanelBackdrop, SidePanelBody, SidePanelCloseButton, SidePanelContent, SidePanelDescription, SidePanelFooter, SidePanelHeader, SidePanelPositioner, SidePanelRoot, SidePanelTitle, SidePanelTrigger } from "./components/SidePanel/SidePanel.js";
|
|
107
113
|
import { SidePanel_namespace_exports } from "./components/SidePanel/SidePanel.namespace.js";
|
|
108
114
|
import { ResponsiveSidePanelBackdrop, ResponsiveSidePanelBody, ResponsiveSidePanelCloseButton, ResponsiveSidePanelContent, ResponsiveSidePanelDescription, ResponsiveSidePanelFooter, ResponsiveSidePanelHandle, ResponsiveSidePanelHeader, ResponsiveSidePanelPositioner, ResponsiveSidePanelRoot, ResponsiveSidePanelTitle, ResponsiveSidePanelTrigger, useResponsiveSidePanelContext } from "./components/ResponsiveSidePanel/ResponsiveSidePanel.js";
|
|
@@ -110,6 +116,8 @@ import { ResponsiveSidePanel_namespace_exports } from "./components/ResponsiveSi
|
|
|
110
116
|
import { ScrollFog } from "./components/ScrollFog/ScrollFog.js";
|
|
111
117
|
import { SegmentedControlIndicator, SegmentedControlItem, SegmentedControlItemHiddenInput, SegmentedControlRoot } from "./components/SegmentedControl/SegmentedControl.js";
|
|
112
118
|
import { SegmentedControl_namespace_exports } from "./components/SegmentedControl/SegmentedControl.namespace.js";
|
|
119
|
+
import { SelectContent, SelectGroup, SelectGroupLabel, SelectHiddenSelect, SelectItem, SelectItemBody, SelectItemDescription, SelectItemIndicator, SelectItemLabel, SelectItemPrefixIcon, SelectPlaceholder, SelectPositioner, SelectPrefixIcon, SelectRoot, SelectScrollArea, SelectSuffixIcon, SelectTrigger, SelectValue } from "./components/Select/Select.js";
|
|
120
|
+
import { Select_namespace_exports } from "./components/Select/Select.namespace.js";
|
|
113
121
|
import { CheckSelectBoxBody, CheckSelectBoxCheckmarkControl, CheckSelectBoxCheckmarkIcon, CheckSelectBoxContent, CheckSelectBoxDescription, CheckSelectBoxFooter, CheckSelectBoxGroup, CheckSelectBoxHiddenInput, CheckSelectBoxLabel, CheckSelectBoxRoot, CheckSelectBoxTrigger } from "./components/SelectBox/CheckSelectBox.js";
|
|
114
122
|
import { RadioSelectBoxBody, RadioSelectBoxContent, RadioSelectBoxDescription, RadioSelectBoxFooter, RadioSelectBoxGroup, RadioSelectBoxHiddenInput, RadioSelectBoxItem, RadioSelectBoxLabel, RadioSelectBoxTrigger } from "./components/SelectBox/RadioSelectBox.js";
|
|
115
123
|
import { CheckSelectBox_namespace_exports } from "./components/SelectBox/CheckSelectBox.namespace.js";
|
|
@@ -139,4 +147,4 @@ import { TextField_namespace_exports } from "./components/TextField/TextField.na
|
|
|
139
147
|
import { ToggleButton } from "./components/ToggleButton/ToggleButton.js";
|
|
140
148
|
import { VisuallyHidden } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
141
149
|
import { BreakpointProvider } from "./providers/BreakpointProvider.js";
|
|
142
|
-
export { Accordion_namespace_exports as Accordion, AccordionBody, AccordionContent, AccordionDescription, AccordionHeader, AccordionItem, AccordionPrefix, AccordionRoot, AccordionSuffixIcon, AccordionTitle, AccordionTrigger, ActionButton, ActionChip, ActionSheet_namespace_exports as ActionSheet, ActionSheetBackdrop, ActionSheetCloseButton, ActionSheetContent, ActionSheetDescription, ActionSheetHeader, ActionSheetItem, ActionSheetList, ActionSheetPositioner, ActionSheetRoot, ActionSheetTitle, ActionSheetTrigger, Article, AspectRatio, AttachmentDisplay_namespace_exports as AttachmentDisplay, AttachmentDisplayContainer, AttachmentDisplayContext, AttachmentDisplayControl, AttachmentDisplayDescription, AttachmentDisplayErrorMessage, AttachmentDisplayFooter, AttachmentDisplayHeader, AttachmentDisplayIndicatorText, AttachmentDisplayItem, AttachmentDisplayItemActionButton, AttachmentDisplayItemBackdrop, AttachmentDisplayItemBadge, AttachmentDisplayItemGroup, AttachmentDisplayItemImage, AttachmentDisplayItemMetadata, AttachmentDisplayItemRemoveButton, AttachmentDisplayItemThumbnail, AttachmentDisplayLabel, AttachmentDisplayRequiredIndicator, AttachmentDisplayRoot, AttachmentDisplayTrigger, AttachmentDisplayTriggerIcon, AttachmentDisplayTriggerItemCount, AttachmentInput_namespace_exports as AttachmentInput, AttachmentInputContainer, AttachmentInputContext, AttachmentInputDropzone, AttachmentInputDropzoneLabel, AttachmentInputHiddenInput, AttachmentInputItem, AttachmentInputItemActionButton, AttachmentInputItemBackdrop, AttachmentInputItemBadge, AttachmentInputItemGroup, AttachmentInputItemImage, AttachmentInputItemMetadata, AttachmentInputItemName, AttachmentInputItemRemoveButton, AttachmentInputItemSize, AttachmentInputItemThumbnail, AttachmentInputRoot, AttachmentInputTrigger, AttachmentInputTriggerIcon, AttachmentInputTriggerItemCount, Avatar_namespace_exports as Avatar, AvatarBadge, AvatarFallback, AvatarImage, AvatarRoot, AvatarStack, Badge, BottomSheet_namespace_exports as BottomSheet, BottomSheetBackdrop, BottomSheetBody, BottomSheetCloseButton, BottomSheetContent, BottomSheetDescription, BottomSheetFooter, BottomSheetHeader, BottomSheetPositioner, BottomSheetRoot, BottomSheetTitle, BottomSheetTrigger, Box, BreakpointProvider, Callout_namespace_exports as Callout, CalloutCloseButton, CalloutContent, CalloutDescription, CalloutLink, CalloutRoot, CalloutTitle, Celsius, CheckSelectBox_namespace_exports as CheckSelectBox, CheckSelectBoxBody, CheckSelectBoxCheckmarkControl, CheckSelectBoxCheckmarkIcon, CheckSelectBoxContent, CheckSelectBoxDescription, CheckSelectBoxFooter, CheckSelectBoxGroup, CheckSelectBoxHiddenInput, CheckSelectBoxLabel, CheckSelectBoxRoot, CheckSelectBoxTrigger, Checkbox_namespace_exports as Checkbox, CheckboxControl, CheckboxGroup, CheckboxHiddenInput, CheckboxIndicator, CheckboxLabel, CheckboxRoot, Chip_namespace_exports as Chip, ChipLabel, ChipPrefixAvatar, ChipPrefixIcon, ChipRoot, ChipSuffixIcon, ChipTabs_namespace_exports as ChipTabs, ChipTabsCarousel, ChipTabsCarouselCamera, ChipTabsContent, ChipTabsList, ChipTabsRoot, ChipTabsTrigger, Column, Columns, ConsistentWidth, ContentPlaceholder_namespace_exports as ContentPlaceholder, ContentPlaceholderAsset, ContentPlaceholderRoot, ContextualFloatingButton, ControlChip, Count, Dialog_namespace_exports as Dialog, DialogAction, DialogBackdrop, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPositioner, DialogRoot, DialogTitle, DialogTrigger, Divider, ExtendedActionSheet_namespace_exports as ExtendedActionSheet, ExtendedActionSheetBackdrop, ExtendedActionSheetCloseButton, ExtendedActionSheetContent, ExtendedActionSheetFooter, ExtendedActionSheetGroup, ExtendedActionSheetHeader, ExtendedActionSheetItem, ExtendedActionSheetList, ExtendedActionSheetPositioner, ExtendedActionSheetRoot, ExtendedActionSheetTitle, ExtendedActionSheetTrigger, ExtendedFab, Fab, Field_namespace_exports as Field, FieldButton_namespace_exports as FieldButton, FieldButtonButton, FieldButtonClearButton, FieldButtonControl, FieldButtonDescription, FieldButtonErrorMessage, FieldButtonFooter, FieldButtonHeader, FieldButtonHiddenInput, FieldButtonIndicatorText, FieldButtonLabel, FieldButtonPlaceholder, FieldButtonPrefixIcon, FieldButtonPrefixText, FieldButtonRequiredIndicator, FieldButtonRoot, FieldButtonSuffixIcon, FieldButtonSuffixText, FieldButtonValue, FieldCharacterCount, FieldDescription, FieldErrorMessage, FieldFooter, FieldHeader, FieldIndicatorText, FieldLabel, FieldRequiredIndicator, FieldRoot, Fieldset_namespace_exports as Fieldset, FieldsetDescription, FieldsetErrorMessage, FieldsetFooter, FieldsetHeader, FieldsetIndicatorText, FieldsetLabel, FieldsetRequiredIndicator, FieldsetRoot, Flex, Float, FloatingActionButton_namespace_exports as FloatingActionButton, FloatingActionButtonIcon, FloatingActionButtonLabel, FloatingActionButtonRoot, Footer_namespace_exports as Footer, FooterLinkText, Grid, GridItem, HStack, HelpBubble_namespace_exports as HelpBubble, HelpBubbleAnchor, HelpBubbleArrow, HelpBubbleArrowTip, HelpBubbleBody, HelpBubbleCloseButton, HelpBubbleContent, HelpBubbleDescription, HelpBubblePositioner, HelpBubblePositionerPortal, HelpBubbleRoot, HelpBubbleTitle, HelpBubbleTooltip_namespace_exports as HelpBubbleTooltip, HelpBubbleTooltipArrow, HelpBubbleTooltipArrowTip, HelpBubbleTooltipBody, HelpBubbleTooltipContent, HelpBubbleTooltipDelayGroup, HelpBubbleTooltipDescription, HelpBubbleTooltipPositioner, HelpBubbleTooltipPositionerPortal, HelpBubbleTooltipRoot, HelpBubbleTooltipTitle, HelpBubbleTooltipTrigger, HelpBubbleTrigger, Icon, IdentityPlaceholder_namespace_exports as IdentityPlaceholder, IdentityPlaceholderImage, IdentityPlaceholderRoot, ImageFrame, ImageFrameBadge, ImageFrameFloater, ImageFrameIcon, ImageFrameIndicator, ImageFrameReactionButton, Inline, InlineBanner_namespace_exports as InlineBanner, InlineBannerCloseButton, InlineBannerContent, InlineBannerDescription, InlineBannerLink, InlineBannerRoot, InlineBannerTitle, Layout_namespace_exports as Layout, LayoutContent, LayoutRoot, LinkContent, List_namespace_exports as List, ListContent, ListDetail, ListHeader, ListItem, ListPrefix, ListRoot, ListSuffix, ListTitle, LoadingIndicator, MannerTemp, MannerTempBadge, MannerTempEmote, Menu_namespace_exports as Menu, MenuAnchor, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuItemBody, MenuItemDescription, MenuItemLabel, MenuPositioner, MenuRoot, MenuScrollArea, MenuSheet_namespace_exports as MenuSheet, MenuSheetBackdrop, MenuSheetCloseButton, MenuSheetContent, MenuSheetDescription, MenuSheetFooter, MenuSheetGroup, MenuSheetHeader, MenuSheetItem, MenuSheetItemContent, MenuSheetItemDescription, MenuSheetItemLabel, MenuSheetList, MenuSheetPositioner, MenuSheetRoot, MenuSheetTitle, MenuSheetTrigger, MenuTrigger, NavigationMenu_namespace_exports as NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuItemBody, NavigationMenuItemDescription, NavigationMenuItemLabel, NavigationMenuPositioner, NavigationMenuProvider, NavigationMenuRoot, NavigationMenuScrollArea, NavigationMenuTrigger, NotificationBadge, NotificationBadgePositioner, PageBanner_namespace_exports as PageBanner, PageBannerBody, PageBannerButton, PageBannerCloseButton, PageBannerContent, PageBannerDescription, PageBannerRoot, PageBannerTitle, Portal, PrefixIcon, ProgressCircle_namespace_exports as ProgressCircle, ProgressCircleRange, ProgressCircleRoot, ProgressCircleTrack, PullToRefresh_namespace_exports as PullToRefresh, PullToRefreshContent, PullToRefreshIndicator, PullToRefreshRoot, RadioGroup_namespace_exports as RadioGroup, RadioGroupField_namespace_exports as RadioGroupField, RadioGroupFieldDescription, RadioGroupFieldErrorMessage, RadioGroupFieldFooter, RadioGroupFieldHeader, RadioGroupFieldIndicatorText, RadioGroupFieldLabel, RadioGroupFieldRequiredIndicator, RadioGroupFieldRoot, RadioGroupItem, RadioGroupItemControl, RadioGroupItemHiddenInput, RadioGroupItemIndicator, RadioGroupItemLabel, RadioGroupRoot, RadioSelectBox_namespace_exports as RadioSelectBox, RadioSelectBoxBody, RadioSelectBoxContent, RadioSelectBoxDescription, RadioSelectBoxFooter, RadioSelectBoxGroup, RadioSelectBoxHiddenInput, RadioSelectBoxItem, RadioSelectBoxLabel, RadioSelectBoxTrigger, ReactionButton, ResponsivePair, ResponsiveSidePanel_namespace_exports as ResponsiveSidePanel, ResponsiveSidePanelBackdrop, ResponsiveSidePanelBody, ResponsiveSidePanelCloseButton, ResponsiveSidePanelContent, ResponsiveSidePanelDescription, ResponsiveSidePanelFooter, ResponsiveSidePanelHandle, ResponsiveSidePanelHeader, ResponsiveSidePanelPositioner, ResponsiveSidePanelRoot, ResponsiveSidePanelTitle, ResponsiveSidePanelTrigger, ScrollFog, SegmentedControl_namespace_exports as SegmentedControl, SegmentedControlIndicator, SegmentedControlItem, SegmentedControlItemHiddenInput, SegmentedControlRoot, SideNavigation_namespace_exports as SideNavigation, SideNavigationContent, SideNavigationFooter, SideNavigationGroup, SideNavigationGroupLabel, SideNavigationHeader, SideNavigationInset, SideNavigationItem, SideNavigationItemCollapsibleContent, SideNavigationItemCollapsibleRoot, SideNavigationItemCollapsibleTrigger, SideNavigationItemLabel, SideNavigationItemPrefixIcon, SideNavigationItemSuffixIcon, SideNavigationProvider, SideNavigationRoot, SideNavigationTrigger, SidePanel_namespace_exports as SidePanel, SidePanelBackdrop, SidePanelBody, SidePanelCloseButton, SidePanelContent, SidePanelDescription, SidePanelFooter, SidePanelHeader, SidePanelPositioner, SidePanelRoot, SidePanelTitle, SidePanelTrigger, Skeleton, Slider_namespace_exports as Slider, SliderControl, SliderHiddenInput, SliderMarker, SliderMarkers, SliderRange, SliderRoot, SliderThumb, SliderTick, SliderTrack, SliderValueIndicatorArrow, SliderValueIndicatorArrowTip, SliderValueIndicatorLabel, SliderValueIndicatorRoot, Snackbar_namespace_exports as Snackbar, SnackbarActionButton, SnackbarAvoidOverlap, SnackbarHiddenCloseButton, SnackbarMessage, SnackbarPrefixIcon, SnackbarRegion, SnackbarRenderer, SnackbarRoot, SnackbarRootProvider, Stack, SuffixIcon, SwipeableMenuSheet_namespace_exports as SwipeableMenuSheet, SwipeableMenuSheetBackdrop, SwipeableMenuSheetCloseButton, SwipeableMenuSheetContent, SwipeableMenuSheetDescription, SwipeableMenuSheetFooter, SwipeableMenuSheetGroup, SwipeableMenuSheetHandle, SwipeableMenuSheetHeader, SwipeableMenuSheetItem, SwipeableMenuSheetItemContent, SwipeableMenuSheetItemDescription, SwipeableMenuSheetItemLabel, SwipeableMenuSheetList, SwipeableMenuSheetPositioner, SwipeableMenuSheetRoot, SwipeableMenuSheetTitle, SwipeableMenuSheetTrigger, Switch_namespace_exports as Switch, SwitchControl, SwitchHiddenInput, SwitchLabel, SwitchRoot, SwitchThumb, Tabs_namespace_exports as Tabs, TabsCarousel, TabsCarouselCamera, TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger, TagGroup_namespace_exports as TagGroup, TagGroupItem, TagGroupItemLabel, TagGroupRoot, Text, TextField_namespace_exports as TextField, TextFieldInput, TextFieldPrefixIcon, TextFieldPrefixText, TextFieldRoot, TextFieldSuffixIcon, TextFieldSuffixText, TextFieldTextarea, ToggleButton, VStack, VisuallyHidden, pullToRefreshPreventPull, tabsCarouselPreventDrag, useBreakpoint, useBreakpointValue, useResponsiveSidePanelContext, useSnackbarAdapter, useSnackbarContext, useTextFieldWithGraphemes };
|
|
150
|
+
export { Accordion_namespace_exports as Accordion, AccordionBody, AccordionContent, AccordionDescription, AccordionHeader, AccordionItem, AccordionPrefix, AccordionRoot, AccordionSuffixIcon, AccordionTitle, AccordionTrigger, ActionButton, ActionChip, ActionSheet_namespace_exports as ActionSheet, ActionSheetBackdrop, ActionSheetCloseButton, ActionSheetContent, ActionSheetDescription, ActionSheetHeader, ActionSheetItem, ActionSheetList, ActionSheetPositioner, ActionSheetRoot, ActionSheetTitle, ActionSheetTrigger, Article, AspectRatio, AttachmentDisplay_namespace_exports as AttachmentDisplay, AttachmentDisplayContainer, AttachmentDisplayContext, AttachmentDisplayControl, AttachmentDisplayDescription, AttachmentDisplayErrorMessage, AttachmentDisplayFooter, AttachmentDisplayHeader, AttachmentDisplayIndicatorText, AttachmentDisplayItem, AttachmentDisplayItemActionButton, AttachmentDisplayItemBackdrop, AttachmentDisplayItemBadge, AttachmentDisplayItemGroup, AttachmentDisplayItemImage, AttachmentDisplayItemMetadata, AttachmentDisplayItemRemoveButton, AttachmentDisplayItemThumbnail, AttachmentDisplayLabel, AttachmentDisplayRequiredIndicator, AttachmentDisplayRoot, AttachmentDisplayTrigger, AttachmentDisplayTriggerIcon, AttachmentDisplayTriggerItemCount, AttachmentInput_namespace_exports as AttachmentInput, AttachmentInputContainer, AttachmentInputContext, AttachmentInputDropzone, AttachmentInputDropzoneLabel, AttachmentInputHiddenInput, AttachmentInputItem, AttachmentInputItemActionButton, AttachmentInputItemBackdrop, AttachmentInputItemBadge, AttachmentInputItemGroup, AttachmentInputItemImage, AttachmentInputItemMetadata, AttachmentInputItemName, AttachmentInputItemRemoveButton, AttachmentInputItemSize, AttachmentInputItemThumbnail, AttachmentInputRoot, AttachmentInputTrigger, AttachmentInputTriggerIcon, AttachmentInputTriggerItemCount, Avatar_namespace_exports as Avatar, AvatarBadge, AvatarFallback, AvatarImage, AvatarRoot, AvatarStack, Badge, BottomSheet_namespace_exports as BottomSheet, BottomSheetBackdrop, BottomSheetBody, BottomSheetCloseButton, BottomSheetContent, BottomSheetDescription, BottomSheetFooter, BottomSheetHeader, BottomSheetPositioner, BottomSheetRoot, BottomSheetTitle, BottomSheetTrigger, Box, BreakpointProvider, Callout_namespace_exports as Callout, CalloutCloseButton, CalloutContent, CalloutDescription, CalloutLink, CalloutRoot, CalloutTitle, Celsius, CheckSelectBox_namespace_exports as CheckSelectBox, CheckSelectBoxBody, CheckSelectBoxCheckmarkControl, CheckSelectBoxCheckmarkIcon, CheckSelectBoxContent, CheckSelectBoxDescription, CheckSelectBoxFooter, CheckSelectBoxGroup, CheckSelectBoxHiddenInput, CheckSelectBoxLabel, CheckSelectBoxRoot, CheckSelectBoxTrigger, Checkbox_namespace_exports as Checkbox, CheckboxControl, CheckboxGroup, CheckboxHiddenInput, CheckboxIndicator, CheckboxLabel, CheckboxRoot, Chip_namespace_exports as Chip, ChipLabel, ChipPrefixAvatar, ChipPrefixIcon, ChipRoot, ChipSuffixIcon, ChipTabs_namespace_exports as ChipTabs, ChipTabsCarousel, ChipTabsCarouselCamera, ChipTabsContent, ChipTabsList, ChipTabsRoot, ChipTabsTrigger, Column, Columns, ConsistentWidth, ContentDialog_namespace_exports as ContentDialog, ContentDialogAction, ContentDialogBackdrop, ContentDialogBody, ContentDialogCloseButton, ContentDialogContent, ContentDialogDescription, ContentDialogFooter, ContentDialogHeader, ContentDialogPositioner, ContentDialogRoot, ContentDialogTitle, ContentDialogTrigger, ContentPlaceholder_namespace_exports as ContentPlaceholder, ContentPlaceholderAsset, ContentPlaceholderRoot, ContextualFloatingButton, ControlChip, Count, Dialog_namespace_exports as Dialog, DialogAction, DialogBackdrop, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPositioner, DialogRoot, DialogTitle, DialogTrigger, Divider, ExtendedActionSheet_namespace_exports as ExtendedActionSheet, ExtendedActionSheetBackdrop, ExtendedActionSheetCloseButton, ExtendedActionSheetContent, ExtendedActionSheetFooter, ExtendedActionSheetGroup, ExtendedActionSheetHeader, ExtendedActionSheetItem, ExtendedActionSheetList, ExtendedActionSheetPositioner, ExtendedActionSheetRoot, ExtendedActionSheetTitle, ExtendedActionSheetTrigger, ExtendedFab, Fab, Field_namespace_exports as Field, FieldButton_namespace_exports as FieldButton, FieldButtonButton, FieldButtonClearButton, FieldButtonControl, FieldButtonDescription, FieldButtonErrorMessage, FieldButtonFooter, FieldButtonHeader, FieldButtonHiddenInput, FieldButtonIndicatorText, FieldButtonLabel, FieldButtonPlaceholder, FieldButtonPrefixIcon, FieldButtonPrefixText, FieldButtonRequiredIndicator, FieldButtonRoot, FieldButtonSuffixIcon, FieldButtonSuffixText, FieldButtonValue, FieldCharacterCount, FieldDescription, FieldErrorMessage, FieldFooter, FieldHeader, FieldIndicatorText, FieldLabel, FieldRequiredIndicator, FieldRoot, Fieldset_namespace_exports as Fieldset, FieldsetDescription, FieldsetErrorMessage, FieldsetFooter, FieldsetHeader, FieldsetIndicatorText, FieldsetLabel, FieldsetRequiredIndicator, FieldsetRoot, Flex, Float, FloatingActionButton_namespace_exports as FloatingActionButton, FloatingActionButtonIcon, FloatingActionButtonLabel, FloatingActionButtonRoot, Footer_namespace_exports as Footer, FooterLinkText, Grid, GridItem, HStack, HelpBubble_namespace_exports as HelpBubble, HelpBubbleAnchor, HelpBubbleArrow, HelpBubbleArrowTip, HelpBubbleBody, HelpBubbleCloseButton, HelpBubbleContent, HelpBubbleDescription, HelpBubblePositioner, HelpBubblePositionerPortal, HelpBubbleRoot, HelpBubbleTitle, HelpBubbleTooltip_namespace_exports as HelpBubbleTooltip, HelpBubbleTooltipArrow, HelpBubbleTooltipArrowTip, HelpBubbleTooltipBody, HelpBubbleTooltipContent, HelpBubbleTooltipDelayGroup, HelpBubbleTooltipDescription, HelpBubbleTooltipPositioner, HelpBubbleTooltipPositionerPortal, HelpBubbleTooltipRoot, HelpBubbleTooltipTitle, HelpBubbleTooltipTrigger, HelpBubbleTrigger, Icon, IdentityPlaceholder_namespace_exports as IdentityPlaceholder, IdentityPlaceholderImage, IdentityPlaceholderRoot, ImageFrame, ImageFrameBadge, ImageFrameFloater, ImageFrameIcon, ImageFrameIndicator, ImageFrameReactionButton, Inline, InlineBanner_namespace_exports as InlineBanner, InlineBannerCloseButton, InlineBannerContent, InlineBannerDescription, InlineBannerLink, InlineBannerRoot, InlineBannerTitle, Layout_namespace_exports as Layout, LayoutContent, LayoutRoot, LinkContent, List_namespace_exports as List, ListContent, ListDetail, ListHeader, ListItem, ListPrefix, ListRoot, ListSuffix, ListTitle, LoadingIndicator, MannerTemp, MannerTempBadge, MannerTempEmote, Menu_namespace_exports as Menu, MenuAnchor, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuItemBody, MenuItemDescription, MenuItemLabel, MenuPositioner, MenuRoot, MenuScrollArea, MenuSheet_namespace_exports as MenuSheet, MenuSheetBackdrop, MenuSheetCloseButton, MenuSheetContent, MenuSheetDescription, MenuSheetFooter, MenuSheetGroup, MenuSheetHeader, MenuSheetItem, MenuSheetItemContent, MenuSheetItemDescription, MenuSheetItemLabel, MenuSheetList, MenuSheetPositioner, MenuSheetRoot, MenuSheetTitle, MenuSheetTrigger, MenuTrigger, NavigationMenu_namespace_exports as NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuItemBody, NavigationMenuItemDescription, NavigationMenuItemLabel, NavigationMenuPositioner, NavigationMenuProvider, NavigationMenuRoot, NavigationMenuScrollArea, NavigationMenuTrigger, NotificationBadge, NotificationBadgePositioner, PageBanner_namespace_exports as PageBanner, PageBannerBody, PageBannerButton, PageBannerCloseButton, PageBannerContent, PageBannerDescription, PageBannerRoot, PageBannerTitle, Portal, PrefixIcon, ProgressCircle_namespace_exports as ProgressCircle, ProgressCircleRange, ProgressCircleRoot, ProgressCircleTrack, PullToRefresh_namespace_exports as PullToRefresh, PullToRefreshContent, PullToRefreshIndicator, PullToRefreshRoot, QuantityPicker_namespace_exports as QuantityPicker, QuantityPickerDecrementButton, QuantityPickerHiddenInput, QuantityPickerIncrementButton, QuantityPickerRoot, QuantityPickerValueDisplay, RadioGroup_namespace_exports as RadioGroup, RadioGroupField_namespace_exports as RadioGroupField, RadioGroupFieldDescription, RadioGroupFieldErrorMessage, RadioGroupFieldFooter, RadioGroupFieldHeader, RadioGroupFieldIndicatorText, RadioGroupFieldLabel, RadioGroupFieldRequiredIndicator, RadioGroupFieldRoot, RadioGroupItem, RadioGroupItemControl, RadioGroupItemHiddenInput, RadioGroupItemIndicator, RadioGroupItemLabel, RadioGroupRoot, RadioSelectBox_namespace_exports as RadioSelectBox, RadioSelectBoxBody, RadioSelectBoxContent, RadioSelectBoxDescription, RadioSelectBoxFooter, RadioSelectBoxGroup, RadioSelectBoxHiddenInput, RadioSelectBoxItem, RadioSelectBoxLabel, RadioSelectBoxTrigger, ReactionButton, ResponsiveDialog_namespace_exports as ResponsiveDialog, ResponsiveDialogAction, ResponsiveDialogBackdrop, ResponsiveDialogBody, ResponsiveDialogCloseButton, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogFooter, ResponsiveDialogHandle, ResponsiveDialogHeader, ResponsiveDialogPositioner, ResponsiveDialogRoot, ResponsiveDialogTitle, ResponsiveDialogTrigger, ResponsivePair, ResponsiveSidePanel_namespace_exports as ResponsiveSidePanel, ResponsiveSidePanelBackdrop, ResponsiveSidePanelBody, ResponsiveSidePanelCloseButton, ResponsiveSidePanelContent, ResponsiveSidePanelDescription, ResponsiveSidePanelFooter, ResponsiveSidePanelHandle, ResponsiveSidePanelHeader, ResponsiveSidePanelPositioner, ResponsiveSidePanelRoot, ResponsiveSidePanelTitle, ResponsiveSidePanelTrigger, ScrollFog, SegmentedControl_namespace_exports as SegmentedControl, SegmentedControlIndicator, SegmentedControlItem, SegmentedControlItemHiddenInput, SegmentedControlRoot, Select_namespace_exports as Select, SelectContent, SelectGroup, SelectGroupLabel, SelectHiddenSelect, SelectItem, SelectItemBody, SelectItemDescription, SelectItemIndicator, SelectItemLabel, SelectItemPrefixIcon, SelectPlaceholder, SelectPositioner, SelectPrefixIcon, SelectRoot, SelectScrollArea, SelectSuffixIcon, SelectTrigger, SelectValue, SideNavigation_namespace_exports as SideNavigation, SideNavigationContent, SideNavigationFooter, SideNavigationGroup, SideNavigationGroupLabel, SideNavigationHeader, SideNavigationInset, SideNavigationItem, SideNavigationItemCollapsibleContent, SideNavigationItemCollapsibleRoot, SideNavigationItemCollapsibleTrigger, SideNavigationItemLabel, SideNavigationItemPrefixIcon, SideNavigationItemSuffixIcon, SideNavigationProvider, SideNavigationRoot, SideNavigationTrigger, SidePanel_namespace_exports as SidePanel, SidePanelBackdrop, SidePanelBody, SidePanelCloseButton, SidePanelContent, SidePanelDescription, SidePanelFooter, SidePanelHeader, SidePanelPositioner, SidePanelRoot, SidePanelTitle, SidePanelTrigger, Skeleton, Slider_namespace_exports as Slider, SliderControl, SliderHiddenInput, SliderMarker, SliderMarkers, SliderRange, SliderRoot, SliderThumb, SliderTick, SliderTrack, SliderValueIndicatorArrow, SliderValueIndicatorArrowTip, SliderValueIndicatorLabel, SliderValueIndicatorRoot, Snackbar_namespace_exports as Snackbar, SnackbarActionButton, SnackbarAvoidOverlap, SnackbarHiddenCloseButton, SnackbarMessage, SnackbarPrefixIcon, SnackbarRegion, SnackbarRenderer, SnackbarRoot, SnackbarRootProvider, Stack, SuffixIcon, SwipeableMenuSheet_namespace_exports as SwipeableMenuSheet, SwipeableMenuSheetBackdrop, SwipeableMenuSheetCloseButton, SwipeableMenuSheetContent, SwipeableMenuSheetDescription, SwipeableMenuSheetFooter, SwipeableMenuSheetGroup, SwipeableMenuSheetHandle, SwipeableMenuSheetHeader, SwipeableMenuSheetItem, SwipeableMenuSheetItemContent, SwipeableMenuSheetItemDescription, SwipeableMenuSheetItemLabel, SwipeableMenuSheetList, SwipeableMenuSheetPositioner, SwipeableMenuSheetRoot, SwipeableMenuSheetTitle, SwipeableMenuSheetTrigger, Switch_namespace_exports as Switch, SwitchControl, SwitchHiddenInput, SwitchLabel, SwitchRoot, SwitchThumb, Tabs_namespace_exports as Tabs, TabsCarousel, TabsCarouselCamera, TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger, TagGroup_namespace_exports as TagGroup, TagGroupItem, TagGroupItemLabel, TagGroupRoot, Text, TextField_namespace_exports as TextField, TextFieldInput, TextFieldPrefixIcon, TextFieldPrefixText, TextFieldRoot, TextFieldSuffixIcon, TextFieldSuffixText, TextFieldTextarea, ToggleButton, VStack, VisuallyHidden, pullToRefreshPreventPull, tabsCarouselPreventDrag, useBreakpoint, useBreakpointValue, useResponsiveDialogContext, useResponsiveSidePanelContext, useSnackbarAdapter, useSnackbarContext, useTextFieldWithGraphemes };
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seed-design/react",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/daangn/seed-design.git",
|
|
7
7
|
"directory": "packages/react"
|
|
8
8
|
},
|
|
9
|
+
"license": "Apache-2.0",
|
|
9
10
|
"sideEffects": [
|
|
10
11
|
"*.css"
|
|
11
12
|
],
|
|
@@ -27,7 +28,9 @@
|
|
|
27
28
|
"types": "./lib/index.d.ts",
|
|
28
29
|
"files": [
|
|
29
30
|
"lib",
|
|
30
|
-
"src"
|
|
31
|
+
"src",
|
|
32
|
+
"LICENSE",
|
|
33
|
+
"NOTICE"
|
|
31
34
|
],
|
|
32
35
|
"scripts": {
|
|
33
36
|
"clean": "rm -rf lib",
|
|
@@ -39,42 +42,44 @@
|
|
|
39
42
|
"@radix-ui/react-slot": "^1.2.3",
|
|
40
43
|
"@radix-ui/react-use-controllable-state": "1.2.2",
|
|
41
44
|
"@radix-ui/react-use-layout-effect": "^1.1.1",
|
|
42
|
-
"@seed-design/dom-utils": "^2.
|
|
43
|
-
"@seed-design/react-accordion": "^1.0.
|
|
44
|
-
"@seed-design/react-attachment-display": "^1.0.
|
|
45
|
-
"@seed-design/react-avatar": "^2.0.
|
|
46
|
-
"@seed-design/react-checkbox": "^2.0.
|
|
47
|
-
"@seed-design/react-collapsible": "^1.0.
|
|
48
|
-
"@seed-design/react-dialog": "^2.0.
|
|
49
|
-
"@seed-design/react-drawer": "^2.0.
|
|
50
|
-
"@seed-design/react-field": "^2.0.
|
|
51
|
-
"@seed-design/react-field-button": "^2.0.
|
|
52
|
-
"@seed-design/react-fieldset": "^1.0.
|
|
53
|
-
"@seed-design/react-file-upload": "^1.0.
|
|
54
|
-
"@seed-design/react-image": "^1.0.
|
|
55
|
-
"@seed-design/react-menu": "^2.0.
|
|
56
|
-
"@seed-design/react-middle-truncate": "^1.0.
|
|
57
|
-
"@seed-design/react-navigation-menu": "^2.0.
|
|
58
|
-
"@seed-design/react-popover": "^2.0.
|
|
59
|
-
"@seed-design/react-portal": "^2.0.
|
|
60
|
-
"@seed-design/react-primitive": "^2.0.
|
|
61
|
-
"@seed-design/react-progress": "^2.0.
|
|
62
|
-
"@seed-design/react-pull-to-refresh": "^2.0.
|
|
63
|
-
"@seed-design/react-
|
|
64
|
-
"@seed-design/react-
|
|
65
|
-
"@seed-design/react-
|
|
66
|
-
"@seed-design/react-
|
|
67
|
-
"@seed-design/react-
|
|
68
|
-
"@seed-design/react-
|
|
69
|
-
"@seed-design/react-
|
|
70
|
-
"@seed-design/react-
|
|
71
|
-
"@seed-design/react-
|
|
72
|
-
"@seed-design/react-
|
|
45
|
+
"@seed-design/dom-utils": "^2.1.0",
|
|
46
|
+
"@seed-design/react-accordion": "^1.0.1",
|
|
47
|
+
"@seed-design/react-attachment-display": "^1.0.1",
|
|
48
|
+
"@seed-design/react-avatar": "^2.0.1",
|
|
49
|
+
"@seed-design/react-checkbox": "^2.0.1",
|
|
50
|
+
"@seed-design/react-collapsible": "^1.0.1",
|
|
51
|
+
"@seed-design/react-dialog": "^2.0.2",
|
|
52
|
+
"@seed-design/react-drawer": "^2.0.2",
|
|
53
|
+
"@seed-design/react-field": "^2.0.1",
|
|
54
|
+
"@seed-design/react-field-button": "^2.0.1",
|
|
55
|
+
"@seed-design/react-fieldset": "^1.0.1",
|
|
56
|
+
"@seed-design/react-file-upload": "^1.0.1",
|
|
57
|
+
"@seed-design/react-image": "^1.0.1",
|
|
58
|
+
"@seed-design/react-menu": "^2.0.1",
|
|
59
|
+
"@seed-design/react-middle-truncate": "^1.0.1",
|
|
60
|
+
"@seed-design/react-navigation-menu": "^2.0.1",
|
|
61
|
+
"@seed-design/react-popover": "^2.0.1",
|
|
62
|
+
"@seed-design/react-portal": "^2.0.1",
|
|
63
|
+
"@seed-design/react-primitive": "^2.0.1",
|
|
64
|
+
"@seed-design/react-progress": "^2.0.1",
|
|
65
|
+
"@seed-design/react-pull-to-refresh": "^2.0.1",
|
|
66
|
+
"@seed-design/react-quantity-picker": "^1.0.0",
|
|
67
|
+
"@seed-design/react-radio-group": "^2.0.1",
|
|
68
|
+
"@seed-design/react-segmented-control": "^2.0.2",
|
|
69
|
+
"@seed-design/react-select": "^1.0.0",
|
|
70
|
+
"@seed-design/react-side-navigation": "^1.0.1",
|
|
71
|
+
"@seed-design/react-slider": "^2.0.1",
|
|
72
|
+
"@seed-design/react-snackbar": "^2.0.1",
|
|
73
|
+
"@seed-design/react-switch": "^2.0.1",
|
|
74
|
+
"@seed-design/react-tabs": "^2.0.1",
|
|
75
|
+
"@seed-design/react-text-field": "^2.0.1",
|
|
76
|
+
"@seed-design/react-toggle": "^2.0.1",
|
|
77
|
+
"@seed-design/react-tooltip": "^1.0.1",
|
|
73
78
|
"clsx": "^2.1.1",
|
|
74
79
|
"unicode-segmenter": "^0.14.4"
|
|
75
80
|
},
|
|
76
81
|
"peerDependencies": {
|
|
77
|
-
"@seed-design/css": "^2.
|
|
82
|
+
"@seed-design/css": "^2.3.0",
|
|
78
83
|
"react": ">=18.0.0",
|
|
79
84
|
"react-dom": ">=18.0.0"
|
|
80
85
|
},
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export {
|
|
2
|
+
ContentDialogBackdrop as Backdrop,
|
|
3
|
+
ContentDialogPositioner as Positioner,
|
|
4
|
+
ContentDialogContent as Content,
|
|
5
|
+
ContentDialogBody as Body,
|
|
6
|
+
ContentDialogDescription as Description,
|
|
7
|
+
ContentDialogFooter as Footer,
|
|
8
|
+
ContentDialogHeader as Header,
|
|
9
|
+
ContentDialogRoot as Root,
|
|
10
|
+
ContentDialogTitle as Title,
|
|
11
|
+
ContentDialogTrigger as Trigger,
|
|
12
|
+
ContentDialogAction as Action,
|
|
13
|
+
ContentDialogCloseButton as CloseButton,
|
|
14
|
+
type ContentDialogBackdropProps as BackdropProps,
|
|
15
|
+
type ContentDialogPositionerProps as PositionerProps,
|
|
16
|
+
type ContentDialogContentProps as ContentProps,
|
|
17
|
+
type ContentDialogBodyProps as BodyProps,
|
|
18
|
+
type ContentDialogDescriptionProps as DescriptionProps,
|
|
19
|
+
type ContentDialogFooterProps as FooterProps,
|
|
20
|
+
type ContentDialogHeaderProps as HeaderProps,
|
|
21
|
+
type ContentDialogRootProps as RootProps,
|
|
22
|
+
type ContentDialogTitleProps as TitleProps,
|
|
23
|
+
type ContentDialogTriggerProps as TriggerProps,
|
|
24
|
+
type ContentDialogActionProps as ActionProps,
|
|
25
|
+
type ContentDialogCloseButtonProps as CloseButtonProps,
|
|
26
|
+
} from "./ContentDialog";
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { composeRefs } from "@radix-ui/react-compose-refs";
|
|
2
|
+
import {
|
|
3
|
+
contentDialog,
|
|
4
|
+
type ContentDialogVariantProps,
|
|
5
|
+
} from "@seed-design/css/recipes/content-dialog";
|
|
6
|
+
import { dataAttr } from "@seed-design/dom-utils";
|
|
7
|
+
import { Dialog as DialogPrimitive } from "@seed-design/react-dialog";
|
|
8
|
+
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
9
|
+
import clsx from "clsx";
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { createRenderTrackingContext } from "../../utils/createRenderTrackingContext";
|
|
12
|
+
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
13
|
+
import { useStyleProps, withStyleProps, type StyleProps } from "../../utils/styled";
|
|
14
|
+
|
|
15
|
+
const { withContext, useClassNames, ClassNamesProvider } = createSlotRecipeContext(contentDialog);
|
|
16
|
+
|
|
17
|
+
const closeButtonTracker = createRenderTrackingContext("ContentDialogCloseButton");
|
|
18
|
+
|
|
19
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
20
|
+
|
|
21
|
+
export interface ContentDialogRootProps
|
|
22
|
+
extends ContentDialogVariantProps,
|
|
23
|
+
Omit<DialogPrimitive.RootProps, "role"> {
|
|
24
|
+
/**
|
|
25
|
+
* @default true
|
|
26
|
+
*/
|
|
27
|
+
lazyMount?: DialogPrimitive.RootProps["lazyMount"];
|
|
28
|
+
/**
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
unmountOnExit?: DialogPrimitive.RootProps["unmountOnExit"];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function ContentDialogRoot(props: ContentDialogRootProps) {
|
|
35
|
+
const [variantProps, otherProps] = contentDialog.splitVariantProps({
|
|
36
|
+
lazyMount: true,
|
|
37
|
+
unmountOnExit: true,
|
|
38
|
+
...props,
|
|
39
|
+
});
|
|
40
|
+
const classNames = contentDialog(variantProps);
|
|
41
|
+
|
|
42
|
+
return (
|
|
43
|
+
<ClassNamesProvider value={classNames}>
|
|
44
|
+
<closeButtonTracker.Provider>
|
|
45
|
+
<DialogPrimitive.Root {...otherProps} />
|
|
46
|
+
</closeButtonTracker.Provider>
|
|
47
|
+
</ClassNamesProvider>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
52
|
+
|
|
53
|
+
export interface ContentDialogTriggerProps extends DialogPrimitive.TriggerProps {}
|
|
54
|
+
|
|
55
|
+
export const ContentDialogTrigger = DialogPrimitive.Trigger;
|
|
56
|
+
|
|
57
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
58
|
+
|
|
59
|
+
export interface ContentDialogPositionerProps extends DialogPrimitive.PositionerProps {}
|
|
60
|
+
|
|
61
|
+
export const ContentDialogPositioner = withContext<HTMLDivElement, ContentDialogPositionerProps>(
|
|
62
|
+
DialogPrimitive.Positioner,
|
|
63
|
+
"positioner",
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
67
|
+
|
|
68
|
+
export interface ContentDialogBackdropProps extends DialogPrimitive.BackdropProps {}
|
|
69
|
+
|
|
70
|
+
export const ContentDialogBackdrop = withContext<HTMLDivElement, ContentDialogBackdropProps>(
|
|
71
|
+
DialogPrimitive.Backdrop,
|
|
72
|
+
"backdrop",
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
76
|
+
|
|
77
|
+
export interface ContentDialogContentProps
|
|
78
|
+
extends DialogPrimitive.ContentProps,
|
|
79
|
+
Pick<StyleProps, "width" | "maxWidth"> {}
|
|
80
|
+
|
|
81
|
+
export const ContentDialogContent = withContext<HTMLDivElement, ContentDialogContentProps>(
|
|
82
|
+
withStyleProps(DialogPrimitive.Content),
|
|
83
|
+
"content",
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
87
|
+
|
|
88
|
+
export interface ContentDialogHeaderProps
|
|
89
|
+
extends PrimitiveProps,
|
|
90
|
+
React.HTMLAttributes<HTMLDivElement> {}
|
|
91
|
+
|
|
92
|
+
export const ContentDialogHeader = React.forwardRef<HTMLDivElement, ContentDialogHeaderProps>(
|
|
93
|
+
({ className, ...props }, ref) => {
|
|
94
|
+
const classNames = useClassNames();
|
|
95
|
+
const { isRendered } = closeButtonTracker.useRenderTracking();
|
|
96
|
+
|
|
97
|
+
return (
|
|
98
|
+
<Primitive.div
|
|
99
|
+
ref={ref}
|
|
100
|
+
data-show-close-button={dataAttr(isRendered)}
|
|
101
|
+
className={clsx(classNames.header, className)}
|
|
102
|
+
{...props}
|
|
103
|
+
/>
|
|
104
|
+
);
|
|
105
|
+
},
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
ContentDialogHeader.displayName = "ContentDialogHeader";
|
|
109
|
+
|
|
110
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
111
|
+
|
|
112
|
+
export interface ContentDialogTitleProps extends DialogPrimitive.TitleProps {}
|
|
113
|
+
|
|
114
|
+
export const ContentDialogTitle = withContext<HTMLHeadingElement, ContentDialogTitleProps>(
|
|
115
|
+
DialogPrimitive.Title,
|
|
116
|
+
"title",
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
120
|
+
|
|
121
|
+
export interface ContentDialogDescriptionProps extends DialogPrimitive.DescriptionProps {}
|
|
122
|
+
|
|
123
|
+
export const ContentDialogDescription = withContext<
|
|
124
|
+
HTMLParagraphElement,
|
|
125
|
+
ContentDialogDescriptionProps
|
|
126
|
+
>(DialogPrimitive.Description, "description");
|
|
127
|
+
|
|
128
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
129
|
+
|
|
130
|
+
export interface ContentDialogBodyProps
|
|
131
|
+
extends PrimitiveProps,
|
|
132
|
+
Pick<StyleProps, "paddingX" | "minHeight" | "maxHeight" | "justifyContent" | "alignItems">,
|
|
133
|
+
React.HTMLAttributes<HTMLDivElement> {}
|
|
134
|
+
|
|
135
|
+
export const ContentDialogBody = React.forwardRef<HTMLDivElement, ContentDialogBodyProps>(
|
|
136
|
+
(props, forwardedRef) => {
|
|
137
|
+
const classNames = useClassNames();
|
|
138
|
+
const { style, restProps } = useStyleProps(props);
|
|
139
|
+
const { className, ...otherProps } = restProps;
|
|
140
|
+
|
|
141
|
+
const ref = React.useRef<HTMLDivElement>(null);
|
|
142
|
+
const [scrolled, setScrolled] = React.useState(false);
|
|
143
|
+
const [overflowing, setOverflowing] = React.useState(false);
|
|
144
|
+
|
|
145
|
+
React.useEffect(() => {
|
|
146
|
+
const element = ref.current;
|
|
147
|
+
if (!element) return;
|
|
148
|
+
|
|
149
|
+
const check = () => {
|
|
150
|
+
setScrolled(element.scrollTop > 0);
|
|
151
|
+
// Subtract the current bottom padding so overflow detection stays independent
|
|
152
|
+
// of the padding we conditionally apply — otherwise that padding would count as
|
|
153
|
+
// overflow and the state would never settle (padding -> overflow -> padding...).
|
|
154
|
+
const paddingBottom = Number.parseFloat(getComputedStyle(element).paddingBottom) || 0;
|
|
155
|
+
setOverflowing(element.scrollHeight - paddingBottom > element.clientHeight);
|
|
156
|
+
};
|
|
157
|
+
check();
|
|
158
|
+
|
|
159
|
+
element.addEventListener("scroll", check);
|
|
160
|
+
|
|
161
|
+
const observer = new ResizeObserver(check);
|
|
162
|
+
observer.observe(element);
|
|
163
|
+
|
|
164
|
+
return () => {
|
|
165
|
+
element.removeEventListener("scroll", check);
|
|
166
|
+
observer.disconnect();
|
|
167
|
+
};
|
|
168
|
+
}, []);
|
|
169
|
+
|
|
170
|
+
return (
|
|
171
|
+
<Primitive.div
|
|
172
|
+
ref={composeRefs(ref, forwardedRef)}
|
|
173
|
+
data-scrolled={dataAttr(scrolled)}
|
|
174
|
+
data-overflow={dataAttr(overflowing)}
|
|
175
|
+
className={clsx(classNames.body, className)}
|
|
176
|
+
style={style}
|
|
177
|
+
{...otherProps}
|
|
178
|
+
/>
|
|
179
|
+
);
|
|
180
|
+
},
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
ContentDialogBody.displayName = "ContentDialogBody";
|
|
184
|
+
|
|
185
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
186
|
+
|
|
187
|
+
export interface ContentDialogFooterProps
|
|
188
|
+
extends PrimitiveProps,
|
|
189
|
+
React.HTMLAttributes<HTMLDivElement> {}
|
|
190
|
+
|
|
191
|
+
export const ContentDialogFooter = withContext<HTMLDivElement, ContentDialogFooterProps>(
|
|
192
|
+
Primitive.div,
|
|
193
|
+
"footer",
|
|
194
|
+
);
|
|
195
|
+
|
|
196
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
197
|
+
|
|
198
|
+
export interface ContentDialogActionProps extends DialogPrimitive.CloseButtonProps {}
|
|
199
|
+
|
|
200
|
+
export const ContentDialogAction = DialogPrimitive.CloseButton;
|
|
201
|
+
|
|
202
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
203
|
+
|
|
204
|
+
export interface ContentDialogCloseButtonProps extends DialogPrimitive.CloseButtonProps {}
|
|
205
|
+
|
|
206
|
+
export const ContentDialogCloseButton = React.forwardRef<
|
|
207
|
+
HTMLButtonElement,
|
|
208
|
+
ContentDialogCloseButtonProps
|
|
209
|
+
>(({ className, ...props }, ref) => {
|
|
210
|
+
const classNames = useClassNames();
|
|
211
|
+
const { trackRef } = closeButtonTracker.useRenderTracking();
|
|
212
|
+
|
|
213
|
+
return (
|
|
214
|
+
<DialogPrimitive.CloseButton
|
|
215
|
+
ref={composeRefs(ref, trackRef)}
|
|
216
|
+
className={clsx(classNames.closeButton, className)}
|
|
217
|
+
{...props}
|
|
218
|
+
/>
|
|
219
|
+
);
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
ContentDialogCloseButton.displayName = "ContentDialogCloseButton";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// NOTE: dialog naming is mid-rename; rootage/vars already use the new names, recipes and react components still use the old ones.
|
|
2
|
+
// Semantically (= snippet naming), this component is the Dialog:
|
|
3
|
+
// snippet AlertDialog → react Dialog → recipe "dialog" → vars alertDialog
|
|
4
|
+
// snippet Dialog → react ContentDialog → recipe "content-dialog" → vars dialog
|
|
5
|
+
|
|
6
|
+
export {
|
|
7
|
+
ContentDialogBackdrop,
|
|
8
|
+
ContentDialogPositioner,
|
|
9
|
+
ContentDialogContent,
|
|
10
|
+
ContentDialogBody,
|
|
11
|
+
ContentDialogDescription,
|
|
12
|
+
ContentDialogFooter,
|
|
13
|
+
ContentDialogHeader,
|
|
14
|
+
ContentDialogRoot,
|
|
15
|
+
ContentDialogTitle,
|
|
16
|
+
ContentDialogTrigger,
|
|
17
|
+
ContentDialogAction,
|
|
18
|
+
ContentDialogCloseButton,
|
|
19
|
+
type ContentDialogBackdropProps,
|
|
20
|
+
type ContentDialogPositionerProps,
|
|
21
|
+
type ContentDialogContentProps,
|
|
22
|
+
type ContentDialogBodyProps,
|
|
23
|
+
type ContentDialogDescriptionProps,
|
|
24
|
+
type ContentDialogFooterProps,
|
|
25
|
+
type ContentDialogHeaderProps,
|
|
26
|
+
type ContentDialogRootProps,
|
|
27
|
+
type ContentDialogTitleProps,
|
|
28
|
+
type ContentDialogTriggerProps,
|
|
29
|
+
type ContentDialogActionProps,
|
|
30
|
+
type ContentDialogCloseButtonProps,
|
|
31
|
+
} from "./ContentDialog";
|
|
32
|
+
|
|
33
|
+
export * as ContentDialog from "./ContentDialog.namespace";
|