Skip to content

Commit

Permalink
Updating for release
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonhochkins committed Dec 31, 2024
1 parent 7adc290 commit 494afde
Show file tree
Hide file tree
Showing 73 changed files with 83,026 additions and 72,543 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 4.0.4

## @hakit/components
- WeatherCard - When using multiple forecast rows, the layout of the card was not aligned making it hard to read, this was fixed thanks to @kdkavanagh, additional examples added to storybook to demonstrate this.
- CameraCard - WebRTC has recently received a lot of love with the lovelace cards, this functionality has been migrated over to the CameraCard thanks to @kdkavanagh
## @hakit/core
- No functional changes, just updated to locales

# 4.0.3

## @hakit/components
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ There's a [Home Assistant Addon](ADDON.md) available which will serve your dashb


### Supported Cards
- [NEW AlarmCard](https://shannonhochkins.github.io/ha-component-kit/?path=/docs/components-cards-alarmcard--docs)
- [AlarmCard](https://shannonhochkins.github.io/ha-component-kit/?path=/docs/components-cards-alarmcard--docs)
- [AreaCard](https://shannonhochkins.github.io/ha-component-kit/?path=/docs/components-cards-areacard--docs)
- [ButtonCard](https://shannonhochkins.github.io/ha-component-kit/?path=/docs/components-cards-buttoncard--docs)
- [ClimateCard](https://shannonhochkins.github.io/ha-component-kit/?path=/docs/components-cards-climatecard--docs)
Expand Down
4 changes: 2 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hakit/components",
"type": "module",
"version": "4.0.3",
"version": "4.0.4",
"private": false,
"keywords": [
"react",
Expand Down Expand Up @@ -69,7 +69,7 @@
"@emotion/react": ">=10.x",
"@emotion/styled": ">=10.x",
"@fullcalendar/react": ">=6.x.x",
"@hakit/core": "^4.0.3",
"@hakit/core": "^4.0.4",
"@use-gesture/react": ">=10.x",
"autolinker": ">=4.x",
"framer-motion": ">=10.x",
Expand Down
31 changes: 19 additions & 12 deletions packages/components/src/Cards/SidebarCard/SidebarCard.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,18 @@ function TemplateMenuItems(args?: Partial<SidebarCardProps>) {
function TemplateCustomWidth(args?: Partial<SidebarCardProps>) {
return (
<HassConnect hassUrl="http://localhost:8123">
<ThemeProvider includeThemeControls theme={{
device: {
sidebarCard: {
width: {
expanded: '25rem'
}
}
}
}} />
<ThemeProvider
includeThemeControls
theme={{
device: {
sidebarCard: {
width: {
expanded: "25rem",
},
},
},
}}
/>
<MakeFullScreen />
<Row alignItems="stretch" justifyContent="flex-start" fullWidth fullHeight wrap="nowrap">
<SidebarCard startOpen={true} {...args}>
Expand All @@ -220,17 +223,21 @@ function TemplateCustomWidth(args?: Partial<SidebarCardProps>) {
maxWidth: 600,
}}
>
Simple example on how you can tweak the sidebar width, the reason this is done through the theme provider is because other components also consume this value to determine positions/functionality.
Simple example on how you can tweak the sidebar width, the reason this is done through the theme provider is because other
components also consume this value to determine positions/functionality.
</p>
<Source dark code={`<ThemeProvider includeThemeControls theme={{
<Source
dark
code={`<ThemeProvider includeThemeControls theme={{
device: {
sidebarCard: {
width: {
expanded: '25rem'
}
}
}
}} />`} />
}} />`}
/>
</Row>
</Row>
</HassConnect>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function Template(args?: Partial<WeatherCardProps>) {
<WeatherCardDetail entity="sensor.openweathermap_pressure" />,
]}
/>
<p>Hourly, with 2 separate rows:</p>
<p>Hourly, with 2 separate rows:</p>
<WeatherCard entity="weather.entity" forecastRows={2} forecastType="hourly" md={6} lg={6} xlg={6} {...args} />
</Column>
</HassConnect>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const CLIMATE_HVAC_ACTION_TO_MODE: Record<HvacAction, HvacMode> = {
heating: "heat",
idle: "off",
off: "off",
defrosting: 'defrost'
};

export const CLIMATE_HVAC_ACTION_ICONS: Record<HvacAction, string> = {
Expand All @@ -46,6 +47,7 @@ export const CLIMATE_HVAC_ACTION_ICONS: Record<HvacAction, string> = {
idle: "mdi:clock-outline",
off: "mdi:power",
preheating: "mdi:heat-wave",
defrosting: 'mdi:snowflake-alert'
};

export const CLIMATE_HVAC_MODE_ICONS: Record<HvacMode, string> = {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hakit/core",
"version": "4.0.3",
"version": "4.0.4",
"private": false,
"type": "module",
"keywords": [
Expand Down
Loading

0 comments on commit 494afde

Please sign in to comment.