@rarui/typings 2.0.0-rc.1 → 2.0.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.
Files changed (2) hide show
  1. package/dist/index.ts +200 -195
  2. package/package.json +4 -4
package/dist/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
- export interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
3
+ interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
4
4
  /**
5
5
  * The **`accent-color`** CSS property sets the accent color for user-interface controls generated by some elements.
6
6
  *
@@ -5273,7 +5273,7 @@ export interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime =
5273
5273
  */
5274
5274
  zoom?: Property.Zoom | undefined;
5275
5275
  }
5276
- export interface StandardShorthandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
5276
+ interface StandardShorthandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
5277
5277
  /**
5278
5278
  * The **`all`** shorthand CSS property resets all of an element's properties except `unicode-bidi`, `direction`, and CSS Custom Properties. It can set properties to their initial or inherited values, or to the values specified in another cascade layer or stylesheet origin.
5279
5279
  *
@@ -6098,9 +6098,9 @@ export interface StandardShorthandProperties<TLength = (string & {}) | 0, TTime
6098
6098
  */
6099
6099
  viewTimeline?: Property.ViewTimeline | undefined;
6100
6100
  }
6101
- export interface StandardProperties<TLength = (string & {}) | 0, TTime = string & {}> extends StandardLonghandProperties<TLength, TTime>, StandardShorthandProperties<TLength, TTime> {
6101
+ interface StandardProperties<TLength = (string & {}) | 0, TTime = string & {}> extends StandardLonghandProperties<TLength, TTime>, StandardShorthandProperties<TLength, TTime> {
6102
6102
  }
6103
- export interface VendorLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
6103
+ interface VendorLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
6104
6104
  /**
6105
6105
  * The **`animation-delay`** CSS property specifies the amount of time to wait from applying the animation to an element before beginning to perform the animation. The animation can start later, immediately from its beginning, or immediately and partway through the animation.
6106
6106
  *
@@ -7854,7 +7854,7 @@ export interface VendorLonghandProperties<TLength = (string & {}) | 0, TTime = s
7854
7854
  */
7855
7855
  WebkitWritingMode?: Property.WritingMode | undefined;
7856
7856
  }
7857
- export interface VendorShorthandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
7857
+ interface VendorShorthandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
7858
7858
  /**
7859
7859
  * The **`animation`** shorthand CSS property applies an animation between styles. It is a shorthand for `animation-name`, `animation-duration`, `animation-timing-function`, `animation-delay`, `animation-iteration-count`, `animation-direction`, `animation-fill-mode`, and `animation-play-state`.
7860
7860
  *
@@ -8006,9 +8006,9 @@ export interface VendorShorthandProperties<TLength = (string & {}) | 0, TTime =
8006
8006
  */
8007
8007
  WebkitTransition?: Property.Transition<TTime> | undefined;
8008
8008
  }
