@uh-design-system/component-library 0.5.2 → 0.6.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.
- package/dist/cjs/{utils-3412cbed.js → attributes-BMbXzbwU.js} +2 -28
- package/dist/cjs/component-library.cjs.js +7 -7
- package/dist/cjs/controlUtils-ofqiQxRF.js +42 -0
- package/dist/cjs/ds-accordion.cjs.entry.js +79 -0
- package/dist/cjs/ds-button.cjs.entry.js +107 -0
- package/dist/cjs/ds-card.cjs.entry.js +58 -0
- package/dist/cjs/ds-checkbox-group.cjs.entry.js +109 -49
- package/dist/cjs/ds-checkbox.cjs.entry.js +88 -79
- package/dist/cjs/ds-icon.cjs.entry.js +943 -0
- package/dist/cjs/ds-input-validity.cjs.entry.js +14 -15
- package/dist/cjs/ds-link-with-arrow.cjs.entry.js +21 -20
- package/dist/cjs/ds-link.cjs.entry.js +34 -31
- package/dist/cjs/ds-radio-button-group.cjs.entry.js +153 -0
- package/dist/cjs/ds-radio-button.cjs.entry.js +151 -0
- package/dist/cjs/ds-spinner.cjs.entry.js +62 -0
- package/dist/cjs/ds-text-input.cjs.entry.js +90 -77
- package/dist/cjs/ds-visually-hidden.cjs.entry.js +3 -6
- package/dist/cjs/index-Bp6Dd2i1.js +94 -0
- package/dist/cjs/{store-9bd20f3c.js → index-DwLFyR5p.js} +6 -2
- package/dist/cjs/{index-bf84b124.js → index-Mjp9Y-Sw.js} +701 -55
- package/dist/cjs/index.cjs.js +3 -5
- package/dist/cjs/{linkUtils-695da37c.js → linkUtils-onlbgKdI.js} +4 -2
- package/dist/cjs/loader.cjs.js +3 -5
- package/dist/cjs/utils-BjZTECpy.js +29 -0
- package/dist/collection/accessibility/stories/naming.stories.js +3 -3
- package/dist/collection/collection-manifest.json +78 -3
- package/dist/collection/components/01-base-components/ds-accordion/ds-accordion.css +18 -17
- package/dist/collection/components/01-base-components/ds-accordion/ds-accordion.js +91 -50
- package/dist/collection/components/01-base-components/ds-accordion/stories/ds-accordion.examples.stories.js +6 -6
- package/dist/collection/components/01-base-components/ds-accordion/stories/ds-accordion.features.stories.js +14 -14
- package/dist/collection/components/01-base-components/ds-accordion/stories/ds-accordion.stories.js +24 -66
- package/dist/collection/components/01-base-components/ds-button/ds-button.css +124 -145
- package/dist/collection/components/01-base-components/ds-button/ds-button.js +150 -65
- package/dist/collection/components/01-base-components/ds-button/stories/ds-button.examples.stories.js +121 -23
- package/dist/collection/components/01-base-components/ds-button/stories/ds-button.features.stories.js +49 -42
- package/dist/collection/components/01-base-components/ds-button/stories/ds-button.stories.js +16 -72
- package/dist/collection/components/01-base-components/ds-card/ds-card.css +127 -0
- package/dist/collection/components/01-base-components/ds-card/ds-card.js +303 -0
- package/dist/collection/components/01-base-components/ds-card/stories/ds-card.examples.stories.js +92 -0
- package/dist/collection/components/01-base-components/ds-card/stories/ds-card.features.stories.js +66 -0
- package/dist/collection/components/01-base-components/ds-card/stories/ds-card.stories.js +71 -0
- package/dist/collection/components/01-base-components/ds-checkbox/ds-checkbox.css +46 -46
- package/dist/collection/components/01-base-components/ds-checkbox/ds-checkbox.js +120 -111
- package/dist/collection/components/01-base-components/ds-checkbox/stories/ds-checkbox.features.stories.js +20 -20
- package/dist/collection/components/01-base-components/ds-checkbox/stories/ds-checkbox.stories.js +12 -25
- package/dist/collection/components/01-base-components/ds-checkbox-group/ds-checkbox-group.css +2 -3
- package/dist/collection/components/01-base-components/ds-checkbox-group/ds-checkbox-group.js +214 -63
- package/dist/collection/components/01-base-components/ds-checkbox-group/stories/ds-checkbox-group.features.stories.js +215 -50
- package/dist/collection/components/01-base-components/ds-checkbox-group/stories/ds-checkbox-group.stories.js +30 -28
- package/dist/collection/components/01-base-components/ds-icon/ds-icon.js +36 -31
- package/dist/collection/components/01-base-components/ds-icon/stories/ds-icon.stories.js +10 -37
- package/dist/collection/components/01-base-components/ds-input-validity/ds-input-validity.css +2 -2
- package/dist/collection/components/01-base-components/ds-input-validity/ds-input-validity.js +60 -30
- package/dist/collection/components/01-base-components/ds-input-validity/stories/ds-input-validity.features.stories.js +4 -4
- package/dist/collection/components/01-base-components/ds-input-validity/stories/ds-input-validity.stories.js +4 -9
- package/dist/collection/components/01-base-components/ds-link/ds-link.css +24 -14
- package/dist/collection/components/01-base-components/ds-link/ds-link.js +74 -75
- package/dist/collection/components/01-base-components/ds-link/stories/ds-link.examples.stories.js +27 -27
- package/dist/collection/components/01-base-components/ds-link/stories/ds-link.features.stories.js +38 -21
- package/dist/collection/components/01-base-components/ds-link/stories/ds-link.stories.js +8 -67
- package/dist/collection/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.css +10 -12
- package/dist/collection/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.js +30 -52
- package/dist/collection/components/01-base-components/ds-link-with-arrow/stories/ds-link-with-arrow.examples.stories.js +4 -4
- package/dist/collection/components/01-base-components/ds-link-with-arrow/stories/ds-link-with-arrow.features.stories.js +6 -6
- package/dist/collection/components/01-base-components/ds-link-with-arrow/stories/ds-link-with-arrow.stories.js +4 -28
- package/dist/collection/components/01-base-components/ds-radio-button/ds-radio-button.css +115 -0
- package/dist/collection/components/01-base-components/ds-radio-button/ds-radio-button.js +449 -0
- package/dist/collection/components/01-base-components/ds-radio-button/stories/ds-radio-button.features.stories.js +72 -0
- package/dist/collection/components/01-base-components/ds-radio-button/stories/ds-radio-button.stories.js +22 -0
- package/dist/collection/components/01-base-components/ds-radio-button-group/ds-radio-button-group.css +30 -0
- package/dist/collection/components/01-base-components/ds-radio-button-group/ds-radio-button-group.js +360 -0
- package/dist/collection/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.examples.stories.js +42 -0
- package/dist/collection/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.features.stories.js +71 -0
- package/dist/collection/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.stories.js +60 -0
- package/dist/collection/components/01-base-components/ds-spinner/ds-spinner.css +279 -0
- package/dist/collection/components/01-base-components/ds-spinner/ds-spinner.js +221 -0
- package/dist/collection/components/01-base-components/ds-spinner/stories/ds-spinner.examples.stories.js +120 -0
- package/dist/collection/components/01-base-components/ds-spinner/stories/ds-spinner.features.stories.js +107 -0
- package/dist/collection/components/01-base-components/ds-spinner/stories/ds-spinner.stories.js +14 -0
- package/dist/collection/components/01-base-components/ds-text-input/ds-text-input.css +85 -118
- package/dist/collection/components/01-base-components/ds-text-input/ds-text-input.js +230 -155
- package/dist/collection/components/01-base-components/ds-text-input/stories/ds-text-input.examples.stories.js +26 -21
- package/dist/collection/components/01-base-components/ds-text-input/stories/ds-text-input.features.stories.js +40 -40
- package/dist/collection/components/01-base-components/ds-text-input/stories/ds-text-input.stories.js +30 -56
- package/dist/collection/components/01-base-components/ds-visually-hidden/ds-visually-hidden.js +1 -1
- package/dist/collection/store.js +7 -1
- package/dist/collection/utils/attributes/attributes.js +2 -2
- package/dist/collection/utils/button/buttonUtils.js +14 -0
- package/dist/collection/utils/colours/colourTypes.js +3 -3
- package/dist/collection/utils/colours/colourUtils.js +5 -3
- package/dist/collection/utils/controls/controlUtils.js +35 -1
- package/dist/collection/utils/link/linkUtils.js +3 -2
- package/dist/collection/utils/spinner/spinnerUtils.js +20 -0
- package/dist/collection/utils/tests/testUtils.js +1 -0
- package/dist/collection/utils/typography/typographyUtils.js +3 -3
- package/dist/collection/utils/utils.js +10 -9
- package/dist/component-library/{utils-cfc536bc.js → attributes-BD_lNRxn.js} +1 -1
- package/dist/component-library/component-library.css +1 -1
- package/dist/component-library/component-library.esm.js +1 -1
- package/dist/component-library/controlUtils-CNER0MvM.js +1 -0
- package/dist/component-library/ds-accordion.entry.js +1 -0
- package/dist/component-library/ds-button.entry.js +1 -0
- package/dist/component-library/ds-card.entry.js +1 -0
- package/dist/component-library/ds-checkbox-group.entry.js +1 -1
- package/dist/component-library/ds-checkbox.entry.js +1 -1
- package/dist/component-library/ds-icon.entry.js +1 -0
- package/dist/component-library/ds-input-validity.entry.js +1 -1
- package/dist/component-library/ds-link-with-arrow.entry.js +1 -1
- package/dist/component-library/ds-link.entry.js +1 -1
- package/dist/component-library/ds-radio-button-group.entry.js +1 -0
- package/dist/component-library/ds-radio-button.entry.js +1 -0
- package/dist/component-library/ds-spinner.entry.js +1 -0
- package/dist/component-library/ds-text-input.entry.js +1 -1
- package/dist/component-library/ds-visually-hidden.entry.js +1 -1
- package/dist/component-library/index-BfTCfPZ1.js +6 -0
- package/dist/component-library/index-Cm7V4EAn.js +2 -0
- package/dist/component-library/index-DuYjhvTn.js +1 -0
- package/dist/component-library/index.esm.js +1 -1
- package/dist/component-library/linkUtils-02nCfO0F.js +1 -0
- package/dist/component-library/utils-CqaqnfY4.js +1 -0
- package/dist/components/attributes.js +3 -3
- package/dist/components/controlUtils.js +35 -2
- package/dist/components/ds-accordion.js +58 -42
- package/dist/components/ds-button2.js +78 -39
- package/dist/components/ds-card.d.ts +11 -0
- package/dist/components/ds-card.js +91 -0
- package/dist/components/ds-checkbox-group.js +116 -56
- package/dist/components/ds-checkbox2.js +93 -80
- package/dist/components/ds-icon2.js +292 -292
- package/dist/components/ds-input-validity2.js +17 -14
- package/dist/components/ds-link-with-arrow.js +22 -22
- package/dist/components/ds-link.js +43 -40
- package/dist/components/ds-radio-button-group.d.ts +11 -0
- package/dist/components/ds-radio-button-group.js +185 -0
- package/dist/components/ds-radio-button.d.ts +11 -0
- package/dist/components/ds-radio-button.js +198 -0
- package/dist/components/ds-spinner.d.ts +11 -0
- package/dist/components/ds-spinner.js +6 -0
- package/dist/components/ds-spinner2.js +89 -0
- package/dist/components/ds-text-input.js +126 -104
- package/dist/components/ds-visually-hidden2.js +2 -3
- package/dist/components/index.js +208 -2
- package/dist/components/index2.js +713 -39
- package/dist/components/index3.js +69 -57
- package/dist/components/linkUtils.js +4 -2
- package/dist/docs.d.ts +443 -0
- package/dist/docs.json +4790 -0
- package/dist/esm/{utils-cfc536bc.js → attributes-BD_lNRxn.js} +3 -26
- package/dist/esm/component-library.js +6 -5
- package/dist/esm/controlUtils-CNER0MvM.js +37 -0
- package/dist/esm/ds-accordion.entry.js +77 -0
- package/dist/esm/ds-button.entry.js +105 -0
- package/dist/esm/ds-card.entry.js +56 -0
- package/dist/esm/ds-checkbox-group.entry.js +108 -46
- package/dist/esm/ds-checkbox.entry.js +78 -67
- package/dist/esm/ds-icon.entry.js +941 -0
- package/dist/esm/ds-input-validity.entry.js +14 -13
- package/dist/esm/ds-link-with-arrow.entry.js +21 -18
- package/dist/esm/ds-link.entry.js +34 -29
- package/dist/esm/ds-radio-button-group.entry.js +151 -0
- package/dist/esm/ds-radio-button.entry.js +149 -0
- package/dist/esm/ds-spinner.entry.js +60 -0
- package/dist/esm/ds-text-input.entry.js +88 -73
- package/dist/esm/ds-visually-hidden.entry.js +3 -4
- package/dist/esm/index-BfTCfPZ1.js +92 -0
- package/dist/esm/{index-434995e1.js → index-Cm7V4EAn.js} +699 -34
- package/dist/{components/store.js → esm/index-DuYjhvTn.js} +6 -3
- package/dist/esm/index.js +2 -2
- package/dist/esm/{linkUtils-3d1b28cf.js → linkUtils-02nCfO0F.js} +4 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/utils-CqaqnfY4.js +25 -0
- package/dist/hydrate/index.d.ts +271 -0
- package/dist/hydrate/index.js +22280 -0
- package/dist/hydrate/index.mjs +22272 -0
- package/dist/hydrate/package.json +12 -0
- package/dist/styles/helpers.css +15 -0
- package/dist/styles/helpers.css.map +1 -0
- package/dist/styles/mixins/_breakpoints.scss +13 -0
- package/dist/styles/mixins/_focus.scss +26 -0
- package/dist/styles/mixins/_wrapper.scss +5 -0
- package/dist/styles/mixins/imports-default/_imports.scss +2 -0
- package/dist/styles/mixins/tokens/_breakpoints.scss +13 -0
- package/dist/styles/mixins/tokens/_semantic-colours.scss +75 -0
- package/dist/styles/mixins.scss +12 -0
- package/dist/styles/variables.css +176 -0
- package/dist/styles/variables.css.map +1 -0
- package/dist/types/components/01-base-components/ds-accordion/ds-accordion.d.ts +11 -8
- package/dist/types/components/01-base-components/ds-button/ds-button.d.ts +16 -11
- package/dist/types/components/01-base-components/ds-button/stories/ds-button.examples.stories.d.ts +1 -0
- package/dist/types/components/01-base-components/ds-button/stories/ds-button.features.stories.d.ts +1 -0
- package/dist/types/components/01-base-components/ds-card/ds-card.d.ts +20 -0
- package/dist/types/components/01-base-components/ds-card/stories/ds-card.examples.stories.d.ts +8 -0
- package/dist/types/components/01-base-components/ds-card/stories/ds-card.features.stories.d.ts +8 -0
- package/dist/types/components/01-base-components/ds-card/stories/ds-card.stories.d.ts +7 -0
- package/dist/types/components/01-base-components/ds-checkbox/ds-checkbox.d.ts +21 -22
- package/dist/types/components/01-base-components/ds-checkbox-group/ds-checkbox-group.d.ts +21 -11
- package/dist/types/components/01-base-components/ds-checkbox-group/stories/ds-checkbox-group.features.stories.d.ts +3 -0
- package/dist/types/components/01-base-components/ds-icon/ds-icon.d.ts +7 -5
- package/dist/types/components/01-base-components/ds-input-validity/ds-input-validity.d.ts +5 -6
- package/dist/types/components/01-base-components/ds-link/ds-link.d.ts +13 -14
- package/dist/types/components/01-base-components/ds-link/stories/ds-link.features.stories.d.ts +2 -0
- package/dist/types/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.d.ts +5 -7
- package/dist/types/components/01-base-components/ds-radio-button/ds-radio-button.d.ts +44 -0
- package/dist/types/components/01-base-components/ds-radio-button/stories/ds-radio-button.features.stories.d.ts +15 -0
- package/dist/types/components/01-base-components/ds-radio-button/stories/ds-radio-button.stories.d.ts +7 -0
- package/dist/types/components/01-base-components/ds-radio-button-group/ds-radio-button-group.d.ts +34 -0
- package/dist/types/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.examples.stories.d.ts +6 -0
- package/dist/types/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.features.stories.d.ts +11 -0
- package/dist/types/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.stories.d.ts +7 -0
- package/dist/types/components/01-base-components/ds-spinner/ds-spinner.d.ts +17 -0
- package/dist/types/components/01-base-components/ds-spinner/stories/ds-spinner.examples.stories.d.ts +7 -0
- package/dist/types/components/01-base-components/ds-spinner/stories/ds-spinner.features.stories.d.ts +7 -0
- package/dist/types/components/01-base-components/ds-spinner/stories/ds-spinner.stories.d.ts +7 -0
- package/dist/types/components/01-base-components/ds-text-input/ds-text-input.d.ts +37 -32
- package/dist/types/components.d.ts +1287 -228
- package/dist/types/stencil-public-runtime.d.ts +22 -0
- package/dist/types/store.d.ts +6 -1
- package/dist/types/utils/attributes/attributes.d.ts +1 -1
- package/dist/types/utils/button/buttonUtils.d.ts +1 -0
- package/dist/types/utils/colours/colourTypes.d.ts +3 -3
- package/dist/types/utils/controls/controlUtils.d.ts +2 -0
- package/dist/types/utils/link/linkUtils.d.ts +1 -1
- package/dist/types/utils/spinner/spinnerUtils.d.ts +1 -0
- package/dist/types/utils/tests/testUtils.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +2 -1
- package/package.json +40 -36
- package/dist/cjs/controlUtils-041de0fd.js +0 -7
- package/dist/cjs/ds-accordion_3.cjs.entry.js +0 -1095
- package/dist/cjs/index-5b0b9d4c.js +0 -82
- package/dist/component-library/controlUtils-9ca4087b.js +0 -1
- package/dist/component-library/ds-accordion_3.entry.js +0 -1
- package/dist/component-library/index-434995e1.js +0 -2
- package/dist/component-library/index-72ac5051.js +0 -6
- package/dist/component-library/linkUtils-3d1b28cf.js +0 -1
- package/dist/component-library/store-b8d17c10.js +0 -1
- package/dist/esm/controlUtils-9ca4087b.js +0 -4
- package/dist/esm/ds-accordion_3.entry.js +0 -1089
- package/dist/esm/index-72ac5051.js +0 -80
- package/dist/esm/store-b8d17c10.js +0 -204
- package/dist/loader/package.json +0 -11
- /package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -0
- /package/dist/component-library/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
- /package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@uh-design-system/component-library/hydrate",
|
|
3
|
+
"description": "ComponentLibrary component hydration app.",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"types": "index.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"require": "./index.js",
|
|
9
|
+
"import": "./index.mjs"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file is used to import helper styles and make them available for use
|
|
3
|
+
* in other SCSS files independently.
|
|
4
|
+
*
|
|
5
|
+
* This file will be preprocessed and copied to the dist folder in the build process.
|
|
6
|
+
*
|
|
7
|
+
* See the build script in package.json for more details.
|
|
8
|
+
*/
|
|
9
|
+
.ds-no-style-leak * {
|
|
10
|
+
all: unset;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
display: block;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/*# sourceMappingURL=helpers.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/styles/helpers.scss","../../src/components/00-foundations/helpers/_no-style-leak.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACCE;EACE;EACA;EACA","file":"helpers.css"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'imports-default/imports' as breakpoints;
|
|
3
|
+
|
|
4
|
+
// Mixin for media queries
|
|
5
|
+
@mixin dsBreakpointUpFrom($breakpoint) {
|
|
6
|
+
@if map.has-key(breakpoints.$breakpoints, $breakpoint) {
|
|
7
|
+
@media (min-width: map.get(breakpoints.$breakpoints, $breakpoint)) {
|
|
8
|
+
@content;
|
|
9
|
+
}
|
|
10
|
+
} @else {
|
|
11
|
+
@warn "Unfortunately, no value could be retrieved from `#{$breakpoint}`. Available breakpoints are: #{map-keys($breakpoints)}.";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@use 'sass:string';
|
|
2
|
+
@use 'imports-default/imports' as colours;
|
|
3
|
+
|
|
4
|
+
@mixin dsFocusStyles($focusInset, $focusBoxShadowColor, $focusOutlineColor, $inset, $offsetMultiplier) {
|
|
5
|
+
box-shadow: string.unquote($focusInset) 0 0 0 if($inset, var(--ds-borderWidth-thick), var(--ds-borderWidth-thin)) $focusBoxShadowColor;
|
|
6
|
+
outline: var(--ds-borderWidth-thin) solid $focusOutlineColor;
|
|
7
|
+
outline-offset: calc(if($inset, calc(var(--ds-borderWidth-thin) * -1), var(--ds-borderWidth-thin)) * $offsetMultiplier);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@mixin dsFocusRing($inverted: false, $inset: false, $focusVisible: true, $focusWithin: false, $offsetMultiplier: 1) {
|
|
11
|
+
$focusOutlineColor: if($inverted, colours.$dsBorderColorWhite, colours.$dsBorderColorBlack);
|
|
12
|
+
$focusBoxShadowColor: if($inverted, colours.$dsBorderColorBlack, colours.$dsBorderColorWhite);
|
|
13
|
+
$focusInset: if($inset, inset, '');
|
|
14
|
+
|
|
15
|
+
@if $focusVisible {
|
|
16
|
+
&:focus-visible {
|
|
17
|
+
@include dsFocusStyles($focusInset, $focusBoxShadowColor, $focusOutlineColor, $inset, $offsetMultiplier);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@if $focusWithin {
|
|
22
|
+
&:focus-within {
|
|
23
|
+
@include dsFocusStyles($focusInset, $focusBoxShadowColor, $focusOutlineColor, $inset, $offsetMultiplier);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
$breakpoints: (
|
|
2
|
+
'xSmall': 20rem, // 320px
|
|
3
|
+
'small': 30rem, // 480px
|
|
4
|
+
'medium': 60rem, // 960px
|
|
5
|
+
'large': 75rem, // 1200px
|
|
6
|
+
'xLarge': 90rem, // 1440px
|
|
7
|
+
);
|
|
8
|
+
|
|
9
|
+
:root {
|
|
10
|
+
@each $name, $value in $breakpoints {
|
|
11
|
+
--ds-breakpoint-#{$name}: #{$value};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// src/components/00-foundations/colours/_semantic_colours.scss
|
|
2
|
+
|
|
3
|
+
// Text colours
|
|
4
|
+
$dsTextColorDefault: var(--ds-palette-black-95);
|
|
5
|
+
$dsTextColorPrimary: var(--ds-palette-mainBlue-70);
|
|
6
|
+
$dsTextColorSecondary: var(--ds-palette-black-70);
|
|
7
|
+
$dsTextColorWhite: var(--ds-palette-white);
|
|
8
|
+
$dsTextColorDanger: var(--ds-palette-red-70);
|
|
9
|
+
$dsTextColorSuccess: var(--ds-palette-green-70);
|
|
10
|
+
$dsTextColorDisabledOnLight: var(--ds-palette-black-40);
|
|
11
|
+
$dsTextColorDisabledOnDark: var(--ds-overlay-white-40);
|
|
12
|
+
$dsTextColorLink: var(--ds-palette-mainBlue-70);
|
|
13
|
+
$dsTextColorLinkHover: var(--ds-palette-mainBlue-80);
|
|
14
|
+
$dsTextColorLinkActive: var(--ds-palette-mainBlue-90);
|
|
15
|
+
$dsTextColorLinkVisited: #551a8b; // ? Should be added to _colours.scss
|
|
16
|
+
$dsTextColorLinkStandalone: var(--ds-palette-black-70);
|
|
17
|
+
$dsTextColorLinkStandaloneHover: var(--ds-palette-black-80);
|
|
18
|
+
$dsTextColorLinkStandaloneActive: var(--ds-palette-black-95);
|
|
19
|
+
$dsTextColorLinkStandaloneFocus: var(--ds-palette-black-70);
|
|
20
|
+
$dsTextColorInfo: var(--ds-palette-blue-70);
|
|
21
|
+
$dsTextColorAttention: var(--ds-palette-yellow-70);
|
|
22
|
+
|
|
23
|
+
// Background colours
|
|
24
|
+
$dsBgColorPrimary: var(--ds-palette-mainBlue-70);
|
|
25
|
+
$dsBgColorPrimaryHover: var(--ds-palette-mainBlue-80);
|
|
26
|
+
$dsBgColorPrimaryActive: var(--ds-palette-mainBlue-90);
|
|
27
|
+
$dsBgColorSecondary: var(--ds-palette-white);
|
|
28
|
+
$dsBgColorSecondaryHover: var(--ds-palette-mainBlue-05);
|
|
29
|
+
$dsBgColorSecondaryActive: var(--ds-palette-mainBlue-10);
|
|
30
|
+
$dsBgColorWhite: var(--ds-palette-white);
|
|
31
|
+
$dsBgColorWhiteHover: var(--ds-palette-black-10);
|
|
32
|
+
$dsBgColorWhiteActive: var(--ds-palette-black-20);
|
|
33
|
+
$dsBgColorBlack: var(--ds-palette-black-95);
|
|
34
|
+
$dsBgColorBlackHover: var(--ds-palette-black-80);
|
|
35
|
+
$dsBgColorBlackActive: var(--ds-palette-white-70);
|
|
36
|
+
$dsBgColorDanger: var(--ds-palette-red-05);
|
|
37
|
+
$dsBgColorDangerHover: var(--ds-palette-red-10);
|
|
38
|
+
$dsBgColorDangerActive: var(--ds-palette-red-20);
|
|
39
|
+
$dsBgColorSuccess: var(--ds-palette-green-05);
|
|
40
|
+
$dsBgColorSuccessHover: var(--ds-palette-green-10);
|
|
41
|
+
$dsBgColorSuccessActive: var(--ds-palette-green-20);
|
|
42
|
+
$dsBgColorTransparentOnLight: var(--ds-overlay-black-00);
|
|
43
|
+
$dsBgColorTransparentOnLightHover: var(--ds-overlay-black-10);
|
|
44
|
+
$dsBgColorTransparentOnLightActive: var(--ds-overlay-black-15);
|
|
45
|
+
$dsBgColorTransparentOnDark: var(--ds-overlay-white-00);
|
|
46
|
+
$dsBgColorTransparentOnDarkHover: var(--ds-overlay-white-30);
|
|
47
|
+
$dsBgColorTransparentOnDarkActive: var(--ds-overlay-white-40);
|
|
48
|
+
$dsBgColorDisabledOnLight: var(--ds-overlay-black-10);
|
|
49
|
+
$dsBgColorDisabledOnDark: var(--ds-overlay-white-10);
|
|
50
|
+
$dsBgColorInfo: var(--ds-palette-blue-05);
|
|
51
|
+
$dsBgColorInfoHover: var(--ds-palette-blue-10);
|
|
52
|
+
$dsBgColorInfoActive: var(--ds-palette-blue-20);
|
|
53
|
+
$dsBgColorNeutral: var(--ds-palette-black-05);
|
|
54
|
+
$dsBgColorNeutralHover: var(--ds-palette-black-10);
|
|
55
|
+
$dsBgColorNeutralActive: var(--ds-palette-black-20);
|
|
56
|
+
$dsBgColorNeutralLight: var(--ds-palette-black-03);
|
|
57
|
+
$dsBgColorNeutralLightHover: var(--ds-palette-black-05);
|
|
58
|
+
$dsBgColorNeutralLightActive: var(--ds-palette-black-10);
|
|
59
|
+
$dsBgColorAttention: var(--ds-palette-yellow-05);
|
|
60
|
+
$dsBgColorAttentionHover: var(--ds-palette-yellow-10);
|
|
61
|
+
$dsBgColorAttentionActive: var(--ds-palette-yellow-20);
|
|
62
|
+
|
|
63
|
+
// Border colours
|
|
64
|
+
$dsBorderColorDefault: var(--ds-palette-black-50);
|
|
65
|
+
$dsBorderColorPrimary: var(--ds-palette-mainBlue-70);
|
|
66
|
+
$dsBorderColorBlack: var(--ds-palette-black-95);
|
|
67
|
+
$dsBorderColorWhite: var(--ds-palette-white);
|
|
68
|
+
$dsBorderColorDanger: var(--ds-palette-red-50);
|
|
69
|
+
$dsBorderColorSuccess: var(--ds-palette-green-50);
|
|
70
|
+
$dsBorderColorTransparent: var(--ds-overlay-black-00);
|
|
71
|
+
$dsBorderColorDisabledOnLight: var(--ds-overlay-black-15);
|
|
72
|
+
$dsBorderColorDisabledOnDark: var(--ds-overlay-white-15);
|
|
73
|
+
$dsBorderColorLight: var(--ds-palette-black-20);
|
|
74
|
+
$dsBorderColorInfo: var(--ds-palette-blue-50);
|
|
75
|
+
$dsBorderColorAttention: var(--ds-palette-yellow-50);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file is used to import all mixins and make them available for use
|
|
3
|
+
* in other SCSS files independently.
|
|
4
|
+
*
|
|
5
|
+
* This file will be copied to the dist folder in the build process.
|
|
6
|
+
*
|
|
7
|
+
* See the build script in stencil.config.ts for more details.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
@forward 'mixins/breakpoints';
|
|
11
|
+
@forward 'mixins/focus';
|
|
12
|
+
@forward 'mixins/wrapper';
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file is used to import css variables and make them available for use
|
|
3
|
+
* in other SCSS files independently.
|
|
4
|
+
*
|
|
5
|
+
* This file will be preprocessed and copied to the dist folder in the build process.
|
|
6
|
+
*
|
|
7
|
+
* See the build script in package.json for more details.
|
|
8
|
+
*/
|
|
9
|
+
:root {
|
|
10
|
+
--ds-borderWidth-none: 0px;
|
|
11
|
+
--ds-borderWidth-hairline: 1px;
|
|
12
|
+
--ds-borderWidth-thin: 2px;
|
|
13
|
+
--ds-borderWidth-thick: 4px;
|
|
14
|
+
--ds-borderWidth-xThick: 8px;
|
|
15
|
+
--ds-borderRadius-none: 0px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:root {
|
|
19
|
+
--ds-breakpoint-xSmall: 20rem;
|
|
20
|
+
--ds-breakpoint-small: 30rem;
|
|
21
|
+
--ds-breakpoint-medium: 60rem;
|
|
22
|
+
--ds-breakpoint-large: 75rem;
|
|
23
|
+
--ds-breakpoint-xLarge: 90rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:root {
|
|
27
|
+
--ds-overlay-black-00: rgb(0 0 0 / 0%);
|
|
28
|
+
--ds-overlay-black-05: rgb(0 0 0 / 5%);
|
|
29
|
+
--ds-overlay-black-10: rgb(0 0 0 / 10%);
|
|
30
|
+
--ds-overlay-black-15: rgb(0 0 0 / 15%);
|
|
31
|
+
--ds-overlay-black-30: rgb(0 0 0 / 30%);
|
|
32
|
+
--ds-overlay-black-40: rgb(0 0 0 / 40%);
|
|
33
|
+
--ds-overlay-black-50: rgb(0 0 0 / 50%);
|
|
34
|
+
--ds-overlay-black-70: rgb(0 0 0 / 70%);
|
|
35
|
+
--ds-overlay-black-80: rgb(0 0 0 / 80%);
|
|
36
|
+
--ds-overlay-white-00: rgb(255 255 255 / 0%);
|
|
37
|
+
--ds-overlay-white-05: rgb(255 255 255 / 5%);
|
|
38
|
+
--ds-overlay-white-10: rgb(255 255 255 / 10%);
|
|
39
|
+
--ds-overlay-white-15: rgb(255 255 255 / 15%);
|
|
40
|
+
--ds-overlay-white-30: rgb(255 255 255 / 30%);
|
|
41
|
+
--ds-overlay-white-40: rgb(255 255 255 / 40%);
|
|
42
|
+
--ds-overlay-white-50: rgb(255 255 255 / 50%);
|
|
43
|
+
--ds-overlay-white-70: rgb(255 255 255 / 70%);
|
|
44
|
+
--ds-overlay-white-80: rgb(255 255 255 / 80%);
|
|
45
|
+
--ds-palette-black: #000;
|
|
46
|
+
--ds-palette-white: #fff;
|
|
47
|
+
--ds-palette-black-03: #f7f7f7;
|
|
48
|
+
--ds-palette-black-05: #f2f2f2;
|
|
49
|
+
--ds-palette-black-10: #e6e6e6;
|
|
50
|
+
--ds-palette-black-20: #ccc;
|
|
51
|
+
--ds-palette-black-30: #b3b3b3;
|
|
52
|
+
--ds-palette-black-40: #999;
|
|
53
|
+
--ds-palette-black-50: #808080;
|
|
54
|
+
--ds-palette-black-60: #666;
|
|
55
|
+
--ds-palette-black-70: #4d4d4d;
|
|
56
|
+
--ds-palette-black-80: #333;
|
|
57
|
+
--ds-palette-black-90: #1a1a1a;
|
|
58
|
+
--ds-palette-black-95: #0c0c0c;
|
|
59
|
+
--ds-palette-blue-05: #e5f8ff;
|
|
60
|
+
--ds-palette-blue-10: #c2eeff;
|
|
61
|
+
--ds-palette-blue-20: #8adeff;
|
|
62
|
+
--ds-palette-blue-30: #5cd1ff;
|
|
63
|
+
--ds-palette-blue-40: #1abeff;
|
|
64
|
+
--ds-palette-blue-50: #009ad6;
|
|
65
|
+
--ds-palette-blue-60: #0084b8;
|
|
66
|
+
--ds-palette-blue-70: #005b80;
|
|
67
|
+
--ds-palette-blue-80: #053c52;
|
|
68
|
+
--ds-palette-blue-90: #032330;
|
|
69
|
+
--ds-palette-green-05: #dffbe1;
|
|
70
|
+
--ds-palette-green-10: #bef4c1;
|
|
71
|
+
--ds-palette-green-20: #85e08a;
|
|
72
|
+
--ds-palette-green-30: #66cc6b;
|
|
73
|
+
--ds-palette-green-40: #43b149;
|
|
74
|
+
--ds-palette-green-50: #279b2d;
|
|
75
|
+
--ds-palette-green-60: #257e29;
|
|
76
|
+
--ds-palette-green-70: #216325;
|
|
77
|
+
--ds-palette-green-80: #183f19;
|
|
78
|
+
--ds-palette-green-90: #0f2410;
|
|
79
|
+
--ds-palette-mainBlue-05: #e5f5ff;
|
|
80
|
+
--ds-palette-mainBlue-10: #cdebff;
|
|
81
|
+
--ds-palette-mainBlue-20: #99d7ff;
|
|
82
|
+
--ds-palette-mainBlue-30: #70c7ff;
|
|
83
|
+
--ds-palette-mainBlue-40: #3db3ff;
|
|
84
|
+
--ds-palette-mainBlue-50: #009bff;
|
|
85
|
+
--ds-palette-mainBlue-60: #007fd1;
|
|
86
|
+
--ds-palette-mainBlue-70: #005a94;
|
|
87
|
+
--ds-palette-mainBlue-80: #003152;
|
|
88
|
+
--ds-palette-mainBlue-90: #001929;
|
|
89
|
+
--ds-palette-red-05: #ffeceb;
|
|
90
|
+
--ds-palette-red-10: #ffd8d6;
|
|
91
|
+
--ds-palette-red-20: #fdb7b4;
|
|
92
|
+
--ds-palette-red-30: #f87c77;
|
|
93
|
+
--ds-palette-red-40: #f0514c;
|
|
94
|
+
--ds-palette-red-50: #d71f19;
|
|
95
|
+
--ds-palette-red-60: #bd2828;
|
|
96
|
+
--ds-palette-red-70: #8b2623;
|
|
97
|
+
--ds-palette-red-80: #602220;
|
|
98
|
+
--ds-palette-red-90: #321c1b;
|
|
99
|
+
--ds-palette-yellow-05: #fff1db;
|
|
100
|
+
--ds-palette-yellow-10: #ffe7c2;
|
|
101
|
+
--ds-palette-yellow-20: #ffd799;
|
|
102
|
+
--ds-palette-yellow-30: #fbc05f;
|
|
103
|
+
--ds-palette-yellow-40: #eea22b;
|
|
104
|
+
--ds-palette-yellow-50: #ce8103;
|
|
105
|
+
--ds-palette-yellow-60: #b26d00;
|
|
106
|
+
--ds-palette-yellow-70: #7a4b00;
|
|
107
|
+
--ds-palette-yellow-80: #4e3104;
|
|
108
|
+
--ds-palette-yellow-90: #282115;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:root {
|
|
112
|
+
--ds-spacing-4xSmall: 0.125rem;
|
|
113
|
+
--ds-spacing-3xSmall: 0.25rem;
|
|
114
|
+
--ds-spacing-2xSmall: 0.5rem;
|
|
115
|
+
--ds-spacing-xSmall: 0.75rem;
|
|
116
|
+
--ds-spacing-small: 1rem;
|
|
117
|
+
--ds-spacing-medium: 1.5rem;
|
|
118
|
+
--ds-spacing-large: 2rem;
|
|
119
|
+
--ds-spacing-xLarge: 2.5rem;
|
|
120
|
+
--ds-spacing-2xLarge: 3rem;
|
|
121
|
+
--ds-spacing-3xLarge: 3.5rem;
|
|
122
|
+
--ds-spacing-4xLarge: 4rem;
|
|
123
|
+
--ds-spacing-5xLarge: 4.5rem;
|
|
124
|
+
--ds-spacing-layout-2xSmall: 1rem;
|
|
125
|
+
--ds-spacing-layout-xSmall: 1.5rem;
|
|
126
|
+
--ds-spacing-layout-small: 2rem;
|
|
127
|
+
--ds-spacing-layout-medium: 3rem;
|
|
128
|
+
--ds-spacing-layout-large: 4rem;
|
|
129
|
+
--ds-spacing-layout-xLarge: 6rem;
|
|
130
|
+
--ds-spacing-layout-2xLarge: 8rem;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:root {
|
|
134
|
+
--ds-fontFamily-heading: "Open Sans", sans-serif;
|
|
135
|
+
--ds-fontFamily-body: "Open Sans", sans-serif;
|
|
136
|
+
--ds-fontSize-12: 12px; /* 0.75rem */
|
|
137
|
+
--ds-fontSize-14: 14px; /* 0.875rem */
|
|
138
|
+
--ds-fontSize-16: 16px; /* 1rem */
|
|
139
|
+
--ds-fontSize-18: 18px; /* 1.125rem */
|
|
140
|
+
--ds-fontSize-20: 20px; /* 1.25rem */
|
|
141
|
+
--ds-fontSize-22: 22px; /* 1.375rem */
|
|
142
|
+
--ds-fontSize-24: 24px; /* 1.5rem */
|
|
143
|
+
--ds-fontSize-26: 26px; /* 1.625rem */
|
|
144
|
+
--ds-fontSize-30: 30px; /* 1.875rem */
|
|
145
|
+
--ds-fontSize-32: 32px; /* 2rem */
|
|
146
|
+
--ds-fontSize-36: 36px; /* 2.25rem */
|
|
147
|
+
--ds-fontSize-40: 40px; /* 2.5rem */
|
|
148
|
+
--ds-fontSize-48: 48px; /* 3rem */
|
|
149
|
+
--ds-fontSize-56: 56px; /* 3.5rem */
|
|
150
|
+
--ds-fontSize-64: 64px; /* 4rem */
|
|
151
|
+
--ds-fontWeight-regular: 400;
|
|
152
|
+
--ds-fontWeight-semibold: 600;
|
|
153
|
+
--ds-fontWeight-semiboldPlus: 650;
|
|
154
|
+
--ds-fontWeight-bold: 700;
|
|
155
|
+
--ds-letterSpacing-xTight: -2;
|
|
156
|
+
--ds-letterSpacing-tight: -1.4;
|
|
157
|
+
--ds-letterSpacing-normal: -0.4;
|
|
158
|
+
--ds-letterSpacing-wide: 0;
|
|
159
|
+
--ds-letterSpacing-xWide: 0.4;
|
|
160
|
+
--ds-lineHeight-small: 1;
|
|
161
|
+
--ds-lineHeight-medium: 1.2;
|
|
162
|
+
--ds-lineHeight-large: 1.5;
|
|
163
|
+
--ds-lineHeight-xLarge: 1.75;
|
|
164
|
+
--ds-fontWidth-normal: 100;
|
|
165
|
+
--ds-fontWidth-condense: 90;
|
|
166
|
+
--ds-number-style: proportional-figures; /* Varying spacing */
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@supports (font-variation-settings: normal) {
|
|
170
|
+
:root {
|
|
171
|
+
--ds-fontFamily-heading: "Open Sans Variable", sans-serif;
|
|
172
|
+
--ds-fontFamily-body: "Open Sans Variable", sans-serif;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/*# sourceMappingURL=variables.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/styles/variables.scss","../../src/components/00-foundations/borders/_borders.scss","../../src/components/00-foundations/breakpoints/_breakpoints.scss","../../src/components/00-foundations/colours/_colours.scss","../../src/components/00-foundations/spacing/_spacing.scss","../../src/components/00-foundations/typography/_typography.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACEA;EACE;EACA;EACA;EACA;EACA;EACA;;;ACAF;EAEI;EAAA;EAAA;EAAA;EAAA;;;ACRJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AClFF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AClBF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;IACE;IACA","file":"variables.css"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
1
2
|
export declare class DsAccordion {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
dsVariant: 'default' | 'compact';
|
|
4
|
+
dsBorderAligned: boolean;
|
|
5
|
+
dsOpenByDefault: boolean;
|
|
6
|
+
dsAccordionId: string;
|
|
7
|
+
dsHeadingLevel: number;
|
|
8
|
+
dsUseCloseButton: boolean;
|
|
9
|
+
dsCloseButtonLabel: string;
|
|
10
|
+
dsHideTopBorder: boolean;
|
|
11
|
+
dsHideBottomBorder: boolean;
|
|
10
12
|
isExpanded: boolean;
|
|
11
13
|
host: HTMLElement;
|
|
14
|
+
dsToggle: EventEmitter<boolean>;
|
|
12
15
|
private headerButtonRef?;
|
|
13
16
|
private shouldMoveFocus;
|
|
14
17
|
componentWillLoad(): void;
|
|
@@ -3,19 +3,24 @@ export declare class DsButton {
|
|
|
3
3
|
private buttonEl;
|
|
4
4
|
private pressedKeys;
|
|
5
5
|
el: HTMLElement;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
dsValue: string;
|
|
7
|
+
dsVariant: 'primary' | 'secondary' | 'supplementary';
|
|
8
|
+
dsColour: 'blue' | 'black' | 'white';
|
|
9
|
+
dsSize: 'small' | 'medium';
|
|
10
|
+
dsIcon: string;
|
|
11
|
+
dsIconPosition: 'start' | 'end';
|
|
12
|
+
dsType: 'button' | 'submit' | 'reset';
|
|
13
|
+
dsDisabled: boolean;
|
|
14
|
+
dsIsLoading: boolean;
|
|
15
|
+
dsUseSpinner: boolean;
|
|
16
|
+
dsSpinnerHiddenText: string;
|
|
17
|
+
dsFullWidth: boolean;
|
|
18
|
+
dsAriaDisabled: string;
|
|
19
|
+
dsFocus(): Promise<void>;
|
|
17
20
|
componentWillLoad(): void;
|
|
18
21
|
private handleKeyDown;
|
|
19
22
|
private handleKeyUp;
|
|
23
|
+
private getSpinnerColour;
|
|
24
|
+
private renderButton;
|
|
20
25
|
render(): any;
|
|
21
26
|
}
|
package/dist/types/components/01-base-components/ds-button/stories/ds-button.examples.stories.d.ts
CHANGED
|
@@ -7,3 +7,4 @@ export declare const ButtonGroupSmall: StoryObj;
|
|
|
7
7
|
export declare const ButtonGroupIcon: StoryObj;
|
|
8
8
|
export declare const ResetAndSubmitButton: StoryObj;
|
|
9
9
|
export declare const FullWidthWithIconsUsingSlots: StoryObj;
|
|
10
|
+
export declare const ButtonWithLoadingAnimation: StoryObj;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type DsCardUrlTarget = '_blank' | '_self' | '_parent' | '_top' | '_unfencedTop';
|
|
2
|
+
type DsCardVariant = 'filled' | 'outlined';
|
|
3
|
+
export declare class DsCard {
|
|
4
|
+
dsVariant: DsCardVariant;
|
|
5
|
+
dsHeading: string;
|
|
6
|
+
dsHeadingLevel: number;
|
|
7
|
+
dsDescription?: string;
|
|
8
|
+
dsUrl?: string;
|
|
9
|
+
dsUrlTarget: DsCardUrlTarget;
|
|
10
|
+
dsImageUrl?: string;
|
|
11
|
+
dsImageAlt?: string;
|
|
12
|
+
dsEyebrow?: string;
|
|
13
|
+
dsSubtitle?: string;
|
|
14
|
+
dsShowArrow?: boolean;
|
|
15
|
+
el: HTMLElement;
|
|
16
|
+
handleClick(e: MouseEvent): void;
|
|
17
|
+
handleKeydown(e: KeyboardEvent): void;
|
|
18
|
+
render(): any;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
package/dist/types/components/01-base-components/ds-card/stories/ds-card.examples.stories.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/web-components';
|
|
2
|
+
import { DsCard } from '../ds-card';
|
|
3
|
+
declare const meta: Meta<typeof DsCard.prototype>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj;
|
|
6
|
+
export declare const AsLink: Story;
|
|
7
|
+
export declare const WithSlotContent: Story;
|
|
8
|
+
export declare const CourseExample: Story;
|
package/dist/types/components/01-base-components/ds-card/stories/ds-card.features.stories.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/web-components';
|
|
2
|
+
import { DsCard } from '../ds-card';
|
|
3
|
+
declare const meta: Meta<typeof DsCard.prototype>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj;
|
|
6
|
+
export declare const Outlined: Story;
|
|
7
|
+
export declare const Filled: Story;
|
|
8
|
+
export declare const WithSlotContent: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/web-components';
|
|
2
|
+
import { DsCard } from '../ds-card';
|
|
3
|
+
declare const meta: Meta<typeof DsCard.prototype>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Playground: Story;
|
|
@@ -1,43 +1,42 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import { DsEvent } from '../../00-foundations/types';
|
|
3
|
-
export interface DsCheckboxInputEvent extends DsEvent {
|
|
4
|
-
checked: boolean;
|
|
5
|
-
}
|
|
6
2
|
export declare class DsCheckbox {
|
|
3
|
+
private checkboxGroup;
|
|
7
4
|
private inputElem;
|
|
8
5
|
private labelId;
|
|
9
6
|
private inputValidityId;
|
|
10
7
|
private assistiveTextId;
|
|
11
8
|
private inheritedAttributes;
|
|
12
|
-
private initialChecked?;
|
|
13
9
|
private labelClicked;
|
|
14
10
|
el: HTMLElement;
|
|
15
11
|
internals: ElementInternals;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
12
|
+
dsId?: string;
|
|
13
|
+
dsChecked: boolean;
|
|
14
|
+
dsLegend?: string;
|
|
15
|
+
dsAssistiveText?: string;
|
|
16
|
+
dsText?: string;
|
|
17
|
+
dsIndeterminate: boolean;
|
|
18
|
+
dsDisabled: boolean;
|
|
19
|
+
dsErrorText: string;
|
|
20
|
+
dsErrorsDisabled: boolean;
|
|
21
|
+
dsRequired: boolean;
|
|
22
|
+
dsOptional: boolean;
|
|
23
|
+
dsOptionalText?: string;
|
|
24
|
+
dsAriaLabel: string;
|
|
25
|
+
dsChange: EventEmitter<boolean>;
|
|
26
|
+
invalid: boolean;
|
|
27
|
+
initialChecked: boolean;
|
|
31
28
|
validationMessage?: string;
|
|
32
29
|
private setIds;
|
|
33
30
|
private getValidationMessage;
|
|
34
31
|
private getLegendText;
|
|
35
32
|
private getCheckboxText;
|
|
36
33
|
private getAriaDescribedBy;
|
|
37
|
-
private restoreInitialState;
|
|
38
|
-
private setInitialState;
|
|
39
34
|
formResetCallback(): void;
|
|
35
|
+
connectedCallback(): void;
|
|
36
|
+
disconnectedCallback(): void;
|
|
37
|
+
private updateInvalidState;
|
|
40
38
|
componentWillLoad(): void;
|
|
39
|
+
dsCheckedObserver(isChecked: boolean): void;
|
|
41
40
|
handleInput: (e: Event) => void;
|
|
42
41
|
handleKeyUp: (event: KeyboardEvent) => void;
|
|
43
42
|
handleBlur: () => void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import { DsCheckboxInputEvent } from '../ds-checkbox/ds-checkbox';
|
|
3
2
|
import { DsEvent } from '../../00-foundations/types';
|
|
4
3
|
export interface DsCheckboxGroupChangeEvent extends DsEvent {
|
|
5
4
|
checked: boolean;
|
|
@@ -8,6 +7,7 @@ export interface DsCheckboxGroupIndeterminateChildChangeEvent extends DsEvent {
|
|
|
8
7
|
indeterminate: boolean;
|
|
9
8
|
}
|
|
10
9
|
export declare class DsCheckboxGroup {
|
|
10
|
+
private checkboxElem;
|
|
11
11
|
private readonly fieldsetId;
|
|
12
12
|
private readonly checkboxId;
|
|
13
13
|
private readonly errorTextId;
|
|
@@ -15,23 +15,32 @@ export declare class DsCheckboxGroup {
|
|
|
15
15
|
private readonly nestedId;
|
|
16
16
|
private inheritedAttributes;
|
|
17
17
|
el: HTMLElement;
|
|
18
|
+
internals: ElementInternals;
|
|
18
19
|
dsCheckboxGroupChange: EventEmitter<DsCheckboxGroupChangeEvent>;
|
|
19
20
|
dsCheckboxGroupIndeterminateChildChange: EventEmitter<DsCheckboxGroupIndeterminateChildChangeEvent>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
dsCheckboxGroupInvalidStateChange: EventEmitter<boolean>;
|
|
22
|
+
dsLegend?: string;
|
|
23
|
+
dsAssistiveText?: string;
|
|
24
|
+
dsDirection: 'horizontal' | 'vertical';
|
|
25
|
+
dsErrorText: string;
|
|
26
|
+
dsText: string;
|
|
27
|
+
dsChecked: boolean;
|
|
28
|
+
dsDisabled: boolean;
|
|
29
|
+
dsRequired: boolean;
|
|
30
|
+
dsAllRequired: boolean;
|
|
31
|
+
dsOptional: boolean;
|
|
32
|
+
dsOptionalText?: string;
|
|
27
33
|
childElementsCount: number;
|
|
28
34
|
checkedChildElementCount: number;
|
|
29
35
|
isIndeterminate: boolean;
|
|
30
36
|
indeterminateChildCheckboxCount: number;
|
|
37
|
+
showInternalsValidationMessage: boolean;
|
|
31
38
|
private elementIs;
|
|
32
39
|
private elementIsCheckbox;
|
|
33
40
|
private elementIsCheckboxGroup;
|
|
41
|
+
private getLegendText;
|
|
34
42
|
private getAriaDescribedBy;
|
|
43
|
+
private getValidationMessage;
|
|
35
44
|
private getChildElements;
|
|
36
45
|
private getChildCheckboxElements;
|
|
37
46
|
private updateChildElements;
|
|
@@ -41,12 +50,13 @@ export declare class DsCheckboxGroup {
|
|
|
41
50
|
watchCheckboxDisabledChange(newValue: boolean): void;
|
|
42
51
|
watchCheckedChange(newValue: boolean): void;
|
|
43
52
|
watchIndeterminateChange(newValue: boolean): void;
|
|
53
|
+
errorTextObserver(errorText: string): void;
|
|
44
54
|
listenIndeterminateChildChange(event: CustomEvent<DsCheckboxGroupIndeterminateChildChangeEvent>): void;
|
|
45
|
-
watchCheckedChildElementCountChange(
|
|
55
|
+
watchCheckedChildElementCountChange(): void;
|
|
46
56
|
private updateCheckedChildElementCount;
|
|
47
|
-
listenCheckboxChange(event:
|
|
57
|
+
listenCheckboxChange(event: Event): void;
|
|
48
58
|
listenCheckboxGroupChange(event: CustomEvent<DsCheckboxGroupChangeEvent>): void;
|
|
49
|
-
|
|
59
|
+
formResetCallback(): void;
|
|
50
60
|
componentWillLoad(): void;
|
|
51
61
|
componentDidLoad(): void;
|
|
52
62
|
componentDidUpdate(): void;
|
|
@@ -7,5 +7,8 @@ export declare const Vertical: Story;
|
|
|
7
7
|
export declare const VerticalInvalid: Story;
|
|
8
8
|
export declare const Horizontal: Story;
|
|
9
9
|
export declare const HorizontalInvalid: Story;
|
|
10
|
+
export declare const Required: Story;
|
|
11
|
+
export declare const AllRequired: Story;
|
|
12
|
+
export declare const Optional: Story;
|
|
10
13
|
export declare const Nested: Story;
|
|
11
14
|
export declare const DeeplyNested: Story;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
type Size = '1rem' | '1.5rem' | '2rem' | '3rem' | '4rem';
|
|
1
2
|
export declare class DsIcon {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
dsName: string;
|
|
4
|
+
dsColour: string;
|
|
5
|
+
dsSize: Size;
|
|
5
6
|
dsTitle: string;
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
dsRole: string;
|
|
8
|
+
dsHidden: boolean;
|
|
8
9
|
message: string;
|
|
9
10
|
private getIcon;
|
|
10
11
|
private parseSvg;
|
|
@@ -12,3 +13,4 @@ export declare class DsIcon {
|
|
|
12
13
|
private setIconAttributes;
|
|
13
14
|
render(): any;
|
|
14
15
|
}
|
|
16
|
+
export {};
|