barbican-reset 2.33.0 → 2.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/README.md +159 -0
  2. package/components/br_alert.vue +10 -9
  3. package/components/br_skiplink.vue +17 -0
  4. package/components/card_display.vue +15 -15
  5. package/components/fluid_iframe.vue +8 -9
  6. package/index.js +34 -35
  7. package/package.json +9 -8
  8. package/patterns/components/alert.pug +8 -0
  9. package/patterns/components/section.pug +3 -0
  10. package/patterns/html/blocks.html +1 -0
  11. package/patterns/html/index.html +1 -0
  12. package/patterns/html/layouts.html +1 -0
  13. package/patterns/index.js +19 -7
  14. package/patterns/layouts/main.pug +21 -0
  15. package/patterns/layouts/page.pug +2 -0
  16. package/patterns/pages/alerts.pug +9 -0
  17. package/patterns/pages/colors.pug +25 -0
  18. package/patterns/scss/styles.scss +68 -3
  19. package/patterns/static/favicon.ico +0 -0
  20. package/patterns/static/styles.css +2206 -26
  21. package/patterns/views/blocks.pug +7 -0
  22. package/patterns/views/index.pug +5 -28
  23. package/patterns/views/layouts.pug +4 -0
  24. package/scss/_atomic.scss +40 -14
  25. package/scss/_br-alert.scss +10 -5
  26. package/scss/_br-button.scss +186 -0
  27. package/scss/_br-skiplink.scss +3 -0
  28. package/scss/helpers/mixins/_br-skiplink.scss +16 -0
  29. package/{helpers → scss/helpers}/mixins/_buttons.scss +0 -7
  30. package/{helpers → scss/helpers}/mixins/_focus.scss +2 -2
  31. package/{helpers → scss/helpers}/mixins/_font.scss +1 -1
  32. package/{helpers → scss/helpers}/mixins/_headings.scss +2 -0
  33. package/{helpers → scss/helpers}/mixins/index.scss +9 -7
  34. package/{helpers → scss/helpers}/mixins/input/_generic.scss +1 -1
  35. package/{helpers → scss/helpers}/variables/_columns.scss +0 -1
  36. package/{helpers → scss/helpers}/variables/_typography.scss +5 -1
  37. package/scss/helpers/variables/colors/_brand.scss +96 -0
  38. package/{patterns/scss → scss/helpers/variables}/colors/_grey.scss +3 -1
  39. package/{patterns/scss → scss/helpers/variables}/colors/index.scss +1 -1
  40. package/scss/helpers/variables/index.scss +5 -0
  41. package/scss/index.scss +5 -3
  42. package/components/skip_link.vue +0 -38
  43. package/fonts/SupremeLLWeb-Black.woff +0 -0
  44. package/fonts/SupremeLLWeb-Black.woff2 +0 -0
  45. package/fonts/SupremeLLWeb-BlackItalic.woff +0 -0
  46. package/fonts/SupremeLLWeb-BlackItalic.woff2 +0 -0
  47. package/fonts/SupremeLLWeb-Italic.woff +0 -0
  48. package/fonts/SupremeLLWeb-Italic.woff2 +0 -0
  49. package/fonts/SupremeLLWeb-Light.woff +0 -0
  50. package/fonts/SupremeLLWeb-Light.woff2 +0 -0
  51. package/fonts/SupremeLLWeb-LightItalic.woff +0 -0
  52. package/fonts/SupremeLLWeb-LightItalic.woff2 +0 -0
  53. package/fonts/SupremeLLWeb-Regular.woff +0 -0
  54. package/fonts/SupremeLLWeb-Regular.woff2 +0 -0
  55. package/helpers/variables/index.scss +0 -5
  56. package/patterns/scss/colors/_brand.scss +0 -79
  57. package/patterns/views/layout.pug +0 -8
  58. /package/patterns/{views/mixins.pug → components/samples.pug} +0 -0
  59. /package/{helpers → scss/helpers}/functions/index.scss +0 -0
  60. /package/{helpers → scss/helpers}/index.scss +0 -0
  61. /package/{helpers → scss/helpers}/mixins/_basket.scss +0 -0
  62. /package/{helpers → scss/helpers}/mixins/_br-alert.scss +0 -0
  63. /package/{helpers → scss/helpers}/mixins/_br-card.scss +0 -0
  64. /package/{helpers → scss/helpers}/mixins/_br-footer.scss +0 -0
  65. /package/{helpers → scss/helpers}/mixins/_br-form-password.scss +0 -0
  66. /package/{helpers → scss/helpers}/mixins/_br-form-row.scss +0 -0
  67. /package/{helpers → scss/helpers}/mixins/_br-form-update.scss +0 -0
  68. /package/{helpers → scss/helpers}/mixins/_breakpoints.scss +0 -0
  69. /package/{helpers → scss/helpers}/mixins/_city-of-london.scss +0 -0
  70. /package/{helpers → scss/helpers}/mixins/_content.scss +0 -0
  71. /package/{helpers → scss/helpers}/mixins/_core.scss +0 -0
  72. /package/{helpers → scss/helpers}/mixins/_festival.scss +0 -0
  73. /package/{helpers → scss/helpers}/mixins/_input.scss +0 -0
  74. /package/{helpers → scss/helpers}/mixins/_loading.scss +0 -0
  75. /package/{helpers → scss/helpers}/mixins/_table.scss +0 -0
  76. /package/{helpers → scss/helpers}/mixins/account/_orders.scss +0 -0
  77. /package/{helpers → scss/helpers}/mixins/buttons/_outline.scss +0 -0
  78. /package/{helpers → scss/helpers}/mixins/buttons/_setup.scss +0 -0
  79. /package/{helpers → scss/helpers}/mixins/buttons/_solid.scss +0 -0
  80. /package/{helpers → scss/helpers}/mixins/buttons/_spektrix.scss +0 -0
  81. /package/{helpers → scss/helpers}/mixins/drupal/_br-border-reset.scss +0 -0
  82. /package/{helpers → scss/helpers}/mixins/drupal/_br-column.scss +0 -0
  83. /package/{helpers → scss/helpers}/mixins/drupal/_br-container.scss +0 -0
  84. /package/{helpers → scss/helpers}/mixins/drupal/_br-inner.scss +0 -0
  85. /package/{helpers → scss/helpers}/mixins/drupal/_br-search-form.scss +0 -0
  86. /package/{helpers → scss/helpers}/mixins/drupal/_br-site-logo.scss +0 -0
  87. /package/{helpers → scss/helpers}/mixins/drupal/index.scss +0 -0
  88. /package/{helpers → scss/helpers}/mixins/input/_checkbox.scss +0 -0
  89. /package/{helpers → scss/helpers}/mixins/input/_radio.scss +0 -0
  90. /package/{helpers → scss/helpers}/mixins/input/_select.scss +0 -0
  91. /package/{helpers → scss/helpers}/mixins/input/_status.scss +0 -0
  92. /package/{helpers → scss/helpers}/mixins/input/_text.scss +0 -0
  93. /package/{helpers → scss/helpers}/mixins/table/_basket.scss +0 -0
  94. /package/{helpers → scss/helpers}/mixins/table/_details.scss +0 -0
  95. /package/{helpers → scss/helpers}/mixins/table/_etickets.scss +0 -0
  96. /package/{helpers → scss/helpers}/mixins/table/_gifts.scss +0 -0
  97. /package/{helpers → scss/helpers}/mixins/table/_membership.scss +0 -0
  98. /package/{helpers → scss/helpers}/mixins/table/_orders.scss +0 -0
  99. /package/{helpers → scss/helpers}/mixins/table/_preferences.scss +0 -0
  100. /package/{helpers → scss/helpers}/mixins/table/_resale.scss +0 -0
  101. /package/{helpers → scss/helpers}/mixins/table/_section.scss +0 -0
  102. /package/{helpers → scss/helpers}/mixins/table/_simple.scss +0 -0
  103. /package/{helpers → scss/helpers}/mixins/table/_tickets.scss +0 -0
  104. /package/{helpers → scss/helpers}/mixins/table/row/_disabled.scss +0 -0
  105. /package/{helpers → scss/helpers}/variables/_alerts.scss +0 -0
  106. /package/{helpers → scss/helpers}/variables/_layout.scss +0 -0
  107. /package/{patterns/scss → scss/helpers/variables}/colors/_docs.scss +0 -0
  108. /package/{patterns/scss → scss/helpers/variables}/colors/_llf.scss +0 -0
  109. /package/{patterns/scss → scss/helpers/variables}/colors/_status.scss +0 -0
  110. /package/{patterns/scss → scss/helpers/variables}/colors/_wgp.scss +0 -0
