@rarui/typings 2.2.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  This package is intended for internal use in creating components with polymorphic typing.
4
4
 
5
+ ## 2025-10-16 `2.24.0`
6
+
7
+ #### 🎉 New features
8
+
9
+ - **Banner Success Appearance**: Added support for new `success` appearance variant in Banner component, providing visual feedback for successful operations with appropriate success colors. ([#144](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/144) by [@junior](https://git.rarolabs.com.br/junior))
10
+
11
+ ## 2025-10-09 `2.23.0`
12
+
13
+ #### 🎉 New features
14
+
15
+ - Added `itemsAfterTruncate` property to the `SelectProps` type for controlling item truncation display. ([#143](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/143) by [@junior](https://git.rarolabs.com.br/junior))
16
+
5
17
  ## 2025-07-11 `2.2.0`
6
18
 
7
19
  #### 🎉 New features
@@ -24,11 +36,11 @@ This package is intended for internal use in creating components with polymorphi
24
36
 
25
37
  #### 🐛 Bug fixes
26
38
 
27
- - Corrigido tipagens de `onChange`, `value` e `defaultValue`. ([#99](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/99) by [@junior](https://git.rarolabs.com.br/junior))
39
+ - Fixed `onChange`, `value` and `defaultValue`. ([#99](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/99) by [@junior](https://git.rarolabs.com.br/junior))
28
40
 
29
41
  #### 🎉 New features
30
42
 
31
- - Adioconado nova tipagem de `minDate` e `maxDate` ao tipo do `DatePickerProps`. ([#99](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/99) by [@junior](https://git.rarolabs.com.br/junior))
43
+ - Piped new typing of `minDate` and` maxDate` to the type of `DatePickerProps`. ([#99](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/99) by [@junior](https://git.rarolabs.com.br/junior))
32
44
 
33
45
  ## 2024-08-07 `2.0.0`
34
46
 
package/dist/index.d.ts CHANGED
@@ -15343,7 +15343,7 @@ interface BoxConditions<T> extends Conditions<T> {
15343
15343
  hover?: T;
15344
15344
  disabled?: T;
15345
15345
  }
15346
- type BoxDynamicProperties = Pick<StandardLonghandProperties, "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, "flex" | "gridArea" | "backgroundPosition" | "flexFlow" | "borderStyle" | "overflow" | "textDecoration">;
15346
+ type BoxDynamicProperties = Pick<StandardLonghandProperties, "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" | "verticalAlign" | "whiteSpace"> & Pick<StandardShorthandProperties, "flex" | "gridArea" | "backgroundPosition" | "flexFlow" | "borderStyle" | "overflow" | "textDecoration">;
15347
15347
  interface BoxSprinkle extends BoxDynamicProperties {
15348
15348
  /**
15349
15349
  * The gap property sets the gaps between rows and columns. It is a shorthand for rowGap and columnGap.
@@ -15552,7 +15552,6 @@ interface BoxSprinkle extends BoxDynamicProperties {
15552
15552
  fontWeight?: AddDollar<keyof typeof fontWeightProperties> | BoxConditions<AddDollar<keyof typeof fontWeightProperties>>;
15553
15553
  /**
15554
15554
  * The lineHeight property specifies the line height of the box.
15555
- * @default base
15556
15555
  */
15557
15556
  lineHeight?: AddDollar<keyof typeof lineHeightProperties> | BoxConditions<AddDollar<keyof typeof lineHeightProperties>>;
15558
15557
  }
@@ -16669,6 +16668,10 @@ declare const bannerStyles: {
16669
16668
  backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
16670
16669
  color: `var(--${string})` | `var(--${string}, ${string})`;
16671
16670
  };
16671
+ success: {
16672
+ backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
16673
+ color: `var(--${string})` | `var(--${string}, ${string})`;
16674
+ };
16672
16675
  info: {
16673
16676
  backgroundColor: `var(--${string})` | `var(--${string}, ${string})`;
16674
16677
  color: `var(--${string})` | `var(--${string}, ${string})`;
@@ -17228,7 +17231,6 @@ declare const sidebarStyles: {
17228
17231
  };
17229
17232
  /**
17230
17233
  * Determines if the sidebar is shown or not.
17231
- * @default true
17232
17234
  */
17233
17235
  open: {
17234
17236
  true: {
@@ -17716,6 +17718,16 @@ interface CheckboxTyping {
17716
17718
  * The id of the checkbox.
17717
17719
  */
17718
17720
  id: string;
17721
+ /**
17722
+ * Whether the checkbox is checked.
17723
+ * @default false
17724
+ */
17725
+ checked?: boolean;
17726
+ /**
17727
+ * Whether the checkbox is readonly.
17728
+ * @default false
17729
+ */
17730
+ readonly?: boolean;
17719
17731
  }
17720
17732
  type CheckboxProps = CheckboxTyping & CheckboxVariants;
17721
17733
 
@@ -17961,7 +17973,8 @@ interface SelectTyping {
17961
17973
  */
17962
17974
  onChange?: (selectedOptions: SelectOptionProps | SelectOptionProps[]) => void;
17963
17975
  /**
17964
- * Fazer
17976
+ * Enables multiple selection mode.
17977
+ * @default false
17965
17978
  */
17966
17979
  multiple?: boolean;
17967
17980
  /**
@@ -17973,6 +17986,15 @@ interface SelectTyping {
17973
17986
  * If true, the Select component is shown.
17974
17987
  */
17975
17988
  open?: boolean;
17989
+ /**
17990
+ * Placeholder text displayed when no option is selected.
17991
+ */
17992
+ placeholder?: string;
17993
+ /**
17994
+ * Disables the select component, disallowing user interaction.
17995
+ * @default false
17996
+ */
17997
+ disabled?: boolean;
17976
17998
  /**
17977
17999
  * Determines whether the select box should enable flipping the options' dropdown when there is not enough space to display it in its default direction.
17978
18000
  * This can help ensure the dropdown is always visible on the screen.
@@ -17984,6 +18006,12 @@ interface SelectTyping {
17984
18006
  * This can be useful for rendering the dropdown in a different part of the DOM, such as a modal or overlay.
17985
18007
  */
17986
18008
  portalId?: string;
18009
+ /**
18010
+ * Maximum number of items to display before showing a "+X" chip with the remaining count.
18011
+ * When set, only the specified number of selected items will be shown, followed by a chip indicating how many more items are selected.
18012
+ * @default undefined (shows all selected items)
18013
+ */
18014
+ itemsAfterTruncate?: number;
17987
18015
  }
17988
18016
  type SelectProps = SelectTyping & SelectVariants & SelectSprinkle;
17989
18017
 
@@ -18059,14 +18087,6 @@ interface BannerTyping {
18059
18087
  * @TJS-type () => void;
18060
18088
  */
18061
18089
  onClose?: () => void;
18062
- /**
18063
- * The appearance of the banner. This can be used to set the color of the banner.
18064
- */
18065
- appearance?: "brand" | "error" | "info" | "warning" | "neutral" | "inverted";
18066
- /**
18067
- * 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.
18068
- */
18069
- floating?: boolean;
18070
18090
  }
18071
18091
  type BannerProps = BannerTyping & BannerVariants;
18072
18092
 
@@ -18139,7 +18159,7 @@ interface BreadcrumbProps {
18139
18159
  * This is useful for managing the display of long breadcrumb lists.
18140
18160
  * @default 10
18141
18161
  */
18142
- itensAfterTruncate?: number;
18162
+ itemsAfterTruncate?: number;
18143
18163
  }
18144
18164
 
18145
18165
  interface BreadcrumbItemTyping {
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@rarui/typings",
3
- "version": "2.2.0",
3
+ "version": "2.4.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
6
7
  "files": [
7
8
  "dist",
8
9
  "README.md",
@@ -10,7 +11,7 @@
10
11
  ],
11
12
  "sideEffects": false,
12
13
  "scripts": {
13
- "build": "rm -rf dist && yarn g:rollup packages/typings",
14
+ "build": "rm -rf dist && yarn g:rollup packages/foundation/typings",
14
15
  "clean": "rm -rf dist",
15
16
  "version": "yarn version"
16
17
  },
@@ -23,7 +24,7 @@
23
24
  "url": "https://git.rarolabs.com.br/frontend/rarui/issues"
24
25
  },
25
26
  "devDependencies": {
26
- "@rarui/rollup": "^1.1.0",
27
- "@rarui/styles": "^2.6.3"
27
+ "@rarui/styles": "^3.2.2",
28
+ "@rarui/tools": "^1.0.0"
28
29
  }
29
30
  }