@umami/react-zen 0.179.0 → 0.180.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.css CHANGED
@@ -3769,44 +3769,6 @@ body a.Button_button__NGQyO {
3769
3769
  padding: var(--spacing-1);
3770
3770
  }
3771
3771
 
3772
- /* virtual-css:css:418d794d283baef586ab30b99cf90aa1 */
3773
- .Container_container__ZWU0Y {
3774
- width: 100%;
3775
- padding: 0 1rem;
3776
- }
3777
- .Container_container__ZWU0Y.Container_centered__OTM1M {
3778
- margin: 0 auto;
3779
- }
3780
- .Container_container__ZWU0Y.Container_fluid__NTBhY {
3781
- max-width: 100%;
3782
- padding: 0;
3783
- }
3784
- @media (min-width: 520px) {
3785
- .Container_container__ZWU0Y {
3786
- max-width: 500px;
3787
- }
3788
- }
3789
- @media (min-width: 768px) {
3790
- .Container_container__ZWU0Y {
3791
- max-width: 740px;
3792
- }
3793
- }
3794
- @media (min-width: 1024px) {
3795
- .Container_container__ZWU0Y {
3796
- max-width: 1000px;
3797
- }
3798
- }
3799
- @media (min-width: 1280px) {
3800
- .Container_container__ZWU0Y {
3801
- max-width: 1240px;
3802
- }
3803
- }
3804
- @media (min-width: 1640px) {
3805
- .Container_container__ZWU0Y {
3806
- max-width: 1600px;
3807
- }
3808
- }
3809
-
3810
3772
  /* virtual-css:css:814f767aeadf5e17bfb63509d2206999 */
