-
Set
enginesfield of package.json correctly (4720d74) -
Updated dependencies [
6dc471b]:- @hrc/type-utils@1.1.4
- Updated dependencies [785d25a]
- @hrc/type-utils@1.1.3
- f6b879b: Use
:focus-visible - 2348428: Set correct border color of
columnvariant of<ButtonGroup />(again)
-
3883533: Rename css variable to set
justify-content.my-selector { - --button-justify-content: flex-start; + --button-justify: flex-start; } -
5c0b82f: Remove default text for
<Button />- <Button color="primary"> + <Button color="primary">Default</Button>
This change makes
<Button />to be used as a regular HTMLbuttonelement. -
01009d6: Change way of handling rounded variants
- removed
roundedSideandfullRoundedprop from<Button />and<ButtonIcon /> - added
roundedprop
-
Remove
roundedSideandfullRoundedprops from<Button />and<ButtonIcon /> -
Use
roundedprop insteadfunction App() { return ( <> - <Button roundedSize="left">Left</Button> - <Button roundedSize="top">Top</Button> - <Button fullRounded>Full</Button> + <Button rounded="left">Left</Button> + <Button rounded="top">Top</Button> + <Button rounded="full">Full</Button> </> ); }
- removed
-
a3f0e42: Rename prop to disable shadow
function App() { return ( <> - <Button disableShadow>No shadow</Button> + <Button noShadow>No shadow</Button> </> ); }It was renamed to match its corresponding class:
.button--no-shadow
-
fb270a5: Allow font family inheritance by default
-
a937b74: Prevent any direct children of
<Button />from shrinking -
0a975e0: Add
nonerounded variant -
5d41ccc: Add
cursor: pointerto<Button />' -
078dfa7: Removed
--button-outline-color-disabledvariable.It's not necessary since
outlinevariant relies on text color.
- 060fbf9: Generate declaration files in the same folder of its
jsfiles
- e8348ed: Add
@types/reactto peer dependencies
- 4cde046: Set correct border color of
columnvariant of<ButtonGroup /> - 043a4d4: Update package homepage
- Updated dependencies [043a4d4]
- @hrc/type-utils@1.1.2
- a55ee83: Add explicit return type to
<ButtonGroup />
- f67ca70: Update repo url
- Updated dependencies [f67ca70]
- @hrc/type-utils@1.1.1
- 3faca31: Handle svg icons color
- 8ef1f4f: Add
<ButtonGroup />component - a5d80fa: Handle svg icons size
- da1d234: Use
SizeandColortypes from@hdoc-react/type-utils
- 6844207: Handle sizes for
<ButtonIcon />correctly - Updated dependencies [f431f53]
- Updated dependencies [5aac604]
- @hdoc-react/type-utils@1.1.0
- Updated dependencies [7e2bf19]
- @hdoc-react/type-utils@1.0.1
- 2be9f53: Update compatible version of dependencies
- 1baa1c4: Simplify usage of
childrenfor<ButtonIcon />component - e3ade7e: Remove unnecessary import of
React.PropsWithChildren - cd02bc3: Replace dependency
type-festby@hdoc-react/type-utils - 6f23307: Merge generated declaration files
- Updated dependencies [fcaf74b]
- @hdoc-react/type-utils@1.0.0
- 7712ede: Update package scope
- 1144baf: Rename entry file
- da462a8: Add full rounded style
- 50f62e1: Update docs with new way of handling button text
-
954c62c: Remove
textprop and usechildreninstead<Button />affected props:- removed
text
- removed
function App() { return ( <> - <Button text="Save" /> + <Button>Save</Button> </> ); }The
textprop has been removed from theButtoncomponent and replaced withchildren. This makes theButtoncomponent similar to a normal HTMLbuttonelement. -
ca6955c: Rename color
dangertoerror-
Rename
colorprop fromdangertoerrorfunction App() { return ( <> - <Button text="Delete" color="danger" /> + <Button text="Delete" color="error" /> </> ); } -
Rename css custom properties of
--dangerto--error.my-selector { - --danger: red; - --danger-hover: darkred; - --danger-text: white; - --danger-transparent: rgba(255, 0, 0, 0.5); + --error: red; + --error-hover: darkred; + --error-text: white; + --error-transparent: rgba(255, 0, 0, 0.5); }
-
-
2a65b92: Changed way of handling icons
<Button />affected props:iconStart-> type:ReactNodeiconEnd-> type:ReactNode- removed
iconVariant
<ButtonIcon />affected props:- accepts
children - removed
icon - removed
iconVariant
- accepts
-
Change values of
iconStartandiconEndfromstringtoReactNode: -
Remove every
iconVariant -
Remove
iconfrom<ButtonIcon />and usechildren+ import { SearchIcon, DeleteIcon } from "third-party-package"; function App() { return ( <> - <Button text="Search" iconStart="search" /> + <Button text="Search" iconStart={<SearchIcon />} /> - <ButtonIcon icon="delete" /> + <ButtonIcon> + <DeleteIcon /> + </ButtonIcon> </> ); }
-
a7573a3: Rename css custom property for change text color
Rename css custom property from
--button-colorto--button-text:.my-selector { - --button-color: gray; + --button-text: gray; }
-
397a62d: Use
currentColorfor set outline color -
3ce7270: Add custom property for change font size:
--button-font-size
-
6636873: Add custom properties for change flexbox layout:
--button-justify-content--button-gap
-
daaf12b: Remove
@hdoc/react-material-iconsfrom peer dependencies -
e50505e: Update compatible versions of peer dependencies
-
e058b70: Use
clsxas dependency -
e7bc357: Add support for round one side
-
baa67cc: Use colors from internal lib
@mono/ui -
8f05d15: Add more color variants:
infowarningsuccess
-
0fc975a: Center justify the items inside button
-
24fb0a9: Add css custom properties for change font family and font weight:
--button-font-family--button-font-weight
-
170fb54: Add explicit return type for exported components
-
f9bb762: Add css custom properties for change radius and padding
--button-radius--button-padding
- Updated dependencies [eb576d8]
- Updated dependencies [baa67cc]
- @hdoc/react-material-icons@1.6.0
- Updated dependencies [44d7bff]
- @hdoc/react-material-icons@1.5.0
- b96af43: Use exact version of
@hdoc/react-material-icons
-
ca31df2: First release
Added screenshot of button examples
-
9d97a57: Change property for set color of text:
--button-text->--button-color--button-text-disabled->--button-color-disabled
-
ef7daa9: Add ButtonIcon component
-
95dd39b: Rename prop
iconStyletoiconVariantfor<Button /> -
b11c542: Use
type-festas a dependency
- de840f9: Set
@hdoc/react-material-iconsas external package on build - 287f6b1: Use correct colors for rest of variants
- eab6382: Accept custom text correctly
- bae257f: Add missing keywords field
- 4051f08: Include missing declaration files
-
14cdb2a: Change props names for use icons
startIcon->iconStartendIcon->iconEnd
-
ff93818: Use css custom properties for change styling when hover, focus and disabled
- bb2d558: Correct package directory