Skip to content

Releases: osstotalsoft/rocket-ui-ts

v1.0.0

23 Dec 09:36
f115316
Compare
Choose a tag to compare

🚀 Major Release Notes:

This major release introduces key improvements, including rewritten components, new features, enhanced functionalities, and dependency updates in order to ensure a more efficient and consistent experience.

Enhancements

  1. Material UI Upgrade
  2. DateTime component has been rewritten
  3. Autocomplete component has been rewritten
  4. Added new Mui X Stats Chart component
  5. Added DisplayTags and TagsInput components
  6. Added action button integration for Toast component
  7. Upgraded react-router-dom
  8. Theme Update
  9. ESLint Configuration Update

🚨 Breaking chages

Note: To use the new components, the following packages must be upgraded:

@emotion/react
@emotion/styled
@mui/icons-material
@mui/material 
  1. Typography:

    • The color prop in the Typography component is not a system prop anymore. You can use the sx prop instead.
      image
      You still can access some theme colors directly using the color prop. Check the list here: https://mui.com/material-ui/api/typography/#typography-prop-color
      Example: <Typography color="textSecondary">Secondary text</Typography>
  2. DateTime:

    • components property have been replaced with slots property.
    • format property is now used to format the date when rendered in the input and localeFormat to choose ISO format names.
  3. Autocomplete

    • The value provided to the Autocomplete should always have a default. Example:
    <Autocomplete value = {myValue || null} />
    <Autocomplete withCheckboxes={true} value = {myValue || []} />
    
    • Add <CssBaseline/> to the theme provider in your project:
    <ThemeProvider theme={getTheme()}>
        <CssBaseline />
        {children}
    </ThemeProvider>
    
    • The onChange behavior of the Creatable Autocomplete component has been updated. When a new value is created, the format of the value passed to the onChange callback has changed.
      Old behavior: When creating a new value, the onChange callback provided an object with the new value text stored in the name property. Example: { label: "New Text", value: "New Text", name: "New Text"}
      New behavior: Now, the onChange callback provides the new value as a primitive string, instead of an object. Example:
      "New Text"

    • The onChange behavior of the simpleValue Autocomplete has been updated. When using the Autocomplete with simpleValue mode enabled and options represented as a list of objects, the onChange event no longer automatically retrieves the desired value using the valueKey. You must now manually handle the event to extract the desired value from the selected option.
      Old behavior: When the simpleValue prop was enabled, the onChange event would automatically return the value corresponding to the specified valueKey from the selected option.
      New behavior: With the updated behavior, the onChange event now provides the full selected object. You are responsible for manually extracting the desired value based on the specified valueKey.

      const handleChange = useCallback(key=>selected=> prop(key, selected))
      <Autocomplete simpleValue valueKey="myKey" onChange={handleChange("myKey")} />  
      
  4. Toast

    • Now, the autoClose is true by default.

Deprecations

  1. Chart was deprecated and renamed to DeprecatedChart. We recommend using the new StatsChart which is now based on @mui/x-charts library
  2. StatsChart was deprecated and renamed to DeprecatedStatsChart
  3. Autocomplete was deprecated and renamed to DeprecatedAutocomplete. We recommend using the new Autocomplete component

📦 Dependency Updates

All the dependencies have been updated and the following have been removed:

  1. @nx/js: ^20.0.8
  2. dedent: ^1.5.3
  3. sort-package-json: ^2.10.1

Changes

v0.1.63

16 Oct 15:03
b90d4db
Compare
Choose a tag to compare

Changes

  • remove card header padding when only avatar @DCosti (#134)

v0.1.62

16 Oct 08:04
b94f44f
Compare
Choose a tag to compare

Changes

v0.1.61

11 Oct 07:27
0b79311
Compare
Choose a tag to compare

Changes

v0.1.60

11 Sep 10:37
78b65c0
Compare
Choose a tag to compare

Changes

  • update ref when handleInputChange is changing @DCosti (#131)

v0.1.59

05 Sep 13:14
5eb6816
Compare
Choose a tag to compare

Changes

v0.1.58

29 Aug 09:10
f18f506
Compare
Choose a tag to compare

Changes

  • fixed Autocomplete render grouped options and removed optionsLoaded @alexandra-c (#127)

v0.1.57

27 Aug 10:50
c26f84d
Compare
Choose a tag to compare

Changes

v0.1.56

10 Jul 09:14
c4583fc
Compare
Choose a tag to compare

Changes

v0.1.55

03 Jul 07:51
6c013c3
Compare
Choose a tag to compare

Changes