@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/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: { size: {
5722
- xs: [
5723
- "rounded-md",
5724
- "size-auto",
5725
- "max-w-[90vw]",
5726
- "max-h-[90vh]",
5727
- "supports-svh:h-auto",
5728
- "supports-svh:max-h-[90vh]",
5729
- "w-95"
5730
- ],
5731
- sm: [
5732
- "rounded-md",
5733
- "size-auto",
5734
- "max-w-[90vw]",
5735
- "max-h-[90vh]",
5736
- "supports-svh:h-auto",
5737
- "supports-svh:max-h-[90vh]",
5738
- "w-120"
5739
- ],
5740
- md: [
5741
- "rounded-md",
5742
- "size-auto",
5743
- "max-w-[90vw]",
5744
- "max-h-[90vh]",
5745
- "supports-svh:h-auto",
5746
- "supports-svh:max-h-[90vh]",
5747
- "w-150"
5748
- ],
5749
- lg: [
5750
- "rounded-md",
5751
- "size-auto",
5752
- "max-w-[90vw]",
5753
- "max-h-[90vh]",
5754
- "supports-svh:h-auto",
5755
- "supports-svh:max-h-[90vh]",
5756
- "w-200"
5757
- ],
5758
- xl: [
5759
- "rounded-md",
5760
- "size-auto",
5761
- "max-w-[90vw]",
5762
- "max-h-[90vh]",
5763
- "supports-svh:h-auto",
5764
- "supports-svh:max-h-[90vh]",
5765
- "w-275"
5766
- ],
5767
- fullscreen: [
5768
- "rounded-none",
5769
- "w-screen",
5770
- "h-screen",
5771
- "max-w-screen",
5772
- "max-h-screen",
5773
- "supports-svh:h-svh",
5774
- "supports-svh:max-h-svh"
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