package/README.md ADDED
@@ -0,0 +1,159 @@
1
+ # Barbican Reset
2
+
3
+ ## Introduction
4
+
5
+ The Barbican Reset is an NPM module created to maintain consistency between the various digital projects run by the Barbican.
6
+
7
+ ## Contents
8
+
9
+ 1. Setup
10
+ 2. Component library
11
+ 3. SCSS documentation
12
+ 4. JS documentation
13
+ 5. Pattern library
14
+ 6. Font library
15
+
16
+ ## 1. Setup
17
+
18
+ You can install the Barbican Reset into any project by running `npm i barbican-reset` inside your project root folder.
19
+
20
+ You can then manually import a component using `import { BrExample } from barbican-reset`
21
+
22
+ #### SCSS Stylesheet
23
+
24
+ Vue.js: `@import '~barbican-reset';`
25
+
26
+ > Use the ~ in Vue.js to import assets from the project root
27
+
28
+ Drupal: `@import "../node_modules/barbican-reset/scss/index";`
29
+
30
+ Spektrix iframe development: `@import "../../node_modules/barbican-reset/scss/index.scss";`
31
+
32
+ #### SCSS Mixins
33
+
34
+ Vue.js: `@import "~barbican-reset/scss/helpers";`
35
+
36
+ > The Barbican ticketing site makes SCSS mixins globally available via the `vue.config.js` file
37
+
38
+ Drupal: `@import "../node_modules/barbican-reset/scss/helpers/index";`
39
+
40
+ ... fonts
41
+
42
+ ## 2. Component library
43
+
44
+ The component library is **only available to Vue.js** apps.
45
+
46
+ > Many components are available globally within the Barbican ticketing app. Check the main.js file to see which components are currently available. These won't need an additional import statement.
47
+
48
+ > When manually importing components into Vue.js, be sure to declare the import as a Vue component as well
49
+
50
+ You can reference any of the following components:
51
+
52
+ | Component | Filename | SCSS Class | SCSS Mixin | Previously |
53
+ | -------------------- | -------------------- | -------------------- | ---------------- | ------------- |
54
+ | `<br-alert>` | br_alert.vue | .br-alert | br-alert--setup | - |
55
+ | `<br-anchor>` | br_anchor.vue | .btn | setup-button | - |
56
+ | `<br-button>` | br_button.vue | .br-checkbox | br-checkbox | - |
57
+ | `<br-confirm-done>` | br_confirm_done.vue | - | - | - |
58
+ | `<br-confirm-email>` | br_confirm_email.vue | - | - | - |
59
+ | `<br-container>` | br_container.vue | .br-container--outer | - | - |
60
+ | `<br-footer-lower>` | br_footer_lower.vue | .br-footer-lower | br-footer-lower | - |
61
+ | `<br-footer-upper>` | br_footer_upper.vue | .br-footer-upper | br-footer-upper | - |
62
+ | `<br-form-block>` | br_form_block.vue | - | - | - |
63
+ | `<br-form-password>` | br_form_password.vue | .br-form-password | br-form-password | - |
64
+ | `<br-form-row>` | br_form_row.vue | .br-form-row | br-form-row | - |
65
+ | `<br-form-update>` | br_form_update.vue | .br-form-update | br-form-update | - |
66
+ | `<br-loader>` | br_loader.vue | .br-loader | - | - |
67
+ | `<br-skiplink>` | br_skiplink.vue | - | - | `<skip-link>` |
68
+ | `<br-wrap>` | br_wrap.vue | .br-wrap | - | - |
69
+
70
+ The following component titles are deprecated. You can still use them, but they will migrate to the BR naming convention in future.
71
+
72
+ | Component | Filename | SCSS Class | SCSS Mixin |
73
+ | ----------------- | ----------------- | ---------- | ---------- |
74
+ | `<account-title>` | account_title.vue | - | - |
75
+ | `<card-display>` | card_display.vue | - | - |
76
+ | `<event-summary>` | event_summary.vue | - | - |
77
+ | `<fluid-iframe>` | fluid_iframe.vue | - | - |
78
+ | `<help-row>` | help_row.vue | - | - |
79
+ | `<placeholder>` | placeholder.vue | - | - |
80
+ | `<payment-logo>` | payment_logo.vue | - | - |
81
+ | `<related-card>` | related_card.vue | - | - |
82
+ | `<related-title>` | related_title.vue | - | - |
83
+ | `<related-row>` | related_row.vue | - | - |
84
+ | `<type-text>` | type_text.vue | - | - |
85
+ | `<video-content>` | video_content.vue | - | - |
86
+
87
+ ```
88
+ The BR naming convention imitates the Bootstrap example. This format is useful for two reasons:
89
+
90
+ 1. It is immediately obvious that the component is imported from the Barbican Reset and is not native to the app.
91
+
92
+ 2. It forces components to use a two word syntax, which is the recommended format for custom components. For example, <br-header> instead of <header>, which avoids clashing with native HTML5 components.
93
+ ```
94
+
95
+ ## 3. SCSS documentation
96
+
97
+ We use SassDoc to document our SCSS. Here's some useful commands for working with this documentation:
98
+
99
+ - To output the latest documentation and watch for changes to scss, run `gulp watch:css`
100
+ - To view the documentation, open the file `sassdoc/index.html` in your browser. You will need to refresh this page to view any additional changes that you make.
101
+
102
+ Most components have corresponding SCSS classes (and mixins) which allow us to implement consistent styling across our various frontends, irrespective of their HTML structure.
103
+
104
+ ## 4. JS documentation
105
+
106
+ We use JSDoc to document our Javascript. Here's some useful commands for working with this documentation:
107
+
108
+ - To output the latest documentation and watch for changes to javascript, run `gulp watch:js`
109
+ - To manually output documentation using gulp, run `gulp doc:js`
110
+ - To manually output documentation using jsdoc, run `jsdoc gulpfile.js`
111
+ - To view the documentation, open the file `out/index.html` in your browser. You will need to refresh this page to view any additional changes that you make.
112
+
113
+ ## 5. Pattern library
114
+
115
+ The Barbican Reset includes a pattern library. This provides a single source of truth for all the SCSS contained within and allows us to view a whole family of Barbican styles alongside each other.
116
+
117
+ #### Setup
118
+
119
+ > If this is your first time viewing the pattern library, navigate to the **patterns** subfolder and run `npm i`
120
+
121
+ From the root folder, run `npm run serve:patterns` and visit `https://localhost:3000` in the web browser
122
+
123
+ #### New pages
124
+
125
+ > Begin instructions from the **patterns** subfolder.
126
+
127
+ To create a new page in the pattern library, navigate to the **views** subfolder.
128
+
129
+ Duplicate the `index.pug` file and rename it.
130
+
131
+ #### Extending layouts
132
+
133
+ The first line of your new page reads `extends ../layouts/main`
134
+
135
+ If you navigate to the `layouts` subfolder you will see a `main.pug` file. Pug syntax looks like abbreviated HTML markup but also includes `block content`. Blocks describe which areas the page can use to output content.
136
+
137
+ Layouts are useful for creating page templates, allowing pages to focus on content and removing the need for repetitive scafolding code.
138
+
139
+ #### Including components (mixins)
140
+
141
+ The second line of your new page reads `include ../components/samples`
142
+
143
+ If you navigate to the `components` subfolder you will see a `samples.pug` file. Pug syntax looks like abbreviated HTML markup but also includes `mixin Samples()`. Mixins can accept parameters, which they use to print HTML markup on the page.
144
+
145
+ To call the samples mixin from your new page, you might write `+Samples('Contemporary','contemporary-music')`
146
+
147
+ Mixins are useful for printing repetitive code, such as loops to the page. The parameters they accept are quite narrow though, so if you need more flexibility, it's best to extend a layout instead.
148
+
149
+ #### Future intent
150
+
151
+ The pattern library was created as a single source of truth for Barbican styles and components. Unfortunately the components are only compatible with Vue.js currently and so the HTML markup is duplicated.
152
+
153
+ ## 6. Font library
154
+
155
+ The Barbican Reset includes a SCSS mixin called `font-face` which constructs font paths...
156
+
157
+ #### Future intent
158
+
159
+ To have this available on a url for assets... ie. assets.barbican.org.uk/supreme
@@ -9,7 +9,8 @@
9
9
  v-if="toggle"