3811
3773
  .CopyButton_icon__YTM2Y {
3812
3774
  animation: CopyButton_copy-button__MjY1M 200ms;
@@ -3911,6 +3873,44 @@ body a.Button_button__NGQyO {
3911
3873
  font-weight: 700;
3912
3874
  }
3913
3875
 
3876
+ /* virtual-css:css:418d794d283baef586ab30b99cf90aa1 */
3877
+ .Container_container__ZWU0Y {
3878
+ width: 100%;
3879
+ padding: 0 1rem;
3880
+ }
3881
+ .Container_container__ZWU0Y.Container_centered__OTM1M {
3882
+ margin: 0 auto;
3883
+ }
3884
+ .Container_container__ZWU0Y.Container_fluid__NTBhY {
3885
+ max-width: 100%;
3886
+ padding: 0;
3887
+ }
3888
+ @media (min-width: 520px) {
3889
+ .Container_container__ZWU0Y {
3890
+ max-width: 500px;
3891
+ }
3892
+ }
3893
+ @media (min-width: 768px) {
3894
+ .Container_container__ZWU0Y {
3895
+ max-width: 740px;
3896
+ }
3897
+ }
3898
+ @media (min-width: 1024px) {
3899
+ .Container_container__ZWU0Y {
3900
+ max-width: 1000px;
3901
+ }
3902
+ }
3903
+ @media (min-width: 1280px) {
3904
+ .Container_container__ZWU0Y {
3905
+ max-width: 1240px;
3906
+ }
3907
+ }
3908
+ @media (min-width: 1640px) {
3909
+ .Container_container__ZWU0Y {
3910
+ max-width: 1600px;
3911
+ }
3912
+ }
3913
+
3914
3914
  /* virtual-css:css:eedba9fc7e3d8030bbd07387da49f358 */
3915
3915
  .Table_table__YjllN {
3916
3916
  font-size: var(--font-size);
package/dist/index.d.mts CHANGED
@@ -354,17 +354,25 @@ interface ColumnProps extends FlexboxProps {
354
354
  }
355
355
  declare function Column({ reverse, children, ...props }: ColumnProps): react.JSX.Element;
356
356
 
357
+ interface ConfirmationDialogProps extends AlertDialogProps {
358
+ value: string;
359
+ confirmMessage?: ReactNode;
360
+ }
361
+ declare function ConfirmationDialog({ value, confirmMessage, className, children, ...props }: ConfirmationDialogProps): react.JSX.Element;
362
+
357
363
  interface ContainerProps extends BoxProps {
358
364
  isFluid?: boolean;
359
365
  isCentered?: boolean;
360
366
  }
361
367
  declare function Container({ isCentered, isFluid, className, children, ...props }: ContainerProps): react.JSX.Element;
362
368
 
363
- interface ConfirmationDialogProps extends AlertDialogProps {
364
- value: string;
365
- confirmMessage?: ReactNode;
369
+ interface CopyButtonProps {
370
+ value?: string;
371
+ timeout?: number;
372
+ className?: string;
373
+ children?: ReactNode;
366
374
  }
367
- declare function ConfirmationDialog({ value, confirmMessage, className, children, ...props }: ConfirmationDialogProps): react.JSX.Element;
375
+ declare function CopyButton({ value, timeout, className, children, ...props }: CopyButtonProps): react.JSX.Element;
368
376
 
369
377
  interface DataTableProps extends TableProps {
370
378
  data?: any[];
@@ -726,4 +734,4 @@ interface ZenProviderProps {
726
734
  }
727
735
  declare function ZenProvider({ children, ...props }: ZenProviderProps): react.JSX.Element;
728
736
 
729
- export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, type IconProps, Image, type ImageProps, InlineEditField, type InlineEditFieldProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, Modal, type ModalProps, NavMenu, NavMenuGroup, type NavMenuGroupProps, NavMenuItem, type NavMenuItemProps, type NavMenuProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PasswordField, type PasswordFieldProps, Popover, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Sidebar, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, Slider, type SliderProps, Slot, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, SubMenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, ThemeButton, type ThemeButtonProps, Toast, type ToastOptions, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, useDebounce, useNavigationContext, useTheme, useToast };
737
+ export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, type IconProps, Image, type ImageProps, InlineEditField, type InlineEditFieldProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, Modal, type ModalProps, NavMenu, NavMenuGroup, type NavMenuGroupProps, NavMenuItem, type NavMenuItemProps, type NavMenuProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PasswordField, type PasswordFieldProps, Popover, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Sidebar, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, Slider, type SliderProps, Slot, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, SubMenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, ThemeButton, type ThemeButtonProps, Toast, type ToastOptions, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, useDebounce, useNavigationContext, useTheme, useToast };
package/dist/index.d.ts CHANGED
@@ -354,17 +354,25 @@ interface ColumnProps extends FlexboxProps {
354
354
  }
355
355
  declare function Column({ reverse, children, ...props }: ColumnProps): react.JSX.Element;
356
356
 
357
+ interface ConfirmationDialogProps extends AlertDialogProps {
358
+ value: string;
359
+ confirmMessage?: ReactNode;
360
+ }
361
+ declare function ConfirmationDialog({ value, confirmMessage, className, children, ...props }: ConfirmationDialogProps): react.JSX.Element;
362
+
357
363
  interface ContainerProps extends BoxProps {
358
364
  isFluid?: boolean;
359
365
  isCentered?: boolean;
360
366
  }
361
367
  declare function Container({ isCentered, isFluid, className, children, ...props }: ContainerProps): react.JSX.Element;
362
368
 
363
- interface ConfirmationDialogProps extends AlertDialogProps {
364
- value: string;
365
- confirmMessage?: ReactNode;
369
+ interface CopyButtonProps {
370
+ value?: string;
371
+ timeout?: number;
372
+ className?: string;
373
+ children?: ReactNode;
366
374
  }
367
- declare function ConfirmationDialog({ value, confirmMessage, className, children, ...props }: ConfirmationDialogProps): react.JSX.Element;
375
+ declare function CopyButton({ value, timeout, className, children, ...props }: CopyButtonProps): react.JSX.Element;
368
376
 
369
377
  interface DataTableProps extends TableProps {
370
378
  data?: any[];
@@ -726,4 +734,4 @@ interface ZenProviderProps {
726
734
  }
727
735
  declare function ZenProvider({ children, ...props }: ZenProviderProps): react.JSX.Element;
728
736
 
729
- export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, type IconProps, Image, type ImageProps, InlineEditField, type InlineEditFieldProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, Modal, type ModalProps, NavMenu, NavMenuGroup, type NavMenuGroupProps, NavMenuItem, type NavMenuItemProps, type NavMenuProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PasswordField, type PasswordFieldProps, Popover, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Sidebar, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, Slider, type SliderProps, Slot, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, SubMenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, ThemeButton, type ThemeButtonProps, Toast, type ToastOptions, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, useDebounce, useNavigationContext, useTheme, useToast };
737
+ export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, type IconProps, Image, type ImageProps, InlineEditField, type InlineEditFieldProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, Modal, type ModalProps, NavMenu, NavMenuGroup, type NavMenuGroupProps, NavMenuItem, type NavMenuItemProps, type NavMenuProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PasswordField, type PasswordFieldProps, Popover, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Sidebar, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, Slider, type SliderProps, Slot, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, SubMenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, ThemeButton, type ThemeButtonProps, Toast, type ToastOptions, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, useDebounce, useNavigationContext, useTheme, useToast };
package/dist/index.js CHANGED
@@ -240,6 +240,7 @@ __export(index_exports, {
240
240
  ComboBox: () => ComboBox2,
241
241
  ConfirmationDialog: () => ConfirmationDialog,
242
242
  Container: () => Container,
243
+ CopyButton: () => CopyButton,
243
244
  DataColumn: () => DataColumn,
244
245
  DataTable: () => DataTable,
245
246
  Dialog: () => Dialog2,
@@ -33019,53 +33020,23 @@ function Code({ asChild, children }) {
33019
33020
  return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Component, { className: Code_default.code, children });
33020
33021
  }
33021
33022
 
33022
- // src/components/Container.tsx
33023
- var import_classnames23 = __toESM(require_classnames());
33024
-
33025
- // css-modules:E:\dev\umami-react-zen\src\components\Container.module.css
33026
- var Container_default = { "container": "Container_container__ZWU0Y", "centered": "Container_centered__OTM1M", "fluid": "Container_fluid__NTBhY" };
33027
-
33028
- // src/components/Container.tsx
33029
- var import_jsx_runtime37 = require("react/jsx-runtime");
33030
- function Container({
33031
- isCentered = true,
33032
- isFluid,
33033
- className,
33034
- children,
33035
- ...props
33036
- }) {
33037
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
33038
- Box,
33039
- {
33040
- ...props,
33041
- className: (0, import_classnames23.default)(
33042
- Container_default.container,
33043
- className,
33044
- isCentered && Container_default.centered,
33045
- isFluid && Container_default.fluid
33046
- ),
33047
- children
33048
- }
33049
- );
33050
- }
33051
-
33052
33023
  // src/components/ConfirmationDialog.tsx
33053
33024
  var import_react185 = require("react");
33054
- var import_classnames26 = __toESM(require_classnames());
33025
+ var import_classnames25 = __toESM(require_classnames());
33055
33026
 
33056
33027
  // src/components/TextField.tsx
33057
33028
  var import_react184 = require("react");
33058
- var import_classnames25 = __toESM(require_classnames());
33029
+ var import_classnames24 = __toESM(require_classnames());
33059
33030
 
33060
33031
  // src/components/CopyButton.tsx
33061
33032
  var import_react183 = require("react");
33062
- var import_classnames24 = __toESM(require_classnames());
33033
+ var import_classnames23 = __toESM(require_classnames());
33063
33034
 
33064
33035
  // css-modules:E:\dev\umami-react-zen\src\components\CopyButton.module.css
33065
33036
  var CopyButton_default = { "icon": "CopyButton_icon__YTM2Y", "copy-button": "CopyButton_copy-button__MjY1M" };
33066
33037
 
33067
33038
  // src/components/CopyButton.tsx
33068
- var import_jsx_runtime38 = require("react/jsx-runtime");
33039
+ var import_jsx_runtime37 = require("react/jsx-runtime");
33069
33040
  var TIMEOUT = 2e3;
33070
33041
  function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
33071
33042
  const [copied, setCopied] = (0, import_react183.useState)(false);
@@ -33078,14 +33049,14 @@ function CopyButton({ value, timeout = TIMEOUT, className, children, ...props })
33078
33049
  ref.current = +setTimeout(() => setCopied(false), timeout);
33079
33050
  }
33080
33051
  };
