@arbor-education/design-system.components 0.15.0 → 0.16.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/.gather/skills/write-stories/SKILL.md +207 -271
- package/.storybook/preview.ts +5 -0
- package/CHANGELOG.md +23 -0
- package/README.md +8 -0
- package/component-library.md +144 -13
- package/dist/components/articleCard/ArticleCard.stories.d.ts +137 -11
- package/dist/components/articleCard/ArticleCard.stories.d.ts.map +1 -1
- package/dist/components/articleCard/ArticleCard.stories.js +358 -91
- package/dist/components/articleCard/ArticleCard.stories.js.map +1 -1
- package/dist/components/avatar/Avatar.stories.d.ts +6 -6
- package/dist/components/avatar/Avatar.stories.d.ts.map +1 -1
- package/dist/components/avatar/Avatar.stories.js +393 -49
- package/dist/components/avatar/Avatar.stories.js.map +1 -1
- package/dist/components/avatarGroup/AvatarGroup.stories.d.ts +9 -7
- package/dist/components/avatarGroup/AvatarGroup.stories.d.ts.map +1 -1
- package/dist/components/avatarGroup/AvatarGroup.stories.js +688 -65
- package/dist/components/avatarGroup/AvatarGroup.stories.js.map +1 -1
- package/dist/components/banner/Banner.stories.d.ts.map +1 -1
- package/dist/components/banner/Banner.stories.js +7 -3
- package/dist/components/banner/Banner.stories.js.map +1 -1
- package/dist/components/card/Card.stories.d.ts +105 -4
- package/dist/components/card/Card.stories.d.ts.map +1 -1
- package/dist/components/card/Card.stories.js +336 -18
- package/dist/components/card/Card.stories.js.map +1 -1
- package/dist/components/combobox/Combobox.stories.d.ts +134 -21
- package/dist/components/combobox/Combobox.stories.d.ts.map +1 -1
- package/dist/components/combobox/Combobox.stories.js +676 -175
- package/dist/components/combobox/Combobox.stories.js.map +1 -1
- package/dist/components/datePicker/DatePicker.stories.d.ts +119 -27
- package/dist/components/datePicker/DatePicker.stories.d.ts.map +1 -1
- package/dist/components/datePicker/DatePicker.stories.js +575 -47
- package/dist/components/datePicker/DatePicker.stories.js.map +1 -1
- package/dist/components/dateTimePicker/DateTimePicker.stories.d.ts +155 -39
- package/dist/components/dateTimePicker/DateTimePicker.stories.d.ts.map +1 -1
- package/dist/components/dateTimePicker/DateTimePicker.stories.js +674 -103
- package/dist/components/dateTimePicker/DateTimePicker.stories.js.map +1 -1
- package/dist/components/editableText/EditableText.stories.d.ts +53 -12
- package/dist/components/editableText/EditableText.stories.d.ts.map +1 -1
- package/dist/components/editableText/EditableText.stories.js +401 -64
- package/dist/components/editableText/EditableText.stories.js.map +1 -1
- package/dist/components/formField/FormField.d.ts +4 -0
- package/dist/components/formField/FormField.d.ts.map +1 -1
- package/dist/components/formField/FormField.js +2 -1
- package/dist/components/formField/FormField.js.map +1 -1
- package/dist/components/formField/FormField.test.js +5 -0
- package/dist/components/formField/FormField.test.js.map +1 -1
- package/dist/components/formField/fieldset/Fieldset.stories.d.ts +56 -4
- package/dist/components/formField/fieldset/Fieldset.stories.d.ts.map +1 -1
- package/dist/components/formField/fieldset/Fieldset.stories.js +534 -28
- package/dist/components/formField/fieldset/Fieldset.stories.js.map +1 -1
- package/dist/components/formField/inputs/checkbox/CheckboxGroup.d.ts +3 -1
- package/dist/components/formField/inputs/checkbox/CheckboxGroup.d.ts.map +1 -1
- package/dist/components/formField/inputs/checkbox/CheckboxInput.js +1 -1
- package/dist/components/formField/inputs/checkbox/CheckboxInput.js.map +1 -1
- package/dist/components/formField/inputs/colourPickerDropdown/ColourPickerDropdown.stories.d.ts +95 -1
- package/dist/components/formField/inputs/colourPickerDropdown/ColourPickerDropdown.stories.d.ts.map +1 -1
- package/dist/components/formField/inputs/colourPickerDropdown/ColourPickerDropdown.stories.js +386 -9
- package/dist/components/formField/inputs/colourPickerDropdown/ColourPickerDropdown.stories.js.map +1 -1
- package/dist/components/formField/inputs/radio/RadioButtonGroup.d.ts +6 -2
- package/dist/components/formField/inputs/radio/RadioButtonGroup.d.ts.map +1 -1
- package/dist/components/formField/inputs/radio/RadioButtonGroup.js.map +1 -1
- package/dist/components/formField/inputs/radio/RadioButtonInput.stories.d.ts.map +1 -1
- package/dist/components/formField/inputs/radio/RadioButtonInput.stories.js +61 -49
- package/dist/components/formField/inputs/radio/RadioButtonInput.stories.js.map +1 -1
- package/dist/components/formField/inputs/selectDropdown/SelectDropdown.stories.d.ts +188 -166
- package/dist/components/formField/inputs/selectDropdown/SelectDropdown.stories.d.ts.map +1 -1
- package/dist/components/formField/inputs/selectDropdown/SelectDropdown.stories.js +821 -160
- package/dist/components/formField/inputs/selectDropdown/SelectDropdown.stories.js.map +1 -1
- package/dist/components/formField/inputs/time/TimeInput.stories.d.ts +176 -22
- package/dist/components/formField/inputs/time/TimeInput.stories.d.ts.map +1 -1
- package/dist/components/formField/inputs/time/TimeInput.stories.js +851 -92
- package/dist/components/formField/inputs/time/TimeInput.stories.js.map +1 -1
- package/dist/components/formField/label/Label.stories.d.ts +54 -5
- package/dist/components/formField/label/Label.stories.d.ts.map +1 -1
- package/dist/components/formField/label/Label.stories.js +238 -4
- package/dist/components/formField/label/Label.stories.js.map +1 -1
- package/dist/components/icoText/IcoText.stories.d.ts +32 -6
- package/dist/components/icoText/IcoText.stories.d.ts.map +1 -1
- package/dist/components/icoText/IcoText.stories.js +309 -14
- package/dist/components/icoText/IcoText.stories.js.map +1 -1
- package/dist/components/kpiCard/KPICard.stories.d.ts +100 -2
- package/dist/components/kpiCard/KPICard.stories.d.ts.map +1 -1
- package/dist/components/kpiCard/KPICard.stories.js +354 -10
- package/dist/components/kpiCard/KPICard.stories.js.map +1 -1
- package/dist/components/kvpList/KVPList.stories.d.ts +57 -4
- package/dist/components/kvpList/KVPList.stories.d.ts.map +1 -1
- package/dist/components/kvpList/KVPList.stories.js +403 -10
- package/dist/components/kvpList/KVPList.stories.js.map +1 -1
- package/dist/components/modal/Modal.stories.d.ts +113 -9
- package/dist/components/modal/Modal.stories.d.ts.map +1 -1
- package/dist/components/modal/Modal.stories.js +633 -13
- package/dist/components/modal/Modal.stories.js.map +1 -1
- package/dist/components/modal/modalManager/ModalManager.stories.d.ts +34 -10
- package/dist/components/modal/modalManager/ModalManager.stories.d.ts.map +1 -1
- package/dist/components/modal/modalManager/ModalManager.stories.js +463 -85
- package/dist/components/modal/modalManager/ModalManager.stories.js.map +1 -1
- package/dist/components/pill/Pill.d.ts.map +1 -1
- package/dist/components/pill/Pill.js +1 -1
- package/dist/components/pill/Pill.js.map +1 -1
- package/dist/components/pill/Pill.stories.d.ts.map +1 -1
- package/dist/components/pill/Pill.stories.js +11 -13
- package/dist/components/pill/Pill.stories.js.map +1 -1
- package/dist/components/row/Row.stories.d.ts +1 -2
- package/dist/components/row/Row.stories.d.ts.map +1 -1
- package/dist/components/row/Row.stories.js +360 -50
- package/dist/components/row/Row.stories.js.map +1 -1
- package/dist/components/searchBar/SearchBar.stories.d.ts +52 -4
- package/dist/components/searchBar/SearchBar.stories.d.ts.map +1 -1
- package/dist/components/searchBar/SearchBar.stories.js +428 -36
- package/dist/components/searchBar/SearchBar.stories.js.map +1 -1
- package/dist/components/section/Section.stories.d.ts +11 -41
- package/dist/components/section/Section.stories.d.ts.map +1 -1
- package/dist/components/section/Section.stories.js +494 -56
- package/dist/components/section/Section.stories.js.map +1 -1
- package/dist/components/singleUser/SingleUser.stories.d.ts +5 -4
- package/dist/components/singleUser/SingleUser.stories.d.ts.map +1 -1
- package/dist/components/singleUser/SingleUser.stories.js +303 -31
- package/dist/components/singleUser/SingleUser.stories.js.map +1 -1
- package/dist/components/slideoverManager/SlideoverManager.stories.d.ts +32 -11
- package/dist/components/slideoverManager/SlideoverManager.stories.d.ts.map +1 -1
- package/dist/components/slideoverManager/SlideoverManager.stories.js +380 -84
- package/dist/components/slideoverManager/SlideoverManager.stories.js.map +1 -1
- package/dist/components/table/DSDefaultColDef.d.ts.map +1 -1
- package/dist/components/table/DSDefaultColDef.js +4 -3
- package/dist/components/table/DSDefaultColDef.js.map +1 -1
- package/dist/components/table/Table.d.ts +6 -1
- package/dist/components/table/Table.d.ts.map +1 -1
- package/dist/components/table/Table.js +8 -3
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/Table.stories.d.ts +3 -0
- package/dist/components/table/Table.stories.d.ts.map +1 -1
- package/dist/components/table/Table.stories.js +384 -5
- package/dist/components/table/Table.stories.js.map +1 -1
- package/dist/components/table/Table.test.js +30 -0
- package/dist/components/table/Table.test.js.map +1 -1
- package/dist/components/table/TableFooter.stories.d.ts +49 -0
- package/dist/components/table/TableFooter.stories.d.ts.map +1 -0
- package/dist/components/table/TableFooter.stories.js +137 -0
- package/dist/components/table/TableFooter.stories.js.map +1 -0
- package/dist/components/table/TableHeader.stories.d.ts +93 -0
- package/dist/components/table/TableHeader.stories.d.ts.map +1 -0
- package/dist/components/table/TableHeader.stories.js +176 -0
- package/dist/components/table/TableHeader.stories.js.map +1 -0
- package/dist/components/table/cellEditors/DateCellEditor.stories.d.ts +44 -0
- package/dist/components/table/cellEditors/DateCellEditor.stories.d.ts.map +1 -0
- package/dist/components/table/cellEditors/DateCellEditor.stories.js +186 -0
- package/dist/components/table/cellEditors/DateCellEditor.stories.js.map +1 -0
- package/dist/components/table/cellRenderers/BooleanCellRenderer.stories.d.ts +40 -0
- package/dist/components/table/cellRenderers/BooleanCellRenderer.stories.d.ts.map +1 -0
- package/dist/components/table/cellRenderers/BooleanCellRenderer.stories.js +209 -0
- package/dist/components/table/cellRenderers/BooleanCellRenderer.stories.js.map +1 -0
- package/dist/components/table/cellRenderers/ButtonCellRenderer.stories.d.ts +48 -0
- package/dist/components/table/cellRenderers/ButtonCellRenderer.stories.d.ts.map +1 -0
- package/dist/components/table/cellRenderers/ButtonCellRenderer.stories.js +244 -0
- package/dist/components/table/cellRenderers/ButtonCellRenderer.stories.js.map +1 -0
- package/dist/components/table/cellRenderers/CheckboxCellRenderer.d.ts.map +1 -1
- package/dist/components/table/cellRenderers/CheckboxCellRenderer.js +3 -1
- package/dist/components/table/cellRenderers/CheckboxCellRenderer.js.map +1 -1
- package/dist/components/table/cellRenderers/CheckboxCellRenderer.stories.d.ts +64 -0
- package/dist/components/table/cellRenderers/CheckboxCellRenderer.stories.d.ts.map +1 -0
- package/dist/components/table/cellRenderers/CheckboxCellRenderer.stories.js +241 -0
- package/dist/components/table/cellRenderers/CheckboxCellRenderer.stories.js.map +1 -0
- package/dist/components/table/cellRenderers/DefaultCellRenderer.stories.d.ts +55 -0
- package/dist/components/table/cellRenderers/DefaultCellRenderer.stories.d.ts.map +1 -0
- package/dist/components/table/cellRenderers/DefaultCellRenderer.stories.js +245 -0
- package/dist/components/table/cellRenderers/DefaultCellRenderer.stories.js.map +1 -0
- package/dist/components/table/cellRenderers/InlineTextCellRenderer.stories.d.ts +67 -0
- package/dist/components/table/cellRenderers/InlineTextCellRenderer.stories.d.ts.map +1 -0
- package/dist/components/table/cellRenderers/InlineTextCellRenderer.stories.js +221 -0
- package/dist/components/table/cellRenderers/InlineTextCellRenderer.stories.js.map +1 -0
- package/dist/components/table/cellRenderers/SelectDropdownCellRenderer.stories.d.ts +75 -0
- package/dist/components/table/cellRenderers/SelectDropdownCellRenderer.stories.d.ts.map +1 -0
- package/dist/components/table/cellRenderers/SelectDropdownCellRenderer.stories.js +270 -0
- package/dist/components/table/cellRenderers/SelectDropdownCellRenderer.stories.js.map +1 -0
- package/dist/components/table/columnFilters/BooleanFilter.stories.d.ts +57 -0
- package/dist/components/table/columnFilters/BooleanFilter.stories.d.ts.map +1 -0
- package/dist/components/table/columnFilters/BooleanFilter.stories.js +198 -0
- package/dist/components/table/columnFilters/BooleanFilter.stories.js.map +1 -0
- package/dist/components/table/columnFilters/TimeFilter.stories.d.ts +58 -0
- package/dist/components/table/columnFilters/TimeFilter.stories.d.ts.map +1 -0
- package/dist/components/table/columnFilters/TimeFilter.stories.js +207 -0
- package/dist/components/table/columnFilters/TimeFilter.stories.js.map +1 -0
- package/dist/components/table/pagination/PaginationPanel.stories.d.ts +113 -0
- package/dist/components/table/pagination/PaginationPanel.stories.d.ts.map +1 -0
- package/dist/components/table/pagination/PaginationPanel.stories.js +272 -0
- package/dist/components/table/pagination/PaginationPanel.stories.js.map +1 -0
- package/dist/components/table/tableControls/HideColumnsDropdown.d.ts.map +1 -1
- package/dist/components/table/tableControls/HideColumnsDropdown.js +9 -3
- package/dist/components/table/tableControls/HideColumnsDropdown.js.map +1 -1
- package/dist/components/table/tableControls/TableControls.stories.d.ts +151 -0
- package/dist/components/table/tableControls/TableControls.stories.d.ts.map +1 -0
- package/dist/components/table/tableControls/TableControls.stories.js +356 -0
- package/dist/components/table/tableControls/TableControls.stories.js.map +1 -0
- package/dist/components/table/tableControls/TableSettingsDropdown.d.ts +27 -1
- package/dist/components/table/tableControls/TableSettingsDropdown.d.ts.map +1 -1
- package/dist/components/table/tableControls/TableSettingsDropdown.js +53 -26
- package/dist/components/table/tableControls/TableSettingsDropdown.js.map +1 -1
- package/dist/components/table/tableControls/TableSettingsDropdown.test.d.ts +2 -0
- package/dist/components/table/tableControls/TableSettingsDropdown.test.d.ts.map +1 -0
- package/dist/components/table/tableControls/TableSettingsDropdown.test.js +178 -0
- package/dist/components/table/tableControls/TableSettingsDropdown.test.js.map +1 -0
- package/dist/components/tabs/Tabs.stories.d.ts +22 -4
- package/dist/components/tabs/Tabs.stories.d.ts.map +1 -1
- package/dist/components/tabs/Tabs.stories.js +398 -22
- package/dist/components/tabs/Tabs.stories.js.map +1 -1
- package/dist/components/tabs/TabsItem.stories.d.ts +54 -1
- package/dist/components/tabs/TabsItem.stories.d.ts.map +1 -1
- package/dist/components/tabs/TabsItem.stories.js +61 -9
- package/dist/components/tabs/TabsItem.stories.js.map +1 -1
- package/dist/components/toast/Toast.stories.d.ts +103 -10
- package/dist/components/toast/Toast.stories.d.ts.map +1 -1
- package/dist/components/toast/Toast.stories.js +409 -47
- package/dist/components/toast/Toast.stories.js.map +1 -1
- package/dist/components/toggle/Toggle.stories.d.ts +61 -46
- package/dist/components/toggle/Toggle.stories.d.ts.map +1 -1
- package/dist/components/toggle/Toggle.stories.js +311 -122
- package/dist/components/toggle/Toggle.stories.js.map +1 -1
- package/dist/components/tooltip/Tooltip.stories.d.ts +78 -6
- package/dist/components/tooltip/Tooltip.stories.d.ts.map +1 -1
- package/dist/components/tooltip/Tooltip.stories.js +413 -7
- package/dist/components/tooltip/Tooltip.stories.js.map +1 -1
- package/dist/components/tooltip/TooltipWrapper.stories.d.ts +71 -7
- package/dist/components/tooltip/TooltipWrapper.stories.d.ts.map +1 -1
- package/dist/components/tooltip/TooltipWrapper.stories.js +238 -10
- package/dist/components/tooltip/TooltipWrapper.stories.js.map +1 -1
- package/dist/index.css +8 -0
- package/dist/index.css.map +1 -1
- package/dist/utils/PopupParentContext.stories.d.ts +17 -0
- package/dist/utils/PopupParentContext.stories.d.ts.map +1 -0
- package/dist/utils/PopupParentContext.stories.js +266 -0
- package/dist/utils/PopupParentContext.stories.js.map +1 -0
- package/dist/utils/getDefaultPopupParent.d.ts.map +1 -1
- package/dist/utils/getDefaultPopupParent.js +6 -0
- package/dist/utils/getDefaultPopupParent.js.map +1 -1
- package/package.json +1 -1
- package/src/components/articleCard/ArticleCard.stories.tsx +524 -111
- package/src/components/avatar/Avatar.stories.tsx +504 -59
- package/src/components/avatarGroup/AvatarGroup.stories.tsx +977 -175
- package/src/components/banner/Banner.stories.tsx +7 -3
- package/src/components/card/Card.stories.tsx +466 -36
- package/src/components/combobox/Combobox.stories.tsx +867 -260
- package/src/components/datePicker/DatePicker.stories.tsx +777 -60
- package/src/components/dateTimePicker/DateTimePicker.stories.tsx +910 -132
- package/src/components/editableText/EditableText.stories.tsx +567 -91
- package/src/components/formField/FormField.test.tsx +6 -0
- package/src/components/formField/FormField.tsx +5 -0
- package/src/components/formField/fieldset/Fieldset.stories.tsx +761 -51
- package/src/components/formField/inputs/checkbox/CheckboxGroup.tsx +1 -1
- package/src/components/formField/inputs/checkbox/CheckboxInput.tsx +1 -1
- package/src/components/formField/inputs/colourPickerDropdown/ColourPickerDropdown.stories.tsx +504 -11
- package/src/components/formField/inputs/radio/RadioButtonGroup.tsx +17 -4
- package/src/components/formField/inputs/radio/RadioButtonInput.stories.tsx +71 -59
- package/src/components/formField/inputs/selectDropdown/SelectDropdown.stories.tsx +1079 -168
- package/src/components/formField/inputs/time/TimeInput.stories.tsx +1140 -104
- package/src/components/formField/label/Label.stories.tsx +317 -8
- package/src/components/icoText/IcoText.stories.tsx +442 -31
- package/src/components/kpiCard/KPICard.stories.tsx +475 -30
- package/src/components/kvpList/KVPList.stories.tsx +593 -26
- package/src/components/modal/Modal.stories.tsx +963 -26
- package/src/components/modal/modalManager/ModalManager.stories.tsx +612 -454
- package/src/components/pill/Pill.stories.tsx +11 -13
- package/src/components/pill/Pill.tsx +1 -0
- package/src/components/row/Row.stories.tsx +474 -58
- package/src/components/searchBar/SearchBar.stories.tsx +570 -38
- package/src/components/section/Section.stories.tsx +723 -70
- package/src/components/singleUser/SingleUser.stories.tsx +393 -34
- package/src/components/slideoverManager/SlideoverManager.stories.tsx +572 -342
- package/src/components/table/DSDefaultColDef.ts +25 -5
- package/src/components/table/Table.stories.tsx +460 -5
- package/src/components/table/Table.test.tsx +53 -0
- package/src/components/table/Table.tsx +9 -2
- package/src/components/table/TableFooter.stories.tsx +196 -0
- package/src/components/table/TableHeader.stories.tsx +251 -0
- package/src/components/table/cellEditors/DateCellEditor.stories.tsx +245 -0
- package/src/components/table/cellRenderers/BooleanCellRenderer.stories.tsx +278 -0
- package/src/components/table/cellRenderers/ButtonCellRenderer.stories.tsx +333 -0
- package/src/components/table/cellRenderers/CheckboxCellRenderer.stories.tsx +337 -0
- package/src/components/table/cellRenderers/CheckboxCellRenderer.tsx +5 -1
- package/src/components/table/cellRenderers/DefaultCellRenderer.stories.tsx +342 -0
- package/src/components/table/cellRenderers/InlineTextCellRenderer.stories.tsx +292 -0
- package/src/components/table/cellRenderers/SelectDropdownCellRenderer.stories.tsx +369 -0
- package/src/components/table/columnFilters/BooleanFilter.stories.tsx +268 -0
- package/src/components/table/columnFilters/TimeFilter.stories.tsx +281 -0
- package/src/components/table/pagination/PaginationPanel.stories.tsx +327 -0
- package/src/components/table/tableControls/HideColumnsDropdown.tsx +11 -2
- package/src/components/table/tableControls/TableControls.stories.tsx +415 -0
- package/src/components/table/tableControls/TableSettingsDropdown.test.tsx +207 -0
- package/src/components/table/tableControls/TableSettingsDropdown.tsx +103 -39
- package/src/components/tabs/Tabs.stories.tsx +540 -60
- package/src/components/tabs/TabsItem.stories.tsx +82 -8
- package/src/components/toast/Toast.stories.tsx +539 -77
- package/src/components/toggle/Toggle.stories.tsx +371 -135
- package/src/components/tooltip/Tooltip.stories.tsx +606 -15
- package/src/components/tooltip/TooltipWrapper.stories.tsx +348 -12
- package/src/docs/Contributing.mdx +241 -0
- package/src/docs/UsingComponents.mdx +93 -0
- package/src/docs/Welcome.mdx +68 -0
- package/src/global.scss +7 -0
- package/src/utils/PopupParentContext.stories.tsx +367 -0
- package/src/utils/getDefaultPopupParent.ts +6 -0
- package/.ralph/storybook-upgrade/knowledge.md +0 -308
- package/.ralph/storybook-upgrade/prd.json +0 -777
- package/.ralph/storybook-upgrade/progress.md +0 -342
- package/src/components/table/TableWIP.mdx +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeInput.stories.js","sourceRoot":"","sources":["../../../../../src/components/formField/inputs/time/TimeInput.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,SAAS,EAAuC,MAAM,aAAa,CAAC;AAE7E,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAU,CAAC;AAE3E,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,uCAAuC;IAC9C,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;QAClB,IAAI,EAAE;YACJ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QACvB,sBAAsB,EAAE,IAAI;KAC7B;IACD,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,KAAC,mBAAmB,OAAK,IAAI,GAAI;CAClD,EAAE,6KAA6K,CAAC,CAAC;AAElL,MAAM,CAAC,MAAM,kBAAkB,GAAU,eAAe,CAAC;IACvD,IAAI,EAAE;QACJ,YAAY,EAAE,OAAO;QACrB,WAAW,EAAE,QAAQ;KACtB;CACF,EAAE,+IAA+I,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"TimeInput.stories.js","sourceRoot":"","sources":["../../../../../src/components/formField/inputs/time/TimeInput.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EACL,QAAQ,EACR,OAAO,IAAI,UAAU,EACrB,QAAQ,EACR,OAAO,IAAI,UAAU,EACrB,OAAO,EACP,QAAQ,EACR,KAAK,GACN,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAkB,MAAM,aAAa,CAAC;AAExD,8EAA8E;AAC9E,oBAAoB;AACpB,8EAA8E;AAE9E,MAAM,iBAAiB,GAAG;IACxB,+FAA+F;IAC/F,yCAAyC;IACzC,EAAE;IACF,gGAAgG;IAChG,kGAAkG;IAClG,kGAAkG;IAClG,0BAA0B;IAC1B,EAAE;IACF,8FAA8F;IAC9F,iGAAiG;IACjG,8FAA8F;IAC9F,qCAAqC;IACrC,EAAE;IACF,mGAAmG;IACnG,qCAAqC;CACtC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,cAAc,GAAG;IACrB,iBAAiB;IACjB,EAAE;IACF,iGAAiG;IACjG,kFAAkF;IAClF,gGAAgG;IAChG,2EAA2E;IAC3E,+FAA+F;IAC/F,+CAA+C;IAC/C,EAAE;IACF,KAAK;IACL,EAAE;IACF,qBAAqB;IACrB,EAAE;IACF,6BAA6B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
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
declare function LabelDocsPage(): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: (props: import("react").HTMLProps<HTMLLabelElement>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
docs: {
|
|
10
|
+
page: typeof LabelDocsPage;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
tags: string[];
|
|
14
|
+
argTypes: {
|
|
15
|
+
children: {
|
|
16
|
+
control: "text";
|
|
17
|
+
description: string;
|
|
18
|
+
table: {
|
|
19
|
+
type: {
|
|
20
|
+
summary: string;
|
|
21
|
+
};
|
|
22
|
+
defaultValue: {
|
|
23
|
+
summary: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
htmlFor: {
|
|
28
|
+
control: "text";
|
|
29
|
+
description: string;
|
|
30
|
+
table: {
|
|
31
|
+
type: {
|
|
32
|
+
summary: string;
|
|
33
|
+
};
|
|
34
|
+
defaultValue: {
|
|
35
|
+
summary: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
className: {
|
|
40
|
+
control: "text";
|
|
41
|
+
description: string;
|
|
42
|
+
table: {
|
|
43
|
+
type: {
|
|
44
|
+
summary: string;
|
|
45
|
+
};
|
|
46
|
+
defaultValue: {
|
|
47
|
+
summary: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
7
51
|
};
|
|
8
52
|
};
|
|
9
53
|
export default meta;
|
|
54
|
+
type Story = StoryObj<typeof Label>;
|
|
55
|
+
export declare const Default: Story;
|
|
56
|
+
export declare const WithHtmlFor: Story;
|
|
57
|
+
export declare const WithDescription: Story;
|
|
58
|
+
export declare const LongText: Story;
|
|
10
59
|
//# sourceMappingURL=Label.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/formField/label/Label.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Label.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/formField/label/Label.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAW5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAiFhC,iBAAS,aAAa,4CAmBrB;AAMD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCoB,CAAC;AAE/B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAqDpC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KA8BzB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAkC7B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAgCtB,CAAC"}
|
|
@@ -1,12 +1,246 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Controls, Heading as DocHeading, Markdown, Primary as DocPrimary, Stories, Subtitle, Title, } from '@storybook/addon-docs/blocks';
|
|
3
|
+
import { TextInput } from '../../formField/inputs/text/TextInput';
|
|
1
4
|
import { Label } from './Label';
|
|
5
|
+
// ---------------------------------------------------------------------------
|
|
6
|
+
// Docs page content
|
|
7
|
+
// ---------------------------------------------------------------------------
|
|
8
|
+
const DESCRIPTION_INTRO = [
|
|
9
|
+
'Label renders a styled `<label>` element for form controls. It applies the design system\'s label',
|
|
10
|
+
'typography — bold weight, the semantic label colour, and a bottom margin that separates it from the',
|
|
11
|
+
'input below.',
|
|
12
|
+
'',
|
|
13
|
+
'In most cases you do not use Label directly:',
|
|
14
|
+
'[`FormField`](?path=/docs/components-formfield--docs) renders it automatically when you pass a `label`',
|
|
15
|
+
'prop. Use Label directly only when building a custom layout that cannot use FormField.',
|
|
16
|
+
].join('\n');
|
|
17
|
+
const USAGE_GUIDANCE = [
|
|
18
|
+
'### When to use',
|
|
19
|
+
'',
|
|
20
|
+
'- **Custom form layouts** — when `FormField` does not fit your layout but you still need a correctly',
|
|
21
|
+
' styled label',
|
|
22
|
+
'- **Labelling non-standard controls** — e.g. a custom rich-text editor, a map control, or a file',
|
|
23
|
+
' upload zone',
|
|
24
|
+
'- **Wrapping pattern** — when no `htmlFor` target `id` is available, wrap the control inside',
|
|
25
|
+
' `<Label>` so the browser infers the association automatically',
|
|
26
|
+
'',
|
|
27
|
+
'---',
|
|
28
|
+
'',
|
|
29
|
+
'### When NOT to use',
|
|
30
|
+
'',
|
|
31
|
+
'| Situation | Use instead |',
|
|
32
|
+
'|---|---|',
|
|
33
|
+
'| Standard input with a label | [`FormField`](?path=/docs/components-formfield--docs) — it renders Label automatically |',
|
|
34
|
+
'| Decorative, non-form text | `<p className="ds-text">` or a heading element |',
|
|
35
|
+
'| Required field indicator | Add `" *"` to the label `children` — Label has no built-in required prop |',
|
|
36
|
+
].join('\n');
|
|
37
|
+
const DEVELOPER_NOTES = [
|
|
38
|
+
'### Critical usage patterns',
|
|
39
|
+
'',
|
|
40
|
+
'**Always pass `htmlFor`.** The `htmlFor` prop maps to the HTML `for` attribute, creating an accessible',
|
|
41
|
+
'association between the label and its input. Screen readers announce the label text when the input',
|
|
42
|
+
'receives focus. Without it, the label and input are visually close but semantically disconnected.',
|
|
43
|
+
'',
|
|
44
|
+
'**`htmlFor` value must match the input\'s `id`.** If the input has `id="pupil-name"`, set',
|
|
45
|
+
'`htmlFor="pupil-name"` on the Label. A mismatch silently breaks the association without any error.',
|
|
46
|
+
'',
|
|
47
|
+
'**Reduced margin when followed by a description.** The SCSS uses `:has(+ .ds-form-field__description)`',
|
|
48
|
+
'to automatically reduce `margin-bottom` when a sibling description element immediately follows the',
|
|
49
|
+
'label. This is handled internally by `FormField` — only relevant when composing a custom layout with',
|
|
50
|
+
'Label and a description element.',
|
|
51
|
+
'',
|
|
52
|
+
'---',
|
|
53
|
+
'',
|
|
54
|
+
'### Accessibility',
|
|
55
|
+
'',
|
|
56
|
+
'- Always associate Label with its control via `htmlFor` / `id` pairing',
|
|
57
|
+
'- Do not rely on visual proximity alone — screen readers use the DOM association, not layout position',
|
|
58
|
+
'- The `<label>` element is `display: block` — it always occupies its own line',
|
|
59
|
+
'- Clicking or touching a correctly associated label focuses the input — this enlarges the tap target',
|
|
60
|
+
'',
|
|
61
|
+
'---',
|
|
62
|
+
'',
|
|
63
|
+
'### Design tokens used',
|
|
64
|
+
'',
|
|
65
|
+
'| Token | Usage |',
|
|
66
|
+
'|---|---|',
|
|
67
|
+
'| `--form-field-label-color-text` | Label text colour |',
|
|
68
|
+
'| `--type-body-bold-weight` | Bold font weight |',
|
|
69
|
+
'| `--form-field-spacing-vertical` | Bottom margin (default) |',
|
|
70
|
+
'| `--form-field-spacing-vertical-gap` | Bottom margin (reduced, when description follows) |',
|
|
71
|
+
].join('\n');
|
|
72
|
+
const RELATED_COMPONENTS = [
|
|
73
|
+
'## Related components',
|
|
74
|
+
'',
|
|
75
|
+
'[FormField](?path=/docs/components-formfield--docs) · [TextInput](?path=/docs/components-formfield-inputs-textinput--docs) · [Fieldset](?path=/docs/components-formfield-fieldset--docs)',
|
|
76
|
+
].join('\n');
|
|
77
|
+
const PROPS_INTRO = 'The preview below is wired to the **Controls** panel — tweak any prop to see the story update in real time.';
|
|
78
|
+
function LabelDocsPage() {
|
|
79
|
+
return (_jsxs(_Fragment, { children: [_jsx(Title, {}), _jsx(Subtitle, {}), _jsx(Markdown, { children: DESCRIPTION_INTRO }), _jsx(DocHeading, { children: "Interactive example" }), _jsx(Markdown, { children: PROPS_INTRO }), _jsx(DocPrimary, {}), _jsx(Controls, {}), _jsx(DocHeading, { children: "Usage guidance" }), _jsx(Markdown, { children: USAGE_GUIDANCE }), _jsx(DocHeading, { children: "Developer notes" }), _jsx(Markdown, { children: DEVELOPER_NOTES }), _jsx(DocHeading, { children: "Examples" }), _jsx(Stories, { title: "" }), _jsx(Markdown, { children: RELATED_COMPONENTS })] }));
|
|
80
|
+
}
|
|
81
|
+
// ---------------------------------------------------------------------------
|
|
82
|
+
// Meta
|
|
83
|
+
// ---------------------------------------------------------------------------
|
|
2
84
|
const meta = {
|
|
3
85
|
title: 'Components/FormField/Inputs/Label',
|
|
4
86
|
component: Label,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
87
|
+
parameters: {
|
|
88
|
+
layout: 'padded',
|
|
89
|
+
docs: {
|
|
90
|
+
page: LabelDocsPage,
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
tags: ['autodocs'],
|
|
94
|
+
argTypes: {
|
|
95
|
+
children: {
|
|
96
|
+
control: 'text',
|
|
97
|
+
description: 'The label text content.',
|
|
98
|
+
table: {
|
|
99
|
+
type: { summary: 'ReactNode' },
|
|
100
|
+
defaultValue: { summary: 'undefined' },
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
htmlFor: {
|
|
104
|
+
control: 'text',
|
|
105
|
+
description: [
|
|
106
|
+
'The `id` of the form control this label describes.',
|
|
107
|
+
'Maps to the HTML `for` attribute. Required for an accessible label-input association.',
|
|
108
|
+
].join(' '),
|
|
109
|
+
table: {
|
|
110
|
+
type: { summary: 'string' },
|
|
111
|
+
defaultValue: { summary: 'undefined' },
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
className: {
|
|
115
|
+
control: 'text',
|
|
116
|
+
description: 'Additional CSS class names appended to `ds-label`. Use sparingly.',
|
|
117
|
+
table: {
|
|
118
|
+
type: { summary: 'string' },
|
|
119
|
+
defaultValue: { summary: 'undefined' },
|
|
120
|
+
},
|
|
121
|
+
},
|
|
9
122
|
},
|
|
10
123
|
};
|
|
11
124
|
export default meta;
|
|
125
|
+
// ---------------------------------------------------------------------------
|
|
126
|
+
// Helper: attach a per-story description to docs
|
|
127
|
+
// ---------------------------------------------------------------------------
|
|
128
|
+
const withDescription = (story, description) => ({
|
|
129
|
+
...story,
|
|
130
|
+
parameters: {
|
|
131
|
+
...story.parameters,
|
|
132
|
+
docs: {
|
|
133
|
+
...story.parameters?.docs,
|
|
134
|
+
description: {
|
|
135
|
+
story: description,
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
});
|
|
140
|
+
// ---------------------------------------------------------------------------
|
|
141
|
+
// Template components
|
|
142
|
+
// ---------------------------------------------------------------------------
|
|
143
|
+
const WithHtmlForTemplate = () => (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: '4px', maxWidth: '360px' }, children: [_jsx(Label, { htmlFor: "pupil-name", children: "Pupil full name" }), _jsx(TextInput, { id: "pupil-name", placeholder: "e.g. Amelia Pemberton" })] }));
|
|
144
|
+
const WithDescriptionTemplate = () => (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', maxWidth: '360px' }, children: [_jsx(Label, { htmlFor: "preferred-name", children: "Preferred name" }), _jsx("div", { className: "ds-form-field__description", style: { marginBottom: '4px' }, children: "This is the name the pupil prefers to be called \u2014 it may differ from their legal name." }), _jsx(TextInput, { id: "preferred-name", placeholder: "e.g. Millie" })] }));
|
|
145
|
+
const LongTextTemplate = () => (_jsxs("div", { style: { maxWidth: '360px' }, children: [_jsx(Label, { htmlFor: "send-status", children: "Special educational needs and disabilities (SEND) status and current support requirements" }), _jsx(TextInput, { id: "send-status", placeholder: "e.g. EHC plan in place" })] }));
|
|
146
|
+
// ---------------------------------------------------------------------------
|
|
147
|
+
// Stories
|
|
148
|
+
// ---------------------------------------------------------------------------
|
|
149
|
+
export const Default = withDescription({
|
|
150
|
+
args: {
|
|
151
|
+
children: 'Pupil full name',
|
|
152
|
+
htmlFor: 'pupil-name',
|
|
153
|
+
},
|
|
154
|
+
render: args => _jsx(Label, { ...args }),
|
|
155
|
+
}, 'The interactive canvas — every prop is wired to the Controls panel below. Edit `children` to change the label text and `htmlFor` to set the associated input id.');
|
|
156
|
+
export const WithHtmlFor = withDescription({
|
|
157
|
+
render: WithHtmlForTemplate,
|
|
158
|
+
parameters: {
|
|
159
|
+
controls: { disable: true },
|
|
160
|
+
docs: {
|
|
161
|
+
source: {
|
|
162
|
+
language: 'tsx',
|
|
163
|
+
code: `
|
|
164
|
+
import { Label, TextInput } from '@arbor-education/design-system.components';
|
|
165
|
+
|
|
166
|
+
function PupilNameField() {
|
|
167
|
+
return (
|
|
168
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: '4px' }}>
|
|
169
|
+
<Label htmlFor="pupil-name">Pupil full name</Label>
|
|
170
|
+
<TextInput id="pupil-name" placeholder="e.g. Amelia Pemberton" />
|
|
171
|
+
</div>
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
export default PupilNameField;
|
|
175
|
+
`.trim(),
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
}, [
|
|
180
|
+
'**The most important pattern.** Pass `htmlFor` matching the input\'s `id` to create an accessible',
|
|
181
|
+
'label-input association. Clicking the label focuses the input — this enlarges the effective tap',
|
|
182
|
+
'target on touch devices. Screen readers announce the label text when the input receives focus.',
|
|
183
|
+
].join(' '));
|
|
184
|
+
export const WithDescription = withDescription({
|
|
185
|
+
render: WithDescriptionTemplate,
|
|
186
|
+
parameters: {
|
|
187
|
+
controls: { disable: true },
|
|
188
|
+
docs: {
|
|
189
|
+
source: {
|
|
190
|
+
language: 'tsx',
|
|
191
|
+
code: `
|
|
192
|
+
import { Label, TextInput } from '@arbor-education/design-system.components';
|
|
193
|
+
|
|
194
|
+
function PreferredNameField() {
|
|
195
|
+
return (
|
|
196
|
+
<div style={{ display: 'flex', flexDirection: 'column' }}>
|
|
197
|
+
<Label htmlFor="preferred-name">Preferred name</Label>
|
|
198
|
+
{/* .ds-form-field__description triggers :has() CSS — label margin-bottom reduces automatically */}
|
|
199
|
+
<div className="ds-form-field__description" style={{ marginBottom: '4px' }}>
|
|
200
|
+
This is the name the pupil prefers to be called — it may differ from their legal name.
|
|
201
|
+
</div>
|
|
202
|
+
<TextInput id="preferred-name" placeholder="e.g. Millie" />
|
|
203
|
+
</div>
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
export default PreferredNameField;
|
|
207
|
+
`.trim(),
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
}, [
|
|
212
|
+
'When a `.ds-form-field__description` element immediately follows the label in the DOM,',
|
|
213
|
+
'the label\'s `margin-bottom` automatically reduces via `:has(+ .ds-form-field__description)` CSS.',
|
|
214
|
+
'`FormField` handles this for you — only relevant when composing a custom layout.',
|
|
215
|
+
].join(' '));
|
|
216
|
+
export const LongText = withDescription({
|
|
217
|
+
render: LongTextTemplate,
|
|
218
|
+
parameters: {
|
|
219
|
+
controls: { disable: true },
|
|
220
|
+
docs: {
|
|
221
|
+
source: {
|
|
222
|
+
language: 'tsx',
|
|
223
|
+
code: `
|
|
224
|
+
import { Label, TextInput } from '@arbor-education/design-system.components';
|
|
225
|
+
|
|
226
|
+
function SendField() {
|
|
227
|
+
return (
|
|
228
|
+
<div style={{ maxWidth: '360px' }}>
|
|
229
|
+
<Label htmlFor="send-status">
|
|
230
|
+
Special educational needs and disabilities (SEND) status and current support requirements
|
|
231
|
+
</Label>
|
|
232
|
+
<TextInput id="send-status" placeholder="e.g. EHC plan in place" />
|
|
233
|
+
</div>
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
export default SendField;
|
|
237
|
+
`.trim(),
|
|
238
|
+
},
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
}, [
|
|
242
|
+
'Long label text wraps naturally — Label is `display: block` and fills the full width of its',
|
|
243
|
+
'container with no truncation. If your label is very long, consider shortening it or using a',
|
|
244
|
+
'description element for supplementary detail.',
|
|
245
|
+
].join(' '));
|
|
12
246
|
//# sourceMappingURL=Label.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.stories.js","sourceRoot":"","sources":["../../../../src/components/formField/label/Label.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Label.stories.js","sourceRoot":"","sources":["../../../../src/components/formField/label/Label.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,QAAQ,EACR,OAAO,IAAI,UAAU,EACrB,QAAQ,EACR,OAAO,IAAI,UAAU,EACrB,OAAO,EACP,QAAQ,EACR,KAAK,GACN,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,8EAA8E;AAC9E,oBAAoB;AACpB,8EAA8E;AAE9E,MAAM,iBAAiB,GAAG;IACxB,mGAAmG;IACnG,qGAAqG;IACrG,cAAc;IACd,EAAE;IACF,8CAA8C;IAC9C,wGAAwG;IACxG,wFAAwF;CACzF,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,cAAc,GAAG;IACrB,iBAAiB;IACjB,EAAE;IACF,sGAAsG;IACtG,gBAAgB;IAChB,kGAAkG;IAClG,eAAe;IACf,8FAA8F;IAC9F,iEAAiE;IACjE,EAAE;IACF,KAAK;IACL,EAAE;IACF,qBAAqB;IACrB,EAAE;IACF,6BAA6B;IAC7B,WAAW;IACX,0HAA0H;IAC1H,gFAAgF;IAChF,yGAAyG;CAC1G,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,eAAe,GAAG;IACtB,6BAA6B;IAC7B,EAAE;IACF,wGAAwG;IACxG,oGAAoG;IACpG,mGAAmG;IACnG,EAAE;IACF,2FAA2F;IAC3F,oGAAoG;IACpG,EAAE;IACF,wGAAwG;IACxG,o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BACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE;;;;;;;;;;;;CAYf,CAAC,IAAI,EAAE;aACC;SACF;KACF;CACF,EACD;IACE,mGAAmG;IACnG,iGAAiG;IACjG,gGAAgG;CACjG,CAAC,IAAI,CAAC,GAAG,CAAC,CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAU,eAAe,CACnD;IACE,MAAM,EAAE,uBAAuB;IAC/B,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;QAC3B,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE;;;;;;;;;;;;;;;;CAgBf,CAAC,IAAI,EAAE;aACC;SACF;KACF;CACF,EACD;IACE,wFAAwF;IACxF,mGAAmG;IACnG,kFAAkF;CACnF,CAAC,IAAI,CAAC,GAAG,CAAC,CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU,eAAe,CAC5C;IACE,MAAM,EAAE,gBAAgB;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;QAC3B,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE;;;;;;;;;;;;;;CAcf,CAAC,IAAI,EAAE;aACC;SACF;KACF;CACF,EACD;IACE,6FAA6F;IAC7F,6FAA6F;IAC7F,+CAA+C;CAChD,CAAC,IAAI,CAAC,GAAG,CAAC,CACZ,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { IcoText } from './IcoText';
|
|
3
|
+
declare function IcoTextDocsPage(): import("react/jsx-runtime").JSX.Element;
|
|
2
4
|
declare const meta: {
|
|
3
5
|
title: string;
|
|
4
6
|
component: {
|
|
@@ -18,17 +20,41 @@ declare const meta: {
|
|
|
18
20
|
displayName: string;
|
|
19
21
|
};
|
|
20
22
|
};
|
|
23
|
+
tags: string[];
|
|
21
24
|
parameters: {
|
|
25
|
+
layout: string;
|
|
22
26
|
docs: {
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
page: typeof IcoTextDocsPage;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
argTypes: {
|
|
31
|
+
className: {
|
|
32
|
+
control: false;
|
|
33
|
+
description: string;
|
|
34
|
+
table: {
|
|
35
|
+
type: {
|
|
36
|
+
summary: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
children: {
|
|
41
|
+
control: false;
|
|
42
|
+
description: string;
|
|
43
|
+
table: {
|
|
44
|
+
type: {
|
|
45
|
+
summary: string;
|
|
46
|
+
};
|
|
25
47
|
};
|
|
26
48
|
};
|
|
27
49
|
};
|
|
28
50
|
};
|
|
29
|
-
type Story = StoryObj<typeof meta>;
|
|
30
|
-
export declare const WithIconAndParagraph: Story;
|
|
31
|
-
export declare const TextOnly: Story;
|
|
32
|
-
export declare const HeadingWithIcon: Story;
|
|
33
51
|
export default meta;
|
|
52
|
+
type Story = StoryObj<typeof IcoText>;
|
|
53
|
+
export declare const Default: Story;
|
|
54
|
+
export declare const HeadingOnly: Story;
|
|
55
|
+
export declare const WithoutIcon: Story;
|
|
56
|
+
export declare const IconWithScreenReaderText: Story;
|
|
57
|
+
export declare const IconSizes: Story;
|
|
58
|
+
export declare const IconColors: Story;
|
|
59
|
+
export declare const MultipleParagraphs: Story;
|
|
34
60
|
//# sourceMappingURL=IcoText.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IcoText.stories.d.ts","sourceRoot":"","sources":["../../../src/components/icoText/IcoText.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"IcoText.stories.d.ts","sourceRoot":"","sources":["../../../src/components/icoText/IcoText.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAU5D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2GpC,iBAAS,eAAe,4CAyBvB;AAMD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBsB,CAAC;AAEjC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAsEtC,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KA+BzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KA+BzB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,KAqCtC,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAuCvB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KA2BxB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KA4BhC,CAAC"}
|