10
10
  variant="exit"
11
11
  :class="getStatus"
12
- @click="$emit('close')">
12
+ @click="$emit('close')"
13
+ >
13
14
  <close-icon :status="getStatus" />
14
15
  </b-button>
15
16
  </div>
@@ -17,10 +18,10 @@
17
18
  </template>
18
19
 
19
20
  <script>
20
- import { BButton } from 'bootstrap-vue'
21
- import { CloseIcon } from 'barbican-reset/icons/stream'
21
+ import { BButton } from "bootstrap-vue";
22
+ import { CloseIcon } from "barbican-reset/icons/stream";
22
23
  export default {
23
- name: 'BrAlert',
24
+ name: "BrAlert",
24
25
  components: {
25
26
  BButton,
26
27
  CloseIcon,
@@ -28,12 +29,12 @@ export default {
28
29
  computed: {
29
30
  getStatus() {
30
31
  if (this.error) {
31
- return 'error'
32
+ return "error";
32
33
  }
33
34
  if (this.success) {
34
- return 'success'
35
+ return "success";
35
36
  }
36
- return 'neutral'
37
+ return "neutral";
37
38
  },
38
39
  },
39
40
  props: {
@@ -59,7 +60,7 @@ export default {
59
60
  },
60
61
  title: {
61
62
  type: String,
62
- default: '',
63
+ default: "",
63
64
  },
64
65
  flex: {
65
66
  type: Boolean,
@@ -70,5 +71,5 @@ export default {
70
71
  default: false,
71
72
  },
72
73
  },
73
- }
74
+ };
74
75
  </script>
@@ -0,0 +1,17 @@
1
+ <template>
2
+ <a :href="href" class="br-skiplink">
3
+ <slot></slot>
4
+ </a>
5
+ </template>
6
+
7
+ <script>
8
+ export default {
9
+ name: "BrSkiplink",
10
+ props: {
11
+ href: {
12
+ type: String,
13
+ required: true,
14
+ },
15
+ },
16
+ };
17
+ </script>
@@ -6,7 +6,7 @@
6
6
  <live-icon :class="$style.svg" />
7
7
  </div>
8
8
  </div>
9
- <img :class="$style.image" :src="image">
9
+ <img :class="$style.image" :src="image" />
10
10
  <div v-if="expired" :class="$style.title">
11
11
  <h4>Expired</h4>
12
12
  </div>
@@ -14,7 +14,7 @@
14
14
  </template>
15
15
 
16
16
  <script>
17
- import { LiveIcon } from 'barbican-reset/icons/stream'
17
+ import { LiveIcon } from "barbican-reset/icons/stream";
18
18
  export default {
19
19
  name: "CardDisplay",
20
20
  components: { LiveIcon },
@@ -33,28 +33,31 @@ export default {
33
33
  },
34
34
  type: {
35
35
  type: String,
36
- default: 'concert',
36
+ default: "concert",
37
37
  },
38
38
  },
39
39
  computed: {
40
40
  styleComponent() {
41
41
  const style = this.$style;
42
42
  let output = [style.component];
43
- if (this.hero) { output.push(style.hero); }
43
+ if (this.hero) {
44
+ output.push(style.hero);
45
+ }
44
46
  return output;
45
47
  },
46
48
  styleButton() {
47
49
  const style = this.$style;
48
50
  let output = [style.button];
49
- if (this.hero) { output.push(style.hero); }
51
+ if (this.hero) {
52
+ output.push(style.hero);
53
+ }
50
54
  return output;
51
- }
52
- }
53
- }
55
+ },
56
+ },
57
+ };
54
58
  </script>