33081
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon2, { ...props, className: (0, import_classnames24.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Check, {}) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Copy, {}) });
33052
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Icon2, { ...props, className: (0, import_classnames23.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Check, {}) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Copy, {}) });
33082
33053
  }
33083
33054
 
33084
33055
  // css-modules:E:\dev\umami-react-zen\src\components\TextField.module.css
33085
33056
  var TextField_default = { "field": "TextField_field__YzU1O", "icon": "TextField_icon__MDJlY", "novalue": "TextField_novalue__NDg4Y", "textarea": "TextField_textarea__NTQ3M", "resize-vertical": "TextField_resize-vertical__ZDc3N", "resize-horizontal": "TextField_resize-horizontal__MzJjY", "resize-none": "TextField_resize-none__ZmUxZ" };
33086
33057
 
33087
33058
  // src/components/TextField.tsx
33088
- var import_jsx_runtime39 = require("react/jsx-runtime");
33059
+ var import_jsx_runtime38 = require("react/jsx-runtime");
33089
33060
  function TextField2({
33090
33061
  value,
33091
33062
  defaultValue,
@@ -33110,14 +33081,14 @@ function TextField2({
33110
33081
  (0, import_react184.useEffect)(() => {
33111
33082
  setInputValue(value);
33112
33083
  }, [value]);
33113
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
33114
- label && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Label2, { children: label }),
33115
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
33084
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
33085
+ label && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Label2, { children: label }),
33086
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
33116
33087
  $bcdf0525bf22703d$export$2c73285ae9390cec,
33117
33088
  {
33118
33089
  "aria-label": "Text",
33119
33090
  ...props,
33120
- className: (0, import_classnames25.default)(
33091
+ className: (0, import_classnames24.default)(
33121
33092
  TextField_default.field,
33122
33093
  asTextArea && TextField_default.textarea,
33123
33094
  allowCopy && TextField_default.copy,
@@ -33130,8 +33101,8 @@ function TextField2({
33130
33101
  isDisabled,
33131
33102
  onChange: handleChange,
33132
33103
  children: [
33133
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Component, { placeholder }),
33134
- allowCopy && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CopyButton, { value: inputValue, className: TextField_default.icon })
33104
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Component, { placeholder }),
33105
+ allowCopy && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CopyButton, { value: inputValue, className: TextField_default.icon })
33135
33106
  ]
33136
33107
  }
33137
33108
  )
@@ -33142,7 +33113,7 @@ function TextField2({
33142
33113
  var ConfirmationDialog_default = { "dialog": "ConfirmationDialog_dialog__YjQzN", "value": "ConfirmationDialog_value__Njg3N" };
33143
33114
 
33144
33115
  // src/components/ConfirmationDialog.tsx
33145
- var import_jsx_runtime40 = require("react/jsx-runtime");
33116
+ var import_jsx_runtime39 = require("react/jsx-runtime");
33146
33117
  function ConfirmationDialog({
33147
33118
  value,
33148
33119
  confirmMessage,
@@ -33154,27 +33125,57 @@ function ConfirmationDialog({
33154
33125
  const handleChange = (e) => {
33155
33126
  setCanSave(e.target.value === value);
33156
33127
  };
33157
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
33128
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
33158
33129
  AlertDialog,
33159
33130
  {
33160
33131
  ...props,
33161
- className: (0, import_classnames26.default)(ConfirmationDialog_default.dialog, className),
33132
+ className: (0, import_classnames25.default)(ConfirmationDialog_default.dialog, className),
33162
33133
  isConfirmDisabled: !canSave,
33163
33134
  children: ({ close }) => {
33164
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
33135
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
33165
33136
  typeof children === "function" ? children({ close }) : children,
33166
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Text, { children: [
33137
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Text, { children: [
33167
33138
  confirmMessage || "Type the following value to confirm",
33168
33139
  ":"
33169
33140
  ] }),
33170
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: ConfirmationDialog_default.value, children: value }),
33171
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TextField2, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
33141
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: ConfirmationDialog_default.value, children: value }),
33142
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TextField2, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
33172
33143
  ] });
33173
33144
  }
33174
33145
  }
33175
33146
  );
