@uh-design-system/component-library 0.2.2-alpha.0 → 0.2.2-alpha.7

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 (36) hide show
  1. package/dist/cjs/component-library.cjs.js +2 -2
  2. package/dist/cjs/ds-accordion_2.cjs.entry.js +35 -32
  3. package/dist/cjs/ds-button_2.cjs.entry.js +55 -50
  4. package/dist/cjs/ds-text-input.cjs.entry.js +50 -27
  5. package/dist/cjs/{index-d03b8350.js → index-fd4f6cd2.js} +28 -1
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/collection/components/01-base-components/ds-accordion/ds-accordion.js +27 -27
  8. package/dist/collection/components/01-base-components/ds-accordion/stories/ds-accordion.stories.js +6 -1
  9. package/dist/collection/components/01-base-components/ds-button/ds-button.js +54 -50
  10. package/dist/collection/components/01-base-components/ds-button/stories/ds-button.stories.js +29 -9
  11. package/dist/collection/components/01-base-components/ds-icon/ds-icon.js +7 -7
  12. package/dist/collection/components/01-base-components/ds-text-input/ds-text-input.examples.stories.js +1 -1
  13. package/dist/collection/components/01-base-components/ds-text-input/ds-text-input.js +52 -31
  14. package/dist/collection/components/01-base-components/ds-text-input/ds-text-input.stories.js +2 -2
  15. package/dist/collection/utils/typography/typographyUtils.js +1 -1
  16. package/dist/component-library/component-library.css +1 -0
  17. package/dist/component-library/component-library.esm.js +1 -1
  18. package/dist/component-library/ds-accordion_2.entry.js +1 -1
  19. package/dist/component-library/ds-button_2.entry.js +1 -1
  20. package/dist/component-library/ds-text-input.entry.js +1 -1
  21. package/dist/component-library/index-4200d514.js +2 -0
  22. package/dist/components/ds-accordion.js +27 -26
  23. package/dist/components/ds-button2.js +54 -49
  24. package/dist/components/ds-icon2.js +7 -5
  25. package/dist/components/ds-text-input.js +50 -27
  26. package/dist/components/index2.js +28 -1
  27. package/dist/esm/component-library.js +3 -3
  28. package/dist/esm/ds-accordion_2.entry.js +35 -32
  29. package/dist/esm/ds-button_2.entry.js +55 -50
  30. package/dist/esm/ds-text-input.entry.js +50 -27
  31. package/dist/esm/{index-dfeefc7e.js → index-4200d514.js} +28 -1
  32. package/dist/esm/loader.js +3 -3
  33. package/dist/types/components/01-base-components/ds-text-input/ds-text-input.d.ts +2 -2
  34. package/dist/types/components.d.ts +3 -3
  35. package/package.json +16 -3
  36. package/dist/component-library/index-dfeefc7e.js +0 -2
@@ -2,57 +2,60 @@ import { h } from "@stencil/core";
2
2
  import classNames from "classnames";
3
3
  import { inheritAriaAttributes, inheritAttributes } from "../../../utils/attributes";