55
59
 
56
60
  <style lang="scss" scoped>
57
-
58
61
  .btn.btn-secondary {
59
62
  &:not(.hero) {
60
63
  border-radius: 50%;
@@ -68,12 +71,10 @@ export default {
68
71
  gap: 0.5rem;
69
72
  }
70
73
  }
71
-
72
74
  </style>
73
75
 
74
76
  <style lang="scss" module>
75
-
76
- @import "../helpers";
77
+ @import "../scss/helpers";
77
78
 
78
79
  .svg {
79
80
  fill: white;
@@ -112,12 +113,11 @@ export default {
112
113
  right: 1.5rem;
113
114
  top: 1.5rem;
114
115
  }
115
-
116
+
116
117
  .title {
117
118
  h4 {
118
119
  font-size: $h2-font-size;
119
120
  }
120
121
  }
121
122
  }
122
-
123
- </style>
123
+ </style>
@@ -5,26 +5,26 @@
5
5
  allowfullscreen
6
6
  frameborder="0"
7
7
  height="100%"
8
- width="100%"
9
- :src="src" />
8
+ width="100%"
9
+ :src="src"
10
+ />
10
11
  </div>
11
12
  </template>
12
13
 
13
14
  <script>
14
15
  export default {
15
- name: 'FluidIframe',
16
+ name: "FluidIframe",
16
17
  props: {
17
18
  src: {
18
19
  type: String,
19
- required: true
20
- }
21
- }
20
+ required: true,
21
+ },
22
+ },
22
23
  };
