@hashicorp/design-system-components 4.1.2 → 4.2.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/_app_/components/hds/alert/types.js +1 -0
- package/dist/_app_/components/hds/card/types.js +1 -0
- package/dist/_app_/components/hds/interactive/types.js +1 -0
- package/dist/_app_/components/hds/link/types.js +1 -0
- package/dist/_app_/components/hds/text/types.js +1 -0
- package/dist/_app_/components/hds/yield/types.js +1 -0
- package/dist/components/hds/alert/description.js +5 -4
- package/dist/components/hds/alert/description.js.map +1 -1
- package/dist/components/hds/alert/index.js +21 -18
- package/dist/components/hds/alert/index.js.map +1 -1
- package/dist/components/hds/alert/title.js +5 -4
- package/dist/components/hds/alert/title.js.map +1 -1
- package/dist/components/hds/alert/types.js +17 -0
- package/dist/components/hds/alert/types.js.map +1 -0
- package/dist/components/hds/button/index.js +6 -6
- package/dist/components/hds/button/index.js.map +1 -1
- package/dist/components/hds/card/container.js +25 -24
- package/dist/components/hds/card/container.js.map +1 -1
- package/dist/components/hds/card/types.js +19 -0
- package/dist/components/hds/card/types.js.map +1 -0
- package/dist/components/hds/copy/snippet/index.js +1 -1
- package/dist/components/hds/copy/snippet/index.js.map +1 -1
- package/dist/components/hds/dismiss-button/index.js.map +1 -1
- package/dist/components/hds/flyout/index.js +2 -8
- package/dist/components/hds/flyout/index.js.map +1 -1
- package/dist/components/hds/interactive/index.js.map +1 -1
- package/dist/components/hds/interactive/types.js +2 -0
- package/dist/components/hds/interactive/types.js.map +1 -0
- package/dist/components/hds/link/inline.js +11 -10
- package/dist/components/hds/link/inline.js.map +1 -1
- package/dist/components/hds/link/standalone.js +16 -15
- package/dist/components/hds/link/standalone.js.map +1 -1
- package/dist/components/hds/link/types.js +19 -0
- package/dist/components/hds/link/types.js.map +1 -0
- package/dist/components/hds/modal/index.js +2 -8
- package/dist/components/hds/modal/index.js.map +1 -1
- package/dist/components/hds/text/body.js +8 -7
- package/dist/components/hds/text/body.js.map +1 -1
- package/dist/components/hds/text/code.js +8 -7
- package/dist/components/hds/text/code.js.map +1 -1
- package/dist/components/hds/text/display.js +19 -12
- package/dist/components/hds/text/display.js.map +1 -1
- package/dist/components/hds/text/index.js +14 -10
- package/dist/components/hds/text/index.js.map +1 -1
- package/dist/components/hds/text/types.js +58 -0
- package/dist/components/hds/text/types.js.map +1 -0
- package/dist/components/hds/yield/index.js +10 -4
- package/dist/components/hds/yield/index.js.map +1 -1
- package/dist/components/hds/yield/types.js +2 -0
- package/dist/components/hds/yield/types.js.map +1 -0
- package/dist/helpers/hds-link-to-models.js.map +1 -1
- package/package.json +11 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"body.js","sources":["../../../../src/components/hds/text/body.hbs","../../../../src/components/hds/text/body.
|
|
1
|
+
{"version":3,"file":"body.js","sources":["../../../../src/components/hds/text/body.hbs","../../../../src/components/hds/text/body.ts"],"sourcesContent":["import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{!\\n Copyright (c) HashiCorp, Inc.\\n SPDX-License-Identifier: MPL-2.0\\n}}\\n<Hds::Text\\n @group=\\\"body\\\"\\n @size={{this.size}}\\n @weight={{this.weight}}\\n @align={{@align}}\\n @color={{@color}}\\n @tag={{@tag}}\\n ...attributes\\n>{{yield}}</Hds::Text>\")","/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: MPL-2.0\n */\n\nimport Component from '@glimmer/component';\nimport { assert } from '@ember/debug';\nimport { HdsTextSizeValues, HdsTextWeightValues } from './types.ts';\nimport type {\n HdsTextAligns,\n HdsTextColors,\n HdsTextTags,\n HdsTextWeights,\n} from './types.ts';\n\n// notice: only some combinations of size + font-weight are allowed (per design specs)\n// see: https://www.figma.com/file/oQsMzMMnynfPWpMEt91OpH/HDS-Product---Foundations?node-id=1262%3A9192\n\n// Allow consumers to provide either string or number representation of size\ntype HdsTextBodySizeNumber = Extract<\n HdsTextSizeValues,\n | HdsTextSizeValues.OneHundred\n | HdsTextSizeValues.TwoHundred\n | HdsTextSizeValues.ThreeHundred\n>;\ntype HdsTextBodySizeString = `${HdsTextBodySizeNumber}`;\nexport type HdsTextBodySizes = HdsTextBodySizeNumber | HdsTextBodySizeString;\nexport const AVAILABLE_SIZES = [\n HdsTextSizeValues.ThreeHundred,\n HdsTextSizeValues.TwoHundred,\n HdsTextSizeValues.OneHundred,\n];\nexport const DEFAULT_SIZE = HdsTextSizeValues.TwoHundred;\n\nexport const DEFAULT_WEIGHT = HdsTextWeightValues.Regular;\nexport type HdsTextBodyWeight = Extract<\n HdsTextWeights,\n 'regular' | 'medium' | 'semibold'\n>;\nexport const AVAILABLE_WEIGHTS_PER_SIZE: Record<\n HdsTextBodySizes,\n HdsTextBodyWeight[]\n> = {\n 300: [\n HdsTextWeightValues.Regular,\n HdsTextWeightValues.Medium,\n HdsTextWeightValues.Semibold,\n ],\n 200: [\n HdsTextWeightValues.Regular,\n HdsTextWeightValues.Medium,\n HdsTextWeightValues.Semibold,\n ],\n 100: [\n HdsTextWeightValues.Regular,\n HdsTextWeightValues.Medium,\n HdsTextWeightValues.Semibold,\n ],\n};\n\nexport interface HdsTextBodySignature {\n Args: {\n size?: HdsTextBodySizes;\n color?: string | HdsTextColors;\n tag?: HdsTextTags;\n align?: HdsTextAligns;\n weight?: HdsTextBodyWeight;\n };\n Element:\n | HTMLSpanElement\n | HTMLHeadingElement\n | HTMLParagraphElement\n | HTMLDivElement;\n Blocks: {\n default: [];\n };\n}\n\nexport default class HdsTextBodyComponent extends Component<HdsTextBodySignature> {\n /**\n * Sets the \"size\" for the text\n * Accepted values: see AVAILABLE_SIZES\n *\n * @type {string}\n *\n * @param size\n */\n get size() {\n let { size = DEFAULT_SIZE } = this.args;\n\n // let's be a bit forgiving with the consumers\n if (typeof size === 'string') {\n size = parseInt(size, 10);\n }\n\n assert(\n `@size for \"Hds::Text::Body\" must be one of the following: ${AVAILABLE_SIZES.join(\n ', '\n )}; received: ${size}`,\n AVAILABLE_SIZES.includes(size)\n );\n\n return size;\n }\n\n /**\n * Sets the \"weight\" for the text\n * Accepted values: see AVAILABLE_WEIGHTS_PER_SIZE\n *\n * @type {string}\n *\n * @param variant\n */\n get weight() {\n const { weight = DEFAULT_WEIGHT } = this.args;\n\n const availableWeights = AVAILABLE_WEIGHTS_PER_SIZE[this.size];\n\n assert(\n `@weight for \"Hds::Text::Body\" with @size=${\n this.size\n } must be one of the following: ${availableWeights.join(\n ', '\n )}; received: ${weight}`,\n availableWeights.includes(weight)\n );\n\n return weight;\n }\n}\n"],"names":["AVAILABLE_SIZES","HdsTextSizeValues","ThreeHundred","TwoHundred","OneHundred","DEFAULT_SIZE","DEFAULT_WEIGHT","HdsTextWeightValues","Regular","AVAILABLE_WEIGHTS_PER_SIZE","Medium","Semibold","HdsTextBodyComponent","Component","size","args","parseInt","assert","join","includes","weight","availableWeights","setComponentTemplate","TEMPLATE"],"mappings":";;;;;;AACA,eAAe,kBAAkB,CAAC,mQAAmQ;;ACDrS;AACA;AACA;AACA;;AAwBaA,MAAAA,eAAe,GAAG,CAC7BC,iBAAiB,CAACC,YAAY,EAC9BD,iBAAiB,CAACE,UAAU,EAC5BF,iBAAiB,CAACG,UAAU,EAC7B;AACYC,MAAAA,YAAY,GAAGJ,iBAAiB,CAACE,WAAU;AAE3CG,MAAAA,cAAc,GAAGC,mBAAmB,CAACC,QAAO;AAKlD,MAAMC,0BAGZ,GAAG;AACF,EAAA,GAAG,EAAE,CACHF,mBAAmB,CAACC,OAAO,EAC3BD,mBAAmB,CAACG,MAAM,EAC1BH,mBAAmB,CAACI,QAAQ,CAC7B;AACD,EAAA,GAAG,EAAE,CACHJ,mBAAmB,CAACC,OAAO,EAC3BD,mBAAmB,CAACG,MAAM,EAC1BH,mBAAmB,CAACI,QAAQ,CAC7B;AACD,EAAA,GAAG,EAAE,CACHJ,mBAAmB,CAACC,OAAO,EAC3BD,mBAAmB,CAACG,MAAM,EAC1BH,mBAAmB,CAACI,QAAQ,CAAA;AAEhC,EAAC;AAoBc,MAAMC,oBAAoB,SAASC,SAAS,CAAuB;AAChF;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACE,IAAIC,IAAIA,GAAG;IACT,IAAI;AAAEA,MAAAA,IAAI,GAAGT,YAAAA;KAAc,GAAG,IAAI,CAACU,IAAI,CAAA;;AAEvC;AACA,IAAA,IAAI,OAAOD,IAAI,KAAK,QAAQ,EAAE;AAC5BA,MAAAA,IAAI,GAAGE,QAAQ,CAACF,IAAI,EAAE,EAAE,CAAC,CAAA;AAC3B,KAAA;AAEAG,IAAAA,MAAM,CACH,CAA4DjB,0DAAAA,EAAAA,eAAe,CAACkB,IAAI,CAC/E,IACF,CAAE,CAAA,YAAA,EAAcJ,IAAK,CAAA,CAAC,EACtBd,eAAe,CAACmB,QAAQ,CAACL,IAAI,CAC/B,CAAC,CAAA;AAED,IAAA,OAAOA,IAAI,CAAA;AACb,GAAA;;AAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACE,IAAIM,MAAMA,GAAG;IACX,MAAM;AAAEA,MAAAA,MAAM,GAAGd,cAAAA;KAAgB,GAAG,IAAI,CAACS,IAAI,CAAA;AAE7C,IAAA,MAAMM,gBAAgB,GAAGZ,0BAA0B,CAAC,IAAI,CAACK,IAAI,CAAC,CAAA;IAE9DG,MAAM,CACH,4CACC,IAAI,CAACH,IACN,CAAiCO,+BAAAA,EAAAA,gBAAgB,CAACH,IAAI,CACrD,IACF,CAAE,CAAcE,YAAAA,EAAAA,MAAO,EAAC,EACxBC,gBAAgB,CAACF,QAAQ,CAACC,MAAM,CAClC,CAAC,CAAA;AAED,IAAA,OAAOA,MAAM,CAAA;AACf,GAAA;AACF,CAAA;AAACE,oBAAA,CAAAC,QAAA,EAnDoBX,oBAAoB,CAAA;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { assert } from '@ember/debug';
|
|
3
|
+
import { HdsTextSizeValues, HdsTextWeightValues } from './types.js';
|
|
3
4
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
4
5
|
import { setComponentTemplate } from '@ember/component';
|
|
5
6
|
|
|
@@ -10,13 +11,13 @@ var TEMPLATE = precompileTemplate("{{!\n Copyright (c) HashiCorp, Inc.\n SPDX-
|
|
|
10
11
|
* SPDX-License-Identifier: MPL-2.0
|
|
11
12
|
*/
|
|
12
13
|
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const DEFAULT_WEIGHT =
|
|
14
|
+
const AVAILABLE_SIZES = [HdsTextSizeValues.ThreeHundred, HdsTextSizeValues.TwoHundred, HdsTextSizeValues.OneHundred];
|
|
15
|
+
const DEFAULT_SIZE = HdsTextSizeValues.TwoHundred;
|
|
16
|
+
const DEFAULT_WEIGHT = HdsTextWeightValues.Regular;
|
|
16
17
|
const AVAILABLE_WEIGHTS_PER_SIZE = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
[HdsTextSizeValues.ThreeHundred]: [HdsTextWeightValues.Regular, HdsTextWeightValues.Bold],
|
|
19
|
+
[HdsTextSizeValues.TwoHundred]: [HdsTextWeightValues.Regular, HdsTextWeightValues.Bold],
|
|
20
|
+
[HdsTextSizeValues.OneHundred]: [HdsTextWeightValues.Regular, HdsTextWeightValues.Bold]
|
|
20
21
|
};
|
|
21
22
|
class HdsTextCodeComponent extends Component {
|
|
22
23
|
/**
|
|
@@ -49,7 +50,7 @@ class HdsTextCodeComponent extends Component {
|
|
|
49
50
|
* @param variant
|
|
50
51
|
*/
|
|
51
52
|
get weight() {
|
|
52
|
-
|
|
53
|
+
const {
|
|
53
54
|
weight = DEFAULT_WEIGHT
|
|
54
55
|
} = this.args;
|
|
55
56
|
const availableWeights = AVAILABLE_WEIGHTS_PER_SIZE[this.size];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code.js","sources":["../../../../src/components/hds/text/code.hbs","../../../../src/components/hds/text/code.
|
|
1
|
+
{"version":3,"file":"code.js","sources":["../../../../src/components/hds/text/code.hbs","../../../../src/components/hds/text/code.ts"],"sourcesContent":["import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{!\\n Copyright (c) HashiCorp, Inc.\\n SPDX-License-Identifier: MPL-2.0\\n}}\\n<Hds::Text\\n @group=\\\"code\\\"\\n @size={{this.size}}\\n @weight={{this.weight}}\\n @align={{@align}}\\n @color={{@color}}\\n @tag={{@tag}}\\n ...attributes\\n>{{yield}}</Hds::Text>\")","/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: MPL-2.0\n */\n\nimport Component from '@glimmer/component';\nimport { assert } from '@ember/debug';\nimport { HdsTextSizeValues, HdsTextWeightValues } from './types.ts';\nimport type {\n HdsTextAligns,\n HdsTextColors,\n HdsTextTags,\n HdsTextWeights,\n} from './types.ts';\n\n// notice: only some combinations of size + font-weight are allowed (per design specs)\n// see: https://www.figma.com/file/oQsMzMMnynfPWpMEt91OpH/HDS-Product---Foundations?node-id=1262%3A9192\n\n// Allow consumers to provide either string or number representation of size\ntype HdsTextCodeSizeNumber = Extract<\n HdsTextSizeValues,\n | HdsTextSizeValues.OneHundred\n | HdsTextSizeValues.TwoHundred\n | HdsTextSizeValues.ThreeHundred\n>;\ntype HdsTextCodeSizeString = `${HdsTextCodeSizeNumber}`;\nexport type HdsTextCodeSizes = HdsTextCodeSizeNumber | HdsTextCodeSizeString;\nexport const AVAILABLE_SIZES = [\n HdsTextSizeValues.ThreeHundred,\n HdsTextSizeValues.TwoHundred,\n HdsTextSizeValues.OneHundred,\n];\nexport const DEFAULT_SIZE = HdsTextSizeValues.TwoHundred;\n\nexport const DEFAULT_WEIGHT = HdsTextWeightValues.Regular;\nexport type HdsTextCodeWeight = Extract<HdsTextWeights, 'regular' | 'bold'>;\nexport const AVAILABLE_WEIGHTS_PER_SIZE: Record<\n HdsTextCodeSizes,\n HdsTextCodeWeight[]\n> = {\n [HdsTextSizeValues.ThreeHundred]: [\n HdsTextWeightValues.Regular,\n HdsTextWeightValues.Bold,\n ],\n [HdsTextSizeValues.TwoHundred]: [\n HdsTextWeightValues.Regular,\n HdsTextWeightValues.Bold,\n ],\n [HdsTextSizeValues.OneHundred]: [\n HdsTextWeightValues.Regular,\n HdsTextWeightValues.Bold,\n ],\n};\n\nexport interface HdsTextCodeSignature {\n Args: {\n size?: HdsTextCodeSizes;\n color?: string | HdsTextColors;\n tag?: HdsTextTags;\n align?: HdsTextAligns;\n weight?: HdsTextCodeWeight;\n };\n Element:\n | HTMLSpanElement\n | HTMLHeadingElement\n | HTMLParagraphElement\n | HTMLDivElement;\n Blocks: {\n default: [];\n };\n}\n\nexport default class HdsTextCodeComponent extends Component<HdsTextCodeSignature> {\n /**\n * Sets the \"size\" for the text\n * Accepted values: see AVAILABLE_SIZES\n *\n * @type {string}\n *\n * @param size\n */\n get size() {\n let { size = DEFAULT_SIZE } = this.args;\n\n // let's be a bit forgiving with the consumers\n if (typeof size === 'string') {\n size = parseInt(size, 10);\n }\n\n assert(\n `@size for \"Hds::Text::Code\" must be one of the following: ${AVAILABLE_SIZES.join(\n ', '\n )}; received: ${size}`,\n AVAILABLE_SIZES.includes(size)\n );\n\n return size;\n }\n\n /**\n * Sets the \"weight\" for the text\n * Accepted values: see AVAILABLE_WEIGHTS_PER_SIZE\n *\n * @type {string}\n *\n * @param variant\n */\n get weight() {\n const { weight = DEFAULT_WEIGHT } = this.args;\n\n const availableWeights = AVAILABLE_WEIGHTS_PER_SIZE[this.size];\n\n assert(\n `@weight for \"Hds::Text::Code\" with @size=${\n this.size\n } must be one of the following: ${availableWeights.join(\n ', '\n )}; received: ${weight}`,\n availableWeights.includes(weight)\n );\n\n return weight;\n }\n}\n"],"names":["AVAILABLE_SIZES","HdsTextSizeValues","ThreeHundred","TwoHundred","OneHundred","DEFAULT_SIZE","DEFAULT_WEIGHT","HdsTextWeightValues","Regular","AVAILABLE_WEIGHTS_PER_SIZE","Bold","HdsTextCodeComponent","Component","size","args","parseInt","ass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A;AACb,GAAA;;AAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACE,IAAIM,MAAMA,GAAG;IACX,MAAM;AAAEA,MAAAA,MAAM,GAAGb,cAAAA;KAAgB,GAAG,IAAI,CAACQ,IAAI,CAAA;AAE7C,IAAA,MAAMM,gBAAgB,GAAGX,0BAA0B,CAAC,IAAI,CAACI,IAAI,CAAC,CAAA;IAE9DG,MAAM,CACH,4CACC,IAAI,CAACH,IACN,CAAiCO,+BAAAA,EAAAA,gBAAgB,CAACH,IAAI,CACrD,IACF,CAAE,CAAcE,YAAAA,EAAAA,MAAO,EAAC,EACxBC,gBAAgB,CAACF,QAAQ,CAACC,MAAM,CAClC,CAAC,CAAA;AAED,IAAA,OAAOA,MAAM,CAAA;AACf,GAAA;AACF,CAAA;AAACE,oBAAA,CAAAC,QAAA,EAnDoBX,oBAAoB,CAAA;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { assert } from '@ember/debug';
|
|
3
|
+
import { HdsTextSizeValues, HdsTextWeightValues } from './types.js';
|
|
3
4
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
4
5
|
import { setComponentTemplate } from '@ember/component';
|
|
5
6
|
|
|
@@ -10,21 +11,27 @@ var TEMPLATE = precompileTemplate("{{!\n Copyright (c) HashiCorp, Inc.\n SPDX-
|
|
|
10
11
|
* SPDX-License-Identifier: MPL-2.0
|
|
11
12
|
*/
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
// notice: only some combinations of size + font-weight are allowed (per design specs)
|
|
15
|
+
// see: https://www.figma.com/file/oQsMzMMnynfPWpMEt91OpH/HDS-Product---Foundations?node-id=1262%3A9192
|
|
16
|
+
|
|
17
|
+
const DEFAULT_SIZE = HdsTextSizeValues.TwoHundred;
|
|
18
|
+
|
|
19
|
+
// Filter out reverse mappings from enum
|
|
20
|
+
// https://www.typescriptlang.org/docs/handbook/enums.html#reverse-mappings
|
|
21
|
+
const AVAILABLE_SIZES = Object.values(HdsTextSizeValues).filter(v => typeof v === 'number');
|
|
15
22
|
const DEFAULT_WEIGHTS_PER_SIZE = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
[HdsTextSizeValues.FiveHundred]: HdsTextWeightValues.Bold,
|
|
24
|
+
[HdsTextSizeValues.FourHundred]: HdsTextWeightValues.Semibold,
|
|
25
|
+
[HdsTextSizeValues.ThreeHundred]: HdsTextWeightValues.Semibold,
|
|
26
|
+
[HdsTextSizeValues.TwoHundred]: HdsTextWeightValues.Semibold,
|
|
27
|
+
[HdsTextSizeValues.OneHundred]: HdsTextWeightValues.Medium
|
|
21
28
|
};
|
|
22
29
|
const AVAILABLE_WEIGHTS_PER_SIZE = {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
[HdsTextSizeValues.FiveHundred]: [HdsTextWeightValues.Bold],
|
|
31
|
+
[HdsTextSizeValues.FourHundred]: [HdsTextWeightValues.Medium, HdsTextWeightValues.Semibold, HdsTextWeightValues.Bold],
|
|
32
|
+
[HdsTextSizeValues.ThreeHundred]: [HdsTextWeightValues.Medium, HdsTextWeightValues.Semibold, HdsTextWeightValues.Bold],
|
|
33
|
+
[HdsTextSizeValues.TwoHundred]: [HdsTextWeightValues.Semibold],
|
|
34
|
+
[HdsTextSizeValues.OneHundred]: [HdsTextWeightValues.Medium]
|
|
28
35
|
};
|
|
29
36
|
class HdsTextDisplayComponent extends Component {
|
|
30
37
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.js","sources":["../../../../src/components/hds/text/display.hbs","../../../../src/components/hds/text/display.
|
|
1
|
+
{"version":3,"file":"display.js","sources":["../../../../src/components/hds/text/display.hbs","../../../../src/components/hds/text/display.ts"],"sourcesContent":["import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{!\\n Copyright (c) HashiCorp, Inc.\\n SPDX-License-Identifier: MPL-2.0\\n}}\\n<Hds::Text\\n @group=\\\"display\\\"\\n @size={{this.size}}\\n @weight={{this.weight}}\\n @align={{@align}}\\n @color={{@color}}\\n @tag={{@tag}}\\n ...attributes\\n>{{yield}}</Hds::Text>\")","/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: MPL-2.0\n */\n\nimport Component from '@glimmer/component';\nimport { assert } from '@ember/debug';\nimport { HdsTextSizeValues, HdsTextWeightValues } from './types.ts';\nimport type {\n HdsTextAligns,\n HdsTextColors,\n HdsTextSizes,\n HdsTextTags,\n HdsTextWeights,\n} from './types.ts';\n\n// notice: only some combinations of size + font-weight are allowed (per design specs)\n// see: https://www.figma.com/file/oQsMzMMnynfPWpMEt91OpH/HDS-Product---Foundations?node-id=1262%3A9192\n\nexport const DEFAULT_SIZE = HdsTextSizeValues.TwoHundred;\n\n// Filter out reverse mappings from enum\n// https://www.typescriptlang.org/docs/handbook/enums.html#reverse-mappings\nexport const AVAILABLE_SIZES = Object.values(HdsTextSizeValues).filter(\n (v) => typeof v === 'number'\n);\n\nexport type HdsTextDisplayWeight = Extract<\n HdsTextWeights,\n 'medium' | 'semibold' | 'bold'\n>;\nexport const DEFAULT_WEIGHTS_PER_SIZE: Record<\n HdsTextSizeValues,\n HdsTextDisplayWeight\n> = {\n [HdsTextSizeValues.FiveHundred]: HdsTextWeightValues.Bold,\n [HdsTextSizeValues.FourHundred]: HdsTextWeightValues.Semibold,\n [HdsTextSizeValues.ThreeHundred]: HdsTextWeightValues.Semibold,\n [HdsTextSizeValues.TwoHundred]: HdsTextWeightValues.Semibold,\n [HdsTextSizeValues.OneHundred]: HdsTextWeightValues.Medium,\n};\nexport const AVAILABLE_WEIGHTS_PER_SIZE: Record<\n HdsTextSizes,\n HdsTextDisplayWeight[]\n> = {\n [HdsTextSizeValues.FiveHundred]: [HdsTextWeightValues.Bold],\n [HdsTextSizeValues.FourHundred]: [\n HdsTextWeightValues.Medium,\n HdsTextWeightValues.Semibold,\n HdsTextWeightValues.Bold,\n ],\n [HdsTextSizeValues.ThreeHundred]: [\n HdsTextWeightValues.Medium,\n HdsTextWeightValues.Semibold,\n HdsTextWeightValues.Bold,\n ],\n [HdsTextSizeValues.TwoHundred]: [HdsTextWeightValues.Semibold],\n [HdsTextSizeValues.OneHundred]: [HdsTextWeightValues.Medium],\n};\n\nexport interface HdsTextDisplaySignature {\n Args: {\n size?: HdsTextSizes;\n color?: string | HdsTextColors;\n tag?: HdsTextTags;\n align?: HdsTextAligns;\n weight?: HdsTextDisplayWeight;\n };\n Element:\n | HTMLSpanElement\n | HTMLHeadingElement\n | HTMLParagraphElement\n | HTMLDivElement;\n Blocks: {\n default: [];\n };\n}\n\nexport default class HdsTextDisplayComponent extends Component<HdsTextDisplaySignature> {\n /**\n * Sets the \"size\" for the text\n * Accepted values: see AVAILABLE_SIZES\n *\n * @type {string}\n *\n * @param size\n */\n get size() {\n let { size = DEFAULT_SIZE } = this.args;\n\n // let's be a bit forgiving with the consumers\n if (typeof size === 'string') {\n size = parseInt(size, 10);\n }\n\n assert(\n `@size for \"Hds::Text::Display\" must be one of the following: ${AVAILABLE_SIZES.join(\n ', '\n )}; received: ${size}`,\n AVAILABLE_SIZES.includes(size)\n );\n\n return size;\n }\n\n /**\n * Sets the \"weight\" for the text\n * Accepted values: see AVAILABLE_WEIGHTS_PER_SIZE\n *\n * @type {string}\n *\n * @param variant\n */\n get weight() {\n let { weight } = this.args;\n\n if (weight) {\n const availableWeights = AVAILABLE_WEIGHTS_PER_SIZE[this.size];\n assert(\n `@weight for \"Hds::Text::Display\" with @size=${\n this.size\n } must be one of the following: ${availableWeights.join(\n ', '\n )}; received: ${weight}`,\n availableWeights.includes(weight)\n );\n } else {\n // use the default (first item in the array)\n weight = DEFAULT_WEIGHTS_PER_SIZE[this.size];\n }\n\n return weight;\n }\n}\n"],"names":["DEFAULT_SIZE","HdsTextSizeValues","TwoHundred","AVAILABLE_SIZES","Object","values","filter","v","DEFAULT_WEIGHTS_PER_SIZE","FiveHundred","HdsTextWeightValues","Bold","FourHundred","Semibold","ThreeHundred","OneHundred","Medium","AVAILABLE_WEIGHTS_PER_SIZE","HdsTextDisplayComponent","Component","size","args","parseInt","assert","join","includes","weight","availableWeights","setComponentTemplate","TEMPLATE"],"mappings":";;;;;;AACA,eAAe,kBAAkB,CAAC,sQAAsQ;;ACDxS;AACA;AACA;AACA;;AAaA;AACA;;AAEaA,MAAAA,YAAY,GAAGC,iBAAiB,CAACC,WAAU;;AAExD;AACA;MACaC,eAAe,GAAGC,MAAM,CAACC,MAAM,CAACJ,iBAAiB,CAAC,CAACK,MAAM,CACnEC,CAAC,IAAK,OAAOA,CAAC,KAAK,QACtB,EAAC;AAMM,MAAMC,wBAGZ,GAAG;AACF,EAAA,CAACP,iBAAiB,CAACQ,WAAW,GAAGC,mBAAmB,CAACC,IAAI;AACzD,EAAA,CAACV,iBAAiB,CAACW,WAAW,GAAGF,mBAAmB,CAACG,QAAQ;AAC7D,EAAA,CAACZ,iBAAiB,CAACa,YAAY,GAAGJ,mBAAmB,CAACG,QAAQ;AAC9D,EAAA,CAACZ,iBAAiB,CAACC,UAAU,GAAGQ,mBAAmB,CAACG,QAAQ;AAC5D,EAAA,CAACZ,iBAAiB,CAACc,UAAU,GAAGL,mBAAmB,CAACM,MAAAA;AACtD,EAAC;AACM,MAAMC,0BAGZ,GAAG;EACF,CAAChB,iBAAiB,CAACQ,WAAW,GAAG,CAACC,mBAAmB,CAACC,IAAI,CAAC;AAC3D,EAAA,CAACV,iBAAiB,CAACW,WAAW,GAAG,CAC/BF,mBAAmB,CAACM,MAAM,EAC1BN,mBAAmB,CAACG,QAAQ,EAC5BH,mBAAmB,CAACC,IAAI,CACzB;AACD,EAAA,CAACV,iBAAiB,CAACa,YAAY,GAAG,CAChCJ,mBAAmB,CAACM,MAAM,EAC1BN,mBAAmB,CAACG,QAAQ,EAC5BH,mBAAmB,CAACC,IAAI,CACzB;EAC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I,CAACY,IAAI,CAAC,CAAA;AAC9C,KAAA;AAEA,IAAA,OAAOM,MAAM,CAAA;AACf,GAAA;AACF,CAAA;AAACE,oBAAA,CAAAC,QAAA,EAvDoBX,uBAAuB,CAAA;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { assert } from '@ember/debug';
|
|
3
|
+
import { HdsTextColorValues, HdsTextAlignValues } from './types.js';
|
|
3
4
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
4
5
|
import { setComponentTemplate } from '@ember/component';
|
|
5
6
|
|
|
@@ -10,8 +11,11 @@ var TEMPLATE = precompileTemplate("{{!\n Copyright (c) HashiCorp, Inc.\n SPDX-
|
|
|
10
11
|
* SPDX-License-Identifier: MPL-2.0
|
|
11
12
|
*/
|
|
12
13
|
|
|
13
|
-
const
|
|
14
|
-
const
|
|
14
|
+
const AVAILABLE_COLORS = Object.values(HdsTextColorValues);
|
|
15
|
+
const AVAILABLE_ALIGNS = Object.values(HdsTextAlignValues);
|
|
16
|
+
|
|
17
|
+
// A union of all types in the HTMLElementTagNameMap interface
|
|
18
|
+
|
|
15
19
|
class HdsTextIndexComponent extends Component {
|
|
16
20
|
/**
|
|
17
21
|
* Get a tag to render based on the `@tag` argument passed or the value of `this.size` (via mapping)
|
|
@@ -20,7 +24,7 @@ class HdsTextIndexComponent extends Component {
|
|
|
20
24
|
* @return {string} The html tag to use in the dynamic render of the component
|
|
21
25
|
*/
|
|
22
26
|
get componentTag() {
|
|
23
|
-
|
|
27
|
+
const {
|
|
24
28
|
tag = 'span'
|
|
25
29
|
} = this.args;
|
|
26
30
|
return tag;
|
|
@@ -35,7 +39,7 @@ class HdsTextIndexComponent extends Component {
|
|
|
35
39
|
* @param variant
|
|
36
40
|
*/
|
|
37
41
|
get variant() {
|
|
38
|
-
|
|
42
|
+
const {
|
|
39
43
|
group,
|
|
40
44
|
size
|
|
41
45
|
} = this.args;
|
|
@@ -53,7 +57,7 @@ class HdsTextIndexComponent extends Component {
|
|
|
53
57
|
* @type {string}
|
|
54
58
|
*/
|
|
55
59
|
get align() {
|
|
56
|
-
|
|
60
|
+
const {
|
|
57
61
|
align
|
|
58
62
|
} = this.args;
|
|
59
63
|
if (align) {
|
|
@@ -70,10 +74,10 @@ class HdsTextIndexComponent extends Component {
|
|
|
70
74
|
* @type {string}
|
|
71
75
|
*/
|
|
72
76
|
get predefinedColor() {
|
|
73
|
-
|
|
77
|
+
const {
|
|
74
78
|
color
|
|
75
79
|
} = this.args;
|
|
76
|
-
if (AVAILABLE_COLORS.includes(color)) {
|
|
80
|
+
if (color && AVAILABLE_COLORS.includes(color)) {
|
|
77
81
|
return color;
|
|
78
82
|
} else {
|
|
79
83
|
return undefined;
|
|
@@ -87,10 +91,10 @@ class HdsTextIndexComponent extends Component {
|
|
|
87
91
|
* @type {string}
|
|
88
92
|
*/
|
|
89
93
|
get customColor() {
|
|
90
|
-
|
|
94
|
+
const {
|
|
91
95
|
color
|
|
92
96
|
} = this.args;
|
|
93
|
-
if (!AVAILABLE_COLORS.includes(color)) {
|
|
97
|
+
if (color && !AVAILABLE_COLORS.includes(color)) {
|
|
94
98
|
return color;
|
|
95
99
|
} else {
|
|
96
100
|
return undefined;
|
|
@@ -103,7 +107,7 @@ class HdsTextIndexComponent extends Component {
|
|
|
103
107
|
* @return {string} The "class" attribute to apply to the component.
|
|
104
108
|
*/
|
|
105
109
|
get classNames() {
|
|
106
|
-
|
|
110
|
+
const classes = ['hds-text'];
|
|
107
111
|
|
|
108
112
|
// add a (helper) class based on the "group + size" variant
|
|
109
113
|
classes.push(`hds-typography-${this.variant}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/hds/text/index.hbs","../../../../src/components/hds/text/index.
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/hds/text/index.hbs","../../../../src/components/hds/text/index.ts"],"sourcesContent":["import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{!\\n Copyright (c) HashiCorp, Inc.\\n SPDX-License-Identifier: MPL-2.0\\n}}\\n{{! IMPORTANT: we removed any extra newlines before/after the `let` to reduce the issues with unexpected whitespaces (see https://github.com/hashicorp/design-system/pull/1652) }}\\n{{#let (element this.componentTag) as |Tag|}}<Tag\\n class={{this.classNames}}\\n {{style color=this.customColor}}\\n ...attributes\\n >{{yield}}</Tag>{{/let}}\")","/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: MPL-2.0\n */\n\nimport Component from '@glimmer/component';\nimport { assert } from '@ember/debug';\nimport { HdsTextAlignValues, HdsTextColorValues } from './types.ts';\nimport type {\n HdsTextAligns,\n HdsTextColors,\n HdsTextGroups,\n HdsTextSizes,\n HdsTextTags,\n HdsTextWeights,\n} from './types.ts';\n\nexport const AVAILABLE_COLORS: string[] = Object.values(HdsTextColorValues);\nexport const AVAILABLE_ALIGNS: string[] = Object.values(HdsTextAlignValues);\n\n// A union of all types in the HTMLElementTagNameMap interface\ntype AvailableElements = HTMLElementTagNameMap[keyof HTMLElementTagNameMap];\n\nexport interface HdsTextIndexSignature {\n Args: {\n size: HdsTextSizes;\n group: HdsTextGroups;\n color?: string | HdsTextColors;\n tag?: HdsTextTags;\n align?: HdsTextAligns;\n weight?: HdsTextWeights;\n };\n Element: AvailableElements;\n Blocks: {\n default: [];\n };\n}\n\nexport default class HdsTextIndexComponent extends Component<HdsTextIndexSignature> {\n /**\n * Get a tag to render based on the `@tag` argument passed or the value of `this.size` (via mapping)\n *\n * @method #componentTag\n * @return {string} The html tag to use in the dynamic render of the component\n */\n get componentTag(): HdsTextTags {\n const { tag = 'span' } = this.args;\n\n return tag;\n }\n\n /**\n * Sets the \"variant\" (style) for the text\n * Accepted values: see AVAILABLE_VARIANTS\n *\n * @type {string}\n *\n * @param variant\n */\n get variant() {\n const { group, size } = this.args;\n\n // notice: for performance reasons we don't do any other extra check on these values\n // we assume they've already been validated by the \"parent\" components\n return `${group}-${size}`;\n }\n\n /**\n * Sets the alignment of the text\n * Accepted values: see AVAILABLE_ALIGNS\n *\n * @param align\n * @type {string}\n */\n get align() {\n const { align } = this.args;\n\n if (align) {\n assert(\n `@align for \"Hds::Text\" must be one of the following: ${AVAILABLE_ALIGNS.join(\n ', '\n )}; received: ${align}`,\n AVAILABLE_ALIGNS.includes(align)\n );\n }\n\n return align;\n }\n\n /**\n * Sets the color of the text as pre-defined value\n * Accepted values: see AVAILABLE_COLORS\n *\n * @param color\n * @type {string}\n */\n get predefinedColor() {\n const { color } = this.args;\n\n if (color && AVAILABLE_COLORS.includes(color)) {\n return color;\n } else {\n return undefined;\n }\n }\n\n /**\n * Sets the color of the text as custom value (via inline style)\n *\n * @param color\n * @type {string}\n */\n get customColor() {\n const { color } = this.args;\n\n if (color && !AVAILABLE_COLORS.includes(color)) {\n return color;\n } else {\n return undefined;\n }\n }\n\n /**\n * Get the class names to apply to the component.\n * @method #classNames\n * @return {string} The \"class\" attribute to apply to the component.\n */\n get classNames() {\n const classes = ['hds-text'];\n\n // add a (helper) class based on the \"group + size\" variant\n classes.push(`hds-typography-${this.variant}`);\n\n // add a (helper) class based on the @weight argument\n if (this.args.weight) {\n classes.push(`hds-font-weight-${this.args.weight}`);\n }\n\n // add a class based on the @align argument\n if (this.align) {\n classes.push(`hds-text--align-${this.align}`);\n }\n\n // add a (helper) class based on the @color argument (if pre-defined)\n if (this.predefinedColor) {\n classes.push(`hds-foreground-${this.predefinedColor}`);\n }\n\n return classes.join(' ');\n }\n}\n"],"names":["AVAILABLE_COLORS","Object","values","HdsTextColorValues","AVAILABLE_ALIGNS","HdsTextAlignValues","HdsTextIndexComponent","Component","componentTag","tag","args","variant","group","size","align","assert","join","includes","predefinedColor","color","undefined","customColor","classNames","classes","push","weight","setComponentTemplate","TEMPLATE"],"mappings":";;;;;;AACA,eAAe,kBAAkB,CAAC,yaAAya;;ACD3c;AACA;AACA;AACA;;AAcO,MAAMA,gBAA0B,GAAGC,MAAM,C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
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
let HdsTextColorValues = /*#__PURE__*/function (HdsTextColorValues) {
|
|
7
|
+
HdsTextColorValues["Primary"] = "primary";
|
|
8
|
+
HdsTextColorValues["Strong"] = "strong";
|
|
9
|
+
HdsTextColorValues["Faint"] = "faint";
|
|
10
|
+
HdsTextColorValues["Disabled"] = "disabled";
|
|
11
|
+
HdsTextColorValues["HighContrast"] = "high-contrast";
|
|
12
|
+
HdsTextColorValues["Action"] = "action";
|
|
13
|
+
HdsTextColorValues["ActionHover"] = "action-hover";
|
|
14
|
+
HdsTextColorValues["ActionActive"] = "action-active";
|
|
15
|
+
HdsTextColorValues["Highlight"] = "highlight";
|
|
16
|
+
HdsTextColorValues["HighlightOnSurface"] = "highlight-on-surface";
|
|
17
|
+
HdsTextColorValues["HighlightHighContrast"] = "highlight-high-contrast";
|
|
18
|
+
HdsTextColorValues["Success"] = "success";
|
|
19
|
+
HdsTextColorValues["SuccessOnSurface"] = "success-on-surface";
|
|
20
|
+
HdsTextColorValues["SuccessHighContrast"] = "success-high-contrast";
|
|
21
|
+
HdsTextColorValues["Warning"] = "warning";
|
|
22
|
+
HdsTextColorValues["WarningOnSurface"] = "warning-on-surface";
|
|
23
|
+
HdsTextColorValues["WarningHighContrast"] = "warning-high-contrast";
|
|
24
|
+
HdsTextColorValues["Critical"] = "critical";
|
|
25
|
+
HdsTextColorValues["CriticalOnSurface"] = "critical-on-surface";
|
|
26
|
+
HdsTextColorValues["CriticalHighContrast"] = "critical-high-contrast";
|
|
27
|
+
return HdsTextColorValues;
|
|
28
|
+
}({});
|
|
29
|
+
let HdsTextAlignValues = /*#__PURE__*/function (HdsTextAlignValues) {
|
|
30
|
+
HdsTextAlignValues["Left"] = "left";
|
|
31
|
+
HdsTextAlignValues["Center"] = "center";
|
|
32
|
+
HdsTextAlignValues["Right"] = "right";
|
|
33
|
+
return HdsTextAlignValues;
|
|
34
|
+
}({});
|
|
35
|
+
let HdsTextWeightValues = /*#__PURE__*/function (HdsTextWeightValues) {
|
|
36
|
+
HdsTextWeightValues["Regular"] = "regular";
|
|
37
|
+
HdsTextWeightValues["Medium"] = "medium";
|
|
38
|
+
HdsTextWeightValues["Semibold"] = "semibold";
|
|
39
|
+
HdsTextWeightValues["Bold"] = "bold";
|
|
40
|
+
return HdsTextWeightValues;
|
|
41
|
+
}({});
|
|
42
|
+
let HdsTextSizeValues = /*#__PURE__*/function (HdsTextSizeValues) {
|
|
43
|
+
HdsTextSizeValues[HdsTextSizeValues["FiveHundred"] = 500] = "FiveHundred";
|
|
44
|
+
HdsTextSizeValues[HdsTextSizeValues["FourHundred"] = 400] = "FourHundred";
|
|
45
|
+
HdsTextSizeValues[HdsTextSizeValues["ThreeHundred"] = 300] = "ThreeHundred";
|
|
46
|
+
HdsTextSizeValues[HdsTextSizeValues["TwoHundred"] = 200] = "TwoHundred";
|
|
47
|
+
HdsTextSizeValues[HdsTextSizeValues["OneHundred"] = 100] = "OneHundred";
|
|
48
|
+
return HdsTextSizeValues;
|
|
49
|
+
}({});
|
|
50
|
+
let HdsTextGroupValues = /*#__PURE__*/function (HdsTextGroupValues) {
|
|
51
|
+
HdsTextGroupValues["Code"] = "code";
|
|
52
|
+
HdsTextGroupValues["Display"] = "display";
|
|
53
|
+
HdsTextGroupValues["Body"] = "body";
|
|
54
|
+
return HdsTextGroupValues;
|
|
55
|
+
}({});
|
|
56
|
+
|
|
57
|
+
export { HdsTextAlignValues, HdsTextColorValues, HdsTextGroupValues, HdsTextSizeValues, HdsTextWeightValues };
|
|
58
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../../../src/components/hds/text/types.ts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: MPL-2.0\n */\n\nexport type HdsTextTags = keyof HTMLElementTagNameMap;\n\nexport enum HdsTextColorValues {\n Primary = 'primary',\n Strong = 'strong',\n Faint = 'faint',\n Disabled = 'disabled',\n HighContrast = 'high-contrast',\n Action = 'action',\n ActionHover = 'action-hover',\n ActionActive = 'action-active',\n Highlight = 'highlight',\n HighlightOnSurface = 'highlight-on-surface',\n HighlightHighContrast = 'highlight-high-contrast',\n Success = 'success',\n SuccessOnSurface = 'success-on-surface',\n SuccessHighContrast = 'success-high-contrast',\n Warning = 'warning',\n WarningOnSurface = 'warning-on-surface',\n WarningHighContrast = 'warning-high-contrast',\n Critical = 'critical',\n CriticalOnSurface = 'critical-on-surface',\n CriticalHighContrast = 'critical-high-contrast',\n}\nexport type HdsTextColors = `${HdsTextColorValues}`;\n\nexport enum HdsTextAlignValues {\n Left = 'left',\n Center = 'center',\n Right = 'right',\n}\nexport type HdsTextAligns = `${HdsTextAlignValues}`;\n\nexport enum HdsTextWeightValues {\n Regular = 'regular',\n Medium = 'medium',\n Semibold = 'semibold',\n Bold = 'bold',\n}\nexport type HdsTextWeights = `${HdsTextWeightValues}`;\n\nexport enum HdsTextSizeValues {\n FiveHundred = 500,\n FourHundred = 400,\n ThreeHundred = 300,\n TwoHundred = 200,\n OneHundred = 100,\n}\ntype HdsTextSizesString = `${HdsTextSizeValues}`;\ntype HdsTextSizesNumber =\n `${HdsTextSizeValues}` extends `${infer T extends number}` ? T : never;\nexport type HdsTextSizes = HdsTextSizesString | HdsTextSizesNumber;\n\nexport enum HdsTextGroupValues {\n Code = 'code',\n Display = 'display',\n Body = 'body',\n}\nexport type HdsTextGroups = `${HdsTextGroupValues}`;\n"],"names":["HdsTextColorValues","HdsTextAlignValues","HdsTextWeightValues","HdsTextSizeValues","HdsTextGroupValues"],"mappings":"AAAA;AACA;AACA;AACA;;AAIYA,IAAAA,kBAAkB,0BAAlBA,kBAAkB,EAAA;EAAlBA,kBAAkB,CAAA,SAAA,CAAA,GAAA,SAAA,CAAA;EAAlBA,kBAAkB,CAAA,QAAA,CAAA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AlBA,kBAAkB,CAAA;AAAA,CAAA,CAAA,EAAA;;;;"}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
2
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
3
3
|
import { setComponentTemplate } from '@ember/component';
|
|
4
4
|
|
|
5
|
-
var TEMPLATE = precompileTemplate("{{
|
|
5
|
+
var TEMPLATE = precompileTemplate("{{!\n Copyright (c) HashiCorp, Inc.\n SPDX-License-Identifier: MPL-2.0\n}}\n{{! template-lint-disable no-yield-only }}\n{{yield}}");
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Copyright (c) HashiCorp, Inc.
|
|
9
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
10
|
+
*/
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
class HdsYieldComponent extends Component {}
|
|
13
|
+
setComponentTemplate(TEMPLATE, HdsYieldComponent);
|
|
14
|
+
|
|
15
|
+
export { HdsYieldComponent as default };
|
|
10
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/hds/yield/index.hbs","../../../../src/components/hds/yield/index.
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/hds/yield/index.hbs","../../../../src/components/hds/yield/index.ts"],"sourcesContent":["import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{!\\n Copyright (c) HashiCorp, Inc.\\n SPDX-License-Identifier: MPL-2.0\\n}}\\n{{! template-lint-disable no-yield-only }}\\n{{yield}}\")","/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: MPL-2.0\n */\n\nimport Component from '@glimmer/component';\nimport type { HdsYieldSignature } from './types';\n\nexport default class HdsYieldComponent extends Component<HdsYieldSignature> {}\n"],"names":["HdsYieldComponent","Component","setComponentTemplate","TEMPLATE"],"mappings":";;;;AACA,eAAe,kBAAkB,CAAC,qIAAqI;;ACDvK;AACA;AACA;AACA;;AAKe,MAAMA,iBAAiB,SAASC,SAAS,CAAoB,EAAA;AAAEC,oBAAA,CAAAC,QAAA,EAAzDH,iBAAiB,CAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hds-link-to-models.js","sources":["../../src/helpers/hds-link-to-models.ts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: MPL-2.0\n */\n\nimport { helper } from '@ember/component/helper';\nimport { assert } from '@ember/debug';\n\n/*\n * This helper can be used to support both @model and @models arguments when wrapping\n * the `<LinkTo>` component without it triggering assertions or having to use the component helper.\n *\n * The result of this helper should be passed into the `@models` argument of the `<LinkTo>` component:\n *\n * ```hbs\n * <LinkTo @models={{hds-link-to-models @model @models}} />\n * ```\n */\n\nexport function hdsLinkToModels<T>([model, models]: [T | undefined
|
|
1
|
+
{"version":3,"file":"hds-link-to-models.js","sources":["../../src/helpers/hds-link-to-models.ts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: MPL-2.0\n */\n\nimport { helper } from '@ember/component/helper';\nimport { assert } from '@ember/debug';\n\n/*\n * This helper can be used to support both @model and @models arguments when wrapping\n * the `<LinkTo>` component without it triggering assertions or having to use the component helper.\n *\n * The result of this helper should be passed into the `@models` argument of the `<LinkTo>` component:\n *\n * ```hbs\n * <LinkTo @models={{hds-link-to-models @model @models}} />\n * ```\n */\n\nexport function hdsLinkToModels<T>([model, models]: [\n T | undefined,\n T[] | undefined\n]) {\n assert(\n 'You cannot provide both the `@model` and `@models` arguments to the component.',\n !model || !models\n );\n\n if (model) {\n return [model];\n } else if (models) {\n return models;\n } else {\n return [];\n }\n}\n\nconst hdsLinkToModelsHelper = helper(hdsLinkToModels);\nexport default hdsLinkToModelsHelper;\n"],"names":["hdsLinkToModels","model","models","assert","hdsLinkToModelsHelper","helper"],"mappings":";;;AAAA;AACA;AACA;AACA;;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,SAASA,eAAeA,CAAI,CAACC,KAAK,EAAEC,MAAM,CAGhD,EAAE;EACDC,MAAM,CACJ,gFAAgF,EAChF,CAACF,KAAK,IAAI,CAACC,MACb,CAAC,CAAA;AAED,EAAA,IAAID,KAAK,EAAE;IACT,OAAO,CAACA,KAAK,CAAC,CAAA;GACf,MAAM,IAAIC,MAAM,EAAE;AACjB,IAAA,OAAOA,MAAM,CAAA;AACf,GAAC,MAAM;AACL,IAAA,OAAO,EAAE,CAAA;AACX,GAAA;AACF,CAAA;AAEA,MAAME,qBAAqB,GAAGC,MAAM,CAACL,eAAe;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashicorp/design-system-components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Helios Design System Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hashicorp",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"author": "HashiCorp Design Systems <design-systems@hashicorp.com>",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "rollup --config",
|
|
22
|
-
"prepublishOnly": "rollup --config",
|
|
22
|
+
"prepublishOnly": "yarn workspace @hashicorp/ember-flight-icons build && rollup --config && test -f 'dist/styles/@hashicorp/design-system-components.css' || (echo 'The pre-compiled CSS file was not found' && exit 1)",
|
|
23
23
|
"start": "rollup --config --watch --environment development",
|
|
24
24
|
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel \"lint:!(fix)\"",
|
|
25
25
|
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix",
|
|
@@ -70,6 +70,8 @@
|
|
|
70
70
|
"@types/ember-resolver": "^9.0.0",
|
|
71
71
|
"@types/qunit": "^2.19.7",
|
|
72
72
|
"@types/rsvp": "^4.0.6",
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
|
74
|
+
"@typescript-eslint/parser": "^6.14.0",
|
|
73
75
|
"ember-template-lint": "^4.18.2",
|
|
74
76
|
"ember-template-lint-plugin-prettier": "^4.2.0",
|
|
75
77
|
"eslint": "^8.52.0",
|
|
@@ -83,6 +85,7 @@
|
|
|
83
85
|
"rollup": "^4.9.0",
|
|
84
86
|
"rollup-plugin-copy": "^3.5.0",
|
|
85
87
|
"rollup-plugin-scss": "^4.0.0",
|
|
88
|
+
"rollup-plugin-ts": "^3.4.5",
|
|
86
89
|
"stylelint": "^15.11.0",
|
|
87
90
|
"stylelint-config-rational-order": "^0.1.2",
|
|
88
91
|
"stylelint-config-standard-scss": "^11.1.0",
|
|
@@ -105,6 +108,7 @@
|
|
|
105
108
|
"./components/hds/alert/description.js": "./dist/_app_/components/hds/alert/description.js",
|
|
106
109
|
"./components/hds/alert/index.js": "./dist/_app_/components/hds/alert/index.js",
|
|
107
110
|
"./components/hds/alert/title.js": "./dist/_app_/components/hds/alert/title.js",
|
|
111
|
+
"./components/hds/alert/types.js": "./dist/_app_/components/hds/alert/types.js",
|
|
108
112
|
"./components/hds/app-footer/copyright.js": "./dist/_app_/components/hds/app-footer/copyright.js",
|
|
109
113
|
"./components/hds/app-footer/index.js": "./dist/_app_/components/hds/app-footer/index.js",
|
|
110
114
|
"./components/hds/app-footer/item.js": "./dist/_app_/components/hds/app-footer/item.js",
|
|
@@ -129,6 +133,7 @@
|
|
|
129
133
|
"./components/hds/button-set/index.js": "./dist/_app_/components/hds/button-set/index.js",
|
|
130
134
|
"./components/hds/button/index.js": "./dist/_app_/components/hds/button/index.js",
|
|
131
135
|
"./components/hds/card/container.js": "./dist/_app_/components/hds/card/container.js",
|
|
136
|
+
"./components/hds/card/types.js": "./dist/_app_/components/hds/card/types.js",
|
|
132
137
|
"./components/hds/code-block/copy-button.js": "./dist/_app_/components/hds/code-block/copy-button.js",
|
|
133
138
|
"./components/hds/code-block/description.js": "./dist/_app_/components/hds/code-block/description.js",
|
|
134
139
|
"./components/hds/code-block/index.js": "./dist/_app_/components/hds/code-block/index.js",
|
|
@@ -192,8 +197,10 @@
|
|
|
192
197
|
"./components/hds/form/visibility-toggle/index.js": "./dist/_app_/components/hds/form/visibility-toggle/index.js",
|
|
193
198
|
"./components/hds/icon-tile/index.js": "./dist/_app_/components/hds/icon-tile/index.js",
|
|
194
199
|
"./components/hds/interactive/index.js": "./dist/_app_/components/hds/interactive/index.js",
|
|
200
|
+
"./components/hds/interactive/types.js": "./dist/_app_/components/hds/interactive/types.js",
|
|
195
201
|
"./components/hds/link/inline.js": "./dist/_app_/components/hds/link/inline.js",
|
|
196
202
|
"./components/hds/link/standalone.js": "./dist/_app_/components/hds/link/standalone.js",
|
|
203
|
+
"./components/hds/link/types.js": "./dist/_app_/components/hds/link/types.js",
|
|
197
204
|
"./components/hds/menu-primitive/index.js": "./dist/_app_/components/hds/menu-primitive/index.js",
|
|
198
205
|
"./components/hds/modal/body.js": "./dist/_app_/components/hds/modal/body.js",
|
|
199
206
|
"./components/hds/modal/footer.js": "./dist/_app_/components/hds/modal/footer.js",
|
|
@@ -247,9 +254,11 @@
|
|
|
247
254
|
"./components/hds/text/code.js": "./dist/_app_/components/hds/text/code.js",
|
|
248
255
|
"./components/hds/text/display.js": "./dist/_app_/components/hds/text/display.js",
|
|
249
256
|
"./components/hds/text/index.js": "./dist/_app_/components/hds/text/index.js",
|
|
257
|
+
"./components/hds/text/types.js": "./dist/_app_/components/hds/text/types.js",
|
|
250
258
|
"./components/hds/toast/index.js": "./dist/_app_/components/hds/toast/index.js",
|
|
251
259
|
"./components/hds/tooltip-button/index.js": "./dist/_app_/components/hds/tooltip-button/index.js",
|
|
252
260
|
"./components/hds/yield/index.js": "./dist/_app_/components/hds/yield/index.js",
|
|
261
|
+
"./components/hds/yield/types.js": "./dist/_app_/components/hds/yield/types.js",
|
|
253
262
|
"./helpers/hds-link-to-models.js": "./dist/_app_/helpers/hds-link-to-models.js",
|
|
254
263
|
"./helpers/hds-link-to-query.js": "./dist/_app_/helpers/hds-link-to-query.js",
|
|
255
264
|
"./modifiers/hds-clipboard.js": "./dist/_app_/modifiers/hds-clipboard.js",
|