33176
33147
  }
33177
33148
 
33149
+ // src/components/Container.tsx
33150
+ var import_classnames26 = __toESM(require_classnames());
33151
+
33152
+ // css-modules:E:\dev\umami-react-zen\src\components\Container.module.css
33153
+ var Container_default = { "container": "Container_container__ZWU0Y", "centered": "Container_centered__OTM1M", "fluid": "Container_fluid__NTBhY" };
33154
+
33155
+ // src/components/Container.tsx
33156
+ var import_jsx_runtime40 = require("react/jsx-runtime");
33157
+ function Container({
33158
+ isCentered = true,
33159
+ isFluid,
33160
+ className,
33161
+ children,
33162
+ ...props
33163
+ }) {
33164
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
33165
+ Box,
33166
+ {
33167
+ ...props,
33168
+ className: (0, import_classnames26.default)(
33169
+ Container_default.container,
33170
+ className,
33171
+ isCentered && Container_default.centered,
33172
+ isFluid && Container_default.fluid
33173
+ ),
33174
+ children
33175
+ }
33176
+ );
33177
+ }
33178
+
33178
33179
  // src/components/DataTable.tsx
33179
33180
  var import_classnames28 = __toESM(require_classnames());
33180
33181
  var import_react186 = require("react");
package/dist/index.mjs CHANGED
@@ -32901,53 +32901,23 @@ function Code({ asChild, children }) {
32901
32901
  return /* @__PURE__ */ jsx36(Component, { className: Code_default.code, children });
32902
32902
  }