23
24
  </script>
24
25
 
25
26
  <style lang="scss" module>
26
-
27
- @import "../helpers";
27
+ @import "../scss/helpers";
28
28
 
29
29
  .component {
30
30
  border-radius: $border-radius-lg;
@@ -37,5 +37,4 @@ export default {
37
37
  position: absolute;
38
38
  @include inset(0);
39
39
  }
40
-
41
40
  </style>
package/index.js CHANGED
@@ -1,59 +1,58 @@
1
- import EventSummary from "./components/event_summary";
2
- import AccountTitle from "./components/account_title";
3
- import RelatedTitle from "./components/related_title";
4
- import RelatedCard from "./components/related_card";
5
- import RelatedRow from "./components/related_row";
6
- import TypeText from "./components/type_text";
7
- import Placeholder from "./components/placeholder";
8
- import CardDisplay from "./components/card_display";
9
- import FluidIframe from "./components/fluid_iframe";
10
- import HelpRow from "./components/help_row";
11
- import VideoContent from "./components/video_content";
12
- import PaymentLogo from "./components/payment_logo";
13
- import SkipLink from "./components/skip_link";
14
-
15
1
  import BrAlert from "./components/br_alert";
16
2
  import BrAnchor from "./components/br_anchor";
17
3
  import BrButton from "./components/br_button";
18
4
  import BrConfirmDone from "./components/br_confirm_done";
19
5
  import BrConfirmEmail from "./components/br_confirm_email";
20
6
  import BrContainer from "./components/br_container";
7
+ import BrFooterLower from "./components/br_footer/lower";
8
+ import BrFooterUpper from "./components/br_footer/upper";
21
9
  import BrFormBlock from "./components/br_form_block";
10
+ import BrFormPassword from "./components/br_form_password";
22
11
  import BrFormRow from "./components/br_form_row";
23
12
  import BrFormUpdate from "./components/br_form_update";
24
- import BrFormPassword from "./components/br_form_password";
25
13
  import BrLoader from "./components/br_loader";
14
+ import BrSkiplink from "./components/br_skiplink";
26
15
  import BrWrap from "./components/br_wrap";
27
16
 
28
- import BrFooterUpper from "./components/br_footer/upper";
29
- import BrFooterLower from "./components/br_footer/lower";
17
+ import AccountTitle from "./components/account_title";
18
+ import CardDisplay from "./components/card_display";
19
+ import EventSummary from "./components/event_summary";
20
+ import FluidIframe from "./components/fluid_iframe";
21
+ import HelpRow from "./components/help_row";
22
+ import Placeholder from "./components/placeholder";
23
+ import PaymentLogo from "./components/payment_logo";
24
+ import RelatedCard from "./components/related_card";
25
+ import RelatedTitle from "./components/related_title";
26
+ import RelatedRow from "./components/related_row";
27
+ import TypeText from "./components/type_text";
28
+ import VideoContent from "./components/video_content";
30
29
 
31
30
  export {
32
- BrLoader,
33
31
  BrAlert,
34
- RelatedTitle,
35
- RelatedCard,
36
- RelatedRow,
37
- TypeText,
32
+ BrAnchor,
33
+ BrButton,
34
+ BrConfirmDone,
35
+ BrConfirmEmail,
38
36
  BrContainer,
39
- AccountTitle,
40
- Placeholder,
37
+ BrFooterLower,
38
+ BrFooterUpper,
41
39
  BrFormBlock,
42
- BrFormUpdate,
43
40
  BrFormPassword,
44
41
  BrFormRow,
42
+ BrFormUpdate,
43
+ BrLoader,
44
+ BrSkiplink,
45
+ BrWrap,
46
+ AccountTitle,
47
+ CardDisplay,
45
48
  EventSummary,
46
- BrFooterLower,
47
- BrFooterUpper,
48
49
  FluidIframe,
49
50
  HelpRow,
50
- CardDisplay,
51
- VideoContent,
51
+ Placeholder,
52
52
  PaymentLogo,
53
- SkipLink,
54
- BrButton,
55
- BrAnchor,
56
- BrConfirmDone,
57
- BrConfirmEmail,
58
- BrWrap,
53
+ RelatedCard,
54
+ RelatedTitle,
55
+ RelatedRow,
56
+ TypeText,
57
+ VideoContent,
59
58
  };
package/package.json CHANGED
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "bootstrap-vue": "^2.21.2",
56
- "express": "^4.18.1",
56
+ "express": "^4.19.2",
57
57
  "focus-visible": "^5.2.0",
58
58
  "gsap": "^3.7.1",
59
59
  "gulp": "^4.0.2",
@@ -64,13 +64,14 @@
64
64
  "gulp-sass": "^5.0.0",
65
65
  "gulp-sourcemaps": "^3.0.0",
66
66
  "gulp-uglify": "^3.0.2",
67
+ "js-doc": "^0.5.0",
67
68
  "luxon": "^3.2.1",
68
69
  "node-sass-tilde-importer": "^1.0.2",
69
- "placeholder-loading": "^0.4.0",
70
+ "nodemon": "^3.1.0",
70
71
  "pug": "^3.0.2",
71
72
  "sass": "^1.41.0",
72
- "save-dev": "^0.0.1-security",
73
- "vue-slick-carousel": "^1.0.6"
73
+ "sassdoc": "^2.7.4",
74
+ "serve-favicon": "^2.5.0"
74
75
  },
