@kopexa/combobox 13.0.0 → 13.0.2

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.
@@ -83,8 +83,8 @@ import { combobox } from "@kopexa/theme";
83
83
  import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
84
84
  var [ComboboxProvider, useComboboxContext] = createContext();
85
85
  var ComboboxRoot = (props) => {
86
- const { children, ...rest } = props;
87
- const styles = combobox();
86
+ const { children, variant, size, fullWidth, ...rest } = props;
87
+ const styles = combobox({ variant, size, fullWidth });
88
88
  return /* @__PURE__ */ jsx4(ComboboxProvider, { value: { styles }, children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Root, { "data-slot": "combobox", ...rest, children }) });
89
89
  };
90
90
  function ComboboxControl({ className, ...props }) {
@@ -1,8 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { Combobox } from '@base-ui-components/react/combobox';
3
+ import { ComboboxVariantProps } from '@kopexa/theme';
3
4
  import { ComponentProps } from 'react';
4
5
 
5
- type ComboboxProps = ComponentProps<typeof Combobox.Root>;
6
+ type ComboboxProps = ComponentProps<typeof Combobox.Root> & ComboboxVariantProps;
6
7
  declare const ComboboxRoot: (props: ComboboxProps) => react_jsx_runtime.JSX.Element;
7
8
  type ComboboxControlProps = ComponentProps<"div">;
8
9
  declare function ComboboxControl({ className, ...props }: ComboboxControlProps): react_jsx_runtime.JSX.Element;
@@ -1,8 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { Combobox } from '@base-ui-components/react/combobox';
3
+ import { ComboboxVariantProps } from '@kopexa/theme';
3
4
  import { ComponentProps } from 'react';
4
5
 
5
- type ComboboxProps = ComponentProps<typeof Combobox.Root>;
6
+ type ComboboxProps = ComponentProps<typeof Combobox.Root> & ComboboxVariantProps;
6
7
  declare const ComboboxRoot: (props: ComboboxProps) => react_jsx_runtime.JSX.Element;
7
8
  type ComboboxControlProps = ComponentProps<"div">;
8
9
  declare function ComboboxControl({ className, ...props }: ComboboxControlProps): react_jsx_runtime.JSX.Element;
package/dist/combobox.js CHANGED
@@ -135,8 +135,8 @@ var import_theme = require("@kopexa/theme");
135
135
  var import_jsx_runtime4 = require("react/jsx-runtime");
136
136
  var [ComboboxProvider, useComboboxContext] = (0, import_react_utils.createContext)();
137
137
  var ComboboxRoot = (props) => {
138
- const { children, ...rest } = props;
139
- const styles = (0, import_theme.combobox)();
138
+ const { children, variant, size, fullWidth, ...rest } = props;
139
+ const styles = (0, import_theme.combobox)({ variant, size, fullWidth });
140
140
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ComboboxProvider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_combobox.Combobox.Root, { "data-slot": "combobox", ...rest, children }) });
141
141
  };
142
142
  function ComboboxControl({ className, ...props }) {
package/dist/combobox.mjs CHANGED
@@ -30,7 +30,7 @@ import {
30
30
  ComboboxTitle,
31
31
  ComboboxTrigger,
32
32
  ComboboxValue
33
- } from "./chunk-CSTFWXHW.mjs";
33
+ } from "./chunk-22RP4WRE.mjs";
34
34
  export {
35
35
  ComboboxArrow,
36
36
  ComboboxBackdrop,
package/dist/index.d.mts CHANGED
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ComboboxProps, ComboboxControl, ComboboxValue, ComboboxInput, ComboboxStatus, ComboboxPortal, ComboboxBackdrop, ComboboxPositioner, ComboboxPopup, ComboboxContent, ComboboxList, ComboboxCollection, ComboboxRow, ComboboxItem, ComboboxItemIndicator, ComboboxGroup, ComboboxGroupLabel, ComboboxEmpty, ComboboxClear, ComboboxIcon, ComboboxArrow, ComboboxTrigger, ComboboxChips, ComboboxChip, ComboboxChipRemove, ComboboxSeparator, ComboboxHeader, ComboboxTitle, ComboboxDescription } from './combobox.mjs';
3
3
  export { ComboboxArrowProps, ComboboxBackdropProps, ComboboxChipProps, ComboboxChipRemoveProps, ComboboxChipsProps, ComboboxClearProps, ComboboxCollectionProps, ComboboxContentProps, ComboboxControlProps, ComboboxDescriptionProps, ComboboxEmptyProps, ComboboxGroupLabelProps, ComboboxGroupProps, ComboboxHeaderProps, ComboboxIconProps, ComboboxInputProps, ComboboxItemIndicatorProps, ComboboxItemProps, ComboboxListProps, ComboboxPopupProps, ComboboxPortalProps, ComboboxPositionerProps, ComboboxRowProps, ComboboxSeparatorProps, ComboboxStatusProps, ComboboxTitleProps, ComboboxTriggerProps, ComboboxValueProps } from './combobox.mjs';