32903
32903
 
32904
- // src/components/Container.tsx
32905
- var import_classnames23 = __toESM(require_classnames());
32906
-
32907
- // css-modules:E:\dev\umami-react-zen\src\components\Container.module.css
32908
- var Container_default = { "container": "Container_container__ZWU0Y", "centered": "Container_centered__OTM1M", "fluid": "Container_fluid__NTBhY" };
32909
-
32910
- // src/components/Container.tsx
32911
- import { jsx as jsx37 } from "react/jsx-runtime";
32912
- function Container({
32913
- isCentered = true,
32914
- isFluid,
32915
- className,
32916
- children,
32917
- ...props
32918
- }) {
32919
- return /* @__PURE__ */ jsx37(
32920
- Box,
32921
- {
32922
- ...props,
32923
- className: (0, import_classnames23.default)(
32924
- Container_default.container,
32925
- className,
32926
- isCentered && Container_default.centered,
32927
- isFluid && Container_default.fluid
32928
- ),
32929
- children
32930
- }
32931
- );
32932
- }
32933
-
32934
32904
  // src/components/ConfirmationDialog.tsx
32935
- var import_classnames26 = __toESM(require_classnames());
32905
+ var import_classnames25 = __toESM(require_classnames());
32936
32906
  import { useState as useState10 } from "react";
32937
32907
 
32938
32908
  // src/components/TextField.tsx
32939
32909
  import { useEffect as useEffect9, useState as useState9 } from "react";
