figma-kit 1.0.0-beta.22 → 1.0.0-beta.24

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.
Files changed (167) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2 -4
  3. package/dist/components/alert-dialog/alert-dialog.d.ts +31 -0
  4. package/dist/components/alert-dialog/index.d.ts +1 -0
  5. package/dist/components/button/button.d.ts +15 -0
  6. package/dist/components/button/index.d.ts +1 -0
  7. package/dist/components/checkbox/checkbox.d.ts +12 -0
  8. package/dist/components/checkbox/index.d.ts +1 -0
  9. package/dist/components/collapsible/collapsible.d.ts +10 -0
  10. package/dist/components/collapsible/index.d.ts +1 -0
  11. package/dist/components/color-picker/color-picker-alpha.d.ts +4 -0
  12. package/dist/components/color-picker/color-picker-area.d.ts +5 -0
  13. package/dist/components/color-picker/color-picker-hue.d.ts +4 -0
  14. package/dist/components/color-picker/color-picker-input.d.ts +7 -0
  15. package/dist/components/color-picker/color-picker.d.ts +63 -0
  16. package/dist/components/color-picker/index.d.ts +5 -0
  17. package/dist/components/combobox/combobox.d.ts +51 -0
  18. package/dist/components/combobox/index.d.ts +1 -0
  19. package/dist/components/context-menu/context-menu.d.ts +36 -0
  20. package/dist/components/context-menu/index.d.ts +1 -0
  21. package/dist/components/dialog/dialog.d.ts +25 -0
  22. package/dist/components/dialog/index.d.ts +1 -0
  23. package/dist/components/dialog.base/dialog.base.d.ts +15 -0
  24. package/dist/components/dialog.base/index.d.ts +1 -0
  25. package/dist/components/dropdown-menu/dropdown-menu.d.ts +36 -0
  26. package/dist/components/dropdown-menu/index.d.ts +1 -0
  27. package/dist/components/flex/flex.d.ts +23 -0
  28. package/dist/components/flex/index.d.ts +1 -0
  29. package/dist/components/icon/icon.d.ts +16 -0
  30. package/dist/components/icon/index.d.ts +1 -0
  31. package/dist/components/icon-button/icon-button.d.ts +21 -0
  32. package/dist/components/icon-button/index.d.ts +1 -0
  33. package/dist/components/icons/actions.d.ts +3 -0
  34. package/dist/components/icons/align-bottom.d.ts +3 -0
  35. package/dist/components/icons/align-horizontal-center.d.ts +3 -0
  36. package/dist/components/icons/align-left.d.ts +3 -0
  37. package/dist/components/icons/align-right.d.ts +3 -0
  38. package/dist/components/icons/align-top.d.ts +3 -0
  39. package/dist/components/icons/align-vertical-center.d.ts +3 -0
  40. package/dist/components/icons/annotation.d.ts +3 -0
  41. package/dist/components/icons/aspect-ratio.d.ts +3 -0
  42. package/dist/components/icons/auto-height.d.ts +3 -0
  43. package/dist/components/icons/auto-width.d.ts +3 -0
  44. package/dist/components/icons/blend-mode.d.ts +3 -0
  45. package/dist/components/icons/boolean.d.ts +3 -0
  46. package/dist/components/icons/checkmark-indeterminate.d.ts +3 -0
  47. package/dist/components/icons/checkmark.d.ts +3 -0
  48. package/dist/components/icons/chevron-down.d.ts +3 -0
  49. package/dist/components/icons/chevron-left.d.ts +3 -0
  50. package/dist/components/icons/chevron-right.d.ts +3 -0
  51. package/dist/components/icons/chevron-up.d.ts +3 -0
  52. package/dist/components/icons/circle.d.ts +3 -0
  53. package/dist/components/icons/clear.d.ts +3 -0
  54. package/dist/components/icons/close.d.ts +3 -0
  55. package/dist/components/icons/code.d.ts +3 -0
  56. package/dist/components/icons/comment.d.ts +3 -0
  57. package/dist/components/icons/component.d.ts +3 -0
  58. package/dist/components/icons/constraint-left.d.ts +3 -0
  59. package/dist/components/icons/constraint-top.d.ts +3 -0
  60. package/dist/components/icons/corner-radius.d.ts +3 -0
  61. package/dist/components/icons/design.d.ts +3 -0
  62. package/dist/components/icons/draw.d.ts +3 -0
  63. package/dist/components/icons/ellipsis.d.ts +3 -0
  64. package/dist/components/icons/expand.d.ts +3 -0
  65. package/dist/components/icons/eye.d.ts +3 -0
  66. package/dist/components/icons/eyedropper.d.ts +3 -0
  67. package/dist/components/icons/figma.d.ts +3 -0
  68. package/dist/components/icons/fill-gradient.d.ts +3 -0
  69. package/dist/components/icons/fill-pattern.d.ts +3 -0
  70. package/dist/components/icons/fill-solid.d.ts +3 -0
  71. package/dist/components/icons/fixed-size.d.ts +3 -0
  72. package/dist/components/icons/flip-horizontal.d.ts +3 -0
  73. package/dist/components/icons/flip-vertical.d.ts +3 -0
  74. package/dist/components/icons/frame.d.ts +3 -0
  75. package/dist/components/icons/help.d.ts +3 -0
  76. package/dist/components/icons/image.d.ts +3 -0
  77. package/dist/components/icons/index.d.ts +84 -0
  78. package/dist/components/icons/layers-collapse.d.ts +3 -0
  79. package/dist/components/icons/letter-spacing.d.ts +3 -0
  80. package/dist/components/icons/line-height.d.ts +3 -0
  81. package/dist/components/icons/link.d.ts +3 -0
  82. package/dist/components/icons/minus.d.ts +3 -0
  83. package/dist/components/icons/move.d.ts +3 -0
  84. package/dist/components/icons/number.d.ts +3 -0
  85. package/dist/components/icons/opacity.d.ts +3 -0
  86. package/dist/components/icons/palette.d.ts +3 -0
  87. package/dist/components/icons/panel-left-close.d.ts +3 -0
  88. package/dist/components/icons/pen.d.ts +3 -0
  89. package/dist/components/icons/play.d.ts +3 -0
  90. package/dist/components/icons/plus.d.ts +3 -0
  91. package/dist/components/icons/rectangle.d.ts +3 -0
  92. package/dist/components/icons/rotate-clockwise.d.ts +3 -0
  93. package/dist/components/icons/rotation.d.ts +3 -0
  94. package/dist/components/icons/ruler.d.ts +3 -0
  95. package/dist/components/icons/search.d.ts +3 -0
  96. package/dist/components/icons/select-matching.d.ts +3 -0
  97. package/dist/components/icons/shadow-bottom-left.d.ts +3 -0
  98. package/dist/components/icons/shadow-bottom-right.d.ts +3 -0
  99. package/dist/components/icons/shadow-down.d.ts +3 -0
  100. package/dist/components/icons/shadow-left.d.ts +3 -0
  101. package/dist/components/icons/shadow-right.d.ts +3 -0
  102. package/dist/components/icons/shadow-top-left.d.ts +3 -0
  103. package/dist/components/icons/shadow-top-right.d.ts +3 -0
  104. package/dist/components/icons/shadow-up.d.ts +3 -0
  105. package/dist/components/icons/sliders.d.ts +3 -0
  106. package/dist/components/icons/string.d.ts +3 -0
  107. package/dist/components/icons/styles.d.ts +3 -0
  108. package/dist/components/icons/text-align-center.d.ts +3 -0
  109. package/dist/components/icons/text-align-left.d.ts +3 -0
  110. package/dist/components/icons/text-align-right.d.ts +3 -0
  111. package/dist/components/icons/text-vertical-align-bottom.d.ts +3 -0
  112. package/dist/components/icons/text-vertical-align-middle.d.ts +3 -0
  113. package/dist/components/icons/text-vertical-align-top.d.ts +3 -0
  114. package/dist/components/icons/text.d.ts +3 -0
  115. package/dist/components/icons/variable-mode.d.ts +3 -0
  116. package/dist/components/icons/variable.d.ts +3 -0
  117. package/dist/components/icons/video.d.ts +3 -0
  118. package/dist/components/input/index.d.ts +1 -0
  119. package/dist/components/input/input.d.ts +9 -0
  120. package/dist/components/popover/index.d.ts +1 -0
  121. package/dist/components/popover/popover.d.ts +20 -0
  122. package/dist/components/radio-group/index.d.ts +1 -0
  123. package/dist/components/radio-group/radio-group.d.ts +20 -0
  124. package/dist/components/segmented-control/index.d.ts +1 -0
  125. package/dist/components/segmented-control/segmented-control.d.ts +24 -0
  126. package/dist/components/select/index.d.ts +1 -0
  127. package/dist/components/select/select.d.ts +40 -0
  128. package/dist/components/slider/index.d.ts +1 -0
  129. package/dist/components/slider/slider.d.ts +20 -0
  130. package/dist/components/switch/index.d.ts +1 -0
  131. package/dist/components/switch/switch.d.ts +6 -0
  132. package/dist/components/tabs/index.d.ts +1 -0
  133. package/dist/components/tabs/tabs.d.ts +12 -0
  134. package/dist/components/text/index.d.ts +1 -0
  135. package/dist/components/text/text.d.ts +47 -0
  136. package/dist/components/textarea/index.d.ts +1 -0
  137. package/dist/components/textarea/textarea.d.ts +6 -0
  138. package/dist/components/tooltip/index.d.ts +1 -0
  139. package/dist/components/tooltip/tooltip.d.ts +18 -0
  140. package/dist/components/value-field/index.d.ts +10 -0
  141. package/dist/components/value-field/named-colors.d.ts +2 -0
  142. package/dist/components/value-field/types.d.ts +15 -0
  143. package/dist/components/value-field/value-field-base.d.ts +17 -0
  144. package/dist/components/value-field/value-field-elements.d.ts +31 -0
  145. package/dist/components/value-field/value-field-hex.d.ts +29 -0
  146. package/dist/components/value-field/value-field-numeric-select.d.ts +16 -0
  147. package/dist/components/value-field/value-field-numeric.d.ts +62 -0
  148. package/dist/components/value-field/value-field-scrubber.d.ts +20 -0
  149. package/dist/figma-development-theme.css +1 -1
  150. package/dist/index.cjs +4 -11
  151. package/dist/index.d.ts +39 -1004
  152. package/dist/index.mjs +17909 -2084
  153. package/dist/lib/color.d.ts +40 -0
  154. package/dist/lib/constants.d.ts +2 -0
  155. package/dist/lib/dom/focus.d.ts +14 -0
  156. package/dist/lib/dom/set-input-value.d.ts +8 -0
  157. package/dist/lib/number/clamp.d.ts +1 -0
  158. package/dist/lib/number/normalize.d.ts +13 -0
  159. package/dist/lib/react/add-class-name.d.ts +4 -0
  160. package/dist/lib/react/create-context.d.ts +14 -0
  161. package/dist/lib/react/use-compose-refs.d.ts +19 -0
  162. package/dist/lib/react/use-controllable-state.d.ts +14 -0
  163. package/dist/lib/react/use-select-on-input-click.d.ts +9 -0
  164. package/dist/styles.css +282 -23
  165. package/dist/tailwind.css +273 -0
  166. package/package.json +69 -33
  167. package/dist/tailwind.preset.js +0 -303
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Tigran Petrossian
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -2,13 +2,11 @@
2
2
  > Figma Kit is currently in beta. There may be breaking changes before the final release.