8009
- export interface VendorProperties<TLength = (string & {}) | 0, TTime = string & {}> extends VendorLonghandProperties<TLength, TTime>, VendorShorthandProperties<TLength, TTime> {
8009
+ interface VendorProperties<TLength = (string & {}) | 0, TTime = string & {}> extends VendorLonghandProperties<TLength, TTime>, VendorShorthandProperties<TLength, TTime> {
8010
8010
  }
8011
- export interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string & {}> {
8011
+ interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string & {}> {
8012
8012
  /**
8013
8013
  * In combination with `elevation`, the **`azimuth`** CSS property enables different audio sources to be positioned spatially for aural presentation. This is important in that it provides a natural way to tell several voices apart, as each can be positioned to originate at a different location on the sound stage. Stereo output produce a lateral sound stage, while binaural headphones and multi-speaker setups allow for a fully three-dimensional stage.
8014
8014
  *
@@ -9062,7 +9062,7 @@ export interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string
9062
9062
  */
9063
9063
  WebkitBoxPack?: Property.BoxPack | undefined;
9064
9064
  }
9065
- export interface SvgProperties<TLength = (string & {}) | 0, TTime = string & {}> {
9065
+ interface SvgProperties<TLength = (string & {}) | 0, TTime = string & {}> {
9066
9066
  alignmentBaseline?: Property.AlignmentBaseline | undefined;
9067
9067
  baselineShift?: Property.BaselineShift<TLength> | undefined;
9068
9068
  clip?: Property.Clip | undefined;
@@ -9124,9 +9124,9 @@ export interface SvgProperties<TLength = (string & {}) | 0, TTime = string & {}>
9124
9124
  wordSpacing?: Property.WordSpacing<TLength> | undefined;
9125
9125
  writingMode?: Property.WritingMode | undefined;
9126
9126
  }
9127
- export interface Properties<TLength = (string & {}) | 0, TTime = string & {}> extends StandardProperties<TLength, TTime>, VendorProperties<TLength, TTime>, ObsoleteProperties<TLength, TTime>, SvgProperties<TLength, TTime> {
9127
+ interface Properties<TLength = (string & {}) | 0, TTime = string & {}> extends StandardProperties<TLength, TTime>, VendorProperties<TLength, TTime>, ObsoleteProperties<TLength, TTime>, SvgProperties<TLength, TTime> {
9128
9128
  }
9129
- export type Globals = "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset";
9129
+ type Globals = "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset";
9130
9130
  declare namespace Property {
9131
9131
  export type AccentColor = Globals | DataType.Color | "auto";
9132
9132
  export type AlignContent = Globals | DataType.ContentDistribution | DataType.ContentPosition | "baseline" | "normal" | (string & {});
@@ -9763,7 +9763,7 @@ declare namespace DataType {
9763
9763
  type ViewportLength<TLength> = TLength | "auto" | (string & {});
9764
9764
  type VisualBox = "border-box" | "content-box" | "padding-box";
9765
9765
  }
9766
- export type CSSVarFunction = `var(--${string})` | `var(--${string}, ${string | number})`;
9766
+ type CSSVarFunction = `var(--${string})` | `var(--${string}, ${string | number})`;
9767
9767
  declare const simplePseudoMap: {
9768
9768
  readonly ":-moz-any-link": true;
9769
9769
  readonly ":-moz-full-screen": true;
@@ -9885,70 +9885,70 @@ declare const simplePseudoMap: {
9885
9885
  readonly ":valid": true;
9886
9886
  readonly ":visited": true;
9887
9887
  };
9888
- export type SimplePseudos = keyof typeof simplePseudoMap;
9889
- export interface ContainerProperties {
9888
+ type SimplePseudos = keyof typeof simplePseudoMap;
9889
+ interface ContainerProperties {
9890
9890
  container?: string;
9891
9891
  containerType?: "size" | "inline-size" | (string & {});
9892
9892
  containerName?: string;
9893
9893
  }
9894
- export type CSSTypeProperties = Properties<number | (string & {})> & ContainerProperties;
9895
- export type CSSProperties = {
9894
+ type CSSTypeProperties = Properties<number | (string & {})> & ContainerProperties;
9895
+ type CSSProperties = {
9896
9896
  [Property in keyof CSSTypeProperties]: CSSTypeProperties[Property] | CSSVarFunction | Array<CSSVarFunction | CSSTypeProperties[Property]>;
9897
9897
  };
9898
- export type CSSPropertiesWithVars = CSSProperties & {
9898
+ type CSSPropertiesWithVars = CSSProperties & {
9899
9899
  vars?: {
9900
9900
  [key: string]: string;
9901
9901
  };
9902
9902
  };
9903
- export type PseudoProperties = {
9903
+ type PseudoProperties = {
9904
9904
  [key in SimplePseudos]?: CSSPropertiesWithVars;
9905
9905
  };
9906
- export type CSSPropertiesAndPseudos = CSSPropertiesWithVars & PseudoProperties;
9907
- export type Query<Key extends string, StyleType> = {
9906
+ type CSSPropertiesAndPseudos = CSSPropertiesWithVars & PseudoProperties;
9907
+ type Query<Key extends string, StyleType> = {
9908
9908
  [key in Key]?: {
9909
9909
  [query: string]: Omit<StyleType, Key>;
9910
9910
  };
9911
9911
  };
9912
- export type MediaQueries<StyleType> = Query<"@media", StyleType>;
9913
- export type FeatureQueries<StyleType> = Query<"@supports", StyleType>;
9914
- export type ContainerQueries<StyleType> = Query<"@container", StyleType>;
9915
- export type Layers<StyleType> = Query<"@layer", StyleType>;
9916
- export interface AllQueries<StyleType> extends MediaQueries<StyleType & AllQueries<StyleType>>, FeatureQueries<StyleType & AllQueries<StyleType>>, ContainerQueries<StyleType & AllQueries<StyleType>>, Layers<StyleType & AllQueries<StyleType>> {
9912
+ type MediaQueries<StyleType> = Query<"@media", StyleType>;
9913
+ type FeatureQueries<StyleType> = Query<"@supports", StyleType>;
9914
+ type ContainerQueries<StyleType> = Query<"@container", StyleType>;
9915
+ type Layers<StyleType> = Query<"@layer", StyleType>;
9916
+ interface AllQueries<StyleType> extends MediaQueries<StyleType & AllQueries<StyleType>>, FeatureQueries<StyleType & AllQueries<StyleType>>, ContainerQueries<StyleType & AllQueries<StyleType>>, Layers<StyleType & AllQueries<StyleType>> {
9917
9917
  }
9918
- export type WithQueries<StyleType> = StyleType & AllQueries<StyleType>;
9919
- export interface SelectorMap {
9918
+ type WithQueries<StyleType> = StyleType & AllQueries<StyleType>;
9919
+ interface SelectorMap {
9920
9920
  [selector: string]: CSSPropertiesWithVars & WithQueries<CSSPropertiesWithVars>;
9921
9921
  }
9922
- export interface StyleWithSelectors extends CSSPropertiesAndPseudos {
9922
+ interface StyleWithSelectors extends CSSPropertiesAndPseudos {
9923
9923
  selectors?: SelectorMap;
9924
9924
  }
9925
- export type StyleRule = StyleWithSelectors & WithQueries<StyleWithSelectors>;
9926
- export type ClassNames = string | Array<ClassNames>;
9927
- export type ComplexStyleRule = StyleRule | Array<StyleRule | ClassNames>;
9928
- export type Resolve<T> = {
9925
+ type StyleRule = StyleWithSelectors & WithQueries<StyleWithSelectors>;
9926
+ type ClassNames = string | Array<ClassNames>;
9927
+ type ComplexStyleRule = StyleRule | Array<StyleRule | ClassNames>;
9928
+ type Resolve<T> = {
9929
9929
  [Key in keyof T]: T[Key];
9930
9930
  } & {};
9931
- export type RecipeStyleRule = ComplexStyleRule | string;
9932
- export type VariantDefinitions = Record<string, RecipeStyleRule>;
9933
- export type BooleanMap<T> = T extends "true" | "false" ? boolean : T;
9934
- export type VariantGroups = Record<string, VariantDefinitions>;
9935
- export type VariantSelection<Variants extends VariantGroups> = {
9931
+ type RecipeStyleRule = ComplexStyleRule | string;
9932
+ type VariantDefinitions = Record<string, RecipeStyleRule>;
9933
+ type BooleanMap<T> = T extends "true" | "false" ? boolean : T;
9934
+ type VariantGroups = Record<string, VariantDefinitions>;
9935
+ type VariantSelection<Variants extends VariantGroups> = {
9936
9936
  [VariantGroup in keyof Variants]?: BooleanMap<keyof Variants[VariantGroup]>;
9937
9937
  };
9938
- export type VariantsClassNames<Variants extends VariantGroups> = {
9938
+ type VariantsClassNames<Variants extends VariantGroups> = {
9939
9939
  [P in keyof Variants]: {
9940
9940
  [PP in keyof Variants[P]]: string;
9941
9941
  };
9942
9942
  };
9943
- export type RecipeClassNames<Variants extends VariantGroups> = {
9943
+ type RecipeClassNames<Variants extends VariantGroups> = {
9944
9944
  base: string;
9945
9945
  variants: VariantsClassNames<Variants>;
9946
9946
  };
9947
- export type RuntimeFn<Variants extends VariantGroups> = ((options?: Resolve<VariantSelection<Variants>>) => string) & {
9947
+ type RuntimeFn<Variants extends VariantGroups> = ((options?: Resolve<VariantSelection<Variants>>) => string) & {
9948
9948
  variants: () => (keyof Variants)[];
9949
9949
  classNames: RecipeClassNames<Variants>;
9950
9950
  };
9951
- export type RecipeVariants<RecipeFn extends RuntimeFn<VariantGroups>> = Resolve<Parameters<RecipeFn>[0]>;
9951
+ type RecipeVariants<RecipeFn extends RuntimeFn<VariantGroups>> = Resolve<Parameters<RecipeFn>[0]>;
9952
9952
  declare const avatarStyles: {
9953
9953
  container: string;
9954
9954
  avatar: RuntimeFn<{
@@ -9999,7 +9999,7 @@ declare const avatarStyles: {
9999
9999
  };
10000
10000
  }>;
10001
10001
  };
10002
- export type AvatarVariants = RecipeVariants<typeof avatarStyles.avatar>;
10002
+ type AvatarVariants = RecipeVariants<typeof avatarStyles.avatar>;
10003
10003
  declare const badgeStyles: {
10004
10004
  badge: RuntimeFn<{
10005
10005
  /**
@@ -10085,7 +10085,7 @@ declare const badgeStyles: {
10085
10085
  };
10086
10086
  }>;
10087
10087
  };
10088
- export type BadgeVariants = RecipeVariants<typeof badgeStyles.badge>;
10088
+ type BadgeVariants = NonNullable<RecipeVariants<typeof badgeStyles.badge>>;
10089
10089
  interface StandardLonghandProperties$1 {
10090
10090
  /**
10091
10091
  * The CSS **`align-content`** property sets the distribution of space between and around content items along a flexbox's cross-axis or a grid's block axis.
@@ -11229,7 +11229,7 @@ interface StandardLonghandProperties$1 {
11229
11229
  */
11230
11230
  hangingPunctuation?: Property$1.HangingPunctuation | Conditions<Property$1.HangingPunctuation>;
11231
11231
  /**
11232
- * The **`height`** CSS property specifies the height of an element. By default, the property defines the height of the content area. If `box-sizing` is set to `border-box`, however, it instead determines the height of the border area.
11232
+ * The **`height`** CSS property specifies the height of an element. By default, the property defines the height of the content area. If `box-sizing` is set to `border-box`, however, it instead determines the height of the border area. It is also possible to pass a specific value.
11233
11233
  *
11234
11234
  *
11235
11235
  * **Initial value**: `auto`
@@ -11657,7 +11657,7 @@ interface StandardLonghandProperties$1 {
11657
11657
  */
11658
11658
  maxBlockSize?: Property$1.MaxBlockSize | Conditions<Property$1.MaxBlockSize>;
11659
11659
  /**
11660
- * The **`max-height`** CSS property sets the maximum height of an element. It prevents the used value of the `height` property from becoming larger than the value specified for `max-height`.
11660
+ * The **`max-height`** CSS property sets the maximum height of an element. It prevents the used value of the `height` property from becoming larger than the value specified for `max-height`. It is also possible to pass a specific value.
11661
11661
  *
11662
11662
  *
11663
11663
  * **Initial value**: `none`
@@ -11678,7 +11678,7 @@ interface StandardLonghandProperties$1 {
11678
11678
  */
11679
11679
  maxLines?: Property$1.MaxLines | Conditions<Property$1.MaxLines>;
11680
11680
  /**
11681
- * The **`max-width`** CSS property sets the maximum width of an element. It prevents the used value of the `width` property from becoming larger than the value specified by `max-width`.
11681
+ * The **`max-width`** CSS property sets the maximum width of an element. It prevents the used value of the `width` property from becoming larger than the value specified by `max-width`. It is also possible to pass a specific value.
11682
11682
  *
11683
11683
  *
11684
11684
  * **Initial value**: `none`
@@ -11694,7 +11694,7 @@ interface StandardLonghandProperties$1 {
11694
11694
  */
11695
11695
  minBlockSize?: Property$1.MinBlockSize | Conditions<Property$1.MinBlockSize>;
11696
11696
  /**
11697
- * The **`min-height`** CSS property sets the minimum height of an element. It prevents the used value of the `height` property from becoming smaller than the value specified for `min-height`.
11697
+ * The **`min-height`** CSS property sets the minimum height of an element. It prevents the used value of the `height` property from becoming smaller than the value specified for `min-height`. It is also possible to pass a specific value.
11698
11698
  *
11699
11699
  *
11700
11700
  * **Initial value**: `auto`
@@ -11710,7 +11710,7 @@ interface StandardLonghandProperties$1 {
11710
11710
  */
11711
11711
  minInlineSize?: Property$1.MinInlineSize | Conditions<Property$1.MinInlineSize>;
11712
11712
  /**
11713
- * The **`min-width`** CSS property sets the minimum width of an element. It prevents the used value of the `width` property from becoming smaller than the value specified for `min-width`.
11713
+ * The **`min-width`** CSS property sets the minimum width of an element. It prevents the used value of the `width` property from becoming smaller than the value specified for `min-width`. It is also possible to pass a specific value.
11714
11714
  *
11715
11715
  *
11716
11716
  * **Initial value**: `auto`
@@ -12794,7 +12794,7 @@ interface StandardLonghandProperties$1 {
12794
12794
  */
12795
12795
  widows?: Property$1.Widows | Conditions<Property$1.Widows>;
12796
12796
  /**
12797
- * The **`width`** CSS property sets an element's width. By default, it sets the width of the content area, but if `box-sizing` is set to `border-box`, it sets the width of the border area.
12797
+ * The **`width`** CSS property sets an element's width. By default, it sets the width of the content area, but if `box-sizing` is set to `border-box`, it sets the width of the border area. It is also possible to pass a specific value.
12798
12798
  *
12799
12799
  *
12800
12800
  * **Initial value**: `auto`
@@ -13148,10 +13148,10 @@ interface StandardShorthandProperties$1 {
13148
13148
  */
13149
13149
  transition?: Property$1.Transition | Conditions<Property$1.Transition>;
13150
13150
  }
13151
- export type OnlyObject = Record<never, never>;
13152
- export type OnlyNumber = number & OnlyObject;
13153
- export type OnlyString = string & OnlyObject;
13154
- export type OnlyStringNumeric = (number | string) & OnlyObject;
13151
+ type OnlyObject = Record<never, never>;
13152
+ type OnlyNumber = number & OnlyObject;
13153
+ type OnlyString = string & OnlyObject;
13154
+ type OnlyStringNumeric = (number | string) & OnlyObject;
13155
13155
  declare namespace Property$1 {
13156
13156
  type AlignContent = DataType$1.ContentDistribution | DataType$1.ContentPosition | "baseline" | "normal" | OnlyString;
13157
13157
  type AlignItems = DataType$1.SelfPosition | "baseline" | "normal" | "stretch" | OnlyString;
@@ -13739,13 +13739,13 @@ declare namespace DataType$1 {
13739
13739
  type ViewportLength = "auto" | OnlyStringNumeric;
13740
13740
  type VisualBox = "border-box" | "content-box" | "padding-box";
13741
13741
  }
13742
- export interface Conditions<T> {
13742
+ interface Conditions<T> {
13743
13743
  xs?: T;
13744
13744
  md?: T;
13745
13745
  lg?: T;
13746
13746
  xl?: T;
13747
13747
  }
13748
- export type AddDollar<T extends string> = `$${T}`;
13748
+ type AddDollar<T extends string> = `$${T}`;
13749
13749
  declare const shadowProperties: {
13750
13750
  none: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
13751
13751
  "top-1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
@@ -13987,15 +13987,15 @@ declare const boxFillProperties: {
13987
13987
  "warning-press": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
13988
13988
  "warning-subdued": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
13989
13989
  };
13990
- export interface BoxConditions<T> extends Conditions<T> {
13990
+ interface BoxConditions<T> extends Conditions<T> {
13991
13991
  focus?: T;
13992
13992
  focusWithin?: T;
13993
13993
  active?: T;
13994
13994
  hover?: T;
13995
13995
  disabled?: T;
13996
13996
  }
13997
- export type BoxDynamicProperties = Pick<StandardLonghandProperties$1, "display" | "width" | "height" | "maxWidth" | "maxHeight" | "minWidth" | "minHeight" | "bottom" | "left" | "right" | "top" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "flexShrink" | "flexGrow" | "order" | "transitionDelay" | "transitionProperty" | "backgroundImage" | "backgroundBlendMode" | "backgroundRepeat" | "backgroundSize" | "flexDirection" | "flexWrap" | "flexBasis" | "justifyContent" | "justifyItems" | "alignContent" | "alignItems" | "alignSelf" | "pointerEvents" | "position" | "boxSizing" | "cursor" | "overflowX" | "overflowY" | "transitionTimingFunction" | "textAlign" | "opacity" | "backgroundPositionY" | "backgroundPositionX"> & Pick<StandardShorthandProperties$1, "flex" | "gridArea" | "backgroundPosition" | "flexFlow" | "borderStyle" | "overflow" | "textDecoration">;
13998
- export interface BoxSprinkle extends BoxDynamicProperties {
13997
+ type BoxDynamicProperties = Pick<StandardLonghandProperties$1, "display" | "width" | "height" | "maxWidth" | "maxHeight" | "minWidth" | "minHeight" | "bottom" | "left" | "right" | "top" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "flexShrink" | "flexGrow" | "order" | "transitionDelay" | "transitionProperty" | "backgroundImage" | "backgroundBlendMode" | "backgroundRepeat" | "backgroundSize" | "flexDirection" | "flexWrap" | "flexBasis" | "justifyContent" | "justifyItems" | "alignContent" | "alignItems" | "alignSelf" | "pointerEvents" | "position" | "boxSizing" | "cursor" | "overflowX" | "overflowY" | "transitionTimingFunction" | "textAlign" | "opacity" | "backgroundPositionY" | "backgroundPositionX"> & Pick<StandardShorthandProperties$1, "flex" | "gridArea" | "backgroundPosition" | "flexFlow" | "borderStyle" | "overflow" | "textDecoration">;
13998
+ interface BoxSprinkle extends BoxDynamicProperties {
13999
13999
  /**
14000
14000
  * The gap property sets the gaps between rows and columns. It is a shorthand for rowGap and columnGap.
14001
14001
  */
@@ -14308,7 +14308,7 @@ declare const styles: {
14308
14308
  };
14309
14309
  }>;
14310
14310
  };
14311
- export type ButtonVariants = NonNullable<RecipeVariants<typeof styles.button>>;
14311
+ type ButtonVariants = NonNullable<RecipeVariants<typeof styles.button>>;
14312
14312
  declare const checkboxStyles: {
14313
14313
  checkbox: RuntimeFn<{
14314
14314
  /**
@@ -14368,7 +14368,7 @@ declare const checkboxStyles: {
14368
14368
  container: string;
14369
14369
  overlay: string;
14370
14370
  };
14371
- export type CheckboxVariants = NonNullable<RecipeVariants<typeof checkboxStyles.checkbox>>;
14371
+ type CheckboxVariants = NonNullable<RecipeVariants<typeof checkboxStyles.checkbox>>;
14372
14372
  declare const chipStyles: {
14373
14373
  chip: RuntimeFn<{
14374
14374
  /**
@@ -14440,9 +14440,9 @@ declare const paddingProperties: {
14440
14440
  medium: string;
14441
14441
  small: string;
14442
14442
  };
14443
- export type ChipVariants = NonNullable<RecipeVariants<typeof chipStyles.chip>>;
14444
- export type ChipDynamicProperties = Pick<StandardLonghandProperties$1, "textTransform">;
14445
- export interface ChipSprinkle extends ChipDynamicProperties {
14443
+ type ChipVariants = NonNullable<RecipeVariants<typeof chipStyles.chip>>;
14444
+ type ChipDynamicProperties = Pick<StandardLonghandProperties$1, "textTransform">;
14445
+ interface ChipSprinkle extends ChipDynamicProperties {
14446
14446
  /**
14447
14447
  * The padding properties are used to generate space around an chip's content area.
14448
14448
  */
@@ -14452,8 +14452,8 @@ declare const dividerBorderWidthProperties: {
14452
14452
  "1": string;
14453
14453
  "2": string;
14454
14454
  };
14455
- export type DividerBorderStyle = "solid" | "dashed";
14456
- export interface DividerSprinkle {
14455
+ type DividerBorderStyle = "solid" | "dashed";
14456
+ interface DividerSprinkle {
14457
14457
  /**
14458
14458
  * The **`size`** CSS property sets an element's area.
14459
14459
  * @default 100%
@@ -14472,8 +14472,8 @@ export interface DividerSprinkle {
14472
14472
  */
14473
14473
  color?: AddDollar<keyof typeof borderColorProperties> | Conditions<AddDollar<keyof typeof borderColorProperties>>;
14474
14474
  }
14475
- export type IconDynamicProperties = Pick<StandardLonghandProperties$1, "cursor">;
14476
- export interface IconSprinkle extends IconDynamicProperties {
14475
+ type IconDynamicProperties = Pick<StandardLonghandProperties$1, "cursor">;
14476
+ interface IconSprinkle extends IconDynamicProperties {
14477
14477
  /**
14478
14478
  * The color property sets the icon.
14479
14479
  */
@@ -14573,7 +14573,7 @@ declare const iconButtonStyles: {
14573
14573
  };
14574
14574
  }>;
14575
14575
  };
14576
- export type IconButtonVariants = RecipeVariants<typeof iconButtonStyles.iconButton>;
14576
+ type IconButtonVariants = RecipeVariants<typeof iconButtonStyles.iconButton>;
14577
14577
  declare const styles$1: {
14578
14578
  container: RuntimeFn<{
14579
14579
  /**
@@ -14692,7 +14692,7 @@ declare const styles$1: {
14692
14692
  };
14693
14693
  }>;
14694
14694
  };
14695
- export type InputVariants = NonNullable<RecipeVariants<typeof styles$1.container> & RecipeVariants<typeof styles$1.input>>;
14695
+ type InputVariants = NonNullable<RecipeVariants<typeof styles$1.container> & RecipeVariants<typeof styles$1.input>>;
14696
14696
  declare const styles$2: {
14697
14697
  label: RuntimeFn<{
14698
14698
  /**
@@ -14712,7 +14712,7 @@ declare const styles$2: {
14712
14712
  };
14713
14713
  }>;
14714
14714
  };
14715
- export type LabelVariants = RecipeVariants<typeof styles$2.label>;
14715
+ type LabelVariants = RecipeVariants<typeof styles$2.label>;
14716
14716
  declare const styles$3: {
14717
14717
  link: RuntimeFn<{
14718
14718
  /**
@@ -14751,7 +14751,7 @@ declare const styles$3: {
14751
14751
  };
14752
14752
  }>;
14753
14753
  };
14754
- export type LinkVariants = NonNullable<RecipeVariants<typeof styles$3.link>>;
14754
+ type LinkVariants = NonNullable<RecipeVariants<typeof styles$3.link>>;
14755
14755
  declare const progressStyles: {
14756
14756
  progress: string;
14757
14757
  bar: string;
@@ -14781,8 +14781,8 @@ declare const progressColorProperties: {
14781
14781
  success: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
14782
14782
  brand: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
14783
14783
  };
14784
- export type ProgressVariants = NonNullable<RecipeVariants<typeof progressStyles.circle>>;
14785
- export interface ProgressSprinkle {
14784
+ type ProgressVariants = NonNullable<RecipeVariants<typeof progressStyles.circle>>;
14785
+ interface ProgressSprinkle {
14786
14786
  /**
14787
14787
  * Specifies the color of the progress.
14788
14788
  * This prop accepts one of the following values: "$info", "$success" or "$brand"
@@ -14855,9 +14855,9 @@ declare const styles$4: {
14855
14855
  input: string;
14856
14856
  container: string;
14857
14857
  };
14858
- export type RadioButtonVariants = NonNullable<RecipeVariants<typeof styles$4.radioButton>>;
14859
- export type SkeletonDynamicProperties = Pick<StandardLonghandProperties$1, "width" | "height" | "maxWidth" | "maxHeight" | "minWidth" | "minHeight">;
14860
- export interface SkeletonSprinkle extends SkeletonDynamicProperties {
14858
+ type RadioButtonVariants = NonNullable<RecipeVariants<typeof styles$4.radioButton>>;
14859
+ type SkeletonDynamicProperties = Pick<StandardLonghandProperties$1, "width" | "height" | "maxWidth" | "maxHeight" | "minWidth" | "minHeight">;
14860
+ interface SkeletonSprinkle extends SkeletonDynamicProperties {
14861
14861
  /**
14862
14862
  * The borderRadius property sets the skeleton.
14863
14863
  */
@@ -14939,16 +14939,16 @@ declare const dropdownStyles: {
14939
14939
  };
14940
14940
  }>;
14941
14941
  };
14942
- export type DropdownVariants = NonNullable<RecipeVariants<typeof dropdownStyles.dropdown> & RecipeVariants<typeof dropdownStyles.item>>;
14943
- export type DropdownDynamicProperties = Pick<StandardLonghandProperties$1, "width" | "maxWidth">;
14944
- export interface DropdownSprinkle extends DropdownDynamicProperties {
14942
+ type DropdownVariants = NonNullable<RecipeVariants<typeof dropdownStyles.dropdown> & RecipeVariants<typeof dropdownStyles.item>>;
14943
+ type DropdownDynamicProperties = Pick<StandardLonghandProperties$1, "width" | "maxWidth">;
14944
+ interface DropdownSprinkle extends DropdownDynamicProperties {
14945
14945
  /**
14946
14946
  * The zIndex property specifies the stack order of the box.
14947
14947
  */
14948
14948
  zIndex?: AddDollar<keyof typeof zIndexProperties> | Conditions<AddDollar<keyof typeof zIndexProperties>>;
14949
14949
  }
14950
- export type SelectVariants = NonNullable<RecipeVariants<typeof selectStyles.select>>;
14951
- export type SelectSprinkle = Pick<StandardLonghandProperties$1, "maxHeight"> & Pick<DropdownSprinkle, "zIndex">;
14950
+ type SelectVariants = NonNullable<RecipeVariants<typeof selectStyles.select>>;
14951
+ type SelectSprinkle = Pick<StandardLonghandProperties$1, "maxHeight"> & Pick<DropdownSprinkle, "zIndex">;
14952
14952
  declare const statusStyles: {
14953
14953
  status: RuntimeFn<{
14954
14954
  /**
@@ -15030,7 +15030,7 @@ declare const statusStyles: {
15030
15030
  };
15031
15031
  }>;
15032
15032
  };
15033
- export type StatusVariants = NonNullable<RecipeVariants<typeof statusStyles.status>>;
15033
+ type StatusVariants = NonNullable<RecipeVariants<typeof statusStyles.status>>;
15034
15034
  declare const textLineHeightProperties: {
15035
15035
  xxs: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
15036
15036
  xs: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
@@ -15047,8 +15047,8 @@ declare const textFontSizeProperties: {
15047
15047
  l: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
15048
15048
  xl: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
15049
15049
  };
15050
- export type TextDynamicProperties = Pick<StandardLonghandProperties$1, "textAlign" | "wordBreak" | "textTransform" | "textOverflow" | "width" | "whiteSpace"> & Pick<StandardShorthandProperties$1, "textDecoration" | "overflow">;
15051
- export interface TextSprinkle extends TextDynamicProperties {
15050
+ type TextDynamicProperties = Pick<StandardLonghandProperties$1, "textAlign" | "wordBreak" | "textTransform" | "textOverflow" | "width" | "whiteSpace"> & Pick<StandardShorthandProperties$1, "textDecoration" | "overflow">;
15051
+ interface TextSprinkle extends TextDynamicProperties {
15052
15052
  /**
15053
15053
  * The color property is used to set the color of the title.
15054
15054
  */
@@ -15083,8 +15083,8 @@ declare const titleFontSizeProperties: {
15083
15083
  l: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
15084
15084
  xl: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
15085
15085
  };
15086
- export type TitleDynamicProperties = Pick<StandardLonghandProperties$1, "textAlign" | "textTransform"> & Pick<StandardShorthandProperties$1, "textDecoration">;
15087
- export interface TitleSprinkle extends TitleDynamicProperties {
15086
+ type TitleDynamicProperties = Pick<StandardLonghandProperties$1, "textAlign" | "textTransform"> & Pick<StandardShorthandProperties$1, "textDecoration">;
15087
+ interface TitleSprinkle extends TitleDynamicProperties {
15088
15088
  /**
15089
15089
  * The color property is used to set the color of the title.
15090
15090
  */
@@ -15146,7 +15146,7 @@ declare const bannerStyles: {
15146
15146
  };
15147
15147
  }>;
15148
15148
  };
15149
- export type BannerVariants = RecipeVariants<typeof bannerStyles.banner>;
15149
+ type BannerVariants = RecipeVariants<typeof bannerStyles.banner>;
15150
15150
  declare const textareaStyles: {
15151
15151
  textarea: RuntimeFn<{
15152
15152
  /**
@@ -15180,7 +15180,7 @@ declare const textareaStyles: {
15180
15180
  };
15181
15181
  }>;
15182
15182
  };
15183
- export type TextareaVariants = NonNullable<RecipeVariants<typeof textareaStyles.textarea>>;
15183
+ type TextareaVariants = NonNullable<RecipeVariants<typeof textareaStyles.textarea>>;
15184
15184
  declare const styles$5: {
15185
15185
  toast: RuntimeFn<{
15186
15186
  /**
@@ -15318,7 +15318,8 @@ declare const styles$5: {
15318
15318
  };
15319
15319
  }>;
15320
15320
  };
15321
- export type ToastVariants = NonNullable<RecipeVariants<typeof styles$5.toast>>;
15321
+ type ToastVariants = NonNullable<RecipeVariants<typeof styles$5.toast>>;
15322
+ type ToastSprinkle = Pick<StandardLonghandProperties$1, "width">;
15322
15323
  declare const styles$6: {
15323
15324
  toggle: RuntimeFn<{
15324
15325
  /**
@@ -15425,7 +15426,7 @@ declare const styles$6: {
15425
15426
  };
15426
15427
  }>;
15427
15428
  };
15428
- export type ToggleVariants = RecipeVariants<typeof styles$6.toggle>;
15429
+ type ToggleVariants = RecipeVariants<typeof styles$6.toggle>;
15429
15430
  declare const styles$7: {
15430
15431
  tooltip: RuntimeFn<{
15431
15432
  /**
@@ -15465,7 +15466,7 @@ declare const styles$7: {
15465
15466
  }>;
15466
15467
  container: string;
15467
15468
  };
15468
- export type TooltipVariants = NonNullable<RecipeVariants<typeof styles$7.tooltip>>;
15469
+ type TooltipVariants = NonNullable<RecipeVariants<typeof styles$7.tooltip>>;
15469
15470
  declare const accordionStyles: {
15470
15471
  item: RuntimeFn<{
15471
15472
  selected: {
@@ -15511,7 +15512,7 @@ declare const accordionStyles: {
15511
15512
  };
15512
15513
  }>;
15513
15514
  };
15514
- export type AccordionVariants = Omit<NonNullable<RecipeVariants<typeof accordionStyles.item>>, "selected"> & NonNullable<RecipeVariants<typeof accordionStyles.body>>;
15515
+ type AccordionVariants = Omit<NonNullable<RecipeVariants<typeof accordionStyles.item>>, "selected"> & NonNullable<RecipeVariants<typeof accordionStyles.body>>;
15515
15516
  declare const breadcrumbStyles: {
15516
15517
  breadcrumb: string;
15517
15518
  item: RuntimeFn<{
@@ -15526,7 +15527,7 @@ declare const breadcrumbStyles: {
15526
15527
  };
15527
15528
  }>;
15528
15529
  };
15529
- export type BreadcrumbVariants = NonNullable<RecipeVariants<typeof breadcrumbStyles.item>>;
15530
+ type BreadcrumbVariants = NonNullable<RecipeVariants<typeof breadcrumbStyles.item>>;
15530
15531
  declare const cardStyles: {
15531
15532
  card: RuntimeFn<{
15532
15533
  /**
@@ -15550,8 +15551,8 @@ declare const cardBackgroundColorProperties: {
15550
15551
  primary: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
15551
15552
  secondary: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
15552
15553
  };
15553
- export type CardVariants = NonNullable<RecipeVariants<typeof cardStyles.card>>;
15554
- export interface CardSprinkle {
15554
+ type CardVariants = NonNullable<RecipeVariants<typeof cardStyles.card>>;
15555
+ interface CardSprinkle {
15555
15556
  /**
15556
15557
  * Specifies the background color of the card.
15557
15558
  * This prop accepts one of the following values: "$transparent", "$background", "$primary", or "$secondary"
@@ -15577,9 +15578,9 @@ declare const modalStyles: {
15577
15578
  }>;
15578
15579
  overlay: string;
15579
15580
  };
15580
- export type ModalVariants = Omit<NonNullable<RecipeVariants<typeof modalStyles.modal>>, "selected">;
15581
- export type ModalDynamicProperties = Pick<StandardLonghandProperties$1, "maxWidth">;
15582
- export interface ModalSprinkle extends ModalDynamicProperties {
15581
+ type ModalVariants = Omit<NonNullable<RecipeVariants<typeof modalStyles.modal>>, "selected">;
15582
+ type ModalDynamicProperties = Pick<StandardLonghandProperties$1, "maxWidth">;
15583
+ interface ModalSprinkle extends ModalDynamicProperties {
15583
15584
  /**
15584
15585
  * The zIndex property specifies the stack order of the box.
15585
15586
  */
@@ -15630,7 +15631,7 @@ declare const paginationStyles: {
15630
15631
  };
15631
15632
  }>;
15632
15633
  };
15633
- export type PaginationVariants = Omit<NonNullable<RecipeVariants<typeof paginationStyles.item>>, "selected">;
15634
+ type PaginationVariants = Omit<NonNullable<RecipeVariants<typeof paginationStyles.item>>, "selected">;
15634
15635
  declare const sidebarStyles: {
15635
15636
  sidebar: RuntimeFn<{
15636
15637
  /**
@@ -15664,9 +15665,9 @@ declare const sidebarPaddingProperties: {
15664
15665
  small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
15665
15666
  medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
15666
15667
  };
15667
- export type SidebarVariants = RecipeVariants<typeof sidebarStyles.sidebar>;
15668
- export type SidebarDynamicProperties = Pick<StandardLonghandProperties$1, "maxWidth">;
15669
- export interface SidebarSprinkle extends SidebarDynamicProperties {
15668
+ type SidebarVariants = RecipeVariants<typeof sidebarStyles.sidebar>;
15669
+ type SidebarDynamicProperties = Pick<StandardLonghandProperties$1, "maxWidth">;
15670
+ interface SidebarSprinkle extends SidebarDynamicProperties {
15670
15671
  /**
15671
15672
  * The **`padding`** CSS shorthand property sets the padding area on all four sides of an element at once.
15672
15673
  * @default small
@@ -15749,7 +15750,7 @@ declare const sideNavigationStyles: {
15749
15750
  };
15750
15751
  }>;
15751
15752
  };
15752
- export type SideNavigationVariants = NonNullable<RecipeVariants<typeof sideNavigationStyles.sideNavigation> & RecipeVariants<typeof sideNavigationStyles.item>>;
15753
+ type SideNavigationVariants = NonNullable<RecipeVariants<typeof sideNavigationStyles.sideNavigation> & RecipeVariants<typeof sideNavigationStyles.item>>;
15753
15754
  declare const stepperStyles: {
15754
15755
  stepper: RuntimeFn<{
15755
15756
  /**
@@ -15814,7 +15815,7 @@ declare const stepperStyles: {
15814
15815
  };
15815
15816
  }>;
15816
15817
  };
15817
- export type StepperVariants = NonNullable<RecipeVariants<typeof stepperStyles.stepper> & RecipeVariants<typeof stepperStyles.circle>>;
15818
+ type StepperVariants = NonNullable<RecipeVariants<typeof stepperStyles.stepper> & RecipeVariants<typeof stepperStyles.circle>>;
15818
15819
  declare const tabsStyles: {
15819
15820
  ul: RuntimeFn<{
15820
15821
  /**
@@ -15890,32 +15891,32 @@ declare const tabsStyles: {
15890
15891
  };
15891
15892
  }>;
15892
15893
  };
15893
- export type TabsVariants = NonNullable<RecipeVariants<typeof tabsStyles.ul>> & NonNullable<RecipeVariants<typeof tabsStyles.li>> & NonNullable<RecipeVariants<typeof tabsStyles.button>>;
15894
- export type BadgeProperties = BadgeVariants & BadgeVariants;
15895
- export interface AvatarTypings {
15894
+ type TabsVariants = NonNullable<RecipeVariants<typeof tabsStyles.ul>> & NonNullable<RecipeVariants<typeof tabsStyles.li>> & NonNullable<RecipeVariants<typeof tabsStyles.button>>;
15895
+ export type BadgeProps = BadgeVariants;
15896
+ interface AvatarTypings {
15896
15897
  /**
15897
15898
  * Renders a Badge component along with the Avatar. The badge prop accepts an object of type Badge, representing the Badge component.
15898
15899
  * @TJS-type Badge
15899
15900
  */
15900
- badge?: BadgeProperties;
15901
+ badge?: BadgeProps;
15901
15902
  }
15902
- export type AvatarProperties = AvatarTypings & AvatarVariants;
15903
- export interface DividerProperties extends DividerSprinkle {
15903
+ export type AvatarProps = AvatarTypings & AvatarVariants;
15904
+ export interface DividerProps extends DividerSprinkle {
15904
15905
  /**
15905
15906
  * The direction of the Divider.
15906
15907
  */
15907
15908
  direction?: "vertical" | "horizontal";
15908
15909
  }
15909
- export type IconProperties = IconSprinkle;
15910
- export type StepperProperties = Pick<StepperVariants, "direction">;
15911
- export interface TitleProperties extends TitleSprinkle {
15910
+ export type IconProps = IconSprinkle;
15911
+ export type StepperProps = Pick<StepperVariants, "direction">;
15912
+ export interface TitleProps extends TitleSprinkle {
15912
15913
  /**
15913
15914
  * Type of html tag to create for the title.
15914
15915
  * @default h1
15915
15916
  */
15916
15917
  as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
15917
15918
  }
15918
- export interface TextProperties extends TextSprinkle {
15919
+ export interface TextProps extends TextSprinkle {
15919
15920
  /**
15920
15921
  * Type of html tag to create for the Text component.
15921
15922
  * @default p
@@ -15926,14 +15927,14 @@ export interface TextProperties extends TextSprinkle {
15926
15927
  */
15927
15928
  lineClamp?: number;
15928
15929
  }
15929
- export interface LabelTyping {
15930
+ interface LabelTyping {
15930
15931
  /**
15931
15932
  * The for attribute specifies which form element a label is bound to.
15932
15933
  */
15933
15934
  htmlFor?: string;
15934
15935
  }
15935
- export type LabelProperties = LabelTyping & LabelVariants;
15936
- export interface TooltipTyping {
15936
+ export type LabelProps = LabelTyping & LabelVariants;
15937
+ interface TooltipTyping {
15937
15938
  /**
15938
15939
  * Conditional for displaying the popover arrow.
15939
15940
  * @default true
@@ -15979,10 +15980,10 @@ export interface TooltipTyping {
15979
15980
  */
15980
15981
  onVisibility?: (visible: boolean) => void;
15981
15982
  }
15982
- export type TooltipProperties = TooltipTyping & TooltipVariants;
15983
- export type TooltipBodyProperties = Pick<TooltipVariants, "padding">;
15984
- export type TooltipFooterProperties = Pick<TooltipVariants, "padding">;
15985
- export interface TooltipHeader {
15983
+ export type TooltipProps = TooltipTyping & TooltipVariants;
15984
+ export type TooltipBodyProps = Pick<TooltipVariants, "padding">;
15985
+ export type TooltipFooterProps = Pick<TooltipVariants, "padding">;
15986
+ interface TooltipHeader {
15986
15987
  /**
15987
15988
  * Displays a delete icon and adds user interaction.
15988
15989
  * @default false
@@ -16001,8 +16002,8 @@ export interface TooltipHeader {
16001
16002
  */
16002
16003
  onClose?: () => void;
16003
16004
  }
16004
- export type TooltipHeaderProperties = TooltipHeader & TooltipVariants;
16005
- export interface StepperStepTyping {
16005
+ export type TooltipHeaderProps = TooltipHeader & TooltipVariants;
16006
+ interface StepperStepTyping {
16006
16007
  /**
16007
16008
  * The title of the step. This provides a brief summary of the step's purpose.
16008
16009
  */
@@ -16012,17 +16013,17 @@ export interface StepperStepTyping {
16012
16013
  */
16013
16014
  description?: string;
16014
16015
  }
16015
- export type StepperStepProperties = StepperStepTyping & Pick<StepperVariants, "active" | "done">;
16016
- export interface ProgressTyping {
16016
+ export type StepperStepProps = StepperStepTyping & Pick<StepperVariants, "active" | "done">;
16017
+ interface ProgressTyping {
16017
16018
  /**
16018
16019
  * The progress percentage, represented as a number between 0 and 100.
16019
16020
  * This indicates the completion level of the process.
16020
16021
  */
16021
16022
  percentage: number;
16022
16023
  }
16023
- export type ProgressProperties = ProgressTyping & ProgressSprinkle;
16024
- export type ProgressCircleProperties = ProgressVariants;
16025
- export interface ToastTyping {
16024
+ export type ProgressProps = ProgressTyping & ProgressSprinkle;
16025
+ export type ProgressCircleProps = ProgressProps & ProgressVariants;
16026
+ interface ToastTyping {
16026
16027
  /**
16027
16028
  * Auto generated id.
16028
16029
  */
@@ -16052,37 +16053,37 @@ export interface ToastTyping {
16052
16053
  */
16053
16054
  width?: string;
16054
16055
  }
16055
- export type ToastProperties = ToastTyping & ToastVariants;
16056
- export interface ToastProviderProperties {
16056
+ export type ToastProps = ToastTyping & ToastVariants & ToastSprinkle;
16057
+ export interface ToastProviderProps {
16057
16058
  /**
16058
16059
  * Position of the toast.
16059
16060
  * @default bottomRight
16060
16061
  */
16061
16062
  placement?: "bottomRight" | "bottomLeft" | "bottomCenter" | "topCenter" | "topRight" | "topLeft";
16062
16063
  }
16063
- export interface SkeletonProperties extends SkeletonSprinkle {
16064
+ export interface SkeletonProps extends SkeletonSprinkle {
16064
16065
  /**
16065
16066
  * This is an attribute used to identify a DOM node for testing purposes.
16066
16067
  */
16067
16068
  "data-testid"?: string;
16068
16069
  }
16069
- export interface StatusTyping {
16070
+ interface StatusTyping {
16070
16071
  /**
16071
16072
  * Specifies whether to display a dot indicator alongside the status text. When true, a dot is shown to visually represent the status.
16072
16073
  * @default true
16073
16074
  */
16074
16075
  dot?: boolean;
16075
16076
  }
16076
- export type StatusProperties = StatusTyping & StatusVariants;
16077
- export interface ButtonTyping {
16077
+ export type StatusProps = StatusTyping & StatusVariants;
16078
+ interface ButtonTyping {
16078
16079
  /**
16079
16080
  * Disables the button, disallowing user interaction.
16080
16081
  * @default false
16081
16082
  */
16082
16083
  disabled?: boolean;
16083
16084
  }
16084
- export type ButtonProperties = ButtonTyping & ButtonVariants;
16085
- export interface CheckboxTyping {
16085
+ export type ButtonProps = ButtonTyping & ButtonVariants;
16086
+ interface CheckboxTyping {
16086
16087
  /**
16087
16088
  * The label of the checkbox.
16088
16089
  */
@@ -16092,15 +16093,15 @@ export interface CheckboxTyping {
16092
16093
  */
16093
16094
  id: string;
16094
16095
  }
16095
- export type CheckboxProperties = CheckboxTyping & CheckboxVariants;
16096
- export interface ChipTyping extends ChipSprinkle {
16096
+ export type CheckboxProps = CheckboxTyping & CheckboxVariants;
16097
+ interface ChipTyping extends ChipSprinkle {
16097
16098
  /**
16098
16099
  * Displays a delete icon and adds user interaction.
16099
16100
  * @default false
16100
16101
  */
16101
16102
  closeable?: boolean;
16102
16103
  }
16103
- export type ChipProperties = ChipTyping & ChipVariants;
16104
+ export type ChipProps = ChipTyping & ChipVariants;
16104
16105
  export type Color = {
16105
16106
  rgb: {
16106
16107
  r: number;
@@ -16125,7 +16126,7 @@ export type Color = {
16125
16126
  oldHue: number;
16126
16127
  source: string;
16127
16128
  };
16128
- export type ColorPickerProperties = {
16129
+ export type ColorPickerProps = {
16129
16130
  /**
16130
16131
  * Hexadecimal color to be displayed as initial color
16131
16132
  */
@@ -16137,13 +16138,14 @@ export type ColorPickerProperties = {
16137
16138
  */
16138
16139
  onChange: (color: Color) => void;
16139
16140
  };
16140
- export interface DatepickerTyping {
16141
+ export type InputProps = InputVariants;
16142
+ export interface DatepickerProps {
16141
16143
  /**
16142
16144
  * Specifies the input properties for the datepicker component.
16143
- * This should be an object of type InputProperties, which defines various attributes and behaviors for the input field within the datepicker.
16145
+ * This should be an object of type InputPros, which defines various attributes and behaviors for the input field within the datepicker.
16144
16146
  * @TJS-type Input
16145
16147
  */
16146
- input?: InputProperties;
16148
+ input?: InputProps;
16147
16149
  /**
16148
16150
  * Specifies the locale for the datepicker, influencing how dates are displayed and formatted.
16149
16151
  */
@@ -16208,13 +16210,12 @@ export interface DatepickerTyping {
16208
16210
  */
16209
16211
  onChange: (date: Date | Date[] | null) => void;
16210
16212
  }
16211
- export type DatepickerProperties = Omit<DatepickerTyping, "input">;
16212
- export interface DatepickerFooterTyping {
16213
+ interface DatepickerFooterTyping {
16213
16214
  setSelected?: () => void;
16214
16215
  clear?: () => void;
16215
16216
  }
16216
- export type DatepickerFooterProperties = DatepickerFooterTyping;
16217
- export interface DropdownTyping {
16217
+ export type DatepickerFooterProps = DatepickerFooterTyping;
16218
+ interface DropdownTyping {
16218
16219
  /**
16219
16220
  * A common feature of select dropdowns is that the dropdown matches the width of the reference regardless of its contents.
16220
16221
  * @default false
@@ -16256,33 +16257,30 @@ export interface DropdownTyping {
16256
16257
  */
16257
16258
  onVisibility?: (visible: boolean) => void;
16258
16259
  }
16259
- export type DropdownProperties = DropdownTyping & DropdownSprinkle & Pick<DropdownVariants, "padding">;
16260
- export interface DropdownItemTyping {
16260
+ export type DropdownProps = DropdownTyping & DropdownSprinkle & Pick<DropdownVariants, "padding">;
16261
+ interface DropdownItemTyping {
16261
16262
  /**
16262
16263
  * The name of the dropdown item. This is typically the text that is displayed for the item.
16263
16264
  */
16264
16265
  name?: string;
16265
16266
  }
16266
- export type DropdownItemProperties = DropdownItemTyping & Pick<DropdownVariants, "selected">;
16267
- export interface IconButtonTyping {
16267
+ export type DropdownItemProps = DropdownItemTyping & Pick<DropdownVariants, "selected">;
16268
+ interface IconButtonTyping {
16268
16269
  /**
16269
16270
  * Disables the button, disallowing user interaction.
16270
16271
  * @default false
16271
16272
  */
16272
16273
  disabled?: boolean;
16273
16274
  }
16274
- export type IconButtonProperties = IconButtonTyping & IconButtonVariants;
16275
- export type InputProperties = InputVariants;
16276
- export interface InputLeadingTyping {
16275
+ export type IconButtonProps = IconButtonTyping & IconButtonVariants;
16276
+ interface InputLeadingTyping {
16277
16277
  /**
16278
16278
  * Sent Leading display position.
16279
16279
  */
16280
16280
  position: "start" | "end";
16281
16281
  }
16282
- export type InputLeadingProperties = InputLeadingTyping & Pick<InputProperties, "divider" | "appearance" | "size">;
16283
- export type InputPasswordProperties = Pick<InputProperties, "divider" | "appearance" | "size" | "border">;
16284
- export type InputSearchProperties = Pick<InputProperties, "divider" | "appearance" | "size" | "border">;
16285
- export interface RadioButtonTyping {
16282
+ export type InputLeadingProps = InputLeadingTyping & Pick<InputProps, "divider" | "appearance" | "size">;
16283
+ interface RadioButtonTyping {
16286
16284
  /**
16287
16285
  * Sets radio state to activated or deactivated.
16288
16286
  */
@@ -16292,8 +16290,8 @@ export interface RadioButtonTyping {
16292
16290
  */
16293
16291
  label?: string;
16294
16292
  }
16295
- export type RadioButtonProperties = RadioButtonTyping & RadioButtonVariants;
16296
- export interface SelectOption {
16293
+ export type RadioButtonProps = RadioButtonTyping & RadioButtonVariants;
16294
+ interface SelectOption {
16297
16295
  /**
16298
16296
  * Label for the option. This is the text that will be displayed for the option.
16299
16297
  */
@@ -16303,7 +16301,7 @@ export interface SelectOption {
16303
16301
  */
16304
16302
  value: string;
16305
16303
  }
16306
- export interface SelectTyping {
16304
+ interface SelectTyping {
16307
16305
  /**
16308
16306
  * Options for the Select component. This should be an array of SelectOption objects.
16309
16307
  */
@@ -16343,15 +16341,15 @@ export interface SelectTyping {
16343
16341
  */
16344
16342
  portalId?: string;
16345
16343
  }
16346
- export type SelectProperties = SelectTyping & SelectVariants & SelectSprinkle;
16347
- export interface TextareaProperties extends TextareaVariants {
16344
+ export type SelectProps = SelectTyping & SelectVariants & SelectSprinkle;
16345
+ export interface TextareaProps extends TextareaVariants {
16348
16346
  /**
16349
16347
  * Number of lines to be rendered for the user to input text
16350
16348
  * @default 2
16351
16349
  */
16352
16350
  lines?: number;
16353
16351
  }
16354
- export interface ToggleTyping {
16352
+ interface ToggleTyping {
16355
16353
  /**
16356
16354
  * The name of the input element.
16357
16355
  */
@@ -16365,8 +16363,8 @@ export interface ToggleTyping {
16365
16363
  */
16366
16364
  label?: string;
16367
16365
  }
16368
- export type ToggleProperties = ToggleTyping & ToggleVariants;
16369
- export interface AccordionProperties {
16366
+ export type ToggleProps = ToggleTyping & ToggleVariants;
16367
+ export interface AccordionProps {
16370
16368
  /**
16371
16369
  * Informs which accordion item is open by default, this value must be the same as informed in the index of each item
16372
16370
  */
@@ -16377,8 +16375,8 @@ export interface AccordionProperties {
16377
16375
  */
16378
16376
  disabled?: boolean;
16379
16377
  }
16380
- export type AccordionBodyProperties = Pick<AccordionVariants, "padding">;
16381
- export interface AccordionHeaderTyping {
16378
+ export type AccordionBodyProps = Pick<AccordionVariants, "padding">;
16379
+ interface AccordionHeaderTyping {
16382
16380
  /**
16383
16381
  * The title to display in the accordion header.
16384
16382
  */
@@ -16393,8 +16391,8 @@ export interface AccordionHeaderTyping {
16393
16391
  */
16394
16392
  noIconToggle?: boolean;
16395
16393
  }
16396
- export type AccordionHeaderProperties = AccordionHeaderTyping & Pick<AccordionVariants, "size">;
16397
- export interface AccordionItemProperties {
16394
+ export type AccordionHeaderProps = AccordionHeaderTyping & Pick<AccordionVariants, "size">;
16395
+ export interface AccordionItemProps {
16398
16396
  /**
16399
16397
  * Unique indicator to identify accordion items
16400
16398
  */
@@ -16404,7 +16402,7 @@ export interface AccordionItemProperties {
16404
16402
  */
16405
16403
  testId?: string;
16406
16404
  }
16407
- export interface BannerTyping {
16405
+ interface BannerTyping {
16408
16406
  /**
16409
16407
  * A function to be called when the user closes the banner. This function is typically used to handle the closing action.
16410
16408
  * @TJS-type () => void;
@@ -16412,18 +16410,16 @@ export interface BannerTyping {
16412
16410
  onClose?: () => void;
16413
16411
  /**
16414
16412
  * The appearance of the banner. This can be used to set the color of the banner.
16415
- * @TJS-type "brand" | "error" | "info" | "warning" | "neutral" | "inverted";
16416
16413
  */
16417
- appearance?: "brand" | "error" | "info" | "warning" | "neutral" | "inverted" | undefined;
16414
+ appearance?: "brand" | "error" | "info" | "warning" | "neutral" | "inverted";
16418
16415
  /**
16419
16416
  * Determines whether the banner message should float above the content. This can be useful for ensuring the message remains visible even as the user scrolls.
16420
- * @TJS-type boolean;
16421
16417
  */
16422
16418
  floating?: boolean;
16423
16419
  }
16424
- export type BannerProperties = BannerTyping & BannerVariants;
16425
- export type CardProperties = CardVariants & CardSprinkle;
16426
- export interface CardHeaderProperties {
16420
+ export type BannerProps = BannerTyping & BannerVariants;
16421
+ export type CardProps = CardVariants & CardSprinkle;
16422
+ export interface CardHeaderProps {
16427
16423
  /**
16428
16424
  * The title of the card. This is typically displayed prominently in the header section.
16429
16425
  */
@@ -16433,7 +16429,7 @@ export interface CardHeaderProperties {
16433
16429
  */
16434
16430
  description?: string;
16435
16431
  }
16436
- export interface ModalTyping {
16432
+ interface ModalTyping {
16437
16433
  /**
16438
16434
  * Whether the modal is open or not.
16439
16435
  */
@@ -16449,8 +16445,8 @@ export interface ModalTyping {
16449
16445
  */
16450
16446
  onDismiss: (open: boolean) => void;
16451
16447
  }
16452
- export type ModalProperties = ModalTyping & ModalSprinkle & ModalVariants;
16453
- export interface ModalHeaderTypings {
16448
+ export type ModalProps = ModalTyping & ModalSprinkle & ModalVariants;
16449
+ interface ModalHeaderTypings {
16454
16450
  /**
16455
16451
  * The title to display in the Modal header.
16456
16452
  */
@@ -16460,9 +16456,9 @@ export interface ModalHeaderTypings {
16460
16456
  */
16461
16457
  subtitle?: string;
16462
16458
  }
16463
- export type ModalHeaderProperties = ModalHeaderTypings;
16464
- export type BoxProperties = BoxSprinkle;
16465
- export interface SidebarTyping {
16459
+ export type ModalHeaderProps = ModalHeaderTypings;
16460
+ export type BoxProps = BoxSprinkle;
16461
+ interface SidebarTyping {
16466
16462
  /**
16467
16463
  * Whether the sidebar is open or not.
16468
16464
  */
@@ -16478,8 +16474,8 @@ export interface SidebarTyping {
16478
16474
  */
16479
16475
  onRemove?: () => void;
16480
16476
  }
16481
- export type SidebarProperties = SidebarTyping & SidebarSprinkle & SidebarVariants;
16482
- export interface BreadcrumbProperties {
16477
+ export type SidebarProps = SidebarTyping & SidebarSprinkle & SidebarVariants;
16478
+ export interface BreadcrumbProps {
16483
16479
  /**
16484
16480
  * Specifies the number of breadcrumb items to display after truncation.
16485
16481
  * This is useful for managing the display of long breadcrumb lists.
@@ -16487,15 +16483,15 @@ export interface BreadcrumbProperties {
16487
16483
  */
16488
16484
  itensAfterTruncate?: number;
16489
16485
  }
16490
- export interface BreadcrumbItemTyping {
16486
+ interface BreadcrumbItemTyping {
16491
16487
  /**
16492
16488
  * The name of the breadcrumb item. This is typically the text that is displayed for the item.
16493
16489
  */
16494
16490
  name?: string;
16495
16491
  }
16496
- export type BreadcrumbItemProperties = BreadcrumbItemTyping & BreadcrumbVariants;
16497
- export type LinkProperties = LinkVariants;
16498
- export interface PaginationTyping {
16492
+ export type BreadcrumbItemProps = BreadcrumbItemTyping & BreadcrumbVariants;
16493
+ export type LinkProps = LinkVariants;
16494
+ interface PaginationTyping {
16499
16495
  /**
16500
16496
  * The currently selected page.
16501
16497
  */
@@ -16520,8 +16516,8 @@ export interface PaginationTyping {
16520
16516
  */
16521
16517
  onPageChange: (page: number) => void;
16522
16518
  }
16523
- export type PaginationProperties = PaginationTyping & PaginationVariants;
16524
- export interface SideNavigationTyping {
16519
+ export type PaginationProps = PaginationTyping & PaginationVariants;
16520
+ interface SideNavigationTyping {
16525
16521
  /**
16526
16522
  * Title of the sideNavigation
16527
16523
  */
@@ -16531,15 +16527,15 @@ export interface SideNavigationTyping {
16531
16527
  */
16532
16528
  description?: string;
16533
16529
  }
16534
- export type SideNavigationProperties = SideNavigationTyping & SideNavigationVariants;
16535
- export interface SideNavigationItemTypings {
16530
+ export type SideNavigationProps = SideNavigationTyping & SideNavigationVariants;
16531
+ interface SideNavigationItemTypings {
16536
16532
  /**
16537
16533
  * Determines if the item is active or not.
16538
16534
  */
16539
16535
  active?: boolean;
16540
16536
  }
16541
- export type SideNavigationItemProperties = SideNavigationItemTypings & Pick<SideNavigationVariants, "level">;
16542
- export interface TabsTyping {
16537
+ export type SideNavigationItemProps = SideNavigationItemTypings & Pick<SideNavigationVariants, "level">;
16538
+ interface TabsTyping {
16543
16539
  /**
16544
16540
  * Sets the indicated tab as active by default.
16545
16541
  * If unset, defaults to the first tab. This prop should be a number representing the index of the tab.
@@ -16551,6 +16547,15 @@ export interface TabsTyping {
16551
16547
  */
16552
16548
  selectedTab?: number;
16553
16549
  }
16554
- export type TabsProperties = TabsTyping & Pick<TabsVariants, "underlined" | "full" | "position">;
16550
+ export type TabsProps = TabsTyping & Pick<TabsVariants, "underlined" | "full" | "position">;
16551
+ export type TabsButtonProps = Pick<TabsVariants, "underlined" | "selected">;
16552
+ export interface TabsItemProps {
16553
+ /**
16554
+ * A callback function that is called when a tab is clicked.
16555
+ * This function receives the index of the selected tab as a parameter.
16556
+ * @TJS-type (tab: number) => void
16557
+ */
16558
+ onSelectTab?: (tab: number) => void;
16559
+ }
16555
16560
 
16556
16561
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rarui/typings",
3
- "version": "2.0.0-rc.1",
3
+ "version": "2.0.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "sideEffects": false,
12
12
  "scripts": {
13
- "build": "yarn g:dts --external-inlines @vanilla-extract/recipes @vanilla-extract/css csstype -o dist/index.ts src/index.ts",
13
+ "build": "yarn g:dts --external-inlines=@vanilla-extract/recipes @vanilla-extract/css csstype -o dist/index.ts src/index.ts --export-referenced-types=false",
14
14
  "clean": "rm -rf dist",
15
15
  "version": "yarn version"
16
16
  },
@@ -23,6 +23,6 @@
23
23
  "url": "https://git.rarolabs.com.br/frontend/rarui/issues"
24
24
  },
25
25
  "devDependencies": {
26
- "@rarui/webpack": "workspace:^"
26
+ "@rarui/webpack": "^1.3.3"
27
27
  }
28
- }
28
+ }