32940
- var import_classnames25 = __toESM(require_classnames());
32910
+ var import_classnames24 = __toESM(require_classnames());
32941
32911
 
32942
32912
  // src/components/CopyButton.tsx
32943
- var import_classnames24 = __toESM(require_classnames());
32913
+ var import_classnames23 = __toESM(require_classnames());
32944
32914
  import { useState as useState8, useRef as useRef7 } from "react";
32945
32915
 
32946
32916
  // css-modules:E:\dev\umami-react-zen\src\components\CopyButton.module.css
32947
32917
  var CopyButton_default = { "icon": "CopyButton_icon__YTM2Y", "copy-button": "CopyButton_copy-button__MjY1M" };
32948
32918
 
32949
32919
  // src/components/CopyButton.tsx
32950
- import { jsx as jsx38 } from "react/jsx-runtime";
32920
+ import { jsx as jsx37 } from "react/jsx-runtime";
32951
32921
  var TIMEOUT = 2e3;
32952
32922
  function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
32953
32923
  const [copied, setCopied] = useState8(false);
@@ -32960,14 +32930,14 @@ function CopyButton({ value, timeout = TIMEOUT, className, children, ...props })
32960
32930
  ref.current = +setTimeout(() => setCopied(false), timeout);
32961
32931
  }
32962
32932
  };
