@folkehelseinstituttet/designsystem 0.40.7 → 0.41.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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.7",
4
+ "version": "0.41.1",
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.",