@comicrelief/component-library 8.75.1 → 8.76.1

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.
package/dist/index.cjs.js CHANGED
@@ -1073,9 +1073,6 @@ function print() { __p += __j.call(arguments, '') }
1073
1073
  visibility: none;
1074
1074
  transition: all 0.2s cubic-bezier(0, 0, 0.25, 0.82);
1075
1075
  padding: 0 ${L("l")};
1076
- @media ${({theme:e})=>e.allBreakpoints("M")} {
1077
- padding: 0 ${L("lg")};
1078
- }
1079
1076
 
1080
1077
  ${({$isOpen:e,$contentBottomPadding:t})=>e&&v.css`
1081
1078
  height: auto;
package/dist/index.es.js CHANGED
@@ -8573,9 +8573,6 @@ const Zs = "data:image/svg+xml,%3csvg%20width='14'%20height='24'%20viewBox='0%20
8573
8573
  visibility: none;
8574
8574
  transition: all 0.2s cubic-bezier(0, 0, 0.25, 0.82);
8575
8575
  padding: 0 ${L("l")};
8576
- @media ${({ theme: e }) => e.allBreakpoints("M")} {
8577
- padding: 0 ${L("lg")};
8578
- }
8579
8576
 
8580
8577
  ${({ $isOpen: e, $contentBottomPadding: t }) => e && oe`
8581
8578
  height: auto;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "8.75.1",
4
+ "version": "8.76.1",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
7
7
  "files": [
@@ -44,7 +44,8 @@
44
44
  "test:e2e:mac:organisms": "playwright test playwright/components/organisms --project=chromium; yarn playwright show-report --port 9324",
45
45
  "test:e2e:mac:organisms:emailSignUpForm": "playwright test playwright/components/organisms/emailSignUpForm.spec.js --project=chromium; yarn playwright show-report --port 9324",
46
46
  "lint": "eslint src",
47
- "lint-fix": "yarn lint --fix"
47
+ "lint-fix": "yarn lint --fix",
48
+ "yalc:push": "yarn build && yalc push"
48
49
  },
49
50
  "peerDependencies": {
50
51
  "react": ">=18",
@@ -70,9 +70,6 @@ const Copy = styled.div`
70
70
  visibility: none;
71
71
  transition: all 0.2s cubic-bezier(0, 0, 0.25, 0.82);
72
72
  padding: 0 ${spacing('l')};
73
- @media ${({ theme }) => theme.allBreakpoints('M')} {
74
- padding: 0 ${spacing('lg')};
75
- }
76
73
 
77
74
  ${({ $isOpen, $contentBottomPadding }) => ($isOpen && css`
78
75
  height: auto;
@@ -45,11 +45,41 @@ export default function AccordionExample() {
45
45
  I am a title with an overridden text type and weight, to 'p' 700 which is the new donate preference
46
46
  </Text>
47
47
  }
48
- >
49
-
48
+ >
50
49
  <Text tag="p" size="s">lorem ipsum</Text>
51
50
  </Accordion>
52
51
  </Wrapper>
52
+
53
+ <Wrapper>
54
+ <div style={{ width: '752px' }}>
55
+ <Accordion
56
+ title={
57
+ <Text textTag="p" weight="700">
58
+ I am in a width simulating our real world use on desktop (NB because width is fixed, this is only to demonstrate desktop mode, don't use for examining mobile view)
59
+ </Text>
60
+ }
61
+ >
62
+ <Text tag="p" size="s">
63
+ A STAR template answer is a structured way of responding to behavioural interview questions. Here's what it stands for:
64
+ <br />
65
+ <br />
66
+ S - Situation: Begin by setting the scene. Describe the context or situation you were in.
67
+ <br />
68
+ <br />
69
+ T - Task: Next, explain the task or challenge you were faced with. What needed to be accomplished?
70
+ <br />
71
+ <br />
72
+ A - Action: Then, detail the actions you took to address the situation or task. What specific steps did you take, and why?
73
+ <br />
74
+ <br />
75
+ R - Result: Finally, discuss the results or outcomes of your actions. What happened as a result of your efforts? Try to quantify the impact if possible.
76
+ <br />
77
+ <br />
78
+ Using the STAR template helps you provide a clear and concise response that highlights your abilities and experiences effectively. It guides you through structuring your answer in a way that makes it easy for the interviewer to understand and evaluate your skills and competencies.
79
+ </Text>
80
+ </Accordion>
81
+ </div>
82
+ </Wrapper>
53
83
  </>
54
84
  );
55
85
  }
@@ -160,12 +160,6 @@ exports[`renders correctly 1`] = `
160
160
  }
161
161
  }
162
162
 
163
- @media (min-width: 740px) {
164
- .c8 {
165
- padding: 0 3rem;
166
- }
167
- }
168
-
169
163
  @keyframes k0 {
170
164
  0% {
171
165
  margin-top: 0rem;