32963
- return /* @__PURE__ */ jsx38(Icon2, { ...props, className: (0, import_classnames24.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ jsx38(Check, {}) : /* @__PURE__ */ jsx38(Copy, {}) });
32933
+ return /* @__PURE__ */ jsx37(Icon2, { ...props, className: (0, import_classnames23.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ jsx37(Check, {}) : /* @__PURE__ */ jsx37(Copy, {}) });
32964
32934
  }
32965
32935
 
32966
32936
  // css-modules:E:\dev\umami-react-zen\src\components\TextField.module.css
32967
32937
  var TextField_default = { "field": "TextField_field__YzU1O", "icon": "TextField_icon__MDJlY", "novalue": "TextField_novalue__NDg4Y", "textarea": "TextField_textarea__NTQ3M", "resize-vertical": "TextField_resize-vertical__ZDc3N", "resize-horizontal": "TextField_resize-horizontal__MzJjY", "resize-none": "TextField_resize-none__ZmUxZ" };
32968
32938
 
32969
32939
  // src/components/TextField.tsx
32970
- import { Fragment as Fragment6, jsx as jsx39, jsxs as jsxs20 } from "react/jsx-runtime";
32940
+ import { Fragment as Fragment6, jsx as jsx38, jsxs as jsxs20 } from "react/jsx-runtime";
32971
32941
  function TextField2({
32972
32942
  value,
32973
32943
  defaultValue,
@@ -32993,13 +32963,13 @@ function TextField2({
32993
32963
  setInputValue(value);
32994
32964
  }, [value]);
32995
32965
  return /* @__PURE__ */ jsxs20(Fragment6, { children: [
32996
- label && /* @__PURE__ */ jsx39(Label2, { children: label }),
32966
+ label && /* @__PURE__ */ jsx38(Label2, { children: label }),
32997
32967
  /* @__PURE__ */ jsxs20(
32998
32968
  $bcdf0525bf22703d$export$2c73285ae9390cec,
32999
32969
  {
33000
32970
  "aria-label": "Text",
33001
32971
  ...props,
33002
- className: (0, import_classnames25.default)(
32972
+ className: (0, import_classnames24.default)(
33003
32973
  TextField_default.field,
33004
32974
  asTextArea && TextField_default.textarea,
33005
32975
  allowCopy && TextField_default.copy,
@@ -33012,8 +32982,8 @@ function TextField2({
33012
32982
  isDisabled,
33013
32983
  onChange: handleChange,
33014
32984
  children: [
33015
- /* @__PURE__ */ jsx39(Component, { placeholder }),
33016
- allowCopy && /* @__PURE__ */ jsx39(CopyButton, { value: inputValue, className: TextField_default.icon })
32985
+ /* @__PURE__ */ jsx38(Component, { placeholder }),
32986
+ allowCopy && /* @__PURE__ */ jsx38(CopyButton, { value: inputValue, className: TextField_default.icon })
33017
32987
  ]
33018
32988
  }
33019
32989
  )
@@ -33024,7 +32994,7 @@ function TextField2({
33024
32994
  var ConfirmationDialog_default = { "dialog": "ConfirmationDialog_dialog__YjQzN", "value": "ConfirmationDialog_value__Njg3N" };
33025
32995
 
33026
32996
  // src/components/ConfirmationDialog.tsx
33027
- import { Fragment as Fragment7, jsx as jsx40, jsxs as jsxs21 } from "react/jsx-runtime";
32997
+ import { Fragment as Fragment7, jsx as jsx39, jsxs as jsxs21 } from "react/jsx-runtime";
33028
32998
  function ConfirmationDialog({
33029
32999
  value,
33030
33000
  confirmMessage,
@@ -33036,11 +33006,11 @@ function ConfirmationDialog({
33036
33006
  const handleChange = (e) => {
33037
33007
  setCanSave(e.target.value === value);
33038
33008
  };
33039
- return /* @__PURE__ */ jsx40(
33009
+ return /* @__PURE__ */ jsx39(
33040
33010
  AlertDialog,
33041
33011
  {
33042
33012
  ...props,
33043
- className: (0, import_classnames26.default)(ConfirmationDialog_default.dialog, className),
33013
+ className: (0, import_classnames25.default)(ConfirmationDialog_default.dialog, className),
33044
33014
  isConfirmDisabled: !canSave,
33045
33015
  children: ({ close }) => {
33046
33016
  return /* @__PURE__ */ jsxs21(Fragment7, { children: [
@@ -33049,14 +33019,44 @@ function ConfirmationDialog({
33049
33019
  confirmMessage || "Type the following value to confirm",
33050
33020
  ":"
33051
33021
  ] }),
33052
- /* @__PURE__ */ jsx40("div", { className: ConfirmationDialog_default.value, children: value }),
33053
- /* @__PURE__ */ jsx40(TextField2, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
33022
+ /* @__PURE__ */ jsx39("div", { className: ConfirmationDialog_default.value, children: value }),
33023
+ /* @__PURE__ */ jsx39(TextField2, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
33054
33024
  ] });
33055
33025
  }
33056
33026
  }
33057
33027
  );
33058
33028
  }
33059
33029
 
33030
+ // src/components/Container.tsx
33031
+ var import_classnames26 = __toESM(require_classnames());
33032
+
33033
+ // css-modules:E:\dev\umami-react-zen\src\components\Container.module.css
33034
+ var Container_default = { "container": "Container_container__ZWU0Y", "centered": "Container_centered__OTM1M", "fluid": "Container_fluid__NTBhY" };
33035
+
33036
+ // src/components/Container.tsx
33037
+ import { jsx as jsx40 } from "react/jsx-runtime";
33038
+ function Container({
33039
+ isCentered = true,
33040
+ isFluid,
33041
+ className,
33042
+ children,
33043
+ ...props
33044
+ }) {
33045
+ return /* @__PURE__ */ jsx40(
33046
+ Box,
33047
+ {
33048
+ ...props,
33049
+ className: (0, import_classnames26.default)(
33050
+ Container_default.container,
33051
+ className,
33052
+ isCentered && Container_default.centered,
33053
+ isFluid && Container_default.fluid
33054
+ ),
33055
+ children
33056
+ }
33057
+ );
33058
+ }
33059
+
33060
33060
  // src/components/DataTable.tsx
33061
33061
  var import_classnames28 = __toESM(require_classnames());
33062
33062
  import { Children as Children2, createElement as createElement7 } from "react";
@@ -34229,6 +34229,7 @@ export {
34229
34229
  ComboBox2 as ComboBox,
34230
34230
  ConfirmationDialog,
34231
34231
  Container,
34232
+ CopyButton,
34232
34233
  DataColumn,
34233
34234
  DataTable,
34234
34235
  Dialog2 as Dialog,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/react-zen",
3
- "version": "0.179.0",
3
+ "version": "0.180.0",
4
4
  "description": "Modern, minimalist React component library",
5
5
  "author": "Umami <hello@umami.is>",
6
6
  "license": "MIT",
package/styles.css CHANGED
@@ -4087,44 +4087,6 @@ body a.Button_button__NGQyO {
4087
4087
  padding: var(--spacing-1);
4088
4088
  }
4089
4089
 
4090
- /* virtual-css:css:418d794d283baef586ab30b99cf90aa1 */
4091
- .Container_container__ZWU0Y {
4092
- width: 100%;
4093
- padding: 0 1rem;
4094
- }
4095
- .Container_container__ZWU0Y.Container_centered__OTM1M {
4096
- margin: 0 auto;
4097
- }
4098
- .Container_container__ZWU0Y.Container_fluid__NTBhY {
4099
- max-width: 100%;
4100
- padding: 0;
4101
- }
4102
- @media (min-width: 520px) {
4103
- .Container_container__ZWU0Y {
4104
- max-width: 500px;
4105
- }
4106
- }
4107
- @media (min-width: 768px) {
4108
- .Container_container__ZWU0Y {
4109
- max-width: 740px;
4110
- }
4111
- }
4112
- @media (min-width: 1024px) {
4113
- .Container_container__ZWU0Y {
4114
- max-width: 1000px;
4115
- }
4116
- }
4117
- @media (min-width: 1280px) {
4118
- .Container_container__ZWU0Y {
4119
- max-width: 1240px;
4120
- }
4121
- }
4122
- @media (min-width: 1640px) {
4123
- .Container_container__ZWU0Y {
4124
- max-width: 1600px;
4125
- }
4126
- }
4127
-
4128
4090
  /* virtual-css:css:814f767aeadf5e17bfb63509d2206999 */
4129
4091
  .CopyButton_icon__YTM2Y {
4130
4092
  animation: CopyButton_copy-button__MjY1M 200ms;
@@ -4229,6 +4191,44 @@ body a.Button_button__NGQyO {
4229
4191
  font-weight: 700;
4230
4192
  }
4231
4193
 
4194
+ /* virtual-css:css:418d794d283baef586ab30b99cf90aa1 */
4195
+ .Container_container__ZWU0Y {
4196
+ width: 100%;
4197
+ padding: 0 1rem;
4198
+ }
4199
+ .Container_container__ZWU0Y.Container_centered__OTM1M {
4200
+ margin: 0 auto;
4201
+ }
4202
+ .Container_container__ZWU0Y.Container_fluid__NTBhY {
4203
+ max-width: 100%;
4204
+ padding: 0;
4205
+ }
4206
+ @media (min-width: 520px) {
4207
+ .Container_container__ZWU0Y {
4208
+ max-width: 500px;
4209
+ }
4210
+ }
4211
+ @media (min-width: 768px) {
4212
+ .Container_container__ZWU0Y {
4213
+ max-width: 740px;
4214
+ }
4215
+ }
4216
+ @media (min-width: 1024px) {
4217
+ .Container_container__ZWU0Y {
4218
+ max-width: 1000px;
4219
+ }
4220
+ }
4221
+ @media (min-width: 1280px) {
4222
+ .Container_container__ZWU0Y {
4223
+ max-width: 1240px;
4224
+ }
4225
+ }
4226
+ @media (min-width: 1640px) {
4227
+ .Container_container__ZWU0Y {
4228
+ max-width: 1600px;
4229
+ }
4230
+ }
4231
+
4232
4232
  /* virtual-css:css:eedba9fc7e3d8030bbd07387da49f358 */
4233
4233
  .Table_table__YjllN {
4234
4234
  font-size: var(--font-size);