@pantool/components 1.0.0-alpha.6 → 1.0.0-alpha.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.js","names":["Collapsible","BaseUiCollapsible","styles"],"sources":["../../../src/atoms/collapsible/collapsible.tsx"],"sourcesContent":["import {\n Collapsible as BaseUiCollapsible,\n type CollapsibleRootProps as BaseUiCollapsibleRootProps,\n} from \"@base-ui/react\";\nimport clsx from \"clsx\";\nimport styles from \"./collapsible.module.css\";\n\ntype CollapsibleProps = Omit<BaseUiCollapsibleRootProps, \"className\"> & {\n renderTrigger: React.ReactElement;\n classNames?: {\n root?: string;\n trigger?: string;\n panel?: string;\n };\n children: React.
|
|
1
|
+
{"version":3,"file":"collapsible.js","names":["Collapsible","BaseUiCollapsible","styles"],"sources":["../../../src/atoms/collapsible/collapsible.tsx"],"sourcesContent":["import {\n Collapsible as BaseUiCollapsible,\n type CollapsibleRootProps as BaseUiCollapsibleRootProps,\n} from \"@base-ui/react\";\nimport clsx from \"clsx\";\nimport styles from \"./collapsible.module.css\";\n\ntype CollapsibleProps = Omit<BaseUiCollapsibleRootProps, \"className\"> & {\n renderTrigger: React.ReactElement;\n classNames?: {\n root?: string;\n trigger?: string;\n panel?: string;\n };\n children: React.ReactNode;\n};\n\nexport const Collapsible: React.FC<CollapsibleProps> = props => {\n const { renderTrigger, classNames, children } = props;\n return (\n <BaseUiCollapsible.Root className={classNames?.root}>\n <BaseUiCollapsible.Trigger\n className={classNames?.trigger}\n render={renderTrigger}\n />\n <BaseUiCollapsible.Panel\n className={clsx(styles[\"panel\"], classNames?.panel)}\n >\n {children}\n </BaseUiCollapsible.Panel>\n </BaseUiCollapsible.Root>\n );\n};\n"],"mappings":"0JAiBA,MAAaA,EAA0C,GAAS,CAC9D,GAAM,CAAE,gBAAe,aAAY,YAAa,EAChD,OACE,EAACC,EAAkB,KAAnB,CAAwB,UAAW,GAAY,cAA/C,CACE,EAACA,EAAkB,QAAnB,CACE,UAAW,GAAY,QACvB,OAAQ,CACT,CAAA,EACD,EAACA,EAAkB,MAAnB,CACE,UAAW,EAAKC,EAAO,MAAU,GAAY,KAAK,EAEjD,UACsB,CAAA,CACH,GAE5B"}
|
package/dist/atoms/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { AlertDialog, AlertDialogProps } from "./alert-dialog/alert-dialog.js";
|
|
|
2
2
|
import { Button, ButtonProps } from "./button/button.js";
|
|
3
3
|
import { Checkbox, CheckboxProps } from "./checkbox/checkbox.js";
|
|
4
4
|
import { Collapsible } from "./collapsible/collapsible.js";
|
|
5
|
+
import { ComboboxItem } from "./combobox/components/item.js";
|
|
5
6
|
import { Combobox, ComboboxGroup, ComboboxProps } from "./combobox/combobox.js";
|
|
6
7
|
import { ConditionGuard, ConditionGuardProps } from "./condition-guard/condition-guard.js";
|
|
7
8
|
import { ContextMenu } from "./context-menu/context-menu.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { AlertDialog, AlertDialogProps } from "./atoms/alert-dialog/alert-dialog
|
|
|
2
2
|
import { Button, ButtonProps } from "./atoms/button/button.js";
|
|
3
3
|
import { Checkbox, CheckboxProps } from "./atoms/checkbox/checkbox.js";
|
|
4
4
|
import { Collapsible } from "./atoms/collapsible/collapsible.js";
|
|
5
|
+
import { ComboboxItem } from "./atoms/combobox/components/item.js";
|
|
5
6
|
import { Combobox, ComboboxGroup, ComboboxProps } from "./atoms/combobox/combobox.js";
|
|
6
7
|
import { ConditionGuard, ConditionGuardProps } from "./atoms/condition-guard/condition-guard.js";
|
|
7
8
|
import { ContextMenu } from "./atoms/context-menu/context-menu.js";
|
|
@@ -26,4 +27,4 @@ import { useAlertDialog } from "./providers/alert-dialog-provider/hooks.js";
|
|
|
26
27
|
import { DialogContext, DialogProvider, DialogProviderProps, showDialog } from "./providers/dialog-provider/dialog-provider.js";
|
|
27
28
|
import { useDialog } from "./providers/dialog-provider/hooks.js";
|
|
28
29
|
import { ToastProvider, ToastProviderProps, toaster } from "./providers/toast-provider/toast-provider.js";
|
|
29
|
-
export { AlertDialog, AlertDialogContext, AlertDialogProps, AlertDialogProvider, AlertDialogProviderProps, Button, ButtonProps, Checkbox, CheckboxProps, Collapsible, Combobox, ComboboxGroup, ComboboxProps, ConditionGuard, ConditionGuardProps, ContextMenu, Dialog, DialogContext, DialogProps, DialogProvider, DialogProviderProps, Flex, FlexProps, Icon, IconButton, IconButtonProps, IconProps, Input, InputProps, MergeElementProps, MergeElementPropsWithOmitted, PolymorphicProps, PolymorphicPropsWithOmitted, Portal, PortalConfigProvider, PortalProps, Radio, RadioGroup, RadioGroupProps, RadioProps, Switch, SwitchProps, Tabs, TabsList, type TabsListProps, type TabsListState, TabsPanel, type TabsPanelProps, type TabsPanelState, type TabsRootChangeEventDetails, type TabsRootState, TabsTab, type TabsTabProps, type TabsTabState, type TabsTabValue, Text, TextColor, TextProps, TextVariant, Toast, ToastData, ToastProps, ToastProvider, ToastProviderProps, Tooltip, TooltipProps, TooltipProvider, TooltipProviderProps, WithBaseProps, WithColorProps, WithRef, showAlertDialog, showDialog, toaster, useAlertDialog, useDialog, usePortalConfig };
|
|
30
|
+
export { AlertDialog, AlertDialogContext, AlertDialogProps, AlertDialogProvider, AlertDialogProviderProps, Button, ButtonProps, Checkbox, CheckboxProps, Collapsible, Combobox, ComboboxGroup, type ComboboxItem, ComboboxProps, ConditionGuard, ConditionGuardProps, ContextMenu, Dialog, DialogContext, DialogProps, DialogProvider, DialogProviderProps, Flex, FlexProps, Icon, IconButton, IconButtonProps, IconProps, Input, InputProps, MergeElementProps, MergeElementPropsWithOmitted, PolymorphicProps, PolymorphicPropsWithOmitted, Portal, PortalConfigProvider, PortalProps, Radio, RadioGroup, RadioGroupProps, RadioProps, Switch, SwitchProps, Tabs, TabsList, type TabsListProps, type TabsListState, TabsPanel, type TabsPanelProps, type TabsPanelState, type TabsRootChangeEventDetails, type TabsRootState, TabsTab, type TabsTabProps, type TabsTabState, type TabsTabValue, Text, TextColor, TextProps, TextVariant, Toast, ToastData, ToastProps, ToastProvider, ToastProviderProps, Tooltip, TooltipProps, TooltipProvider, TooltipProviderProps, WithBaseProps, WithColorProps, WithRef, showAlertDialog, showDialog, toaster, useAlertDialog, useDialog, usePortalConfig };
|