@worknice/whiteboard 0.0.2 → 0.0.3
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/controls/Action.d.ts +7 -0
- package/dist/controls/Action.js +81 -0
- package/dist/controls/Button.d.ts +22 -0
- package/dist/controls/Button.js +61 -0
- package/dist/controls/Button.module.js +9 -0
- package/dist/controls/ButtonCard.d.ts +7 -0
- package/dist/controls/ButtonCard.js +43 -0
- package/dist/controls/ButtonCard.module.js +7 -0
- package/dist/controls/ButtonCard_module.css +31 -0
- package/dist/controls/ButtonLink.d.ts +15 -0
- package/dist/controls/ButtonLink.js +48 -0
- package/dist/controls/ButtonLink.module.js +9 -0
- package/dist/controls/ButtonLink_module.css +68 -0
- package/dist/controls/Button_module.css +86 -0
- package/dist/controls/Disclosure.d.ts +7 -0
- package/dist/controls/Disclosure.js +27 -0
- package/dist/controls/Link.d.ts +14 -0
- package/dist/controls/Link.js +35 -0
- package/dist/controls/Link.module.js +5 -0
- package/dist/controls/LinkCard.d.ts +7 -0
- package/dist/controls/LinkCard.js +26 -0
- package/dist/controls/LinkCard.module.js +6 -0
- package/dist/controls/LinkCard_module.css +22 -0
- package/dist/controls/Link_module.css +19 -0
- package/dist/controls/MenuButton.d.ts +31 -0
- package/dist/controls/MenuButton.js +216 -0
- package/dist/controls/MenuButton.module.js +10 -0
- package/dist/controls/MenuButton_module.css +78 -0
- package/dist/controls/PageTabSet.d.ts +11 -0
- package/dist/controls/PageTabSet.js +26 -0
- package/dist/controls/PageTabSet.module.js +7 -0
- package/dist/controls/PageTabSet_module.css +32 -0
- package/dist/controls/Sortable.d.ts +11 -0
- package/dist/controls/Sortable.js +27 -0
- package/dist/controls/SortableItem.d.ts +8 -0
- package/dist/controls/SortableItem.js +42 -0
- package/dist/controls/SortableItem.module.js +9 -0
- package/dist/controls/SortableItem_module.css +46 -0
- package/dist/controls/TabSet.d.ts +12 -0
- package/dist/controls/TabSet.js +26 -0
- package/dist/controls/TabSet.module.js +7 -0
- package/dist/controls/TabSetLink.d.ts +12 -0
- package/dist/controls/TabSetLink.js +24 -0
- package/dist/controls/TabSetLink.module.js +7 -0
- package/dist/controls/TabSetLink_module.css +41 -0
- package/dist/controls/TabSet_module.css +39 -0
- package/dist/email/EmailBodyText.d.ts +5 -0
- package/dist/email/EmailBodyText.js +12 -0
- package/dist/email/EmailButton.d.ts +6 -0
- package/dist/email/EmailButton.js +19 -0
- package/dist/email/EmailFooterText.d.ts +5 -0
- package/dist/email/EmailFooterText.js +12 -0
- package/dist/email/EmailLayout.d.ts +10 -0
- package/dist/email/EmailLayout.js +41 -0
- package/dist/fields/BooleanField.d.ts +15 -0
- package/dist/fields/BooleanField.js +19 -0
- package/dist/fields/ColorPickerField.d.ts +18 -0
- package/dist/fields/ColorPickerField.js +18 -0
- package/dist/fields/DateField.d.ts +18 -0
- package/dist/fields/DateField.js +22 -0
- package/dist/fields/DateTimeField.d.ts +16 -0
- package/dist/fields/DateTimeField.js +20 -0
- package/dist/fields/FileField.d.ts +12 -0
- package/dist/fields/FileField.js +18 -0
- package/dist/fields/ListBoxField.d.ts +21 -0
- package/dist/fields/ListBoxField.js +24 -0
- package/dist/fields/MarkdownField.d.ts +17 -0
- package/dist/fields/MarkdownField.js +36 -0
- package/dist/fields/NumberField.d.ts +12 -0
- package/dist/fields/NumberField.js +23 -0
- package/dist/fields/PasswordField.d.ts +15 -0
- package/dist/fields/PasswordField.js +63 -0
- package/dist/fields/PasswordField.module.js +14 -0
- package/dist/fields/PasswordField_module.css +47 -0
- package/dist/fields/RadioSetField.d.ts +22 -0
- package/dist/fields/RadioSetField.js +42 -0
- package/dist/fields/RadioSetField.module.js +6 -0
- package/dist/fields/RadioSetField_module.css +15 -0
- package/dist/fields/SelectField.d.ts +20 -0
- package/dist/fields/SelectField.js +24 -0
- package/dist/fields/SimpleRadioSetField.d.ts +15 -0
- package/dist/fields/SimpleRadioSetField.js +13 -0
- package/dist/fields/SingleSelectComboboxField.d.ts +25 -0
- package/dist/fields/SingleSelectComboboxField.js +28 -0
- package/dist/fields/StringField.d.ts +12 -0
- package/dist/fields/StringField.js +25 -0
- package/dist/fields/TextField.d.ts +17 -0
- package/dist/fields/TextField.js +21 -0
- package/dist/fields/TimeField.d.ts +12 -0
- package/dist/fields/TimeField.js +21 -0
- package/dist/forms/FormButtonSet.d.ts +14 -0
- package/dist/forms/FormButtonSet.js +31 -0
- package/dist/forms/FormButtonSet.module.js +5 -0
- package/dist/forms/FormButtonSet_module.css +12 -0
- package/dist/forms/FormError.d.ts +6 -0
- package/dist/forms/FormError.js +10 -0
- package/dist/forms/FormErrorList.d.ts +8 -0
- package/dist/forms/FormErrorList.js +22 -0
- package/dist/forms/FormErrorList.module.js +6 -0
- package/dist/forms/FormErrorList_module.css +12 -0
- package/dist/forms/FormStatusIndicator.d.ts +8 -0
- package/dist/forms/FormStatusIndicator.js +40 -0
- package/dist/forms/FormStatusIndicator.module.js +8 -0
- package/dist/forms/FormStatusIndicator_module.css +18 -0
- package/dist/forms/RegularField.d.ts +14 -0
- package/dist/forms/RegularField.js +47 -0
- package/dist/forms/RegularField.module.js +14 -0
- package/dist/forms/RegularField_module.css +47 -0
- package/dist/forms/ToggleField.d.ts +12 -0
- package/dist/forms/ToggleField.js +38 -0
- package/dist/forms/ToggleField.module.js +8 -0
- package/dist/forms/ToggleField_module.css +25 -0
- package/dist/forms/_types.d.ts +17 -0
- package/dist/forms/_types.js +0 -0
- package/dist/forms/useForm.d.ts +54 -0
- package/dist/forms/useForm.js +107 -0
- package/dist/hud/ChevronIcon.d.ts +2 -0
- package/dist/hud/ChevronIcon.js +13 -0
- package/dist/hud/NavItem.d.ts +10 -0
- package/dist/hud/NavItem.js +27 -0
- package/dist/hud/NavItem.module.js +7 -0
- package/dist/hud/NavItemChild.d.ts +8 -0
- package/dist/hud/NavItemChild.js +20 -0
- package/dist/hud/NavItemChild.module.js +6 -0
- package/dist/hud/NavItemChild_module.css +20 -0
- package/dist/hud/NavItem_module.css +26 -0
- package/dist/hud/NavSection.d.ts +12 -0
- package/dist/hud/NavSection.js +48 -0
- package/dist/hud/NavSection.module.js +11 -0
- package/dist/hud/NavSection_module.css +44 -0
- package/dist/hud/NavTitle.d.ts +8 -0
- package/dist/hud/NavTitle.js +43 -0
- package/dist/hud/NavTitle.module.js +6 -0
- package/dist/hud/NavTitle_module.css +30 -0
- package/dist/hud/SidebarIcon.d.ts +2 -0
- package/dist/hud/SidebarIcon.js +13 -0
- package/dist/hud/ToolbarButton.d.ts +12 -0
- package/dist/hud/ToolbarButton.js +23 -0
- package/dist/hud/ToolbarButton.module.js +6 -0
- package/dist/hud/ToolbarButton_module.css +24 -0
- package/dist/icons/AppsIcon.d.ts +3 -0
- package/dist/icons/AppsIcon.js +11 -0
- package/dist/icons/ArchiveIcon.d.ts +3 -0
- package/dist/icons/ArchiveIcon.js +11 -0
- package/dist/icons/ArrowLeftIcon.d.ts +3 -0
- package/dist/icons/ArrowLeftIcon.js +11 -0
- package/dist/icons/ArrowRightIcon.d.ts +3 -0
- package/dist/icons/ArrowRightIcon.js +11 -0
- package/dist/icons/AssignIcon.d.ts +3 -0
- package/dist/icons/AssignIcon.js +13 -0
- package/dist/icons/BankAccountIcon.d.ts +3 -0
- package/dist/icons/BankAccountIcon.js +11 -0
- package/dist/icons/CalendarIcon.d.ts +3 -0
- package/dist/icons/CalendarIcon.js +11 -0
- package/dist/icons/CancelIcon.d.ts +3 -0
- package/dist/icons/CancelIcon.js +11 -0
- package/dist/icons/CaratDownIcon.d.ts +3 -0
- package/dist/icons/CaratDownIcon.js +11 -0
- package/dist/icons/CaratLeftIcon.d.ts +3 -0
- package/dist/icons/CaratLeftIcon.js +11 -0
- package/dist/icons/CaratRightIcon.d.ts +3 -0
- package/dist/icons/CaratRightIcon.js +11 -0
- package/dist/icons/CaratUpIcon.d.ts +3 -0
- package/dist/icons/CaratUpIcon.js +11 -0
- package/dist/icons/CheckmarkIcon.d.ts +3 -0
- package/dist/icons/CheckmarkIcon.js +11 -0
- package/dist/icons/ChevronDownIcon.d.ts +3 -0
- package/dist/icons/ChevronDownIcon.js +11 -0
- package/dist/icons/ChevronLeftIcon.d.ts +3 -0
- package/dist/icons/ChevronLeftIcon.js +11 -0
- package/dist/icons/ChevronRightIcon.d.ts +3 -0
- package/dist/icons/ChevronRightIcon.js +11 -0
- package/dist/icons/ChevronUpIcon.d.ts +3 -0
- package/dist/icons/ChevronUpIcon.js +11 -0
- package/dist/icons/CloseIcon.d.ts +3 -0
- package/dist/icons/CloseIcon.js +11 -0
- package/dist/icons/CopyIcon.d.ts +3 -0
- package/dist/icons/CopyIcon.js +14 -0
- package/dist/icons/DashIcon.d.ts +3 -0
- package/dist/icons/DashIcon.js +11 -0
- package/dist/icons/DeleteIcon.d.ts +3 -0
- package/dist/icons/DeleteIcon.js +11 -0
- package/dist/icons/EditIcon.d.ts +3 -0
- package/dist/icons/EditIcon.js +11 -0
- package/dist/icons/EmailIcon.d.ts +3 -0
- package/dist/icons/EmailIcon.js +11 -0
- package/dist/icons/EmergencyContactIcon.d.ts +3 -0
- package/dist/icons/EmergencyContactIcon.js +11 -0
- package/dist/icons/ExternalIcon.d.ts +3 -0
- package/dist/icons/ExternalIcon.js +14 -0
- package/dist/icons/GripLinesIcon.d.ts +3 -0
- package/dist/icons/GripLinesIcon.js +11 -0
- package/dist/icons/HelpIcon.d.ts +3 -0
- package/dist/icons/HelpIcon.js +11 -0
- package/dist/icons/HiddenIcon.d.ts +3 -0
- package/dist/icons/HiddenIcon.js +11 -0
- package/dist/icons/InboxIcon.d.ts +3 -0
- package/dist/icons/InboxIcon.js +11 -0
- package/dist/icons/InsightsIcon.d.ts +3 -0
- package/dist/icons/InsightsIcon.js +11 -0
- package/dist/icons/JobIcon.d.ts +3 -0
- package/dist/icons/JobIcon.js +11 -0
- package/dist/icons/LeaveIcon.d.ts +3 -0
- package/dist/icons/LeaveIcon.js +11 -0
- package/dist/icons/LoadingIcon.d.ts +4 -0
- package/dist/icons/LoadingIcon.js +22 -0
- package/dist/icons/LogoutIcon.d.ts +3 -0
- package/dist/icons/LogoutIcon.js +11 -0
- package/dist/icons/MicrosoftIcon.d.ts +3 -0
- package/dist/icons/MicrosoftIcon.js +26 -0
- package/dist/icons/MinusIcon.d.ts +3 -0
- package/dist/icons/MinusIcon.js +11 -0
- package/dist/icons/OverflowIcon.d.ts +3 -0
- package/dist/icons/OverflowIcon.js +11 -0
- package/dist/icons/PaperworkIcon.d.ts +3 -0
- package/dist/icons/PaperworkIcon.js +11 -0
- package/dist/icons/PeopleIcon.d.ts +3 -0
- package/dist/icons/PeopleIcon.js +11 -0
- package/dist/icons/PhoneIcon.d.ts +3 -0
- package/dist/icons/PhoneIcon.js +11 -0
- package/dist/icons/PlusIcon.d.ts +3 -0
- package/dist/icons/PlusIcon.js +11 -0
- package/dist/icons/PositionsIcon.d.ts +3 -0
- package/dist/icons/PositionsIcon.js +11 -0
- package/dist/icons/ProfileFemaleIcon.d.ts +3 -0
- package/dist/icons/ProfileFemaleIcon.js +11 -0
- package/dist/icons/ProfileIcon.d.ts +3 -0
- package/dist/icons/ProfileIcon.js +11 -0
- package/dist/icons/ProfileMaleIcon.d.ts +3 -0
- package/dist/icons/ProfileMaleIcon.js +11 -0
- package/dist/icons/RemunerationIcon.d.ts +3 -0
- package/dist/icons/RemunerationIcon.js +11 -0
- package/dist/icons/RescheduleIcon.d.ts +3 -0
- package/dist/icons/RescheduleIcon.js +13 -0
- package/dist/icons/RestoreIcon.d.ts +3 -0
- package/dist/icons/RestoreIcon.js +13 -0
- package/dist/icons/ReviewIcon.d.ts +3 -0
- package/dist/icons/ReviewIcon.js +11 -0
- package/dist/icons/ScheduleIcon.d.ts +3 -0
- package/dist/icons/ScheduleIcon.js +13 -0
- package/dist/icons/SettingsIcon.d.ts +3 -0
- package/dist/icons/SettingsIcon.js +11 -0
- package/dist/icons/SidebarIcon.d.ts +3 -0
- package/dist/icons/SidebarIcon.js +11 -0
- package/dist/icons/SortAscIcon.d.ts +3 -0
- package/dist/icons/SortAscIcon.js +11 -0
- package/dist/icons/SortDefaultIcon.d.ts +3 -0
- package/dist/icons/SortDefaultIcon.js +11 -0
- package/dist/icons/SortDesIcon.d.ts +3 -0
- package/dist/icons/SortDesIcon.js +11 -0
- package/dist/icons/StepsCompleteIcon.d.ts +3 -0
- package/dist/icons/StepsCompleteIcon.js +11 -0
- package/dist/icons/StepsCurrentIcon.d.ts +3 -0
- package/dist/icons/StepsCurrentIcon.js +11 -0
- package/dist/icons/StepsIncompleteIcon.d.ts +3 -0
- package/dist/icons/StepsIncompleteIcon.js +11 -0
- package/dist/icons/SubmitIcon.d.ts +3 -0
- package/dist/icons/SubmitIcon.js +13 -0
- package/dist/icons/SuccessIcon.d.ts +3 -0
- package/dist/icons/SuccessIcon.js +13 -0
- package/dist/icons/SuperFundIcon.d.ts +3 -0
- package/dist/icons/SuperFundIcon.js +11 -0
- package/dist/icons/SyncIcon.d.ts +3 -0
- package/dist/icons/SyncIcon.js +11 -0
- package/dist/icons/TaskIcon.d.ts +3 -0
- package/dist/icons/TaskIcon.js +11 -0
- package/dist/icons/TaxIcon.d.ts +3 -0
- package/dist/icons/TaxIcon.js +11 -0
- package/dist/icons/TenureIcon.d.ts +3 -0
- package/dist/icons/TenureIcon.js +11 -0
- package/dist/icons/VisibleIcon.d.ts +3 -0
- package/dist/icons/VisibleIcon.js +11 -0
- package/dist/icons/WarningIcon.d.ts +3 -0
- package/dist/icons/WarningIcon.js +12 -0
- package/dist/icons/_types.d.ts +4 -0
- package/dist/icons/_types.js +0 -0
- package/dist/icons/index.d.ts +67 -0
- package/dist/icons/index.js +68 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +0 -0
- package/dist/inputs/CheckboxInput.d.ts +12 -0
- package/dist/inputs/CheckboxInput.js +48 -0
- package/dist/inputs/CheckboxInput.module.js +6 -0
- package/dist/inputs/CheckboxInput_module.css +32 -0
- package/dist/inputs/ColorPickerInput.d.ts +8 -0
- package/dist/inputs/ColorPickerInput.js +36 -0
- package/dist/inputs/ColorPickerInput.module.js +15 -0
- package/dist/inputs/ColorPickerInput_module.css +99 -0
- package/dist/inputs/DateInput.d.ts +19 -0
- package/dist/inputs/DateInput.js +43 -0
- package/dist/inputs/DateInput.module.js +10 -0
- package/dist/inputs/DateInput_module.css +60 -0
- package/dist/inputs/DateTimeInput.d.ts +17 -0
- package/dist/inputs/DateTimeInput.js +34 -0
- package/dist/inputs/DateTimeInput.module.js +5 -0
- package/dist/inputs/DateTimeInput_module.css +27 -0
- package/dist/inputs/FileInput.d.ts +7 -0
- package/dist/inputs/FileInput.js +12 -0
- package/dist/inputs/ListBoxInput.d.ts +14 -0
- package/dist/inputs/ListBoxInput.js +66 -0
- package/dist/inputs/ListBoxInput.module.js +10 -0
- package/dist/inputs/ListBoxInput_module.css +44 -0
- package/dist/inputs/MarkdownInput.d.ts +11 -0
- package/dist/inputs/MarkdownInput.js +35 -0
- package/dist/inputs/MarkdownInput.module.js +5 -0
- package/dist/inputs/MarkdownInput_module.css +27 -0
- package/dist/inputs/NumberInput.d.ts +13 -0
- package/dist/inputs/NumberInput.js +44 -0
- package/dist/inputs/NumberInput.module.js +10 -0
- package/dist/inputs/NumberInput_module.css +59 -0
- package/dist/inputs/RadioInput.d.ts +9 -0
- package/dist/inputs/RadioInput.js +34 -0
- package/dist/inputs/RadioInput.module.js +6 -0
- package/dist/inputs/RadioInput_module.css +31 -0
- package/dist/inputs/SelectInput.d.ts +14 -0
- package/dist/inputs/SelectInput.js +130 -0
- package/dist/inputs/SelectInput.module.js +10 -0
- package/dist/inputs/SelectInput_module.css +63 -0
- package/dist/inputs/SingleSelectComboboxInput.d.ts +19 -0
- package/dist/inputs/SingleSelectComboboxInput.js +179 -0
- package/dist/inputs/SingleSelectComboboxInput.module.js +12 -0
- package/dist/inputs/SingleSelectComboboxInput_module.css +73 -0
- package/dist/inputs/StringInput.d.ts +15 -0
- package/dist/inputs/StringInput.js +51 -0
- package/dist/inputs/StringInput.module.js +10 -0
- package/dist/inputs/StringInput_module.css +59 -0
- package/dist/inputs/TextInput.d.ts +13 -0
- package/dist/inputs/TextInput.js +51 -0
- package/dist/inputs/TextInput.module.js +10 -0
- package/dist/inputs/TextInput_module.css +59 -0
- package/dist/inputs/TimeInput.d.ts +11 -0
- package/dist/inputs/TimeInput.js +26 -0
- package/dist/inputs/TimeInput.module.js +5 -0
- package/dist/inputs/TimeInput_module.css +33 -0
- package/dist/layouts/BaseLayout.d.ts +7 -0
- package/dist/layouts/BaseLayout.js +15 -0
- package/dist/layouts/FullLayout.d.ts +19 -0
- package/dist/layouts/FullLayout.js +152 -0
- package/dist/layouts/FullLayout.module.js +24 -0
- package/dist/layouts/FullLayout_module.css +257 -0
- package/dist/layouts/MinimalLayout.d.ts +12 -0
- package/dist/layouts/MinimalLayout.js +34 -0
- package/dist/layouts/MinimalLayout.module.js +6 -0
- package/dist/layouts/MinimalLayout_module.css +25 -0
- package/dist/presentation/ActionSet.d.ts +13 -0
- package/dist/presentation/ActionSet.js +13 -0
- package/dist/presentation/ActionSet.module.js +5 -0
- package/dist/presentation/ActionSet_module.css +7 -0
- package/dist/presentation/Avatar.d.ts +8 -0
- package/dist/presentation/Avatar.js +27 -0
- package/dist/presentation/Avatar.module.js +5 -0
- package/dist/presentation/Avatar_module.css +10 -0
- package/dist/presentation/Badge.d.ts +8 -0
- package/dist/presentation/Badge.js +20 -0
- package/dist/presentation/Badge.module.js +14 -0
- package/dist/presentation/BadgeSet.d.ts +15 -0
- package/dist/presentation/BadgeSet.js +18 -0
- package/dist/presentation/BadgeSet.module.js +7 -0
- package/dist/presentation/BadgeSet_module.css +15 -0
- package/dist/presentation/Badge_module.css +53 -0
- package/dist/presentation/Banner.d.ts +11 -0
- package/dist/presentation/Banner.js +33 -0
- package/dist/presentation/Banner.module.js +12 -0
- package/dist/presentation/Banner_module.css +54 -0
- package/dist/presentation/ButtonSet.d.ts +11 -0
- package/dist/presentation/ButtonSet.js +21 -0
- package/dist/presentation/ButtonsSet.module.js +6 -0
- package/dist/presentation/ButtonsSet_module.css +10 -0
- package/dist/presentation/Card.d.ts +17 -0
- package/dist/presentation/Card.js +38 -0
- package/dist/presentation/Card.module.js +9 -0
- package/dist/presentation/CardContent.d.ts +7 -0
- package/dist/presentation/CardContent.js +12 -0
- package/dist/presentation/CardContent.module.js +5 -0
- package/dist/presentation/CardContent_module.css +4 -0
- package/dist/presentation/Card_module.css +32 -0
- package/dist/presentation/Columns.d.ts +8 -0
- package/dist/presentation/Columns.js +16 -0
- package/dist/presentation/Columns.module.js +7 -0
- package/dist/presentation/Columns_module.css +19 -0
- package/dist/presentation/ConfirmationModal.d.ts +13 -0
- package/dist/presentation/ConfirmationModal.js +61 -0
- package/dist/presentation/DefinitionList.d.ts +10 -0
- package/dist/presentation/DefinitionList.js +22 -0
- package/dist/presentation/DefinitionList.module.js +6 -0
- package/dist/presentation/DefinitionList_module.css +10 -0
- package/dist/presentation/Divider.d.ts +5 -0
- package/dist/presentation/Divider.js +23 -0
- package/dist/presentation/Divider.module.js +6 -0
- package/dist/presentation/Divider_module.css +12 -0
- package/dist/presentation/File.d.ts +6 -0
- package/dist/presentation/File.js +57 -0
- package/dist/presentation/Footer.d.ts +12 -0
- package/dist/presentation/Footer.js +18 -0
- package/dist/presentation/Footer.module.js +5 -0
- package/dist/presentation/Footer_module.css +16 -0
- package/dist/presentation/HStack.d.ts +10 -0
- package/dist/presentation/HStack.js +16 -0
- package/dist/presentation/HStack.module.js +5 -0
- package/dist/presentation/HStack_module.css +10 -0
- package/dist/presentation/Header.d.ts +10 -0
- package/dist/presentation/Header.js +20 -0
- package/dist/presentation/Header.module.js +6 -0
- package/dist/presentation/Header_module.css +17 -0
- package/dist/presentation/Heading.d.ts +10 -0
- package/dist/presentation/Heading.js +10 -0
- package/dist/presentation/HeadlineStatisticCard.d.ts +9 -0
- package/dist/presentation/HeadlineStatisticCard.js +35 -0
- package/dist/presentation/HoverCard.d.ts +7 -0
- package/dist/presentation/HoverCard.js +90 -0
- package/dist/presentation/HoverCard.module.js +8 -0
- package/dist/presentation/HoverCard_module.css +18 -0
- package/dist/presentation/Icon.d.ts +20 -0
- package/dist/presentation/Icon.js +27 -0
- package/dist/presentation/IconSymbolSet.d.ts +6 -0
- package/dist/presentation/IconSymbolSet.js +16 -0
- package/dist/presentation/Info.d.ts +10 -0
- package/dist/presentation/Info.js +26 -0
- package/dist/presentation/Info.module.js +8 -0
- package/dist/presentation/Info_module.css +38 -0
- package/dist/presentation/Key.d.ts +7 -0
- package/dist/presentation/Key.js +13 -0
- package/dist/presentation/Key.module.js +5 -0
- package/dist/presentation/Key_module.css +15 -0
- package/dist/presentation/KeysSet.d.ts +9 -0
- package/dist/presentation/KeysSet.js +8 -0
- package/dist/presentation/KeysSet.module.js +5 -0
- package/dist/presentation/KeysSet_module.css +6 -0
- package/dist/presentation/Label.d.ts +10 -0
- package/dist/presentation/Label.js +10 -0
- package/dist/presentation/Layer.d.ts +9 -0
- package/dist/presentation/Layer.js +48 -0
- package/dist/presentation/ListCard.d.ts +13 -0
- package/dist/presentation/ListCard.js +50 -0
- package/dist/presentation/ListCard.module.js +10 -0
- package/dist/presentation/ListCard_module.css +78 -0
- package/dist/presentation/Markdown.d.ts +19 -0
- package/dist/presentation/Markdown.js +33 -0
- package/dist/presentation/Modal.d.ts +8 -0
- package/dist/presentation/Modal.js +26 -0
- package/dist/presentation/Modal.module.js +7 -0
- package/dist/presentation/Modal_module.css +17 -0
- package/dist/presentation/ObscuredText.d.ts +5 -0
- package/dist/presentation/ObscuredText.js +25 -0
- package/dist/presentation/ObscuredText.module.js +6 -0
- package/dist/presentation/ObscuredText_module.css +26 -0
- package/dist/presentation/Overlay.d.ts +7 -0
- package/dist/presentation/Overlay.js +29 -0
- package/dist/presentation/Overlay.module.js +6 -0
- package/dist/presentation/Overlay_module.css +20 -0
- package/dist/presentation/PersonAvatar.d.ts +18 -0
- package/dist/presentation/PersonAvatar.js +89 -0
- package/dist/presentation/PersonCover.d.ts +5 -0
- package/dist/presentation/PersonCover.js +21 -0
- package/dist/presentation/PersonCover.module.js +6 -0
- package/dist/presentation/PersonCover_module.css +22 -0
- package/dist/presentation/Placeholder.d.ts +6 -0
- package/dist/presentation/Placeholder.js +8 -0
- package/dist/presentation/Placeholder.module.js +5 -0
- package/dist/presentation/Placeholder_module.css +9 -0
- package/dist/presentation/PlainText.d.ts +11 -0
- package/dist/presentation/PlainText.js +40 -0
- package/dist/presentation/PlainText.module.js +5 -0
- package/dist/presentation/PlainText_module.css +6 -0
- package/dist/presentation/RichText.d.ts +16 -0
- package/dist/presentation/RichText.js +21 -0
- package/dist/presentation/RichText.module.js +7 -0
- package/dist/presentation/RichText_module.css +177 -0
- package/dist/presentation/Sheet.d.ts +23 -0
- package/dist/presentation/Sheet.js +22 -0
- package/dist/presentation/Sheet.module.js +8 -0
- package/dist/presentation/SheetContent.d.ts +6 -0
- package/dist/presentation/SheetContent.js +8 -0
- package/dist/presentation/SheetContent.module.js +5 -0
- package/dist/presentation/SheetContent_module.css +7 -0
- package/dist/presentation/SheetFooter.d.ts +7 -0
- package/dist/presentation/SheetFooter.js +12 -0
- package/dist/presentation/SheetFooter.module.js +5 -0
- package/dist/presentation/SheetFooter_module.css +7 -0
- package/dist/presentation/SheetHeader.d.ts +8 -0
- package/dist/presentation/SheetHeader.js +13 -0
- package/dist/presentation/SheetHeader.module.js +5 -0
- package/dist/presentation/SheetHeader_module.css +7 -0
- package/dist/presentation/Sheet_module.css +24 -0
- package/dist/presentation/SimpleList.d.ts +9 -0
- package/dist/presentation/SimpleList.js +14 -0
- package/dist/presentation/SimpleList.module.js +5 -0
- package/dist/presentation/SimpleList_module.css +9 -0
- package/dist/presentation/SimpleTable.d.ts +27 -0
- package/dist/presentation/SimpleTable.js +67 -0
- package/dist/presentation/SimpleTable.module.js +12 -0
- package/dist/presentation/SimpleTable_module.css +42 -0
- package/dist/presentation/Slot.d.ts +8 -0
- package/dist/presentation/Slot.js +26 -0
- package/dist/presentation/Slot.module.js +5 -0
- package/dist/presentation/Slot_module.css +7 -0
- package/dist/presentation/Subheading.d.ts +10 -0
- package/dist/presentation/Subheading.js +10 -0
- package/dist/presentation/Table.d.ts +71 -0
- package/dist/presentation/Table.js +458 -0
- package/dist/presentation/Table.module.js +22 -0
- package/dist/presentation/Table_module.css +142 -0
- package/dist/presentation/Tag.d.ts +9 -0
- package/dist/presentation/Tag.js +20 -0
- package/dist/presentation/Tag.module.js +14 -0
- package/dist/presentation/TagSet.d.ts +15 -0
- package/dist/presentation/TagSet.js +18 -0
- package/dist/presentation/TagSet.module.js +7 -0
- package/dist/presentation/TagSet_module.css +15 -0
- package/dist/presentation/Tag_module.css +53 -0
- package/dist/presentation/Timeline.d.ts +10 -0
- package/dist/presentation/Timeline.js +24 -0
- package/dist/presentation/Timeline.module.js +7 -0
- package/dist/presentation/Timeline_module.css +32 -0
- package/dist/presentation/Title.d.ts +10 -0
- package/dist/presentation/Title.js +10 -0
- package/dist/presentation/Tooltip.d.ts +7 -0
- package/dist/presentation/Tooltip.js +62 -0
- package/dist/presentation/Tooltip.module.js +6 -0
- package/dist/presentation/Tooltip_module.css +12 -0
- package/dist/presentation/VStack.d.ts +13 -0
- package/dist/presentation/VStack.js +15 -0
- package/dist/presentation/VStack.module.js +5 -0
- package/dist/presentation/VStack_module.css +8 -0
- package/dist/shared.css +351 -335
- package/dist/utils/NextContext.d.ts +10 -0
- package/dist/utils/NextContext.js +4 -0
- package/dist/utils/TrackingContext.d.ts +20 -0
- package/dist/utils/TrackingContext.js +4 -0
- package/dist/utils/customProperties.d.ts +5 -0
- package/dist/utils/customProperties.js +3 -0
- package/dist/utils/encodeCsv.d.ts +5 -0
- package/dist/utils/encodeCsv.js +30 -0
- package/dist/utils/search.d.ts +4 -0
- package/dist/utils/search.js +10 -0
- package/dist/utils/useNextContext.d.ts +35 -0
- package/dist/utils/useNextContext.js +9 -0
- package/dist/validators/isGreaterThan.d.ts +8 -0
- package/dist/validators/isGreaterThan.js +11 -0
- package/dist/validators/isInteger.d.ts +8 -0
- package/dist/validators/isInteger.js +11 -0
- package/dist/validators/isLessThan.d.ts +8 -0
- package/dist/validators/isLessThan.js +11 -0
- package/dist/validators/isNotBlank.d.ts +8 -0
- package/dist/validators/isNotBlank.js +11 -0
- package/dist/validators/isNotEmpty.d.ts +8 -0
- package/dist/validators/isNotEmpty.js +11 -0
- package/dist/validators/isNumber.d.ts +8 -0
- package/dist/validators/isNumber.js +12 -0
- package/dist/validators/isRequired.d.ts +8 -0
- package/dist/validators/isRequired.js +11 -0
- package/dist/validators/isTrue.d.ts +8 -0
- package/dist/validators/isTrue.js +11 -0
- package/dist/validators/isValidEmail.d.ts +8 -0
- package/dist/validators/isValidEmail.js +12 -0
- package/dist/visuals/ProportionVisual.d.ts +11 -0
- package/dist/visuals/ProportionVisual.js +41 -0
- package/dist/visuals/ProportionVisual.module.js +16 -0
- package/dist/visuals/ProportionVisualCompact.d.ts +9 -0
- package/dist/visuals/ProportionVisualCompact.js +27 -0
- package/dist/visuals/ProportionVisualCompact.module.js +15 -0
- package/dist/visuals/ProportionVisualCompact_module.css +48 -0
- package/dist/visuals/ProportionVisual_module.css +65 -0
- package/package.json +70 -28
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__FormStatusIndicator_module_js_4888e7ef__ from "./FormStatusIndicator.module.js";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__presentation_Icon_js_6961aa57__ from "../presentation/Icon.js";
|
|
5
|
+
const FormStatusIndicator = ({ id, status })=>{
|
|
6
|
+
switch(status){
|
|
7
|
+
case "disabled":
|
|
8
|
+
return null;
|
|
9
|
+
case "errored":
|
|
10
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
11
|
+
className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__FormStatusIndicator_module_js_4888e7ef__["default"].indicator, __WEBPACK_EXTERNAL_MODULE__FormStatusIndicator_module_js_4888e7ef__["default"].error),
|
|
12
|
+
id: id,
|
|
13
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__presentation_Icon_js_6961aa57__["default"], {
|
|
14
|
+
symbol: "Warning"
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
case "loading":
|
|
18
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
19
|
+
className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__FormStatusIndicator_module_js_4888e7ef__["default"].indicator, __WEBPACK_EXTERNAL_MODULE__FormStatusIndicator_module_js_4888e7ef__["default"].loading),
|
|
20
|
+
id: id,
|
|
21
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__presentation_Icon_js_6961aa57__["default"], {
|
|
22
|
+
animate: true,
|
|
23
|
+
symbol: "Loading"
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
case "fresh":
|
|
27
|
+
case "modified":
|
|
28
|
+
return null;
|
|
29
|
+
case "success":
|
|
30
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
31
|
+
className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__FormStatusIndicator_module_js_4888e7ef__["default"].indicator, __WEBPACK_EXTERNAL_MODULE__FormStatusIndicator_module_js_4888e7ef__["default"].success),
|
|
32
|
+
id: id,
|
|
33
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__presentation_Icon_js_6961aa57__["default"], {
|
|
34
|
+
symbol: "Success"
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const FormStatusIndicator_rslib_entry_ = FormStatusIndicator;
|
|
40
|
+
export { FormStatusIndicator_rslib_entry_ as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./FormStatusIndicator_module.css";
|
|
2
|
+
const FormStatusIndicator_module_rslib_entry_ = {
|
|
3
|
+
indicator: "indicator-S9msf0",
|
|
4
|
+
error: "error-PKzTPf",
|
|
5
|
+
loading: "loading-U2WuNk",
|
|
6
|
+
success: "success-CSCH4Z"
|
|
7
|
+
};
|
|
8
|
+
export { FormStatusIndicator_module_rslib_entry_ as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.indicator-S9msf0 {
|
|
2
|
+
font: var(--font-regular-bold);
|
|
3
|
+
align-items: center;
|
|
4
|
+
display: flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.error-PKzTPf {
|
|
8
|
+
color: var(--color-red-000);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.loading-U2WuNk {
|
|
12
|
+
color: var(--color-purple-000);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.success-CSCH4Z {
|
|
16
|
+
color: var(--color-green-000);
|
|
17
|
+
}
|
|
18
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ValidationError } from "./_types";
|
|
3
|
+
type Props = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
errors?: Array<ValidationError>;
|
|
7
|
+
id?: string;
|
|
8
|
+
inputId?: string;
|
|
9
|
+
label: ReactNode;
|
|
10
|
+
labelFont?: "heading" | "subheading" | "label" | "regular-bold" | "regular" | "small";
|
|
11
|
+
required?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare const RegularField: ({ children, description, errors, id, inputId, label, labelFont, required, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default RegularField;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__RegularField_module_js_8de17b7e__ from "./RegularField.module.js";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__FormErrorList_js_8b07ab1b__ from "./FormErrorList.js";
|
|
5
|
+
const RegularField = ({ children, description, errors, id, inputId, label, labelFont = "label", required })=>{
|
|
6
|
+
const hasErrors = null != errors && errors.length > 0;
|
|
7
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
8
|
+
className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__RegularField_module_js_8de17b7e__["default"].field, {
|
|
9
|
+
[__WEBPACK_EXTERNAL_MODULE__RegularField_module_js_8de17b7e__["default"].hasErrors]: hasErrors
|
|
10
|
+
}),
|
|
11
|
+
id: id,
|
|
12
|
+
children: [
|
|
13
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
14
|
+
className: __WEBPACK_EXTERNAL_MODULE__RegularField_module_js_8de17b7e__["default"].head,
|
|
15
|
+
children: [
|
|
16
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("label", {
|
|
17
|
+
className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__RegularField_module_js_8de17b7e__["default"].label, {
|
|
18
|
+
[__WEBPACK_EXTERNAL_MODULE__RegularField_module_js_8de17b7e__["default"].heading]: "heading" === labelFont,
|
|
19
|
+
[__WEBPACK_EXTERNAL_MODULE__RegularField_module_js_8de17b7e__["default"].subheading]: "subheading" === labelFont,
|
|
20
|
+
[__WEBPACK_EXTERNAL_MODULE__RegularField_module_js_8de17b7e__["default"].regularBold]: "regular-bold" === labelFont,
|
|
21
|
+
[__WEBPACK_EXTERNAL_MODULE__RegularField_module_js_8de17b7e__["default"].regular]: "regular" === labelFont,
|
|
22
|
+
[__WEBPACK_EXTERNAL_MODULE__RegularField_module_js_8de17b7e__["default"].small]: "small" === labelFont
|
|
23
|
+
}),
|
|
24
|
+
htmlFor: inputId,
|
|
25
|
+
children: label
|
|
26
|
+
}),
|
|
27
|
+
required ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
28
|
+
className: __WEBPACK_EXTERNAL_MODULE__RegularField_module_js_8de17b7e__["default"].required,
|
|
29
|
+
children: "Required"
|
|
30
|
+
}) : null
|
|
31
|
+
]
|
|
32
|
+
}),
|
|
33
|
+
description ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
34
|
+
children: description
|
|
35
|
+
}) : null,
|
|
36
|
+
hasErrors ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__FormErrorList_js_8b07ab1b__["default"], {
|
|
37
|
+
errors: errors,
|
|
38
|
+
size: "small"
|
|
39
|
+
}) : null,
|
|
40
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
41
|
+
children: children
|
|
42
|
+
})
|
|
43
|
+
]
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
const RegularField_rslib_entry_ = RegularField;
|
|
47
|
+
export { RegularField_rslib_entry_ as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "./RegularField_module.css";
|
|
2
|
+
const RegularField_module_rslib_entry_ = {
|
|
3
|
+
field: "field-GH9QIA",
|
|
4
|
+
head: "head-s5Zr2b",
|
|
5
|
+
label: "label-NaCbZE",
|
|
6
|
+
heading: "heading-ofYGhi",
|
|
7
|
+
subheading: "subheading-g9GfnF",
|
|
8
|
+
regularBold: "regularBold-r51mgx",
|
|
9
|
+
regular: "regular-VGb3NF",
|
|
10
|
+
small: "small-krjczq",
|
|
11
|
+
hasErrors: "hasErrors-eXbO7M",
|
|
12
|
+
required: "required-ASR__G"
|
|
13
|
+
};
|
|
14
|
+
export { RegularField_module_rslib_entry_ as default };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.field-GH9QIA {
|
|
2
|
+
gap: var(--size-n2);
|
|
3
|
+
display: grid;
|
|
4
|
+
position: relative;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.head-s5Zr2b {
|
|
8
|
+
align-items: baseline;
|
|
9
|
+
gap: var(--size-n3);
|
|
10
|
+
grid-template-columns: 1fr auto;
|
|
11
|
+
display: grid;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.head-s5Zr2b .label-NaCbZE {
|
|
15
|
+
font: var(--font-regular-bold);
|
|
16
|
+
grid-column: 1 / 2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.head-s5Zr2b .label-NaCbZE.heading-ofYGhi {
|
|
20
|
+
font: var(--font-h2);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.head-s5Zr2b .label-NaCbZE.subheading-g9GfnF {
|
|
24
|
+
font: var(--font-h3);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.head-s5Zr2b .label-NaCbZE.regularBold-r51mgx {
|
|
28
|
+
font: var(--font-regular-bold);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.head-s5Zr2b .label-NaCbZE.regular-VGb3NF {
|
|
32
|
+
font: var(--font-regular);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.head-s5Zr2b .label-NaCbZE.small-krjczq {
|
|
36
|
+
font: var(--font-small);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.hasErrors-eXbO7M .head-s5Zr2b .label-NaCbZE {
|
|
40
|
+
color: var(--color-red-t03);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.head-s5Zr2b .required-ASR__G {
|
|
44
|
+
color: var(--color-grey-t03);
|
|
45
|
+
font: var(--font-small-italic);
|
|
46
|
+
}
|
|
47
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ValidationError } from "./_types";
|
|
3
|
+
type Props = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
errors?: Array<ValidationError>;
|
|
7
|
+
id?: string;
|
|
8
|
+
inputId?: string;
|
|
9
|
+
label: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
declare const ToggleField: ({ children, description, errors, id, inputId, label }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default ToggleField;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__ToggleField_module_js_814fb37e__ from "./ToggleField.module.js";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__FormErrorList_js_8b07ab1b__ from "./FormErrorList.js";
|
|
5
|
+
const ToggleField = ({ children, description, errors, id, inputId, label })=>{
|
|
6
|
+
const hasErrors = null != errors && errors.length > 0;
|
|
7
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
8
|
+
className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__ToggleField_module_js_814fb37e__["default"].container, {
|
|
9
|
+
[__WEBPACK_EXTERNAL_MODULE__ToggleField_module_js_814fb37e__["default"].hasErrors]: hasErrors
|
|
10
|
+
}),
|
|
11
|
+
id: id,
|
|
12
|
+
children: [
|
|
13
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
14
|
+
className: __WEBPACK_EXTERNAL_MODULE__ToggleField_module_js_814fb37e__["default"].content,
|
|
15
|
+
children: [
|
|
16
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
17
|
+
className: __WEBPACK_EXTERNAL_MODULE__ToggleField_module_js_814fb37e__["default"].input,
|
|
18
|
+
children: children
|
|
19
|
+
}),
|
|
20
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("label", {
|
|
21
|
+
className: __WEBPACK_EXTERNAL_MODULE__ToggleField_module_js_814fb37e__["default"].label,
|
|
22
|
+
htmlFor: inputId,
|
|
23
|
+
children: label
|
|
24
|
+
})
|
|
25
|
+
]
|
|
26
|
+
}),
|
|
27
|
+
hasErrors ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__FormErrorList_js_8b07ab1b__["default"], {
|
|
28
|
+
errors: errors,
|
|
29
|
+
size: "small"
|
|
30
|
+
}) : null,
|
|
31
|
+
description ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
32
|
+
children: description
|
|
33
|
+
}) : null
|
|
34
|
+
]
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
const ToggleField_rslib_entry_ = ToggleField;
|
|
38
|
+
export { ToggleField_rslib_entry_ as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.container-CxKCQ9 {
|
|
2
|
+
gap: var(--size-n2);
|
|
3
|
+
display: grid;
|
|
4
|
+
position: relative;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.content-X4T0f7 {
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: var(--size-n2);
|
|
10
|
+
grid-template-columns: auto 1fr;
|
|
11
|
+
display: grid;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.label-FiubLL {
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
font: var(--font-regular);
|
|
17
|
+
-webkit-user-select: none;
|
|
18
|
+
user-select: none;
|
|
19
|
+
width: max-content;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.hasErrors-P1so2c .content-X4T0f7 .label-FiubLL {
|
|
23
|
+
color: var(--color-red-t03);
|
|
24
|
+
}
|
|
25
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type FormModel = {
|
|
2
|
+
[Field: string]: any;
|
|
3
|
+
};
|
|
4
|
+
export type FormState<Model extends FormModel = Record<string, never>> = {
|
|
5
|
+
data: Model;
|
|
6
|
+
fieldErrors: Record<keyof Model, Array<ValidationError>>;
|
|
7
|
+
formErrors: Array<ValidationError>;
|
|
8
|
+
setData: React.Dispatch<React.SetStateAction<Model>>;
|
|
9
|
+
status: FormStatus;
|
|
10
|
+
submit: (event?: React.UIEvent) => Promise<void>;
|
|
11
|
+
};
|
|
12
|
+
export type FormStatus = "disabled" | "fresh" | "modified" | "loading" | "errored" | "success";
|
|
13
|
+
export type ValidationError<Model extends FormModel = Record<string, never>> = {
|
|
14
|
+
field?: keyof Model;
|
|
15
|
+
id: string;
|
|
16
|
+
message: string;
|
|
17
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { FormModel, FormState, ValidationError } from "./_types";
|
|
2
|
+
type Props<Model extends FormModel, Result> = {
|
|
3
|
+
initialValues: {
|
|
4
|
+
[Field in keyof Model]: Model[Field];
|
|
5
|
+
};
|
|
6
|
+
onSubmit: (data: Model) => Promise<Result>;
|
|
7
|
+
onSuccess?: (result: Result) => any | Promise<any>;
|
|
8
|
+
validators?: Array<(data: Model) => Validator<Model> | Promise<Validator<Model>>>;
|
|
9
|
+
};
|
|
10
|
+
type Validator<Model extends FormModel> = null | ValidationError<Model> | ((data: Model) => Validator<Model> | Promise<Validator<Model>>) | Array<Validator<Model>>;
|
|
11
|
+
/**
|
|
12
|
+
* Manages the state of a form and provide methods for handling validation and
|
|
13
|
+
* submission.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const ExampleComponent = () => {
|
|
17
|
+
* const { data, setData, fieldErrors, submit, status } = useForm<{ name: string; active: boolean }>({
|
|
18
|
+
* initialValues: { name: "", active: false },
|
|
19
|
+
* onSubmit: async (data) => {
|
|
20
|
+
* const result = await api.post("/users", data);
|
|
21
|
+
* return result;
|
|
22
|
+
* },
|
|
23
|
+
* validators: [
|
|
24
|
+
* (data) =>
|
|
25
|
+
* data.name === "" ? { id: uuid(), field: "name", message: "Name is required." } : null,
|
|
26
|
+
* ],
|
|
27
|
+
* });
|
|
28
|
+
*
|
|
29
|
+
* return (
|
|
30
|
+
* <form
|
|
31
|
+
* onSubmit={() => {
|
|
32
|
+
* submit();
|
|
33
|
+
* }}
|
|
34
|
+
* >
|
|
35
|
+
* <input
|
|
36
|
+
* type="text"
|
|
37
|
+
* value={data.name}
|
|
38
|
+
* onChange={({ target: { value } }) => setData({ ...data, name: value })}
|
|
39
|
+
* />
|
|
40
|
+
* {fieldErrors.name.map((error) => (
|
|
41
|
+
* <div key={error.id}>{error.message}</div>
|
|
42
|
+
* ))}
|
|
43
|
+
* <input
|
|
44
|
+
* type="checkbox"
|
|
45
|
+
* checked={data.active}
|
|
46
|
+
* onChange={() => setData({ ...data, active: !data.active })}
|
|
47
|
+
* />
|
|
48
|
+
* <button type="submit" disabled={status !== "ready"}>Submit</button>
|
|
49
|
+
* </form>
|
|
50
|
+
* );
|
|
51
|
+
* };
|
|
52
|
+
*/
|
|
53
|
+
declare const useForm: <Model extends FormModel, Result = any>({ initialValues, onSubmit, onSuccess, validators, }: Props<Model, Result>) => FormState<Model>;
|
|
54
|
+
export default useForm;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_uuid__ from "uuid";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__FormError_js_149fc952__ from "./FormError.js";
|
|
4
|
+
const useForm = ({ initialValues, onSubmit, onSuccess, validators })=>{
|
|
5
|
+
const sleep = useSleep();
|
|
6
|
+
const [status, setStatus] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)("fresh");
|
|
7
|
+
const [data, setData] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(initialValues);
|
|
8
|
+
const [errors, setErrors] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)([]);
|
|
9
|
+
const submit = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(async (event)=>{
|
|
10
|
+
setStatus("loading");
|
|
11
|
+
event?.preventDefault();
|
|
12
|
+
setErrors([]);
|
|
13
|
+
const validationErrors = await Promise.all((validators ?? []).map((validator)=>validatorToValidationErrors(data, validator)));
|
|
14
|
+
const flatValidationErrors = validationErrors.flat();
|
|
15
|
+
if (flatValidationErrors.length > 0) {
|
|
16
|
+
await sleep(250, ()=>setStatus("modified"));
|
|
17
|
+
setErrors(flatValidationErrors);
|
|
18
|
+
setStatus("errored");
|
|
19
|
+
await sleep(1000, ()=>setStatus("modified"));
|
|
20
|
+
setStatus("modified");
|
|
21
|
+
} else try {
|
|
22
|
+
const result = await onSubmit(data);
|
|
23
|
+
setStatus("success");
|
|
24
|
+
if (onSuccess) await onSuccess(result);
|
|
25
|
+
else await sleep(1000, ()=>setStatus("modified"));
|
|
26
|
+
setStatus("modified");
|
|
27
|
+
} catch (error) {
|
|
28
|
+
if (error instanceof __WEBPACK_EXTERNAL_MODULE__FormError_js_149fc952__["default"]) setErrors(error.validationErrors);
|
|
29
|
+
else error instanceof Error ? setErrors([
|
|
30
|
+
{
|
|
31
|
+
id: (0, __WEBPACK_EXTERNAL_MODULE_uuid__.v4)(),
|
|
32
|
+
message: error.message
|
|
33
|
+
}
|
|
34
|
+
]) : setErrors([
|
|
35
|
+
{
|
|
36
|
+
id: (0, __WEBPACK_EXTERNAL_MODULE_uuid__.v4)(),
|
|
37
|
+
message: "Unknown error."
|
|
38
|
+
}
|
|
39
|
+
]);
|
|
40
|
+
setStatus("errored");
|
|
41
|
+
await sleep(1000, ()=>setStatus("modified"));
|
|
42
|
+
setStatus("modified");
|
|
43
|
+
}
|
|
44
|
+
}, [
|
|
45
|
+
data,
|
|
46
|
+
onSubmit,
|
|
47
|
+
onSuccess,
|
|
48
|
+
sleep,
|
|
49
|
+
validators
|
|
50
|
+
]);
|
|
51
|
+
const fieldErrors = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>Object.fromEntries(Object.keys(initialValues).map((key)=>[
|
|
52
|
+
key,
|
|
53
|
+
errors.filter((error)=>error.field === key)
|
|
54
|
+
])), [
|
|
55
|
+
errors,
|
|
56
|
+
initialValues
|
|
57
|
+
]);
|
|
58
|
+
const formErrors = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>errors.filter((error)=>void 0 === error.field), [
|
|
59
|
+
errors
|
|
60
|
+
]);
|
|
61
|
+
const setDataAndMarkAsModified = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((value)=>{
|
|
62
|
+
setData(value);
|
|
63
|
+
setStatus("modified");
|
|
64
|
+
}, [
|
|
65
|
+
setData,
|
|
66
|
+
setStatus
|
|
67
|
+
]);
|
|
68
|
+
return {
|
|
69
|
+
data,
|
|
70
|
+
fieldErrors,
|
|
71
|
+
formErrors,
|
|
72
|
+
setData: setDataAndMarkAsModified,
|
|
73
|
+
status,
|
|
74
|
+
submit
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
const useSleep = ()=>{
|
|
78
|
+
const timeout = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(void 0);
|
|
79
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>()=>{
|
|
80
|
+
if (timeout.current) {
|
|
81
|
+
clearTimeout(timeout.current.id);
|
|
82
|
+
if (timeout.current.finalFn) timeout.current.finalFn();
|
|
83
|
+
}
|
|
84
|
+
}, []);
|
|
85
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(async (ms, finalFn)=>{
|
|
86
|
+
if (timeout.current) clearTimeout(timeout.current.id);
|
|
87
|
+
await new Promise((resolve)=>{
|
|
88
|
+
timeout.current = {
|
|
89
|
+
id: setTimeout(resolve, ms),
|
|
90
|
+
finalFn
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
}, []);
|
|
94
|
+
};
|
|
95
|
+
const validatorToValidationErrors = async (data, validator)=>{
|
|
96
|
+
if (null === validator) return [];
|
|
97
|
+
if (Array.isArray(validator)) {
|
|
98
|
+
const result = await Promise.all(validator.map((validator)=>validatorToValidationErrors(data, validator)));
|
|
99
|
+
return result.flat();
|
|
100
|
+
}
|
|
101
|
+
if ("function" == typeof validator) return validatorToValidationErrors(data, await validator(data));
|
|
102
|
+
return [
|
|
103
|
+
validator
|
|
104
|
+
];
|
|
105
|
+
};
|
|
106
|
+
const useForm_rslib_entry_ = useForm;
|
|
107
|
+
export { useForm_rslib_entry_ as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
|
+
const ChevronIcon = ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
|
|
3
|
+
width: 22,
|
|
4
|
+
height: 22,
|
|
5
|
+
fill: "none",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
|
|
8
|
+
d: "M5.306 10.999c.006-.34.128-.623.402-.889L12.09 3.86c.218-.212.474-.316.788-.316a1.115 1.115 0 01.772 1.928l-5.68 5.525 5.68 5.53a1.117 1.117 0 01-.772 1.931c-.309 0-.57-.104-.788-.322l-6.382-6.248c-.276-.271-.402-.552-.402-.888z",
|
|
9
|
+
fill: "currentColor"
|
|
10
|
+
})
|
|
11
|
+
});
|
|
12
|
+
const ChevronIcon_rslib_entry_ = ChevronIcon;
|
|
13
|
+
export { ChevronIcon_rslib_entry_ as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
href: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
badge?: ReactNode;
|
|
6
|
+
active: boolean;
|
|
7
|
+
icon: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
declare const NavItem: ({ href, icon, label, badge, active }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default NavItem;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__utils_useNextContext_js_47529181__ from "../utils/useNextContext.js";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__NavItem_module_js_8915774d__ from "./NavItem.module.js";
|
|
6
|
+
const NavItem = ({ href, icon, label, badge, active = false })=>{
|
|
7
|
+
const { Link } = (0, __WEBPACK_EXTERNAL_MODULE__utils_useNextContext_js_47529181__["default"])();
|
|
8
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Link, {
|
|
9
|
+
href: href,
|
|
10
|
+
legacyBehavior: true,
|
|
11
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("a", {
|
|
12
|
+
className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__NavItem_module_js_8915774d__["default"].item, {
|
|
13
|
+
[__WEBPACK_EXTERNAL_MODULE__NavItem_module_js_8915774d__["default"].active]: active
|
|
14
|
+
}),
|
|
15
|
+
children: [
|
|
16
|
+
icon,
|
|
17
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
18
|
+
className: __WEBPACK_EXTERNAL_MODULE__NavItem_module_js_8915774d__["default"].label,
|
|
19
|
+
children: label
|
|
20
|
+
}),
|
|
21
|
+
badge
|
|
22
|
+
]
|
|
23
|
+
})
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const NavItem_rslib_entry_ = NavItem;
|
|
27
|
+
export { NavItem_rslib_entry_ as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__utils_useNextContext_js_47529181__ from "../utils/useNextContext.js";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__NavItemChild_module_js_d468614f__ from "./NavItemChild.module.js";
|
|
6
|
+
const NavItem = ({ href, label, active = false })=>{
|
|
7
|
+
const { Link } = (0, __WEBPACK_EXTERNAL_MODULE__utils_useNextContext_js_47529181__["default"])();
|
|
8
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Link, {
|
|
9
|
+
href: href,
|
|
10
|
+
legacyBehavior: true,
|
|
11
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
|
|
12
|
+
className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__NavItemChild_module_js_d468614f__["default"].item, {
|
|
13
|
+
[__WEBPACK_EXTERNAL_MODULE__NavItemChild_module_js_d468614f__["default"].active]: active
|
|
14
|
+
}),
|
|
15
|
+
children: label
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
const NavItemChild_rslib_entry_ = NavItem;
|
|
20
|
+
export { NavItemChild_rslib_entry_ as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.item-fTF_UR {
|
|
2
|
+
padding: var(--size-n1);
|
|
3
|
+
gap: var(--size-n2);
|
|
4
|
+
border-radius: var(--size-n3);
|
|
5
|
+
font: var(--font-regular);
|
|
6
|
+
padding-left: 36px;
|
|
7
|
+
display: block;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.item-fTF_UR.active-VGPKer {
|
|
11
|
+
background: var(--color-purple-000);
|
|
12
|
+
color: var(--color-white);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media (hover: hover) {
|
|
16
|
+
.item-fTF_UR:not(.active-VGPKer):hover {
|
|
17
|
+
background: var(--color-grey-t09);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.item-BpUNGR {
|
|
2
|
+
padding: var(--size-n1);
|
|
3
|
+
gap: var(--size-n2);
|
|
4
|
+
border-radius: var(--size-n3);
|
|
5
|
+
grid-template-columns: max-content 1fr;
|
|
6
|
+
grid-auto-columns: max-content;
|
|
7
|
+
grid-auto-flow: column;
|
|
8
|
+
align-items: center;
|
|
9
|
+
display: grid;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.item-BpUNGR.active-V65GY2 {
|
|
13
|
+
background: var(--color-purple-000);
|
|
14
|
+
color: var(--color-white);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.label-c5y730 {
|
|
18
|
+
font: var(--font-regular);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media (hover: hover) {
|
|
22
|
+
.item-BpUNGR:not(.active-V65GY2):hover {
|
|
23
|
+
background: var(--color-grey-t09);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
items: Array<{
|
|
4
|
+
key: string;
|
|
5
|
+
value: ReactNode;
|
|
6
|
+
} | null>;
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
initiallyOpen: boolean;
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
declare const NavSection: ({ items, label, initiallyOpen, icon }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export default NavSection;
|