3
3
 
4
4
  <div align="center">
5
- <a href="https://storybook.figma-kit.dev" target="_blank">
6
5
  <picture>
7
6
  <source media="(prefers-color-scheme: dark)" srcset="media/github-banner-dark.png">
8
7
  <source media="(prefers-color-scheme: light)" srcset="media/github-banner-light.png">
9
8
  <img src="media/github-banner-light.png" width="400" height="243" alt="Figma kit logo" />
10
9
  </picture>
11
- </a>
12
10
  <h3>A set of React components for building Figma plugins.</h3>
13
11
  </div>
14
12
 
@@ -20,8 +18,8 @@ Figma Kit is an extensive collection of React components that attempts to replic
20
18
 
21
19
  * UI3 Ready
22
20
  * Automatic dark mode
23
- * First-class Tailwind support with a preset
21
+ * First-class Tailwind support
24
22
 
25
23
  ### Documentation
26
24
 
27
- The documentation for the library is on its way. Meanwhile, feel free to check out the [Storybook](https://storybook.figma-kit.dev) for basic guides, information about available components and functionality.
25
+ The documentation for the library is on its way.
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { AlertDialog as BaseAlertDialog } from '@base-ui/react/alert-dialog';
3
+ import { type VariantProps } from 'class-variance-authority';
4
+ type RootProps = BaseAlertDialog.Root.Props;
5
+ declare const Root: typeof BaseAlertDialog.Root;
6
+ type PortalProps = BaseAlertDialog.Portal.Props;
7
+ declare const Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ type TriggerProps = BaseAlertDialog.Trigger.Props;
9
+ declare const Trigger: BaseAlertDialog.Trigger;
10
+ type CloseProps = BaseAlertDialog.Close.Props;
11
+ declare const Close: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogCloseProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
12
+ declare const content: (props?: ({
13
+ size?: "1" | "2" | "3" | null | undefined;
14
+ placement?: "center" | "top" | null | undefined;
15
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
+ type PopupProps = BaseAlertDialog.Popup.Props & VariantProps<typeof content>;
17
+ declare const Popup: React.ForwardRefExoticComponent<Omit<PopupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
+ type BackdropProps = BaseAlertDialog.Backdrop.Props;
19
+ declare const Backdrop: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
+ type TitleProps = BaseAlertDialog.Title.Props;
21
+ declare const Title: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogTitleProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
22
+ type DescriptionProps = BaseAlertDialog.Description.Props;
23
+ declare const Description: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
24
+ type ActionsProps = React.ComponentPropsWithoutRef<'div'> & {
25
+ children: React.ReactNode;
26
+ };
27
+ declare const Actions: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
28
+ children: React.ReactNode;
29
+ } & React.RefAttributes<HTMLDivElement>>;
30
+ export type { RootProps, TriggerProps, PopupProps, BackdropProps, PortalProps, TitleProps, DescriptionProps, ActionsProps, CloseProps, };
31
+ export { Root, Trigger, Popup, Backdrop, Portal, Title, Description, Actions, Close };
@@ -0,0 +1 @@
1
+ export * from './alert-dialog';
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import type { VariantProps } from 'class-variance-authority';
3
+ declare const button: (props?: ({
4
+ variant?: "text" | "primary" | "secondary" | "inverse" | "destructive" | "success" | null | undefined;
5
+ size?: "small" | "medium" | null | undefined;
6
+ fullWidth?: boolean | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ type ButtonProps = React.ComponentPropsWithoutRef<'button'> & VariantProps<typeof button>;
9
+ declare const Button: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
10
+ variant?: "text" | "primary" | "secondary" | "inverse" | "destructive" | "success" | null | undefined;
11
+ size?: "small" | "medium" | null | undefined;
12
+ fullWidth?: boolean | null | undefined;
13
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
14
+ export type { ButtonProps };
15
+ export { Button };
@@ -0,0 +1 @@
1
+ export * from './button';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ declare const Root: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
3
+ type CheckboxProps = React.ComponentPropsWithoutRef<'input'> & {
4
+ indeterminate?: boolean;
5
+ };
6
+ declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
7
+ indeterminate?: boolean;
8
+ } & React.RefAttributes<HTMLInputElement>>;
9
+ declare const Label: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
10
+ declare const Description: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
11
+ export type { CheckboxProps };
12
+ export { Root, Input, Label, Description };
@@ -0,0 +1 @@
1
+ export * from './checkbox';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Collapsible as BaseCollapsible } from '@base-ui/react/collapsible';
3
+ type RootProps = BaseCollapsible.Root.Props;
4
+ declare const Root: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").CollapsibleRootProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ type TriggerProps = BaseCollapsible.Trigger.Props;
6
+ declare const Trigger: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").CollapsibleTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ type PanelProps = BaseCollapsible.Panel.Props;
8
+ declare const Panel: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").CollapsiblePanelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ export type { RootProps, PanelProps, TriggerProps };
10
+ export { Root, Panel, Trigger };
@@ -0,0 +1 @@
1
+ export * from './collapsible';
@@ -0,0 +1,4 @@
1
+ type AlphaProps = React.ComponentPropsWithoutRef<'div'>;
2
+ declare const Alpha: (props: AlphaProps) => import("react/jsx-runtime").JSX.Element;
3
+ export type { AlphaProps };
4
+ export { Alpha };
@@ -0,0 +1,5 @@
1
+ type AreaProps = {
2
+ size?: number;
3
+ };
4
+ declare const Area: (props: AreaProps) => import("react/jsx-runtime").JSX.Element;
5
+ export { Area };
@@ -0,0 +1,4 @@
1
+ type HueProps = React.ComponentPropsWithoutRef<'div'>;
2
+ declare const Hue: (props: HueProps) => import("react/jsx-runtime").JSX.Element;
3
+ export type { HueProps };
4
+ export { Hue };
@@ -0,0 +1,7 @@
1
+ import type { CSSProperties } from 'react';
2
+ type InputProps = {
3
+ className?: string;
4
+ style?: CSSProperties;
5
+ };
6
+ declare const Input: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
7
+ export { Input };
@@ -0,0 +1,63 @@
1
+ import type { HEX, HSLA, HSVA, RGBA } from '../../lib/color';
2
+ type ColorModel = 'hex' | 'rgb' | 'hsl' | 'hsv';
3
+ type ColorSpace = 'srgb' | 'display-p3';
4
+ type ColorsByModel = {
5
+ hex: HEX;
6
+ rgb: RGBA;
7
+ hsl: HSLA;
8
+ hsv: HSVA;
9
+ };
10
+ declare const useColorPickerContext: (consumerName: string) => {
11
+ colorSpace: ColorSpace;
12
+ models: ColorModel[];
13
+ activeModel: ColorModel;
14
+ onActiveModelChange: (model: ColorModel) => void;
15
+ color: RGBA;
16
+ onColorChange: (params: ColorChangeParams) => void;
17
+ colorsByModel: ColorsByModel;
18
+ hue: number;
19
+ };
20
+ type RootProps = {
21
+ /**
22
+ * Color space of the picker. Should match the color profile of the current Figma document.
23
+ * see: https://www.figma.com/plugin-docs/api/DocumentNode/#documentcolorprofile
24
+ * */
25
+ colorSpace: ColorSpace;
26
+ /**
27
+ * Default color model for the picker (uncontrolled mode). Determines the area box type and the initially displayed color input.
28
+ * */
29
+ defaultActiveModel?: ColorModel;
30
+ /**
31
+ * Color model for the picker (controlled mode). Determines the area box type and the initially displayed color input.
32
+ * When specified, you also need to specify 'onActiveModelChange' callback to handle changing the models.
33
+ * @default 'hex' or first item in 'models' if specified.
34
+ * */
35
+ activeModel?: ColorModel;
36
+ /** Callback to call upon model change */
37
+ onActiveModelChange?: (model: ColorModel) => void;
38
+ /**
39
+ * Color models the picker needs to display.
40
+ * @default ['hex', 'rgb', 'hsl', 'hsv']
41
+ * */
42
+ models?: ColorModel[];
43
+ /** Default color in Figma's normalized RGBA format (uncontrolled mode) */
44
+ defaultColor?: RGBA;
45
+ /** Color in Figma's normalized RGBA format (controlled mode) */
46
+ color?: RGBA;
47
+ /** Callback to call upon color change */
48
+ onColorChange?: (color: RGBA) => void;
49
+ children: React.ReactNode;
50
+ };
51
+ type ColorChangeParams = {
52
+ mode: 'hsv';
53
+ value: HSVA;
54
+ } | {
55
+ mode: 'hsl';
56
+ value: HSLA;
57
+ } | {
58
+ mode: 'rgb';
59
+ value: RGBA;
60
+ };
61
+ declare const Root: (props: RootProps) => import("react/jsx-runtime").JSX.Element;
62
+ export type { RootProps, ColorModel, ColorSpace, ColorsByModel };
63
+ export { Root, useColorPickerContext };
@@ -0,0 +1,5 @@
1
+ export * from './color-picker';
2
+ export * from './color-picker-hue';
3
+ export * from './color-picker-alpha';
4
+ export * from './color-picker-area';
5
+ export * from './color-picker-input';
@@ -0,0 +1,51 @@
1
+ import React from 'react';
2
+ import { Combobox as BaseCombobox } from '@base-ui/react/combobox';
3
+ import { Separator as BaseSeparator } from '@base-ui/react/separator';
4
+ type RootProps<Value = unknown, Multiple extends boolean | undefined = false> = BaseCombobox.Root.Props<Value, Multiple>;
5
+ declare const Root: typeof BaseCombobox.Root;
6
+ type LabelProps = BaseCombobox.Label.Props;
7
+ declare const Label: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ type ValueProps = BaseCombobox.Value.Props;
9
+ declare const Value: typeof BaseCombobox.Value;
10
+ type PortalProps = BaseCombobox.Portal.Props;
11
+ declare const Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompletePortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ type ArrowProps = BaseCombobox.Arrow.Props;
13
+ declare const Arrow: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ type BackdropProps = BaseCombobox.Backdrop.Props;
15
+ declare const Backdrop: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
16
+ type TriggerProps = BaseCombobox.Trigger.Props;
17
+ declare const Trigger: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
18
+ type IconProps = BaseCombobox.Icon.Props;
19
+ declare const Icon: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteIconProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
20
+ type PositionerProps = BaseCombobox.Positioner.Props;
21
+ declare const Positioner: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompletePositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
22
+ type PopupProps = BaseCombobox.Popup.Props;
23
+ declare const Popup: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompletePopupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
24
+ type InputGroupProps = BaseCombobox.InputGroup.Props;
25
+ declare const InputGroup: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxInputGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
26
+ type InputProps = BaseCombobox.Input.Props;
27
+ declare const Input: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
28
+ type SearchInputProps = InputProps;
29
+ declare const SearchInput: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
30
+ type ListProps = BaseCombobox.List.Props;
31
+ declare const List: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteListProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
32
+ type ItemProps = BaseCombobox.Item.Props;
33
+ declare const Item: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
34
+ type ItemIndicatorProps = BaseCombobox.ItemIndicator.Props;
35
+ declare const ItemIndicator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxItemIndicatorProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
36
+ type EmptyProps = BaseCombobox.Empty.Props;
37
+ declare const Empty: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteEmptyProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
38
+ type StatusProps = BaseCombobox.Status.Props;
39
+ declare const Status: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteStatusProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
40
+ type GroupProps = BaseCombobox.Group.Props;
41
+ declare const Group: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
42
+ type GroupLabelProps = BaseCombobox.GroupLabel.Props;
43
+ declare const GroupLabel: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
44
+ type CollectionProps = BaseCombobox.Collection.Props;
45
+ declare const Collection: typeof BaseCombobox.Collection;
46
+ type SeparatorProps = BaseSeparator.Props;
47
+ declare const Separator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
48
+ type ClearProps = BaseCombobox.Clear.Props;
49
+ declare const Clear: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteClearProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
50
+ export type { RootProps, LabelProps, ValueProps, TriggerProps, IconProps, PortalProps, PositionerProps, PopupProps, InputGroupProps, InputProps, SearchInputProps, ListProps, ItemProps, ItemIndicatorProps, EmptyProps, StatusProps, GroupProps, GroupLabelProps, CollectionProps, SeparatorProps, ClearProps, ArrowProps, BackdropProps, };
51
+ export { Root, Label, Value, Trigger, Icon, Portal, Positioner, Popup, InputGroup, Input, SearchInput, List, Item, ItemIndicator, Empty, Status, Group, GroupLabel, Collection, Separator, Clear, Arrow, Backdrop, };
@@ -0,0 +1 @@
1
+ export * from './combobox';
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { ContextMenu as BaseContextMenu } from '@base-ui/react/context-menu';
3
+ type RootProps = BaseContextMenu.Root.Props;
4
+ declare const Root: typeof BaseContextMenu.Root;
5
+ type TriggerProps = BaseContextMenu.Trigger.Props;
6
+ declare const Trigger: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuTriggerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ type PortalProps = BaseContextMenu.Portal.Props;
8
+ declare const Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ type PositionerProps = BaseContextMenu.Positioner.Props;
10
+ declare const Positioner: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ type SubmenuRootProps = BaseContextMenu.SubmenuRoot.Props;
12
+ declare const SubmenuRoot: typeof BaseContextMenu.SubmenuRoot;
13
+ type RadioGroupProps = BaseContextMenu.RadioGroup.Props;
14
+ declare const RadioGroup: React.NamedExoticComponent<Omit<import("@base-ui/react").ContextMenuRadioGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ type PopupProps = BaseContextMenu.Popup.Props;
16
+ declare const Popup: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
17
+ type ItemProps = BaseContextMenu.Item.Props;
18
+ declare const Item: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuItemProps, "ref"> & React.RefAttributes<HTMLElement>>;
19
+ type SeparatorProps = BaseContextMenu.Separator.Props;
20
+ declare const Separator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
21
+ type GroupLabelProps = BaseContextMenu.GroupLabel.Props;
22
+ declare const GroupLabel: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
+ type GroupProps = BaseContextMenu.Group.Props;
24
+ declare const Group: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
+ type SubmenuTriggerProps = BaseContextMenu.SubmenuTrigger.Props;
26
+ declare const SubmenuTrigger: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuSubmenuTriggerProps, "ref"> & React.RefAttributes<HTMLElement>>;
27
+ type CheckboxItemProps = BaseContextMenu.CheckboxItem.Props;
28
+ declare const CheckboxItem: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuCheckboxItemProps, "ref"> & React.RefAttributes<HTMLElement>>;
29
+ type CheckboxItemIndicatorProps = BaseContextMenu.CheckboxItemIndicator.Props;
30
+ declare const CheckboxItemIndicator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuCheckboxItemIndicatorProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
31
+ type RadioItemProps = BaseContextMenu.RadioItem.Props;
32
+ declare const RadioItem: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuRadioItemProps, "ref"> & React.RefAttributes<HTMLElement>>;
33
+ type RadioItemIndicatorProps = BaseContextMenu.RadioItemIndicator.Props;
34
+ declare const RadioItemIndicator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuRadioItemIndicatorProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
35
+ export type { RootProps, TriggerProps, PortalProps, PositionerProps, PopupProps, ItemProps, SeparatorProps, GroupProps, GroupLabelProps, SubmenuRootProps, SubmenuTriggerProps, CheckboxItemProps, CheckboxItemIndicatorProps, RadioGroupProps, RadioItemProps, RadioItemIndicatorProps, };
36
+ export { Root, Trigger, Portal, Positioner, Popup, Item, Separator, Group, GroupLabel, SubmenuRoot, SubmenuTrigger, CheckboxItem, CheckboxItemIndicator, RadioGroup, RadioItem, RadioItemIndicator, };
@@ -0,0 +1 @@
1
+ export * from './context-menu';
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { Dialog as BaseDialog } from '@base-ui/react/dialog';
3
+ import type { VariantProps } from 'class-variance-authority';
4
+ type RootProps = BaseDialog.Root.Props;
5
+ declare const Root: typeof BaseDialog.Root;
6
+ type PortalProps = BaseDialog.Portal.Props;
7
+ declare const Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const Trigger: BaseDialog.Trigger;
9
+ type TriggerProps = BaseDialog.Trigger.Props;
10
+ declare const content: (props?: ({
11
+ size?: "1" | "2" | "3" | "fullscreen" | null | undefined;
12
+ placement?: "center" | "top" | null | undefined;
13
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
14
+ type PopupProps = BaseDialog.Popup.Props & VariantProps<typeof content>;
15
+ declare const Popup: React.ForwardRefExoticComponent<Omit<PopupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
16
+ type BackdropProps = BaseDialog.Backdrop.Props;
17
+ declare const Backdrop: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
+ type TitleProps = BaseDialog.Title.Props;
19
+ declare const Title: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogTitleProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
20
+ type CloseProps = BaseDialog.Close.Props;
21
+ declare const Close: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogCloseProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
22
+ export type { RootProps, TriggerProps, PortalProps, PopupProps, BackdropProps, TitleProps, CloseProps };
23
+ export { Root, Trigger, Portal, Popup, Backdrop, Title, Close };
24
+ export type { HeaderProps, SectionProps, ControlsProps } from '../dialog.base';
25
+ export { Header, Section, Controls } from '../dialog.base';
@@ -0,0 +1 @@
1
+ export * from './dialog';
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import type { VariantProps } from 'class-variance-authority';
3
+ type HeaderProps = React.ComponentPropsWithoutRef<'header'>;
4
+ declare const Header: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
5
+ type SectionProps = React.ComponentPropsWithoutRef<'div'> & VariantProps<typeof section>;
6
+ declare const Section: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & VariantProps<(props?: ({
7
+ size?: "base" | "small" | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
9
+ type ControlsProps = React.ComponentPropsWithoutRef<'div'>;
10
+ declare const Controls: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const section: (props?: ({
12
+ size?: "base" | "small" | null | undefined;
13
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
14
+ export { Header, Section, Controls };
15
+ export type { HeaderProps, SectionProps, ControlsProps };
@@ -0,0 +1 @@
1
+ export * from './dialog.base';
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { Menu as BaseMenu } from '@base-ui/react/menu';
3
+ type RootProps = BaseMenu.Root.Props;
4
+ declare const Root: <Payload>(props: BaseMenu.Root.Props<Payload>) => import("react/jsx-runtime").JSX.Element;
5
+ type TriggerProps = BaseMenu.Trigger.Props;
6
+ declare const Trigger: BaseMenu.Trigger;
7
+ type PortalProps = BaseMenu.Portal.Props;
8
+ declare const Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ type PositionerProps = BaseMenu.Positioner.Props;
10
+ declare const Positioner: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ type SubmenuRootProps = BaseMenu.SubmenuRoot.Props;
12
+ declare const SubmenuRoot: typeof BaseMenu.SubmenuRoot;
13
+ type RadioGroupProps = BaseMenu.RadioGroup.Props;
14
+ declare const RadioGroup: React.NamedExoticComponent<Omit<import("@base-ui/react").ContextMenuRadioGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ type PopupProps = BaseMenu.Popup.Props;
16
+ declare const Popup: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
17
+ type ItemProps = BaseMenu.Item.Props;
18
+ declare const Item: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuItemProps, "ref"> & React.RefAttributes<HTMLElement>>;
19
+ type SeparatorProps = BaseMenu.Separator.Props;
20
+ declare const Separator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
21
+ type GroupLabelProps = BaseMenu.GroupLabel.Props;
22
+ declare const GroupLabel: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
+ type GroupProps = BaseMenu.Group.Props;
24
+ declare const Group: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
+ type SubmenuTriggerProps = BaseMenu.SubmenuTrigger.Props;
26
+ declare const SubmenuTrigger: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuSubmenuTriggerProps, "ref"> & React.RefAttributes<HTMLElement>>;
27
+ type CheckboxItemProps = BaseMenu.CheckboxItem.Props;
28
+ declare const CheckboxItem: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuCheckboxItemProps, "ref"> & React.RefAttributes<HTMLElement>>;
29
+ type CheckboxItemIndicatorProps = BaseMenu.CheckboxItemIndicator.Props;
30
+ declare const CheckboxItemIndicator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuCheckboxItemIndicatorProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
31
+ type RadioItemProps = BaseMenu.RadioItem.Props;
32
+ declare const RadioItem: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuRadioItemProps, "ref"> & React.RefAttributes<HTMLElement>>;
33
+ type RadioItemIndicatorProps = BaseMenu.RadioItemIndicator.Props;
34
+ declare const RadioItemIndicator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuRadioItemIndicatorProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
35
+ export type { RootProps, TriggerProps, PortalProps, PositionerProps, PopupProps, ItemProps, SeparatorProps, GroupProps, GroupLabelProps, SubmenuRootProps, SubmenuTriggerProps, CheckboxItemProps, CheckboxItemIndicatorProps, RadioGroupProps, RadioItemProps, RadioItemIndicatorProps, };
36
+ export { Root, Trigger, Portal, Positioner, Popup, Item, Separator, Group, GroupLabel, SubmenuRoot, SubmenuTrigger, CheckboxItem, CheckboxItemIndicator, RadioGroup, RadioItem, RadioItemIndicator, };
@@ -0,0 +1 @@
1
+ export * from './dropdown-menu';
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import type { VariantProps } from 'class-variance-authority';
3
+ declare const flex: (props?: ({
4
+ direction?: "row" | "column" | "rowReverse" | "columnReverse" | null | undefined;
5
+ align?: "center" | "end" | "start" | "baseline" | "stretch" | null | undefined;
6
+ justify?: "center" | "end" | "start" | "between" | null | undefined;
7
+ wrap?: "wrap" | "nowrap" | "wrapReverse" | null | undefined;
8
+ gap?: "px" | "0" | "1" | "2" | "3" | "6" | "4" | "5" | "7" | "8" | "9" | "10" | "14" | "0.5" | "1.5" | "2.5" | "3.5" | "11" | "12" | "13" | "15" | "16" | null | undefined;
9
+ columnGap?: "px" | "0" | "1" | "2" | "3" | "6" | "4" | "5" | "7" | "8" | "9" | "10" | "14" | "0.5" | "1.5" | "2.5" | "3.5" | "11" | "12" | "13" | "15" | "16" | null | undefined;
10
+ rowGap?: "px" | "0" | "1" | "2" | "3" | "6" | "4" | "5" | "7" | "8" | "9" | "10" | "14" | "0.5" | "1.5" | "2.5" | "3.5" | "11" | "12" | "13" | "15" | "16" | null | undefined;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
+ type FlexProps = React.ComponentPropsWithoutRef<'div'> & VariantProps<typeof flex>;
13
+ declare const Flex: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & VariantProps<(props?: ({
14
+ direction?: "row" | "column" | "rowReverse" | "columnReverse" | null | undefined;
15
+ align?: "center" | "end" | "start" | "baseline" | "stretch" | null | undefined;
16
+ justify?: "center" | "end" | "start" | "between" | null | undefined;
17
+ wrap?: "wrap" | "nowrap" | "wrapReverse" | null | undefined;
18
+ gap?: "px" | "0" | "1" | "2" | "3" | "6" | "4" | "5" | "7" | "8" | "9" | "10" | "14" | "0.5" | "1.5" | "2.5" | "3.5" | "11" | "12" | "13" | "15" | "16" | null | undefined;
19
+ columnGap?: "px" | "0" | "1" | "2" | "3" | "6" | "4" | "5" | "7" | "8" | "9" | "10" | "14" | "0.5" | "1.5" | "2.5" | "3.5" | "11" | "12" | "13" | "15" | "16" | null | undefined;
20
+ rowGap?: "px" | "0" | "1" | "2" | "3" | "6" | "4" | "5" | "7" | "8" | "9" | "10" | "14" | "0.5" | "1.5" | "2.5" | "3.5" | "11" | "12" | "13" | "15" | "16" | null | undefined;
21
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
22
+ export type { FlexProps };
23
+ export { Flex };
@@ -0,0 +1 @@
1
+ export * from './flex';
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import type { VariantProps } from 'class-variance-authority';
3
+ type Options = {
4
+ path: React.ReactElement;
5
+ displayName?: string;
6
+ viewBox?: string;
7
+ };
8
+ declare const icon: (props?: ({
9
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
10
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
+ type IconProps = React.ComponentPropsWithoutRef<'svg'> & VariantProps<typeof icon>;
12
+ declare function createIcon(options: Options): React.ForwardRefExoticComponent<Omit<React.SVGProps<SVGSVGElement>, "ref"> & VariantProps<(props?: ({
13
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
14
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<SVGSVGElement>>;
15
+ export type { IconProps };
16
+ export { createIcon };
@@ -0,0 +1 @@
1
+ export * from './icon';
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import type { VariantProps } from 'class-variance-authority';
3
+ declare const iconButton: (props?: ({
4
+ size?: "small" | "medium" | null | undefined;
5
+ activeAppearance?: "subtle" | "solid" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ type IconButtonProps = React.ComponentPropsWithoutRef<'button'> & VariantProps<typeof iconButton> & {
8
+ 'aria-label': string;
9
+ tooltipContent?: React.ReactNode;
10
+ disableTooltip?: boolean;
11
+ };
12
+ declare const IconButton: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
13
+ size?: "small" | "medium" | null | undefined;
14
+ activeAppearance?: "subtle" | "solid" | null | undefined;
15
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
16
+ 'aria-label': string;
17
+ tooltipContent?: React.ReactNode;
18
+ disableTooltip?: boolean;
19
+ } & React.RefAttributes<HTMLButtonElement>>;
20
+ export type { IconButtonProps };
21
+ export { IconButton };
@@ -0,0 +1 @@
1
+ export * from './icon-button';
@@ -0,0 +1,3 @@
1
+ export declare const ActionsIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
2
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const AlignBottomIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
2
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const AlignHorizontalCenterIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
2
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const AlignLeftIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
2
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const AlignRightIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
2
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const AlignTopIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
2
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const AlignVerticalCenterIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
2
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const AnnotationIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
2
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const AspectRatioIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
2
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const AutoHeightIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
2
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const AutoWidthIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
2
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const BlendModeIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
2
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const BooleanIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
2
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const CheckmarkIndeterminateIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
2
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const CheckmarkIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
2
+ size?: "1" | "2" | "3" | "6" | "2_5" | "3_5" | "4" | "5" | "7" | "8" | "9" | "10" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<SVGSVGElement>>;