0.10.125 • Published 28 days ago

@reykjavik/hanna-react v0.10.125

Weekly downloads
-
License
MIT
Repository
github
Last release
28 days ago

@reykjavik/hanna-react

The official React components for Hanna – Reykjavík's design-system

yarn add @reykjavik/hanna-react

Components aim to be framework-agnostic and avoid unneccessary local state – always preferring "controlled" use.

(See README-conventions.md for more info.)

Versioning

This module always targets the most recent version of the Hanna markup patterns (currently Hanna 0.8).

The version number of the @reykjavik/hanna-react package reflects changes in the React Component signatures, dependencies, etc. and may have major releases at much higher rate than Hanna's markup patterns.

Note, however, that a major version update to the Hanna markup patterns automatically triggers a major version bump in this package.

If you need a version of this package that "targets" an older Hanna markup version, you'll find the appropriate package version in the change log.

CSS

Each component is paired with a CSS file that can be loaded via the Hanna CSS server – https://styles.reykjavik.is

If your project uses <Layout/>, <HeroBlock/>, <TextInput/>, <Selectbox/> and <ButtonPrimary/> you can load the required CSS by linking to https://styles.reykjavik.is/bundle/v0.8?m=-basics,Layout,HeroBlock,TextInput,Selectbox,ButtonPrimary

The preferred way to build the CSS URL is to use the helper getCssBundleUrl:

import { getCssBundleUrl } from '@reykjavik/hanna-css';

const cssUrl = getCssBundleUrl([
  '-basics',
  'Layout',
  'HeroBlock',
  'TextInput',
  'Selectbox',
  'ButtonPrimary',
]);

NOTE: The -basics URL token adds basic CSS resets, @font-face declarations global color-variables, etc.

For best result, try and make sure each web page has only one <link /> to the CSS server to avoid unpredictable styling behavior.

Changelog

See CHANGELOG.md

0.10.125

28 days ago

0.10.124

1 month ago

0.10.123

2 months ago

0.10.122

2 months ago

0.10.121

2 months ago

0.10.120

2 months ago

0.10.119

2 months ago

0.10.118

3 months ago

0.10.117

3 months ago

0.10.116

4 months ago

0.10.115

4 months ago

0.10.114

5 months ago

0.10.113

5 months ago

0.10.94

10 months ago

0.10.95

10 months ago

0.10.96

10 months ago

0.10.97

9 months ago

0.10.93

10 months ago

0.10.98

9 months ago

0.10.99

9 months ago

0.10.110

6 months ago

0.10.101

8 months ago

0.10.100

9 months ago

0.10.103

8 months ago

0.10.102

8 months ago

0.10.105

7 months ago

0.10.104

8 months ago

0.10.107

7 months ago

0.10.106

7 months ago

0.10.109

7 months ago

0.10.108

7 months ago

0.10.112

6 months ago

0.10.111

6 months ago

0.10.90

11 months ago

0.10.91

11 months ago

0.10.92

11 months ago

0.10.87

12 months ago

0.10.88

12 months ago

0.10.89

12 months ago

0.10.83

1 year ago

0.10.84

1 year ago

0.10.85

1 year ago

0.10.86

1 year ago

0.10.82

1 year ago

0.10.80

1 year ago

0.10.81

1 year ago

0.10.72

1 year ago

0.10.74

1 year ago

0.10.75

1 year ago

0.10.76

1 year ago

0.10.77

1 year ago

0.10.78

1 year ago

0.10.79

1 year ago

0.10.71

1 year ago

0.10.63

2 years ago

0.10.64

2 years ago

0.10.70

2 years ago

0.10.69

2 years ago

0.10.65

2 years ago

0.10.66

2 years ago

0.10.67

2 years ago

0.10.68

2 years ago

0.10.61

2 years ago

0.10.62

2 years ago

0.10.60

2 years ago

0.10.58

2 years ago

0.10.59

2 years ago

0.10.56

2 years ago

0.10.57

2 years ago

0.10.55

2 years ago

0.10.54

2 years ago

0.10.53

2 years ago