75
76
  "devDependencies": {
76
77
  "bootstrap": "^5.1.3"
@@ -81,7 +82,6 @@
81
82
  "components/**/*",
82
83
  "dist/**/*",
83
84
  "fonts/*",
84
- "helpers/**/*",
85
85
  "icons/**/*",
86
86
  "patterns/**/*",
87
87
  "logos/*",
@@ -98,10 +98,11 @@
98
98
  },
99
99
  "sass": "scss/index.scss",
100
100
  "scripts": {
101
- "test": "echo \"Error: no test specified\" && exit 1",
102
101
  "serve:patterns": "cd patterns && node index",
103
- "watch:patterns": "cd patterns && gulp watch"
102
+ "watch:patterns": "cd patterns && gulp watch",
103
+ "style:patterns": "cd patterns && gulp build:css",
104
+ "build:patterns": "cd patterns && rm -rf html && pug views --out html"
104
105
  },
105
106
  "style": "dist/css/barbican-reset.css",
106
- "version": "2.33.0"
107
+ "version": "2.35.0"
107
108
  }
@@ -0,0 +1,8 @@
1
+ mixin Alert(title)
2
+ .br-alert(class=attributes.center && 'center')
3
+ .wrap(class=attributes.state, class=attributes.inline && 'inline', class=attributes.toggle && 'toggle', class=attributes.flex && 'flex')
4
+ span(class=attributes.icon && 'icon')
5
+ .title= title
6
+ button.btn.btn-exit(class=attributes.state)
7
+ span Close
8
+
@@ -0,0 +1,3 @@
1
+ mixin Section(title)
2
+ .section-header
3
+ h3= title
@@ -0,0 +1 @@
1
+ <html><head><title>Pattern Library | Barbican Reset</title><link rel="stylesheet" href="/styles.css"/></head><body><div class="topbar"><div class="information"> </div><div class="sections"> <a href="/"> <h3>Items</h3></a><a href="/blocks"> <h3>Blocks</h3></a><a href="/layouts"> <h3>Layouts</h3></a></div><div class="search"></div></div><div class="br-container--outer"><div class="br-container--inner"><div>Blocks</div></div></div></body></html>
@@ -0,0 +1 @@
1
+ <html><head><title>Pattern Library | Barbican Reset</title><link rel="stylesheet" href="/styles.css"/></head><body><div class="topbar"><div class="information"> </div><div class="sections"> <a href="/"> <h3>Items</h3></a><a href="/blocks"> <h3>Blocks</h3></a><a href="/layouts"> <h3>Layouts</h3></a></div><div class="search"></div></div><div class="br-container--outer"><div class="br-container--inner"><div class="section-header"><h3>Colors</h3></div><div class="page"><h3>Grey</h3><ul class="list list-palette grey"><li class="item item-palette l11"></li><li class="item item-palette l21"></li><li class="item item-palette l44"></li><li class="item item-palette l65"></li><li class="item item-palette l87"></li><li class="item item-palette l96"></li></ul><h3 class="title title-palette">Contemporary</h3><ul class="list list-palette brand-contemporary-music"><li class="item item-palette shade-65"></li><li class="item item-palette shade-20"></li><li class="item item-palette shade-10"></li><li class="item item-palette"></li><li class="item item-palette tint-40"></li><li class="item item-palette tint-70"></li><li class="item item-palette tint-85"></li><li class="item item-palette tint-95"></li><li class="item item-palette tint-98"></li></ul><h3 class="title title-palette">Theatre</h3><ul class="list list-palette brand-theatre--dance"><li class="item item-palette shade-65"></li><li class="item item-palette shade-20"></li><li class="item item-palette shade-10"></li><li class="item item-palette"></li><li class="item item-palette tint-40"></li><li class="item item-palette tint-70"></li><li class="item item-palette tint-85"></li><li class="item item-palette tint-95"></li><li class="item item-palette tint-98"></li></ul><h3 class="title title-palette">Talks</h3><ul class="list list-palette brand-talks--events"><li class="item item-palette shade-65"></li><li class="item item-palette shade-20"></li><li class="item item-palette shade-10"></li><li class="item item-palette"></li><li class="item item-palette tint-40"></li><li class="item item-palette tint-70"></li><li class="item item-palette tint-85"></li><li class="item item-palette tint-95"></li><li class="item item-palette tint-98"></li></ul><h3 class="title title-palette">Art</h3><ul class="list list-palette brand-art--design"><li class="item item-palette shade-65"></li><li class="item item-palette shade-20"></li><li class="item item-palette shade-10"></li><li class="item item-palette"></li><li class="item item-palette tint-40"></li><li class="item item-palette tint-70"></li><li class="item item-palette tint-85"></li><li class="item item-palette tint-95"></li><li class="item item-palette tint-98"></li></ul><h3 class="title title-palette">Programme</h3><ul class="list list-palette brand-programme"><li class="item item-palette shade-65"></li><li class="item item-palette shade-20"></li><li class="item item-palette shade-10"></li><li class="item item-palette"></li><li class="item item-palette tint-40"></li><li class="item item-palette tint-70"></li><li class="item item-palette tint-85"></li><li class="item item-palette tint-95"></li><li class="item item-palette tint-98"></li></ul><h3 class="title title-palette">Cinema</h3><ul class="list list-palette brand-cinema"><li class="item item-palette shade-65"></li><li class="item item-palette shade-20"></li><li class="item item-palette shade-10"></li><li class="item item-palette"></li><li class="item item-palette tint-40"></li><li class="item item-palette tint-70"></li><li class="item item-palette tint-85"></li><li class="item item-palette tint-95"></li><li class="item item-palette tint-98"></li></ul><h3 class="title title-palette">Shop</h3><ul class="list list-palette brand-shop"><li class="item item-palette shade-65"></li><li class="item item-palette shade-20"></li><li class="item item-palette shade-10"></li><li class="item item-palette"></li><li class="item item-palette tint-40"></li><li class="item item-palette tint-70"></li><li class="item item-palette tint-85"></li><li class="item item-palette tint-95"></li><li class="item item-palette tint-98"></li></ul><h3 class="title title-palette">Generic / Library / Tours / Hire</h3><ul class="list list-palette brand-generic"><li class="item item-palette shade-65"></li><li class="item item-palette shade-20"></li><li class="item item-palette shade-10"></li><li class="item item-palette"></li><li class="item item-palette tint-40"></li><li class="item item-palette tint-70"></li><li class="item item-palette tint-85"></li><li class="item item-palette tint-95"></li><li class="item item-palette tint-98"></li></ul><h3 class="title title-palette">Classical</h3><ul class="list list-palette brand-classical-music"><li class="item item-palette shade-65"></li><li class="item item-palette shade-20"></li><li class="item item-palette shade-10"></li><li class="item item-palette"></li><li class="item item-palette tint-40"></li><li class="item item-palette tint-70"></li><li class="item item-palette tint-85"></li><li class="item item-palette tint-95"></li><li class="item item-palette tint-98"></li></ul><h3 class="title title-palette">Membership</h3><ul class="list list-palette brand-membership--support"><li class="item item-palette shade-65"></li><li class="item item-palette shade-20"></li><li class="item item-palette shade-10"></li><li class="item item-palette"></li><li class="item item-palette tint-40"></li><li class="item item-palette tint-70"></li><li class="item item-palette tint-85"></li><li class="item item-palette tint-95"></li><li class="item item-palette tint-98"></li></ul></div></div></div></body></html>
@@ -0,0 +1 @@
1
+ <html><head><title>Pattern Library | Barbican Reset</title><link rel="stylesheet" href="/styles.css"/></head><body><div class="topbar"><div class="information"> </div><div class="sections"> <a href="/"> <h3>Items</h3></a><a href="/blocks"> <h3>Blocks</h3></a><a href="/layouts"> <h3>Layouts</h3></a></div><div class="search"></div></div><div class="br-container--outer"><div class="br-container--inner"><div>Layouts</div></div></div></body></html>
package/patterns/index.js CHANGED
@@ -1,13 +1,25 @@
1
- const express = require('express')
2
- const app = express()
3
- const port = 3000
1
+ const express = require("express");
2
+ const favicon = require("serve-favicon");
3
+
4
+ const app = express();
5
+ const port = 3000;
4
6
 
