@rarui/typings 2.2.0 → 2.3.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,12 @@
2
2
 
3
3
  This package is intended for internal use in creating components with polymorphic typing.
4
4
 
5
+ ## 2025-10-09 `2.23.0`
6
+
7
+ #### 🎉 New features
8
+
9
+ - 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))
10
+
5
11
  ## 2025-07-11 `2.2.0`
6
12
 
7
13
  #### 🎉 New features
@@ -24,11 +30,11 @@ This package is intended for internal use in creating components with polymorphi
24
30
 
25
31
  #### 🐛 Bug fixes
26
32
 
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))
33
+ - 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
34
 
29
35
  #### 🎉 New features
30
36
 
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))
37
+ - 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
38
 
33
39
  ## 2024-08-07 `2.0.0`
34
40
 
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
  }
@@ -17228,7 +17227,6 @@ declare const sidebarStyles: {
17228
17227
  };
17229
17228
  /**
17230
17229
  * Determines if the sidebar is shown or not.
17231
- * @default true
17232
17230
  */
17233
17231
  open: {
17234
17232
  true: {
@@ -17716,6 +17714,16 @@ interface CheckboxTyping {
17716
17714
  * The id of the checkbox.
17717
17715
  */
17718
17716
  id: string;
17717
+ /**
17718
+ * Whether the checkbox is checked.
17719
+ * @default false
17720
+ */
17721
+ checked?: boolean;
17722
+ /**
17723
+ * Whether the checkbox is readonly.
17724
+ * @default false
17725
+ */
17726
+ readonly?: boolean;
17719
17727
  }
17720
17728
  type CheckboxProps = CheckboxTyping & CheckboxVariants;
17721
17729
 
@@ -17961,7 +17969,8 @@ interface SelectTyping {
17961
17969
  */
17962
17970
  onChange?: (selectedOptions: SelectOptionProps | SelectOptionProps[]) => void;
17963
17971
  /**
17964
- * Fazer
17972
+ * Enables multiple selection mode.
17973
+ * @default false
17965
17974
  */
17966
17975
  multiple?: boolean;
17967
17976
  /**
@@ -17973,6 +17982,15 @@ interface SelectTyping {
17973
17982
  * If true, the Select component is shown.
17974
17983
  */
17975
17984
  open?: boolean;
17985
+ /**
17986
+ * Placeholder text displayed when no option is selected.
17987
+ */
17988
+ placeholder?: string;
17989
+ /**
17990
+ * Disables the select component, disallowing user interaction.
17991
+ * @default false
17992
+ */
17993
+ disabled?: boolean;
17976
17994
  /**
17977
17995
  * 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
17996
  * This can help ensure the dropdown is always visible on the screen.
@@ -17984,6 +18002,12 @@ interface SelectTyping {
17984
18002
  * This can be useful for rendering the dropdown in a different part of the DOM, such as a modal or overlay.
17985
18003
  */
17986
18004
  portalId?: string;
18005
+ /**
18006
+ * Maximum number of items to display before showing a "+X" chip with the remaining count.
18007
+ * When set, only the specified number of selected items will be shown, followed by a chip indicating how many more items are selected.
18008
+ * @default undefined (shows all selected items)
18009
+ */
18010
+ itemsAfterTruncate?: number;
17987
18011
  }
17988
18012
  type SelectProps = SelectTyping & SelectVariants & SelectSprinkle;
17989
18013
 
@@ -18139,7 +18163,7 @@ interface BreadcrumbProps {
18139
18163
  * This is useful for managing the display of long breadcrumb lists.
18140
18164
  * @default 10
18141
18165
  */
18142
- itensAfterTruncate?: number;
18166
+ itemsAfterTruncate?: number;
18143
18167
  }
18144
18168
 
18145
18169
  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.3.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.1",
28
+ "@rarui/tools": "^1.0.0"
28
29
  }
29
30
  }