@folkehelseinstituttet/designsystem 0.40.6 → 0.41.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/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@folkehelseinstituttet/designsystem",
4
- "version": "0.40.6",
4
+ "version": "0.41.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -4727,6 +4727,168 @@
4727
4727
  "events": []
4728
4728
  }
4729
4729
  },
4730
+ {
4731
+ "name": "fhi-select-item",
4732
+ "description": "## FHI Select Item\n\nhttps://designsystem.fhi.no/?path=/docs/komponenter-select--docs\n\nThe `<fhi-select-item>` component is used to represent an individual option within a `<fhi-select>` dropdown list.\nIt provides a labeled option element with selection state and value attribute.\n---\n\n\n### **Slot Section:**\n - _default_ - The default slot is used to provide text content for the `<fhi-select-item>` element.",
4733
+ "doc-url": "",
4734
+ "attributes": [
4735
+ {
4736
+ "name": "label",
4737
+ "description": "The label attribute of the select item. This property is used to provide a descriptive label for the select item. If not provided, the content of the `value` attribute will be used instead.",
4738
+ "value": { "type": "string | null", "default": "null" }
4739
+ },
4740
+ {
4741
+ "name": "selected",
4742
+ "description": "The selected attribute of the select item. This property is used to indicate whether the select item is selected or not.",
4743
+ "value": { "type": "boolean", "default": "false" }
4744
+ },
4745
+ {
4746
+ "name": "value",
4747
+ "description": "The value attribute of the select item. This property is used to identify the select item when submitting a form. If not provided, the text content will be used instead.",
4748
+ "value": { "type": "string | null", "default": "null" }
4749
+ }
4750
+ ],
4751
+ "slots": [
4752
+ {
4753
+ "name": "",
4754
+ "description": "The default slot is used to provide text content for the `<fhi-select-item>` element."
4755
+ }
4756
+ ],
4757
+ "events": [],
4758
+ "js": {
4759
+ "properties": [
4760
+ {
4761
+ "name": "label",
4762
+ "description": "The label attribute of the select item. This property is used to provide a descriptive label for the select item. If not provided, the content of the `value` attribute will be used instead.",
4763
+ "type": "string | null"
4764
+ },
4765
+ {
4766
+ "name": "selected",
4767
+ "description": "The selected attribute of the select item. This property is used to indicate whether the select item is selected or not.",
4768
+ "type": "boolean"
4769
+ },
4770
+ {
4771
+ "name": "value",
4772
+ "description": "The value attribute of the select item. This property is used to identify the select item when submitting a form. If not provided, the text content will be used instead.",
4773
+ "type": "string | null"
4774
+ }
4775
+ ],
4776
+ "events": []
4777
+ }
4778
+ },
4779
+ {
4780
+ "name": "fhi-select",
4781
+ "description": "## FHI Select\n\nhttps://designsystem.fhi.no/?path=/docs/komponenter-select--docs\n\nThe `<fhi-select>` component is used to create a dropdown list of options for users to choose from.\nIt provides a labeled select element (`fhi-select-item`) with optional placeholder text, status indication, and a message area for additional information or validation feedback.\n---\n\n\n### **Custom Events:**\n - **change** - Standard DOM event with the type `change`.\nThis event is dispatched when the chosen option of the select changes.\n- **input** - Standard DOM event with the type `input`.\nThis event is dispatched when the chosen option of the select changes.\n\n### **Slot Section:**\n - _default_ - The default slot is used to provide the options for the select element. Each option should be represented by a `<fhi-select-item>` element.",
4782
+ "doc-url": "",
4783
+ "attributes": [
4784
+ {
4785
+ "name": "disabled",
4786
+ "description": "The disabled attribute of the select element. This property is used to disable the select element.",
4787
+ "value": { "type": "boolean", "default": "false" }
4788
+ },
4789
+ {
4790
+ "name": "help-text",
4791
+ "description": "The message shown above the Select.\nThis is often used to provide additional information to the user.",
4792
+ "value": { "type": "string" }
4793
+ },
4794
+ {
4795
+ "name": "label",
4796
+ "description": "The label attribute of the select element. This property is used to provide a descriptive label for the select element.",
4797
+ "value": { "type": "string", "default": "''" }
4798
+ },
4799
+ {
4800
+ "name": "message",
4801
+ "description": "The message attribute of the select element. This property is used to provide a validation message for the select element.",
4802
+ "value": { "type": "string" }
4803
+ },
4804
+ {
4805
+ "name": "name",
4806
+ "description": "The name attribute of the select element. This property is used to identify the select element when submitting a form.",
4807
+ "value": { "type": "string", "default": "''" }
4808
+ },
4809
+ {
4810
+ "name": "status",
4811
+ "description": "The status attribute of the select element. This property is used to indicate the validation status of the select element.",
4812
+ "value": { "type": "'error' | undefined" }
4813
+ },
4814
+ {
4815
+ "name": "value",
4816
+ "description": "The value attribute of the select element. This property is used to identify the selected option when submitting a form.",
4817
+ "value": { "type": "string", "default": "''" }
4818
+ }
4819
+ ],
4820
+ "slots": [
4821
+ {
4822
+ "name": "",
4823
+ "description": "The default slot is used to provide the options for the select element. Each option should be represented by a `<fhi-select-item>` element."
4824
+ }
4825
+ ],
4826
+ "events": [
4827
+ {
4828
+ "name": "change",
4829
+ "type": "Event",
4830
+ "description": "Standard DOM event with the type `change`.\nThis event is dispatched when the chosen option of the select changes."
4831
+ },
4832
+ {
4833
+ "name": "input",
4834
+ "type": "Event",
4835
+ "description": "Standard DOM event with the type `input`.\nThis event is dispatched when the chosen option of the select changes."
4836
+ }
4837
+ ],
4838
+ "js": {
4839
+ "properties": [
4840
+ {
4841
+ "name": "disabled",
4842
+ "description": "The disabled attribute of the select element. This property is used to disable the select element.",
4843
+ "type": "boolean"
4844
+ },
4845
+ {
4846
+ "name": "helpText",
4847
+ "description": "The message shown above the Select.\nThis is often used to provide additional information to the user.",
4848
+ "type": "string"
4849
+ },
4850
+ {
4851
+ "name": "label",
4852
+ "description": "The label attribute of the select element. This property is used to provide a descriptive label for the select element.",
4853
+ "type": "string"
4854
+ },
4855
+ {
4856
+ "name": "message",
4857
+ "description": "The message attribute of the select element. This property is used to provide a validation message for the select element.",
4858
+ "type": "string"
4859
+ },
4860
+ {
4861
+ "name": "name",
4862
+ "description": "The name attribute of the select element. This property is used to identify the select element when submitting a form.",
4863
+ "type": "string"
4864
+ },
4865
+ { "name": "selectElement", "type": "HTMLSelectElement" },
4866
+ { "name": "slotElements", "type": "Array<HTMLElement>" },
4867
+ {
4868
+ "name": "status",
4869
+ "description": "The status attribute of the select element. This property is used to indicate the validation status of the select element.",
4870
+ "type": "'error' | undefined"
4871
+ },
4872
+ {
4873
+ "name": "value",
4874
+ "description": "The value attribute of the select element. This property is used to identify the selected option when submitting a form.",
4875
+ "type": "string"
4876
+ }
4877
+ ],
4878
+ "events": [
4879
+ {
4880
+ "name": "change",
4881
+ "type": "Event",
4882
+ "description": "Standard DOM event with the type `change`.\nThis event is dispatched when the chosen option of the select changes."
4883
+ },
4884
+ {
4885
+ "name": "input",
4886
+ "type": "Event",
4887
+ "description": "Standard DOM event with the type `input`.\nThis event is dispatched when the chosen option of the select changes."
4888
+ }
4889
+ ]
4890
+ }
4891
+ },
4730
4892
  {
4731
4893
  "name": "fhi-body",
4732
4894
  "description": "## FHI Body\n\nhttps://designsystem.fhi.no/?path=/story/komponenter-typography-body--preview\n\nThe `<fhi-body>` component is used to display body text in accordance with the FHI Design System guidelines.\nUse this component instead of the standard HTML paragraph element, `<p>`, to ensure consistent styling across your application.\n---\n\n\n### **Slot Section:**\n - _default_ - The content of the fhi-body component. This should be pure text.",
@@ -4735,7 +4897,7 @@
4735
4897
  {
4736
4898
  "name": "color",
4737
4899
  "description": "Sets color of the given text. It supports any valid CSS color value (e.g. hex, rgb, rgba, hsl, hsla, color names).\n\nIt is recommended to use Design Tokens for colors defined in the FHI Design System.\nSee: https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs\n\nExample:\n```html\n <fhi-body color=\"var(--fhi-color-primary-text-default)\">\n This text will be in the primary text color.\n </fhi-body>\n```",
4738
- "value": { "type": "string", "default": "'currentcolor'" }
4900
+ "value": { "type": "string" }
4739
4901
  },
4740
4902
  {
4741
4903
  "name": "size",
@@ -4777,7 +4939,7 @@
4777
4939
  {
4778
4940
  "name": "color",
4779
4941
  "description": "Sets color of the given text. It supports any valid CSS color value (e.g. hex, rgb, rgba, hsl, hsla, color names).\n\nIt is recommended to use Design Tokens for colors defined in the FHI Design System.\nSee: https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs\n\nExample:\n```html\n <fhi-display color=\"var(--fhi-color-primary-text-default)\">\n This text will be in the primary text color.\n </fhi-display>\n```",
4780
- "value": { "type": "string", "default": "'currentcolor'" }
4942
+ "value": { "type": "string" }
4781
4943
  },
4782
4944
  {
4783
4945
  "name": "level",
@@ -4829,7 +4991,7 @@
4829
4991
  {
4830
4992
  "name": "color",
4831
4993
  "description": "Sets color of the given text. It supports any valid CSS color value (e.g. hex, rgb, rgba, hsl, hsla, color names).\n\nIt is recommended to use Design Tokens for colors defined in the FHI Design System.\nSee: https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs\n\nExample:\n```html\n <fhi-headline color=\"var(--fhi-color-primary-text-default)\">\n This text will be in the primary text color.\n </fhi-headline>\n```",
4832
- "value": { "type": "string", "default": "'currentcolor'" }
4994
+ "value": { "type": "string" }
4833
4995
  },
4834
4996
  {
4835
4997
  "name": "level",
@@ -4881,7 +5043,7 @@
4881
5043
  {
4882
5044
  "name": "color",
4883
5045
  "description": "Sets color of the given text. It supports any valid CSS color value (e.g. hex, rgb, rgba, hsl, hsla, color names).\n\nIt is recommended to use Design Tokens for colors defined in the FHI Design System.\nSee: https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs\n\nExample:\n```html\n <fhi-label color=\"var(--fhi-color-primary-text-default)\">\n This text will be in the primary text color.\n </fhi-label>\n```",
4884
- "value": { "type": "string", "default": "'currentcolor'" }
5046
+ "value": { "type": "string" }
4885
5047
  },
4886
5048
  {
4887
5049
  "name": "size",
@@ -4923,7 +5085,7 @@
4923
5085
  {
4924
5086
  "name": "color",
4925
5087
  "description": "Sets color of the given text. It supports any valid CSS color value (e.g. hex, rgb, rgba, hsl, hsla, color names).\n\nIt is recommended to use Design Tokens for colors defined in the FHI Design System.\nSee: https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs\n\nExample:\n```html\n <fhi-title color=\"var(--fhi-color-primary-text-default)\">\n This text will be in the primary text color.\n </fhi-title>\n```",
4926
- "value": { "type": "string", "default": "'currentcolor'" }
5088
+ "value": { "type": "string" }
4927
5089
  },
4928
5090
  {
4929
5091
  "name": "level",