@atom-learning/components 6.10.0 → 6.11.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/dist/components/dialog/Dialog.d.ts +17 -1
- package/dist/components/dialog/Dialog.js +6 -0
- package/dist/components/dialog/Dialog.js.map +1 -1
- package/dist/components/dialog/DialogActionBar.d.ts +5 -0
- package/dist/components/dialog/DialogActionBar.js +14 -0
- package/dist/components/dialog/DialogActionBar.js.map +1 -0
- package/dist/components/dialog/DialogContent.d.ts +2 -1
- package/dist/components/dialog/DialogContent.js +63 -56
- package/dist/components/dialog/DialogContent.js.map +1 -1
- package/dist/components/dialog/DialogNavigationBar.d.ts +5 -0
- package/dist/components/dialog/DialogNavigationBar.js +14 -0
- package/dist/components/dialog/DialogNavigationBar.js.map +1 -0
- package/dist/components/dialog/DialogScrollableContent.d.ts +5 -0
- package/dist/components/dialog/DialogScrollableContent.js +11 -0
- package/dist/components/dialog/DialogScrollableContent.js.map +1 -0
- package/dist/docgen.json +1 -1
- package/dist/index.cjs.js +93 -56
- package/dist/index.cjs.js.map +1 -1
- package/package.json +1 -1
- package/src/responsive-variant-classes.css +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -5679,6 +5679,16 @@ var DateField = ({ className, hideLabel, label, name, validation, prompt, descri
|
|
|
5679
5679
|
};
|
|
5680
5680
|
DateField.displayName = "DateField";
|
|
5681
5681
|
//#endregion
|
|
5682
|
+
//#region src/components/dialog/DialogActionBar.tsx
|
|
5683
|
+
var DialogActionBar = styled("div", { base: [
|
|
5684
|
+
"border-t",
|
|
5685
|
+
"border-grey-300",
|
|
5686
|
+
"p-4",
|
|
5687
|
+
"flex",
|
|
5688
|
+
"gap-4",
|
|
5689
|
+
"shadow-[0_-6px_6px_-1px_rgba(51,51,51,0.05)]"
|
|
5690
|
+
] });
|
|
5691
|
+
//#endregion
|
|
5682
5692
|
//#region src/components/dialog/DialogBackground.tsx
|
|
5683
5693
|
var DialogBackground = styled("div", { base: ["w-screen", "h-screen"] });
|
|
5684
5694
|
//#endregion
|
|
@@ -5718,62 +5728,69 @@ var StyledDialogContent = styled(_radix_ui_react_dialog.Content, {
|
|
|
5718
5728
|
"motion-safe:data-[state=open]:animate-slide-in-center",
|
|
5719
5729
|
"motion-safe:data-[state=closed]:animate-slide-out-center"
|
|
5720
5730
|
],
|
|
5721
|
-
variants: {
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5731
|
+
variants: {
|
|
5732
|
+
size: {
|
|
5733
|
+
xs: [
|
|
5734
|
+
"rounded-md",
|
|
5735
|
+
"size-auto",
|
|
5736
|
+
"max-w-[90vw]",
|
|
5737
|
+
"max-h-[90vh]",
|
|
5738
|
+
"supports-svh:h-auto",
|
|
5739
|
+
"supports-svh:max-h-[90vh]",
|
|
5740
|
+
"w-95"
|
|
5741
|
+
],
|
|
5742
|
+
sm: [
|
|
5743
|
+
"rounded-md",
|
|
5744
|
+
"size-auto",
|
|
5745
|
+
"max-w-[90vw]",
|
|
5746
|
+
"max-h-[90vh]",
|
|
5747
|
+
"supports-svh:h-auto",
|
|
5748
|
+
"supports-svh:max-h-[90vh]",
|
|
5749
|
+
"w-120"
|
|
5750
|
+
],
|
|
5751
|
+
md: [
|
|
5752
|
+
"rounded-md",
|
|
5753
|
+
"size-auto",
|
|
5754
|
+
"max-w-[90vw]",
|
|
5755
|
+
"max-h-[90vh]",
|
|
5756
|
+
"supports-svh:h-auto",
|
|
5757
|
+
"supports-svh:max-h-[90vh]",
|
|
5758
|
+
"w-150"
|
|
5759
|
+
],
|
|
5760
|
+
lg: [
|
|
5761
|
+
"rounded-md",
|
|
5762
|
+
"size-auto",
|
|
5763
|
+
"max-w-[90vw]",
|
|
5764
|
+
"max-h-[90vh]",
|
|
5765
|
+
"supports-svh:h-auto",
|
|
5766
|
+
"supports-svh:max-h-[90vh]",
|
|
5767
|
+
"w-200"
|
|
5768
|
+
],
|
|
5769
|
+
xl: [
|
|
5770
|
+
"rounded-md",
|
|
5771
|
+
"size-auto",
|
|
5772
|
+
"max-w-[90vw]",
|
|
5773
|
+
"max-h-[90vh]",
|
|
5774
|
+
"supports-svh:h-auto",
|
|
5775
|
+
"supports-svh:max-h-[90vh]",
|
|
5776
|
+
"w-275"
|
|
5777
|
+
],
|
|
5778
|
+
fullscreen: [
|
|
5779
|
+
"rounded-none",
|
|
5780
|
+
"w-screen",
|
|
5781
|
+
"h-screen",
|
|
5782
|
+
"max-w-screen",
|
|
5783
|
+
"max-h-screen",
|
|
5784
|
+
"supports-svh:h-svh",
|
|
5785
|
+
"supports-svh:max-h-svh"
|
|
5786
|
+
]
|
|
5787
|
+
},
|
|
5788
|
+
layout: { panel: [
|
|
5789
|
+
"flex",
|
|
5790
|
+
"flex-col",
|
|
5791
|
+
"p-0"
|
|
5792
|
+
] }
|
|
5793
|
+
}
|
|
5777
5794
|
}, { enabledResponsiveVariants: true });
|
|
5778
5795
|
var DialogContent = ({ size = "sm", children, closeDialogText = "Close dialog", showCloseButton = true, ...remainingProps }) => /* @__PURE__ */ react.createElement(_radix_ui_react_dialog.Portal, null, /* @__PURE__ */ react.createElement(StyledDialogOverlay, { id: modalOverlayId }, react.Children.map(children, (child) => child?.type === DialogBackground && child), /* @__PURE__ */ react.createElement(StyledDialogContent, {
|
|
5779
5796
|
size,
|
|
@@ -5806,13 +5823,33 @@ var DialogHeading = ({ className, ...rest }) => /* @__PURE__ */ react.createElem
|
|
|
5806
5823
|
className: (0, clsx.default)("border-b", "border-b-grey-200", "pb-8", "pt-0", "px-8", "mb-8", "-mx-8", "box-content", className)
|
|
5807
5824
|
});
|
|
5808
5825
|
//#endregion
|
|
5826
|
+
//#region src/components/dialog/DialogNavigationBar.tsx
|
|
5827
|
+
var DialogNavigationBar = styled("div", { base: [
|
|
5828
|
+
"flex",
|
|
5829
|
+
"justify-between",
|
|
5830
|
+
"items-center",
|
|
5831
|
+
"border-b",
|
|
5832
|
+
"border-grey-300",
|
|
5833
|
+
"p-4"
|
|
5834
|
+
] });
|
|
5835
|
+
//#endregion
|
|
5836
|
+
//#region src/components/dialog/DialogScrollableContent.tsx
|
|
5837
|
+
var DialogScrollableContent = styled("div", { base: [
|
|
5838
|
+
"overflow-scroll",
|
|
5839
|
+
"flex-1",
|
|
5840
|
+
"p-4"
|
|
5841
|
+
] });
|
|
5842
|
+
//#endregion
|
|
5809
5843
|
//#region src/components/dialog/Dialog.tsx
|
|
5810
5844
|
var Dialog = Object.assign(_radix_ui_react_dialog.Root, {
|
|
5845
|
+
ActionBar: DialogActionBar,
|
|
5811
5846
|
Background: DialogBackground,
|
|
5812
5847
|
Close: DialogClose$1,
|
|
5813
5848
|
Content: DialogContent,
|
|
5814
5849
|
Heading: DialogHeading,
|
|
5815
5850
|
Footer: DialogFooter,
|
|
5851
|
+
NavigationBar: DialogNavigationBar,
|
|
5852
|
+
ScrollableContent: DialogScrollableContent,
|
|
5816
5853
|
Description: _radix_ui_react_dialog.Description,
|
|
5817
5854
|
Title: _radix_ui_react_dialog.Title,
|
|
5818
5855
|
Trigger: _radix_ui_react_dialog.Trigger
|