4
4
  export class DsButton {
5
- constructor() {
6
- this.inheritedAttributes = {};
7
- this.pressedKeys = new Set();
8
- this.value = '';
9
- this.variant = 'primary';
10
- this.colour = 'blue';
11
- this.size = 'medium';
12
- this.fontWeight = 'normal';
13
- this.icon = '';
14
- this.iconPosition = 'start';
15
- this.type = 'button';
16
- this.disabled = false;
17
- this.ariaDisabled = 'false';
18
- this.handleKeyDown = (event) => {
19
- if (event.repeat) {
20
- return;
21
- }
22
- switch (event.key) {
23
- case 'Enter':
24
- case ' ':
25
- this.pressedKeys.add(event.key);
26
- this.buttonEl.classList.add(`${this.colour}--active`);
27
- break;
28
- }
29
- };
30
- this.handleKeyUp = (event) => {
31
- switch (event.key) {
32
- case 'Enter':
33
- case ' ':
34
- this.pressedKeys.delete(event.key);
35
- if (this.pressedKeys.size === 0) {
36
- this.buttonEl.classList.remove(`${this.colour}--active`);
37
- }
38
- break;
39
- }
40
- };
41
- }
5
+ inheritedAttributes = {};
6
+ buttonEl;
7
+ pressedKeys = new Set();
8
+ el;
9
+ value = '';
10
+ variant = 'primary';
11
+ colour = 'blue';
12
+ size = 'medium';
13
+ fontWeight = 'normal';
14
+ icon = '';
15
+ iconPosition = 'start';
16
+ type = 'button';
17
+ disabled = false;
18
+ ariaDisabled = 'false';
42
19
  componentWillLoad() {
43
- this.inheritedAttributes = Object.assign(Object.assign({}, inheritAriaAttributes(this.el, ['aria-disabled'])), inheritAttributes(this.el, [
44
- 'autofocus',
45
- 'form',
46
- 'formaction',
47
- 'formenctype',
48
- 'formmethod',
49
- 'formnovalidate',
50
- 'formtarget',
51
- 'name',
52
- 'popovertarget',
53
- 'popovertargetaction',
54
- ]));
20
+ this.inheritedAttributes = {
21
+ ...inheritAriaAttributes(this.el, ['aria-disabled']),
22
+ ...inheritAttributes(this.el, [
23
+ 'autofocus',
24
+ 'form',
25
+ 'formaction',
26
+ 'formenctype',
27
+ 'formmethod',
28
+ 'formnovalidate',
29
+ 'formtarget',
30
+ 'name',
31
+ 'popovertarget',
32
+ 'popovertargetaction',
33
+ ]),
34
+ };
55
35
  }
36
+ handleKeyDown = (event) => {
37
+ if (event.repeat) {
38
+ return;
39
+ }
40
+ switch (event.key) {
41
+ case 'Enter':
42
+ case ' ':
43
+ this.pressedKeys.add(event.key);
44
+ this.buttonEl.classList.add(`${this.colour}--active`);
45
+ break;
46
+ }
47
+ };
48
+ handleKeyUp = (event) => {
49
+ switch (event.key) {
50
+ case 'Enter':
51
+ case ' ':
52
+ this.pressedKeys.delete(event.key);
53
+ if (this.pressedKeys.size === 0) {
54
+ this.buttonEl.classList.remove(`${this.colour}--active`);
55
+ }
56
+ break;
57
+ }
58
+ };
56
59
  render() {
57
60
  const classes = classNames(`${this.variant} ${this.colour} ${this.size}`, {
58
61
  'icon-start': this.icon && this.iconPosition === 'start' && this.value,
@@ -61,7 +64,8 @@ export class DsButton {
61
64
  });
62
65
  const iconSize = this.size === 'small' ? '1rem' : undefined;
63
66
  const isDisabled = this.disabled || this.ariaDisabled === 'true';
64
- return (h("button", Object.assign({ key: '1230108c308cc8a89f8202bef69e839e36b6912d', ref: el => (this.buttonEl = el), onKeyDown: this.handleKeyDown, onKeyUp: this.handleKeyUp, class: classes, style: { fontWeight: this.fontWeight }, type: this.type, "aria-disabled": isDisabled ? 'true' : 'false' }, this.inheritedAttributes), h("slot", { key: 'bb67886e636e7a5294a6fbbde4a8a013e1ace3ce', name: "prefix" }, this.icon && this.iconPosition === 'start' && h("ds-icon", { key: '6e93f6095ee4482d5026b42a67b7591712206146', name: this.icon, size: iconSize })), this.value && h("span", { key: '833424437f89ace4253e9daef6d8cda409563a4a', class: "button-value" }, this.value), h("slot", { key: '162e459206000c3b1b5b4ede761f5600f88b3de1', name: "suffix" }, this.icon && this.iconPosition === 'end' && h("ds-icon", { key: '2e9bff6bdc4d5023374916bcbdc11151270113b6', name: this.icon, size: iconSize }))));
67
+ console.log('foo');
68
+ return (h("button", { key: 'bf1cd8f28ef9701931c8c7c6f552e58b38e39290', ref: el => (this.buttonEl = el), onKeyDown: this.handleKeyDown, onKeyUp: this.handleKeyUp, class: classes, style: { fontWeight: this.fontWeight }, type: this.type, "aria-disabled": isDisabled ? 'true' : 'false', ...this.inheritedAttributes }, h("slot", { key: '2c8eab3447d3a88236a7b23d95613bfc7f6c2f4e', name: "prefix" }, this.icon && this.iconPosition === 'start' && h("ds-icon", { key: '3adff40a2a2841164d5fc02fa815bf2cf6904856', name: this.icon, size: iconSize })), this.value && h("span", { key: '3291dd24092bf5e0a4d622e6b1d487f62fc33a2f', class: "button-value" }, this.value), h("slot", { key: '1f9865ee665c3963746d3fa27c1313bbf02c5ff2', name: "suffix" }, this.icon && this.iconPosition === 'end' && h("ds-icon", { key: '11cc53787dd9caeea4a778197064ac49bc95fac4', name: this.icon, size: iconSize }))));
65
69
  }
66
70
  static get is() { return "ds-button"; }
67
71
  static get encapsulation() { return "scoped"; }
@@ -38,37 +38,57 @@ export const Default = {
38
38
  },
39
39
  };
40
40
  export const Playground = {
41
- argTypes: Object.assign(Object.assign(Object.assign({}, Default.argTypes), { variant: {
41
+ argTypes: {
42
+ ...Default.argTypes,
43
+ variant: {
42
44
  options: ['primary', 'secondary', 'supplementary'],
43
45
  control: {
44
46
  type: 'radio',
45
47
  },
46
- }, colour: {
48
+ },
49
+ colour: {
47
50
  options: ['blue', 'black', 'white'],
48
51
  control: {
49
52
  type: 'radio',
50
53
  },
51
- }, size: {
54
+ },
55
+ size: {
52
56
  options: ['medium', 'small'],
53
57
  control: {
54
58
  type: 'radio',
55
59
  },
56
- }, fontWeight: {
60
+ },
61
+ fontWeight: {
57
62
  control: 'select',
58
63
  options: [400, 600, 650, 700],
59
- }, icon: {
64
+ },
65
+ icon: {
60
66
  control: 'select',
61
67
  options: icons.map(icon => icon.name),
62
- }, iconPosition: {
68
+ },
69
+ iconPosition: {
63
70
  options: ['start', 'end'],
64
71
  control: {
65
72
  type: 'radio',
66
73
  },
67
- }, type: {
74
+ },
75
+ type: {
68
76
  options: ['submit', 'reset', 'button'],
69
77
  control: {
70
78
  type: 'radio',
71
79
  },
72
- } }), buttonAriaAttributeArgTypes),
73
- args: Object.assign(Object.assign({}, Default.args), { variant: 'primary', colour: 'blue', size: 'medium', disabled: false, ariaLabel: '', ariaLabelledby: '', icon: '', iconPosition: 'start' }),
80
+ },
81
+ ...buttonAriaAttributeArgTypes,
82
+ },
83
+ args: {
84
+ ...Default.args,
85
+ variant: 'primary',
86
+ colour: 'blue',
87
+ size: 'medium',
88
+ disabled: false,
89
+ ariaLabel: '',
90
+ ariaLabelledby: '',
91
+ icon: '',
92
+ iconPosition: 'start',
93
+ },
74
94
  };
@@ -1,13 +1,13 @@
1
1
  import { Fragment, h } from "@stencil/core";
2
2
  import { icons } from "../../../components/00-foundations/icons/iconList";
3
3
  export class DsIcon {
4
- constructor() {
5
- this.size = '1.5rem';
6
- this.title = 'Icon';
7
- this.role = 'img';
8
- this.hidden = true;
9
- this.message = '';
10
- }
4
+ name;
5
+ colour;
6
+ size = '1.5rem';
7
+ title = 'Icon';
8
+ role = 'img';
9
+ hidden = true;
10
+ message = '';
11
11
  getIcon() {
12
12
  const selectedIcon = icons.find(icon => icon.name === this.name);
13
13
  if (!selectedIcon) {
@@ -13,7 +13,7 @@ export const CustomWidth = {
13
13
  export const UsingSlots = {
14
14
  render: () => html `
15
15
  <ds-text-input aria-label='Slotted label'>
16
- <label id='label' slot='label'><b>Slotted label</b></label>
16
+ <label ds-id='label' slot='label'><b>Slotted label</b></label>
17
17
  <p slot='help-text'>Lorem ipsum</p>
18
18
  <ds-icon name='archive' slot='prefix'></ds-icon>
19
19
  <small slot='suffix' style='margin-right: var(--spacing-2xSmall)'>Suffix</small>
@@ -13,30 +13,41 @@ const visuallyHiddenAssistiveTextIdGenerator = idGenerator('visually-hidden-assi
13
13
  const successTextIdGenerator = idGenerator('success-text');
14
14
  const errorTextIdGenerator = idGenerator('error-text');
15
15
  export class DsTextInput {
16
- constructor() {
17
- this.assistiveTextId = assistiveTextIdGenerator.next().value;
18
- this.visuallyHiddenAssistiveTextId = visuallyHiddenAssistiveTextIdGenerator.next().value;
19
- this.successTextId = successTextIdGenerator.next().value;
20
- this.errorTextId = errorTextIdGenerator.next().value;
21
- this.id = 'input';
22
- this.icon = '';
23
- this.type = 'text';
24
- this.hasFocus = false;
25
- this.clearButtonVisible = false;
26
- this.passwordInputVisible = false;
27
- this.inputActive = false;
28
- this.onActionButtonClicked = (e) => {
29
- e.stopPropagation();
30
- switch (this.type) {
31
- case 'password':
32
- return this.togglePasswordVisibility();
33
- case 'search':
34
- this.clearInput();
35
- default:
36
- return;
37
- }
38
- };
39
- }
16
+ suffixButtonElement;
17
+ inputElement;
18
+ assistiveTextId = assistiveTextIdGenerator.next().value;
19
+ visuallyHiddenAssistiveTextId = visuallyHiddenAssistiveTextIdGenerator.next().value;
20
+ successTextId = successTextIdGenerator.next().value;
21
+ errorTextId = errorTextIdGenerator.next().value;
22
+ label;
23
+ placeholder;
24
+ dsId = 'input';
25
+ name;
26
+ disabled;
27
+ required;
28
+ readonly;
29
+ value;
30
+ min;
31
+ max;
32
+ maxlength;
33
+ pattern;
34
+ autocomplete;
35
+ errorText;
36
+ successText;
37
+ assistiveText;
38
+ actionButtonAriaLabel;
39
+ hiddenAssistiveText;
40
+ prefixText;
41
+ suffixText;
42
+ icon = '';
43
+ type = 'text';
44
+ ariaLabel;
45
+ ariaLabelledBy;
46
+ ariaDescribedby;
47
+ hasFocus = false;
48
+ clearButtonVisible = false;
49
+ passwordInputVisible = false;
50
+ inputActive = false;
40
51
  async togglePasswordVisibility() {
41
52
  return (this.passwordInputVisible = !this.passwordInputVisible);
42
53
  }
@@ -45,6 +56,17 @@ export class DsTextInput {
45
56
  this.inputElement.focus();
46
57
  this.clearButtonVisible = false;
47
58
  }
59
+ onActionButtonClicked = (e) => {
60
+ e.stopPropagation();
61
+ switch (this.type) {
62
+ case 'password':
63
+ return this.togglePasswordVisibility();
64
+ case 'search':
65
+ this.clearInput();
66
+ default:
67
+ return;
68
+ }
69
+ };
48
70
  renderValidityMessage(type) {
49
71
  const textId = type === 'success' ? this.successTextId : this.errorTextId;
50
72
  const text = type === 'success' ? this.successText : this.errorText;
@@ -63,11 +85,10 @@ export class DsTextInput {
63
85
  return null;
64
86
  }
65
87
  renderSuffixContent() {
66
- var _a, _b;
67
88
  if (this.suffixText) {
68
89
  return (h("slot", { name: "suffix" }, h("span", { class: "suffix" }, this.suffixText)));
69
90
  }
70
- const actionButtonIcon = (_b = (_a = INPUT_TYPE_ACTION_BUTTON_ICON_MAP[this.type]) === null || _a === void 0 ? void 0 : _a.call(INPUT_TYPE_ACTION_BUTTON_ICON_MAP, this)) !== null && _b !== void 0 ? _b : '';
91
+ const actionButtonIcon = INPUT_TYPE_ACTION_BUTTON_ICON_MAP[this.type]?.(this) ?? '';
71
92
  const ariaPressed = this.type === 'password' ? this.passwordInputVisible : undefined;
72
93
  if (actionButtonIcon) {
73
94
  return (h("slot", { name: "suffix" }, h("ds-button", { ref: e => (this.suffixButtonElement = e), variant: "supplementary", colour: "black", class: "suffix", disabled: false, icon: actionButtonIcon, onClick: this.onActionButtonClicked, "aria-pressed": ariaPressed, "aria-label": this.actionButtonAriaLabel })));
@@ -81,14 +102,14 @@ export class DsTextInput {
81
102
  }
82
103
  render() {
83
104
  const inputType = this.type === 'password' && this.passwordInputVisible ? 'text' : this.type;
84
- return (h(Fragment, { key: '6d7c594001a3103009b407b8ff83d2c1280d014a' }, h("div", { key: '76051b2e72023d0a11fe07f10390b787e7466f02', class: "label-container" }, h("slot", { key: '3c6aa9d9ad95523cd241fddf19be9f3b61cc6a5e', name: "label" }, h("label", { key: '9adea3cfcbd36030bdf66dd9ddc64a1483910c0f', class: classNames({ required: this.required }), htmlFor: this.id }, this.label)), h("slot", { key: '12466889750015207ac3f56159c70795e797d433', name: "help-text" }, h("small", { key: '4c4ae48f06cb9633d5f306ae14da8ccc5d09699e', id: this.assistiveTextId }, this.assistiveText), h("ds-visually-hidden", { key: '899469a328caf988e955bc2f3e4bc15664f01de3', id: this.visuallyHiddenAssistiveTextId }, this.hiddenAssistiveText))), h("div", { key: 'b8afbafcafc45a83b9bf177a09d585745ff2d7bf', onMouseDown: () => (this.inputActive = true), onMouseUp: () => (this.inputActive = false), onClick: e => this.handleInputContainerClick(e), class: classNames('input-container', {
105
+ return (h(Fragment, { key: 'b36b842382f0f0635c5372a856b140f05f7f5cff' }, h("div", { key: '4cedfdd4a891b8317f8b948824c5fe18b8f2c345', class: "label-container" }, h("slot", { key: '5072f7cab04c4c6dcf3bc2a72f88c83f3da5c74b', name: "label" }, h("label", { key: '513249ab30b24df9ad204ec533eb5b0714a5b36e', class: classNames({ required: this.required }), htmlFor: this.dsId }, this.label)), h("slot", { key: 'c3e05ad3e51365c7e8df7a276b4fc089af4edba7', name: "help-text" }, h("small", { key: 'fdf1904fe96fd22b4ba650e693db0d3fcecdf33a', id: this.assistiveTextId }, this.assistiveText), h("ds-visually-hidden", { key: 'd9726a8a031a786169ff47a809f8309117d00eaa', id: this.visuallyHiddenAssistiveTextId }, this.hiddenAssistiveText))), h("div", { key: 'c0fb788b2f35f478015169d2fc558885fc9c205a', onMouseDown: () => (this.inputActive = true), onMouseUp: () => (this.inputActive = false), onClick: e => this.handleInputContainerClick(e), class: classNames('input-container', {
85
106
  disabled: this.disabled,
86
107
  readonly: this.readonly,
87
108
  valid: !!this.successText,
88
109
  invalid: !!this.errorText,
89
110
  focus: this.hasFocus,
90
111
  active: !!this.inputActive,
91
- }) }, this.renderPrefixContent(), h("input", { key: '75b925eced73863f039c31f7c8abaf8996532f7c', ref: e => (this.inputElement = e), id: this.id, name: this.name, "aria-label": this.ariaLabel, "aria-labelledby": this.ariaLabelledBy, "aria-describedby": this.ariaDescribedby ||
112
+ }) }, this.renderPrefixContent(), h("input", { key: 'adb2aa8a54d45aeeca8e209f0c0a28d2aa0141f8', ref: e => (this.inputElement = e), id: this.dsId, name: this.name, "aria-label": this.ariaLabel, "aria-labelledby": this.ariaLabelledBy, "aria-describedby": this.ariaDescribedby ||
92
113
  classNames(this.assistiveTextId, this.visuallyHiddenAssistiveTextId, {
93
114
  [this.successTextId]: this.successText,
94
115
  [this.errorTextId]: this.errorText,
@@ -146,7 +167,7 @@ export class DsTextInput {
146
167
  "attribute": "placeholder",
147
168
  "reflect": false
148
169
  },
149
- "id": {
170
+ "dsId": {
150
171
  "type": "string",
151
172
  "mutable": false,
152
173
  "complexType": {
@@ -162,7 +183,7 @@ export class DsTextInput {
162
183
  },
163
184
  "getter": false,
164
185
  "setter": false,
165
- "attribute": "id",
186
+ "attribute": "ds-id",
166
187
  "reflect": false,
167
188
  "defaultValue": "'input'"
168
189
  },
@@ -544,7 +565,7 @@ export class DsTextInput {
544
565
  "references": {}
545
566
  },
546
567
  "required": false,
547
- "optional": true,
568
+ "optional": false,
548
569
  "docs": {
549
570
  "tags": [],
550
571
  "text": ""
@@ -17,7 +17,7 @@ export const Playground = {
17
17
  argTypes: {
18
18
  label: { control: 'text' },
19
19
  placeholder: { control: 'text' },
20
- id: { control: 'text' },
20
+ dsId: { control: 'text' },
21
21
  name: { control: 'text' },
22
22
  disabled: { control: 'boolean' },
23
23
  required: { control: 'boolean' },
@@ -48,7 +48,7 @@ export const Playground = {
48
48
  args: {
49
49
  label: 'Label',
50
50
  placeholder: '',
51
- id: 'input',
51
+ dsId: 'input',
52
52
  name: '',
53
53
  disabled: false,
54
54
  required: false,
@@ -16,7 +16,7 @@ export const getTypographyVariables = () => {
16
16
  const rules = [...sheet.cssRules].filter((r) => r instanceof CSSStyleRule && r.selectorText === ':root');
17
17
  rootRules.push(...rules.map(rule => rule.cssText));
18
18
  }
19
- catch (_a) {
19
+ catch {
20
20
  console.warn('Issue occurred when extracting stylesheets.');
21
21
  }
22
22
  }
@@ -0,0 +1 @@
1
+ html{box-sizing:border-box}html *,html *::before,html *::after{box-sizing:inherit}:root{--ds-borderWidth-none:0px;--ds-borderWidth-hairline:1px;--ds-borderWidth-thin:2px;--ds-borderWidth-thick:4px;--ds-borderWidth-xThick:8px;--ds-borderRadius-none:0px}:root{--ds-breakpoint-xSmall:20rem;--ds-breakpoint-small:30rem;--ds-breakpoint-medium:60rem;--ds-breakpoint-large:75rem;--ds-breakpoint-xLarge:90rem}:root{--ds-overlay-black-00:rgb(0 0 0 / 0);--ds-overlay-black-05:rgb(0 0 0 / 0.05);--ds-overlay-black-10:rgb(0 0 0 / 0.1);--ds-overlay-black-15:rgb(0 0 0 / 0.15);--ds-overlay-black-30:rgb(0 0 0 / 0.3);--ds-overlay-black-40:rgb(0 0 0 / 0.4);--ds-overlay-black-50:rgb(0 0 0 / 0.5);--ds-overlay-black-70:rgb(0 0 0 / 0.7);--ds-overlay-black-80:rgb(0 0 0 / 0.8);--ds-overlay-white-00:rgb(255 255 255 / 0);--ds-overlay-white-05:rgb(255 255 255 / 0.05);--ds-overlay-white-10:rgb(255 255 255 / 0.1);--ds-overlay-white-15:rgb(255 255 255 / 0.15);--ds-overlay-white-30:rgb(255 255 255 / 0.3);--ds-overlay-white-40:rgb(255 255 255 / 0.4);--ds-overlay-white-50:rgb(255 255 255 / 0.5);--ds-overlay-white-70:rgb(255 255 255 / 0.7);--ds-overlay-white-80:rgb(255 255 255 / 0.8);--ds-palette-black:#000000;--ds-palette-white:#ffffff;--ds-palette-black-03:#f7f7f7;--ds-palette-black-05:#f2f2f2;--ds-palette-black-10:#e6e6e6;--ds-palette-black-20:#cccccc;--ds-palette-black-30:#b3b3b3;--ds-palette-black-40:#999999;--ds-palette-black-50:#808080;--ds-palette-black-60:#666666;--ds-palette-black-70:#4d4d4d;--ds-palette-black-80:#333333;--ds-palette-black-90:#1a1a1a;--ds-palette-blue-05:#e5f8ff;--ds-palette-blue-10:#c2eeff;--ds-palette-blue-20:#8adeff;--ds-palette-blue-30:#5cd1ff;--ds-palette-blue-40:#1abeff;--ds-palette-blue-50:#009ad6;--ds-palette-blue-60:#0084b8;--ds-palette-blue-70:#005b80;--ds-palette-blue-80:#053c52;--ds-palette-blue-90:#032330;--ds-palette-green-05:#dffbe1;--ds-palette-green-10:#bef4c1;--ds-palette-green-20:#85e08a;--ds-palette-green-30:#66cc6b;--ds-palette-green-40:#43b149;--ds-palette-green-50:#279b2d;--ds-palette-green-60:#257e29;--ds-palette-green-70:#216325;--ds-palette-green-80:#183f19;--ds-palette-green-90:#0f2410;--ds-palette-mainBlue-05:#e5f5ff;--ds-palette-mainBlue-10:#cdebff;--ds-palette-mainBlue-20:#99d7ff;--ds-palette-mainBlue-30:#70c7ff;--ds-palette-mainBlue-40:#3db3ff;--ds-palette-mainBlue-50:#009bff;--ds-palette-mainBlue-60:#007fd1;--ds-palette-mainBlue-70:#005a94;--ds-palette-mainBlue-80:#003152;--ds-palette-mainBlue-90:#001929;--ds-palette-red-05:#ffeceb;--ds-palette-red-10:#ffd8d6;--ds-palette-red-20:#fdb7b4;--ds-palette-red-30:#f87c77;--ds-palette-red-40:#f0514c;--ds-palette-red-50:#d71f19;--ds-palette-red-60:#bd2828;--ds-palette-red-70:#8b2623;--ds-palette-red-80:#602220;--ds-palette-red-90:#321c1b;--ds-palette-yellow-05:#fff1db;--ds-palette-yellow-10:#ffe7c2;--ds-palette-yellow-20:#ffd799;--ds-palette-yellow-30:#fbc05f;--ds-palette-yellow-40:#eea22b;--ds-palette-yellow-50:#ce8103;--ds-palette-yellow-60:#b26d00;--ds-palette-yellow-70:#7a4b00;--ds-palette-yellow-80:#4e3104;--ds-palette-yellow-90:#282115}:root{--ds-textColor-default:var(--ds-palette-black-90);--ds-textColor-primary:var(--ds-palette-mainBlue-70);--ds-textColor-secondary:var(--ds-palette-black-70);--ds-textColor-white:var(--ds-palette-white);--ds-textColor-danger:var(--ds-palette-red-80);--ds-textColor-success:var(--ds-palette-green-80);--ds-textColor-disabled-onLight:var(--ds-palette-black-40);--ds-textColor-disabled-onDark:var(--ds-overlay-white-40);--ds-bgColor-primary:var(--ds-palette-mainBlue-70);--ds-bgColor-primary-hover:var(--ds-palette-mainBlue-80);--ds-bgColor-primary-active:var(--ds-palette-mainBlue-90);--ds-bgColor-secondary:var(--ds-palette-white);--ds-bgColor-secondary-hover:var(--ds-palette-mainBlue-05);--ds-bgColor-secondary-active:var(--ds-palette-mainBlue-10);--ds-bgColor-white:var(--ds-palette-white);--ds-bgColor-white-hover:var(--ds-palette-black-10);--ds-bgColor-white-active:var(--ds-overlay-black-20);--ds-bgColor-black:var(--ds-palette-black-90);--ds-bgColor-black-hover:var(--ds-palette-black-70);--ds-bgColor-black-active:var(--ds-palette-white-60);--ds-bgColor-danger:var(--ds-palette-red-05);--ds-bgColor-danger-hover:var(--ds-palette-red-10);--ds-bgColor-danger-active:var(--ds-palette-red-20);--ds-bgColor-success:var(--ds-palette-green-05);--ds-bgColor-success-hover:var(--ds-palette-green-10);--ds-bgColor-success-active:var(--ds-palette-green-20);--ds-bgColor-transparent-onLight:var(--ds-overlay-black-00);--ds-bgColor-transparent-onLight-hover:var(--ds-overlay-black-10);--ds-bgColor-transparent-onLight-active:var(--ds-overlay-black-15);--ds-bgColor-transparent-onDark:var(--ds-overlay-white-00);--ds-bgColor-transparent-onDark-hover:var(--ds-overlay-white-30);--ds-bgColor-transparent-onDark-active:var(--ds-overlay-white-40);--ds-bgColor-disabled-onLight:var(--ds-overlay-black-10);--ds-bgColor-disabled-onDark:var(--ds-overlay-white-10);--ds-borderColor-default:var(--ds-palette-black-50);--ds-borderColor-primary:var(--ds-palette-mainBlue-70);--ds-borderColor-black:var(--ds-palette-black);--ds-borderColor-white:var(--ds-palette-white);--ds-borderColor-danger:var(--ds-palette-red-50);--ds-borderColor-success:var(--ds-palette-green-50);--ds-borderColor-transparent:var(--ds-overlay-black-00);--ds-borderColor-disabled-onLight:var(--ds-overlay-black-15);--ds-borderColor-disabled-onDark:var(--ds-overlay-white-15);--ds-borderColor-light:var(--ds-palette-black-20)}:root{--ds-spacing-4xSmall:0.125rem;--ds-spacing-3xSmall:0.25rem;--ds-spacing-2xSmall:0.5rem;--ds-spacing-xSmall:0.75rem;--ds-spacing-small:1rem;--ds-spacing-medium:1.5rem;--ds-spacing-large:2rem;--ds-spacing-xLarge:2.5rem;--ds-spacing-2xLarge:3rem;--ds-spacing-3xLarge:3.5rem;--ds-spacing-4xLarge:4rem;--ds-spacing-5xLarge:4.5rem;--ds-spacing-layout-2xSmall:1rem;--ds-spacing-layout-xSmall:1.5rem;--ds-spacing-layout-small:2rem;--ds-spacing-layout-medium:3rem;--ds-spacing-layout-large:4rem;--ds-spacing-layout-xLarge:6rem;--ds-spacing-layout-2xLarge:8rem}html{font-size:100%}body{font-size:1rem}.heading--2xLarge,h1,.h1{font-size:2.25rem;line-height:1.166667;font-weight:700;font-variation-settings:"wdth" 90;letter-spacing:-1.2px;text-transform:uppercase}@media (min-width: 30rem){.heading--2xLarge,h1,.h1{font-size:3.5rem;line-height:1.142857;font-weight:700;font-variation-settings:"wdth" 90;letter-spacing:-1.4px;text-transform:uppercase}}.heading--xLarge,h2,.h2{font-size:1.875rem;line-height:1.2;font-weight:700;font-variation-settings:"wdth" 90;letter-spacing:-1.4px;text-transform:normal}@media (min-width: 30rem){.heading--xLarge,h2,.h2{font-size:3rem;line-height:1.083333;font-weight:700;font-variation-settings:"wdth" 90;letter-spacing:-1.4px;text-transform:normal}}.heading--large,h3,.h3{font-size:1.5rem;line-height:1.166667;font-weight:650;font-variation-settings:"wdth" 100;letter-spacing:-0.4px;text-transform:normal}@media (min-width: 30rem){.heading--large,h3,.h3{font-size:2rem;line-height:1.125;font-weight:650;font-variation-settings:"wdth" 100;letter-spacing:-1.4px;text-transform:normal}}.heading--medium,h4,.h4{font-size:1.25rem;line-height:1.333333;font-weight:650;font-variation-settings:"wdth" 100;letter-spacing:-0.4px;text-transform:normal}@media (min-width: 30rem){.heading--medium,h4,.h4{font-size:1.5rem;line-height:1.166667;font-weight:650;font-variation-settings:"wdth" 100;letter-spacing:-0.4px;text-transform:normal}}.heading--small,h5,.h5{font-size:1.125rem;line-height:1.2;font-weight:600;font-variation-settings:"wdth" 100;letter-spacing:-0.4px;text-transform:normal}@media (min-width: 30rem){.heading--small,h5,.h5{font-size:1.25rem;line-height:1.2;font-weight:600;font-variation-settings:"wdth" 100;letter-spacing:-0.4px;text-transform:normal}}.heading--xSmall,h6,.h6{font-size:1rem;line-height:1.125;font-weight:700;font-variation-settings:"wdth" 100;letter-spacing:-0.4px;text-transform:uppercase}@media (min-width: 30rem){.heading--xSmall,h6,.h6{font-size:1.125rem;line-height:1.2;font-weight:700;font-variation-settings:"wdth" 100;letter-spacing:-0.4px;text-transform:uppercase}}.bodyText{line-height:1.5}.bodyText--2xLarge{font-size:1.375rem}.bodyText--xLarge{font-size:1.25rem}.bodyText--large{font-size:1.125rem}.bodyText--medium{font-size:1rem}.bodyText--small{font-size:0.875rem}.bodyText--xSmall{font-size:0.75rem}:root{--ds-fontFamily-heading:"Open Sans", sans-serif;--ds-fontFamily-body:"Open Sans", sans-serif;--ds-fontSize-12:12px;--ds-fontSize-14:14px;--ds-fontSize-16:16px;--ds-fontSize-18:18px;--ds-fontSize-20:20px;--ds-fontSize-22:22px;--ds-fontSize-24:24px;--ds-fontSize-26:26px;--ds-fontSize-30:30px;--ds-fontSize-32:32px;--ds-fontSize-36:36px;--ds-fontSize-40:40px;--ds-fontSize-48:48px;--ds-fontSize-56:56px;--ds-fontSize-64:64px;--ds-fontWeight-regular:400;--ds-fontWeight-semibold:600;--ds-fontWeight-semiboldPlus:650;--ds-fontWeight-bold:700;--ds-letterSpacing-xTight:-2;--ds-letterSpacing-tight:-1.4;--ds-letterSpacing-normal:-0.4;--ds-letterSpacing-wide:0;--ds-letterSpacing-xWide:0.4;--ds-lineHeight-small:1;--ds-lineHeight-medium:1.2;--ds-lineHeight-large:1.5;--ds-lineHeight-xLarge:1.75;--ds-fontWidth-normal:100;--ds-fontWidth-condense:90;--ds-number-style:proportional-figures;}@supports (font-variation-settings: normal){:root{--ds-fontFamily-heading:"Open Sans Variable", sans-serif;--ds-fontFamily-body:"Open Sans Variable", sans-serif}}.button-group{display:flex;flex-wrap:wrap;gap:var(--ds-spacing-xSmall)}
@@ -1 +1 @@
1
- import{p as e,b as i}from"./index-dfeefc7e.js";export{s as setNonce}from"./index-dfeefc7e.js";import{g as t}from"./app-globals-0f993ce5.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((async e=>(await t(),i([["ds-accordion_2",[[1,"ds-accordion",{variant:[1],borderAligned:[4,"border-aligned"],openByDefault:[4,"open-by-default"],accordionId:[1,"accordion-id"],headingLevel:[2,"heading-level"],useCloseButton:[4,"use-close-button"],closeButtonLabel:[1,"close-button-label"],isExpanded:[32]},null,{isExpanded:["watchHandler"]}],[1,"ds-icon",{name:[1],colour:[1],size:[1],title:[1],role:[1],hidden:[4],message:[32]}]]],["ds-button_2",[[6,"ds-button",{value:[1],variant:[1],colour:[1],size:[1],fontWeight:[1,"font-weight"],icon:[1],iconPosition:[1,"icon-position"],type:[1],disabled:[4],ariaDisabled:[1,"aria-disabled"]}],[1,"ds-visually-hidden"]]],["ds-text-input",[[6,"ds-text-input",{label:[1],placeholder:[1],id:[1],name:[1],disabled:[4],required:[4],readonly:[4],value:[1],min:[2],max:[2],maxlength:[2],pattern:[1],autocomplete:[1],errorText:[1,"error-text"],successText:[1,"success-text"],assistiveText:[1,"assistive-text"],actionButtonAriaLabel:[1,"action-button-aria-label"],hiddenAssistiveText:[1,"hidden-assistive-text"],prefixText:[1,"prefix-text"],suffixText:[1,"suffix-text"],icon:[1],type:[1],ariaLabel:[1,"aria-label"],ariaLabelledBy:[1,"aria-labelledby"],ariaDescribedby:[1,"aria-describedby"],hasFocus:[32],clearButtonVisible:[32],passwordInputVisible:[32],inputActive:[32],togglePasswordVisibility:[64],clearInput:[64]}]]]],e))));
1
+ import{p as e,b as i}from"./index-4200d514.js";export{s as setNonce}from"./index-4200d514.js";import{g as t}from"./app-globals-0f993ce5.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((async e=>(await t(),i([["ds-accordion_2",[[1,"ds-accordion",{variant:[1],borderAligned:[4,"border-aligned"],openByDefault:[4,"open-by-default"],accordionId:[1,"accordion-id"],headingLevel:[2,"heading-level"],useCloseButton:[4,"use-close-button"],closeButtonLabel:[1,"close-button-label"],isExpanded:[32]},null,{isExpanded:["watchHandler"]}],[1,"ds-icon",{name:[1],colour:[1],size:[1],title:[1],role:[1],hidden:[4],message:[32]}]]],["ds-button_2",[[6,"ds-button",{value:[1],variant:[1],colour:[1],size:[1],fontWeight:[1,"font-weight"],icon:[1],iconPosition:[1,"icon-position"],type:[1],disabled:[4],ariaDisabled:[1,"aria-disabled"]}],[1,"ds-visually-hidden"]]],["ds-text-input",[[6,"ds-text-input",{label:[1],placeholder:[1],dsId:[1,"ds-id"],name:[1],disabled:[4],required:[4],readonly:[4],value:[1],min:[2],max:[2],maxlength:[2],pattern:[1],autocomplete:[1],errorText:[1,"error-text"],successText:[1,"success-text"],assistiveText:[1,"assistive-text"],actionButtonAriaLabel:[1,"action-button-aria-label"],hiddenAssistiveText:[1,"hidden-assistive-text"],prefixText:[1,"prefix-text"],suffixText:[1,"suffix-text"],icon:[1],type:[1],ariaLabel:[1,"aria-label"],ariaLabelledBy:[1,"aria-labelledby"],ariaDescribedby:[1,"aria-describedby"],hasFocus:[32],clearButtonVisible:[32],passwordInputVisible:[32],inputActive:[32],togglePasswordVisibility:[64],clearInput:[64]}]]]],e))));