4
4
  import '@base-ui-components/react/combobox';
5
+ import '@kopexa/theme';
5
6
  import 'react';
6
7
 
7
8
  declare const Combobox: ((props: ComboboxProps) => react_jsx_runtime.JSX.Element) & {
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ComboboxProps, ComboboxControl, ComboboxValue, ComboboxInput, ComboboxStatus, ComboboxPortal, ComboboxBackdrop, ComboboxPositioner, ComboboxPopup, ComboboxContent, ComboboxList, ComboboxCollection, ComboboxRow, ComboboxItem, ComboboxItemIndicator, ComboboxGroup, ComboboxGroupLabel, ComboboxEmpty, ComboboxClear, ComboboxIcon, ComboboxArrow, ComboboxTrigger, ComboboxChips, ComboboxChip, ComboboxChipRemove, ComboboxSeparator, ComboboxHeader, ComboboxTitle, ComboboxDescription } from './combobox.js';
3
3
  export { ComboboxArrowProps, ComboboxBackdropProps, ComboboxChipProps, ComboboxChipRemoveProps, ComboboxChipsProps, ComboboxClearProps, ComboboxCollectionProps, ComboboxContentProps, ComboboxControlProps, ComboboxDescriptionProps, ComboboxEmptyProps, ComboboxGroupLabelProps, ComboboxGroupProps, ComboboxHeaderProps, ComboboxIconProps, ComboboxInputProps, ComboboxItemIndicatorProps, ComboboxItemProps, ComboboxListProps, ComboboxPopupProps, ComboboxPortalProps, ComboboxPositionerProps, ComboboxRowProps, ComboboxSeparatorProps, ComboboxStatusProps, ComboboxTitleProps, ComboboxTriggerProps, ComboboxValueProps } from './combobox.js';
4
4
  import '@base-ui-components/react/combobox';
5
+ import '@kopexa/theme';
5
6
  import 'react';
6
7
 
7
8
  declare const Combobox: ((props: ComboboxProps) => react_jsx_runtime.JSX.Element) & {
package/dist/index.js CHANGED
@@ -108,8 +108,8 @@ var import_theme = require("@kopexa/theme");
108
108
  var import_jsx_runtime4 = require("react/jsx-runtime");
109
109
  var [ComboboxProvider, useComboboxContext] = (0, import_react_utils.createContext)();
110
110
  var ComboboxRoot = (props) => {
111
- const { children, ...rest } = props;
112
- const styles = (0, import_theme.combobox)();
111
+ const { children, variant, size, fullWidth, ...rest } = props;
112
+ const styles = (0, import_theme.combobox)({ variant, size, fullWidth });
113
113
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ComboboxProvider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_combobox.Combobox.Root, { "data-slot": "combobox", ...rest, children }) });
114
114
  };
115
115
  function ComboboxControl({ className, ...props }) {
package/dist/index.mjs CHANGED
@@ -29,7 +29,7 @@ import {
29
29
  ComboboxTitle,
30
30
  ComboboxTrigger,
31
31
  ComboboxValue
32
- } from "./chunk-CSTFWXHW.mjs";
32
+ } from "./chunk-22RP4WRE.mjs";
33
33
 
34
34
  // src/index.ts
35
35
  var Combobox = Object.assign(ComboboxRoot, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kopexa/combobox",
3
- "version": "13.0.0",
3
+ "version": "13.0.2",
4
4
  "description": "a combobox",
5
5
  "keywords": [
6
6
  "combobox"
@@ -28,12 +28,12 @@
28
28
  "motion": ">=12.23.6",
29
29
  "react": ">=19.0.0-rc.0",
30
30
  "react-dom": ">=19.0.0-rc.0",
31
- "@kopexa/theme": "13.0.0"
31
+ "@kopexa/theme": "13.0.2"
32
32
  },
33
33
  "dependencies": {
34
34
  "@base-ui-components/react": "1.0.0-beta.3",
35
- "@kopexa/react-utils": "13.0.0",
36
- "@kopexa/shared-utils": "13.0.0"
35
+ "@kopexa/react-utils": "13.0.2",
36
+ "@kopexa/shared-utils": "13.0.2"
37
37
  },
38
38
  "clean-package": "../../../clean-package.config.json",
39
39
  "module": "dist/index.mjs",