5
7
  // To run server: node index
6
8
 
7
- app.set('view engine', 'pug')
9
+ const routes = [
10
+ { path: "/", view: "index" },
11
+ { path: "/blocks", view: "blocks" },
12
+ { path: "/layouts", view: "layouts" },
13
+ ];
14
+
15
+ app.set("view engine", "pug");
16
+
17
+ app.use(express.static(__dirname + "/static"));
8
18
 
9
- app.use(express.static(__dirname + '/static'));
19
+ app.use(favicon(__dirname + "/static/favicon.ico"));
10
20
 
11
- app.get('/', (req, res) => res.render('index', { title: 'Hey', message: 'Hello there' }))
21
+ routes.forEach(({ path, view }) => app.get(path, (_, res) => res.render(view)));
12
22
 
13
- app.listen(port, () => console.log(`Example app listening on port ${port}`))
23
+ app.listen(port, function () {
24
+ console.log(`Pattern library listening on port ${port}`);
25
+ });
@@ -0,0 +1,21 @@
1
+ include ../components/section
2
+
3
+ html
4
+ head
5
+ title Pattern Library | Barbican Reset
6
+ link(rel="stylesheet" href="/styles.css")
7
+ link(rel="icon" href="favicon.ico")
8
+ body
9
+ .topbar
10
+ .information
11
+ .sections
12
+ a(href="/")
13
+ h3 Items
14
+ a(href="/blocks")
15
+ h3 Blocks
16
+ a(href="/layouts")
17
+ h3 Layouts
18
+ .search
19
+ .br-container--outer
20
+ .br-container--inner
21
+ block content
@@ -0,0 +1,2 @@
1
+ .page
2
+ block content
@@ -0,0 +1,9 @@
1
+ extends ../layouts/page
2
+
3
+ include ../components/alert
4
+
5
+ block content
6
+
7
+ +Alert("Aenean tellus metus, bibendum sed, posuere ac, mattis non, nunc. Fusce vel dui.")(flex=true, state="neutral")
8
+
9
+ +Alert("Aenean tellus metus, bibendum sed, posuere ac, mattis non, nunc. Fusce vel dui.")(flex=true, state="error")
@@ -0,0 +1,25 @@
1
+ extends ../layouts/page
2
+
3
+ include ../components/samples
4
+
5
+ block content
6
+
7
+ h3 Grey
8
+ ul.list.list-palette.grey
9
+ li.item.item-palette.l11
10
+ li.item.item-palette.l21
11
+ li.item.item-palette.l44
12
+ li.item.item-palette.l65
13
+ li.item.item-palette.l87
14
+ li.item.item-palette.l96
15
+
16
+ +Samples('Contemporary','contemporary-music')
17
+ +Samples('Theatre','theatre--dance')
18
+ +Samples('Talks','talks--events')
19
+ +Samples('Art','art--design')
20
+ +Samples('Programme','programme')
21
+ +Samples('Cinema','cinema')
22
+ +Samples('Shop','shop')
23
+ +Samples('Generic / Library / Tours / Hire','generic')
24
+ +Samples('Classical','classical-music')
25
+ +Samples('Membership','membership--support')