Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
f4260c3
upgrade: dependencies
troychaplin Jan 7, 2025
e490b34
upgrade: dependencies
troychaplin Jan 7, 2025
453f304
upgrade: dependencies
troychaplin Jan 7, 2025
d0871cb
upgrade: dependencies
troychaplin Jan 7, 2025
946158a
change: license
troychaplin Jan 8, 2025
bfce739
Merge branch 'develop' into refactor/WSDEV-5068-section-spacing
troychaplin Jan 8, 2025
9acd700
refactor: main and section for individual max width options
troychaplin Jan 9, 2025
785787a
change: tw comfig
troychaplin Jan 9, 2025
9c07301
add: section spacing
troychaplin Jan 10, 2025
db320fb
change: column width, spacing css
troychaplin Jan 10, 2025
94bf4aa
change: wide image, columns, max width utils
troychaplin Jan 11, 2025
8f22112
add: wide image examples
troychaplin Jan 11, 2025
11b27f2
change: changelog, layout components
troychaplin Jan 11, 2025
c38a2b1
change: wide image, changelog
troychaplin Jan 11, 2025
38820fa
change: text media, changelog
troychaplin Jan 11, 2025
76d7948
change: full banner clases and props
troychaplin Jan 11, 2025
d34745d
change: image cover props and styles
troychaplin Jan 11, 2025
4746d32
change: wide wave props and styles
troychaplin Jan 11, 2025
4a93bd9
add: example template for components
troychaplin Jan 11, 2025
e9b9352
change: alert component
troychaplin Jan 12, 2025
7d9148c
change: spacing classes
troychaplin Jan 12, 2025
a27a98e
add: call out examples
troychaplin Jan 12, 2025
2274338
add: card examples
troychaplin Jan 12, 2025
e4e6836
add: description examples
troychaplin Jan 12, 2025
b2e0386
add: dialog examples
troychaplin Jan 12, 2025
88dfc0a
change: embed
troychaplin Jan 12, 2025
69c4ec7
change: youtube video link
troychaplin Jan 12, 2025
eb9ee34
change: embed and figure stories
troychaplin Jan 12, 2025
ffa0dca
add: changelog notes
troychaplin Jan 12, 2025
e570c39
change: filter
troychaplin Jan 12, 2025
c0f719e
change: error messages, example nav title
troychaplin Jan 12, 2025
91a912c
change: stories main wrapper props
troychaplin Jan 12, 2025
d5c4f55
change: image grid and slider examples
troychaplin Jan 12, 2025
b3102e8
fix: stacked list divider line gap
troychaplin Jan 12, 2025
0c966e2
change: figure added to location
troychaplin Jan 12, 2025
a7460c7
change: login styles
troychaplin Jan 12, 2025
a18f17e
change: modal markup and styles
troychaplin Jan 12, 2025
207506a
change: calendar and multiday calendar stories
troychaplin Jan 12, 2025
cbcdcf9
change: page header example stories
troychaplin Jan 12, 2025
1fb4197
change: pagination li styles
troychaplin Jan 12, 2025
046ee67
change: placeholder props
troychaplin Jan 12, 2025
f477007
change: table, quote, searchinput
troychaplin Jan 12, 2025
e95ed49
change: story examples for testimonials and timeline
troychaplin Jan 12, 2025
6a5f0d6
change: loader spacing classes
troychaplin Jan 12, 2025
b64856d
add: wsdev-5102 resuable image caption overlay
troychaplin Jan 12, 2025
059cec2
add: details component, deprecate events and people from page header
troychaplin Jan 12, 2025
bcf29fb
add: details to export
troychaplin Jan 12, 2025
9b1bf02
finish: details and page header changes
troychaplin Jan 12, 2025
488b545
finish: social icons
troychaplin Jan 13, 2025
4a7a014
add: white prose class
troychaplin Jan 13, 2025
391a544
add: changelog note
troychaplin Jan 13, 2025
3c62eac
change: event home and single examples
troychaplin Jan 13, 2025
31996e1
add: cu homepage example
troychaplin Jan 13, 2025
361f963
add: form example page
troychaplin Jan 13, 2025
bf5871d
change: column storybook
Bhoomi-Pipalia Jan 13, 2025
d364672
change: widewave storybook
Bhoomi-Pipalia Jan 13, 2025
d3a9604
change: removing the o from event banner to remove the th,st
Singh-Ish Jan 15, 2025
973e297
Merge branch 'develop' into refactor/WSDEV-5068-section-spacing
Bhoomi-Pipalia Jan 15, 2025
b87846e
add: add form example (#461)
HanqingZhou Jan 17, 2025
d37c8dd
Wsdev 5117 form stories (#462)
HanqingZhou Jan 17, 2025
fb7bad9
Wsdev 5117 new form stories (#464)
HanqingZhou Jan 17, 2025
bd0c2bd
Wsdev 5117 new form stories (#465)
HanqingZhou Jan 20, 2025
3e41744
add: sample fields to form example story
Bhoomi-Pipalia Jan 20, 2025
efa2f8b
fix: fields in form example story
Bhoomi-Pipalia Jan 20, 2025
1a9a4a4
fix: fields in form example story
Bhoomi-Pipalia Jan 20, 2025
aa861ac
add: video banner play, pause
Bhoomi-Pipalia Jan 20, 2025
57f917d
fix: video button layout
Bhoomi-Pipalia Jan 20, 2025
3c99e1f
add: changelog
Bhoomi-Pipalia Jan 20, 2025
0a4a804
fix: example
troychaplin Jan 20, 2025
478cc1d
fix: merge conflict
troychaplin Jan 20, 2025
15dc84a
change: button styles
troychaplin Jan 20, 2025
7086cd4
Merge branch 'feature/WSDEV-5027-video-a11y' into refactor/WSDEV-5068…
troychaplin Jan 20, 2025
6055afb
add: cutheme story example
troychaplin Jan 21, 2025
a47dead
add: button and grid spacing
troychaplin Jan 21, 2025
4716ca8
fix: cutheme nav
troychaplin Jan 21, 2025
52a4bb9
fix: aside in nav component
Bhoomi-Pipalia Jan 21, 2025
f782d0c
change: naming convension for the nav component
Bhoomi-Pipalia Jan 21, 2025
55dafb5
change: nav storybook
Bhoomi-Pipalia Jan 21, 2025
d7972ca
add: rename nav aside to nav buttons
Bhoomi-Pipalia Jan 21, 2025
e9b3c0a
add: rename navtop to navaside
Bhoomi-Pipalia Jan 21, 2025
ca0d020
add: rename navmainwrapper to navtop
Bhoomi-Pipalia Jan 21, 2025
e60a76c
add: breakout maxwidth class and put the todos
Bhoomi-Pipalia Jan 21, 2025
e819188
fix: all instances of nav component
Bhoomi-Pipalia Jan 21, 2025
1316088
fix: all the instances of the nav in the example stories
Bhoomi-Pipalia Jan 21, 2025
31be71d
add: common style to form input
Bhoomi-Pipalia Jan 21, 2025
979dfbd
add: changelog
Bhoomi-Pipalia Jan 21, 2025
5e8471d
fix: spacing on image cover
troychaplin Jan 22, 2025
8a954c9
upgrade: eslint version and configuration, made relavant changes
Bhoomi-Pipalia Jan 22, 2025
2d00f22
fix: link context import
Bhoomi-Pipalia Jan 22, 2025
3b769bd
Merge branch 'refactor/WSDEV-5068-section-spacing' of https://github.…
troychaplin Jan 22, 2025
1cd6156
fix: dependencies after updates
troychaplin Jan 22, 2025
4847e0e
fix: nav.bottom overflow issue
Bhoomi-Pipalia Jan 22, 2025
0ac5ed6
change: wide wave story
troychaplin Jan 22, 2025
88beeac
Merge branch 'refactor/WSDEV-5068-section-spacing' of https://github.…
troychaplin Jan 22, 2025
fd81b28
fix: nav instances
Bhoomi-Pipalia Jan 22, 2025
ae1a9b7
change: desc meta and story
troychaplin Jan 23, 2025
925bf8d
fix: autosuggest option type to accept key & value pair
Bhoomi-Pipalia Jan 24, 2025
f043087
add: 2 props isLoading and isError props to manage field states
Bhoomi-Pipalia Jan 24, 2025
287a9cb
change: image cover child spacing with sections
troychaplin Jan 24, 2025
6416640
add: no margin prop to the FormLoader component
Bhoomi-Pipalia Jan 24, 2025
39813db
Merge branch 'refactor/WSDEV-5068-section-spacing' of https://github.…
troychaplin Jan 25, 2025
286ddd0
change: styles and examples
troychaplin Jan 25, 2025
c4d3b68
change: wide wave styles
troychaplin Jan 25, 2025
28f43d4
change: update social icon, add bluesky
troychaplin Jan 25, 2025
415713b
fix: merge conflict
troychaplin Jan 26, 2025
561b348
upgrade: dependencies
troychaplin Jan 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

18 changes: 0 additions & 18 deletions .eslintrc

This file was deleted.

94 changes: 94 additions & 0 deletions CHANGELOG.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,100 @@ Prefix the change with one of these keywords:

## [Unreleased]

### Breaking

#### Layout components

- Refactor `Column` layout component:
- add: class for component margin-y-sm
- deprecate: `maxWidth` prop
- deprecate: `gridGap` prop
- deprecate: `reverse` prop
- Refactor `ImageCover` layout component:
- add: class for breakout width
- add: class for primary spacing
- change: imported `styles.css`
- deprecate: `as` prop
- Refactor `Main` layout component:
- add: `maxWidth` prop
- add: `noProse` prop
- add: class for primary spacing
- add: section markup to return to manage children width
- Refactor `Section` layout component:
- add: class for breakout width
- add: class for primary spacing
- add: classes for sub component spacing-y
- deprecated: `proseType` prop
- Refactor `WideWave` layout component:
- add: class for breakout width
- add: class for primary spacing
- change: imported `styles.css`
- deprecate: `as` prop
- deprecate: `hasRaven` prop

#### Content components

- Refactor `Embed` component:
- deprecate: `maxWidth` prop
- Refactor `FullBanner` component:
- add: class for breakout width
- change: imported `styles.css`
- deprecate: `as` prop
- Refactor `Nav` component:
- deprecate: `navType` prop,
- added: `Nav.Top`
- renamed: `Nav.Aside` to `Nav.Buttons`
- renamed: `Nav.Secondary` to `Nav.Bottom`
- Refactor `Placeholder` component:
- deprecate: `maxWidth` prop
- Refactor `PageHeader` component:
- deprecate: `Events` sub component
- deprecate: `People` sub component
- Refactor `TextMedia` component:
- add: class for component margin-y
- deprecate: `maxWidth` prop
- deprecate: `gridGap` prop
- deprecate: imported `styles.css`
- Refactor `TextMedia.Content` component:
- add: first-last margin class
- Refactor `TextMedia.Aside` component:
- add: `hasBorder` prop
- deprecate: `border` prop
- deprecate: `borderColor` prop
- Refactor `TextMedia.BgImg` component:
- add: `hasBorder` prop
- deprecate: `border` prop
- Refactor `WideImage` component:
- deprecate: `as` prop
- deprecate: `maxWidth` prop

### Added

- `Details`: new component to list details for people, events and more
- `Embed`: `isRound` prop that adds rounded-xl class
- `ImageCaptionOverlay`: reusable caption for `ImageGrid` and `ImageSlider`
- `Pagination`: added margin-y-0 on li elements
- `SocialIcons`: new component to display social icons
- `Form.FieldControl`: isLoading and isError props to manage field states
- `FormLoader`: noMargin prop to remove spacing
- `Video Banner`: manual controls

### Changed

- `Alert`: reduced lg text prop size
- `Figure`: alignment and width prop classes
- `Figure`: replaced primary div wrapper with `Figure` component
- `Login`: change top margin to fit logo inside container
- `Modal`: removed section wrapper, updated close button styles
- `Table`: remove duplicate `cu-table` class

### Fixed

- `Form`: style of all inputs and `InputAddon`
- `Nav`: navigation and priority plus work properly with any LinkProvider
- `StackedList`: Removed gap in dividing lines in listings
- `Form.Autosuggest`: Option's type to accept any key value pair

### Added

- Manual control to video banner
Expand Down
29 changes: 12 additions & 17 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
MIT License
Raven Design System License

Copyright (c) 2022 Web Services
Copyright (c) 2025 Carleton University

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any staff member of Carleton University obtaining a copy of this software and associated documentation files (the "Software"), to use the Software solely for internal purposes, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
1. The Software may not be used, copied, modified, merged, published, distributed, sublicensed, or sold, in whole or in part, without the express written permission of Carleton University.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

3. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For permission requests, please contact:

Department of University Communications
Carleton University
2 changes: 1 addition & 1 deletion cypress/support/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import './commands'
// Alternatively you can use CommonJS syntax:
// require('./commands')

import { mount } from 'cypress/react18'
import { mount } from '@cypress/react'
import '../../lib/style.css'

// Augment the Cypress namespace to include type definitions for
Expand Down
55 changes: 55 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import react from 'eslint-plugin-react'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import typescriptEslint from '@typescript-eslint/eslint-plugin'
import typescriptParser from '@typescript-eslint/parser'
import prettier from 'eslint-plugin-prettier'
import storybook from 'eslint-plugin-storybook'
import eslintConfigPrettier from 'eslint-config-prettier'
import pluginCypress from 'eslint-plugin-cypress/flat'

const config = [
...storybook.configs['flat/recommended'],
pluginCypress.configs.recommended,
eslintConfigPrettier,
{
ignores: ['dist/**', 'node_modules/**', 'public/**'],
files: ['lib/**/*.ts', 'lib/**/*.tsx', 'lib/**/*.cy.ts', 'lib/**/*.cy.tsx'],
plugins: {
react,
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
'@typescript-eslint': typescriptEslint,
prettier,
cypress: pluginCypress,
},
languageOptions: {
parser: typescriptParser,
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
globals: {
...globals.browser,
...globals.node,
React: 'writable',
JSX: 'writable',
},
},
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'no-undef': 'error',
'@typescript-eslint/no-explicit-any': 'error',
'prettier/prettier': 'error',
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
'cypress/unsafe-to-chain-command': 'error',
},
},
]

export default config
20 changes: 3 additions & 17 deletions lib/components/Alert/Alert.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { Meta, StoryObj } from '@storybook/react'
import { Section } from '../../layouts/Section/Section'
import { Main } from '../../layouts/Main/Main'
import { Alert } from './Alert'

const meta: Meta<typeof Alert> = {
Expand All @@ -26,23 +26,9 @@ export const Primary: Story = {
},
render: (args) => {
return (
<Section>
<Main>
<Alert {...args} />
</Section>
)
},
}

export const TwoColumns: Story = {
args: {
...Primary.args,
size: 'lg',
},
render: (args) => {
return (
<Section>
<Alert {...args} />
</Section>
</Main>
)
},
}
4 changes: 2 additions & 2 deletions lib/components/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const Alert = ({ title, content, type = 'success', size = 'sm' }: PropsWi
alertIconSize: 'w-8 h-8',
},
lg: {
alertTitleSize: 'text-base md:text-2xl mt-1',
alertTitleSize: 'text-base md:text-xl mt-1',
alertIconSize: 'w-10 h-10',
},
}
Expand All @@ -37,7 +37,7 @@ export const Alert = ({ title, content, type = 'success', size = 'sm' }: PropsWi
}

return (
<div className={`cu-alert cu-alert--${type} cu-component not-prose flex rounded-md p-4`}>
<div className={`cu-alert cu-alert--${type} not-prose flex rounded-md p-4`}>
{React.createElement(AlertTypes[type], {
className: `${AlertSizes[size].alertIconSize}`,
'aria-hidden': 'true',
Expand Down
77 changes: 77 additions & 0 deletions lib/components/Alert/Examples.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import React from 'react'
import type { Meta, StoryObj } from '@storybook/react'
import { Section } from '../../layouts/Section/Section'
import { Main } from '../../layouts/Main/Main'
import { FooterStandard } from '../Footer/FooterStandard/FooterStandard'
import { Nav } from '../Nav/Nav'
import { NavButtonsData } from '../../data/NavData'
import { Alert } from './Alert'

const meta: Meta = {
title: 'Components/Alert/Examples',
parameters: {
layout: 'fullscreen',
},
}

export default meta
type Story = StoryObj

const SinglePara = () => {
return (
<>
<p>
Nobis voluptatem dolorum et eum doloremque cupiditate velit. Praesentium architecto a distinctio aut
reprehenderit ducimus. Perferendis excepturi delectus nihil voluptatem non. Molestiae quas dolores accusamus in.
Praesent quis ligula quis nulla malesuada tempor.
</p>
</>
)
}

export const LayoutExamples: Story = {
render: () => (
<>
<Nav>
<Nav.Top>
<Nav.Logo title="Raven Design System" link="/" />
<Nav.Aside>
<Nav.Buttons menu={NavButtonsData} />
</Nav.Aside>
</Nav.Top>
</Nav>

<Main maxWidth="5xl">
<Section maxWidth="7xl">
<Alert content="Records have been updated." size="lg" title="Alert title" type="success" />
</Section>

<h2>Header Two</h2>
<SinglePara />
<SinglePara />

<Alert content="Records may not have been updated." size="md" title="Alert title" type="warning" />
<Alert content="Records have not been updated." size="md" title="Alert title" type="error" />

<SinglePara />
<h2>Header Two</h2>
<SinglePara />
<SinglePara />

<Alert content="Records may not have been updated." size="sm" title="Alert title" type="warning" />

<Section maxWidth="7xl">
<Alert content="Records have been updated." size="lg" title="Alert title" type="success" />
</Section>

<h2>Header Two</h2>
<SinglePara />
<SinglePara />

<Alert content="Records can be updated." size="lg" title="Alert title" type="info" />
</Main>

<FooterStandard />
</>
),
}
Loading