@neo4j-ndl/react 4.24.2 → 4.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/_common/form-control/FormFieldLabel.js +1 -1
- package/lib/cjs/_common/form-control/FormFieldLabel.js.map +1 -1
- package/lib/cjs/_common/form-control/FormFieldMessage.js +1 -1
- package/lib/cjs/_common/form-control/FormFieldMessage.js.map +1 -1
- package/lib/cjs/_common/form-control/form-control-types.js +1 -1
- package/lib/cjs/_common/form-control/form-control-types.js.map +1 -1
- package/lib/cjs/_common/form-control/form-field-group-context.js +32 -0
- package/lib/cjs/_common/form-control/form-field-group-context.js.map +1 -0
- package/lib/cjs/_common/form-control/index.js +5 -2
- package/lib/cjs/_common/form-control/index.js.map +1 -1
- package/lib/cjs/_common/form-control/use-form-field.js +1 -1
- package/lib/cjs/_common/form-control/use-form-field.js.map +1 -1
- package/lib/cjs/_common/form-control/use-inline-field-label.js +1 -1
- package/lib/cjs/_common/form-control/use-inline-field-label.js.map +1 -1
- package/lib/cjs/_generated/style-rules/color-utils.js +1 -1
- package/lib/cjs/_generated/style-rules/numeric-utils.js +1 -1
- package/lib/cjs/accordion/accordion-types.js +1 -1
- package/lib/cjs/announcement-banner/AnnouncementBanner.js +1 -1
- package/lib/cjs/announcement-banner/AnnouncementBanner.js.map +1 -1
- package/lib/cjs/announcement-banner/index.js +1 -1
- package/lib/cjs/announcement-banner/index.js.map +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-closeable.story.js +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-closeable.story.js.map +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-custom-icons.story.js +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-custom-icons.story.js.map +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-default.story.js +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-default.story.js.map +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js.map +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-injected-urgent.story.js +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-injected-urgent.story.js.map +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-present-at-page-render.story.js +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-present-at-page-render.story.js.map +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-variants.story.js +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-variants.story.js.map +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-with-actions.story.js +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-with-actions.story.js.map +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-with-page-content.story.js +1 -1
- package/lib/cjs/announcement-banner/stories/announcement-banner-with-page-content.story.js.map +1 -1
- package/lib/cjs/announcement-banner/stories/index.js +1 -1
- package/lib/cjs/announcement-banner/stories/index.js.map +1 -1
- package/lib/cjs/box/Box.js +1 -1
- package/lib/cjs/checkbox/Checkbox.js +6 -3
- package/lib/cjs/checkbox/Checkbox.js.map +1 -1
- package/lib/cjs/checkbox-group/CheckboxGroup.js +52 -0
- package/lib/cjs/checkbox-group/CheckboxGroup.js.map +1 -0
- package/lib/cjs/checkbox-group/index.js +26 -0
- package/lib/cjs/checkbox-group/index.js.map +1 -0
- package/lib/cjs/checkbox-group/stories/checkbox-group-default.story.js +30 -0
- package/lib/cjs/checkbox-group/stories/checkbox-group-default.story.js.map +1 -0
- package/lib/cjs/checkbox-group/stories/checkbox-group-disabled.story.js +30 -0
- package/lib/cjs/checkbox-group/stories/checkbox-group-disabled.story.js.map +1 -0
- package/lib/cjs/checkbox-group/stories/checkbox-group-error.story.js +30 -0
- package/lib/cjs/checkbox-group/stories/checkbox-group-error.story.js.map +1 -0
- package/lib/cjs/checkbox-group/stories/checkbox-group-optional.story.js +30 -0
- package/lib/cjs/checkbox-group/stories/checkbox-group-optional.story.js.map +1 -0
- package/lib/cjs/checkbox-group/stories/checkbox-group-required.story.js +30 -0
- package/lib/cjs/checkbox-group/stories/checkbox-group-required.story.js.map +1 -0
- package/lib/cjs/checkbox-group/stories/checkbox-group-visually-hidden-label.story.js +30 -0
- package/lib/cjs/checkbox-group/stories/checkbox-group-visually-hidden-label.story.js.map +1 -0
- package/lib/cjs/checkbox-group/stories/index.js +52 -0
- package/lib/cjs/checkbox-group/stories/index.js.map +1 -0
- package/lib/cjs/clean-icon-button/CleanIconButton.js +1 -1
- package/lib/cjs/data-grid/DataGrid.js +1 -1
- package/lib/cjs/data-grid/data-grid-context.js +1 -1
- package/lib/cjs/data-grid/data-grid-nav/index.js +1 -1
- package/lib/cjs/data-grid/helpers/index.js +1 -1
- package/lib/cjs/data-grid/stories/staticData.js +1 -1
- package/lib/cjs/dismissible-tag/DismissibleTag.js +1 -1
- package/lib/cjs/fieldset/Fieldset.js +78 -0
- package/lib/cjs/fieldset/Fieldset.js.map +1 -0
- package/lib/cjs/fieldset/index.js +26 -0
- package/lib/cjs/fieldset/index.js.map +1 -0
- package/lib/cjs/fieldset/stories/fieldset-default.story.js +30 -0
- package/lib/cjs/fieldset/stories/fieldset-default.story.js.map +1 -0
- package/lib/cjs/fieldset/stories/fieldset-disabled.story.js +30 -0
- package/lib/cjs/fieldset/stories/fieldset-disabled.story.js.map +1 -0
- package/lib/cjs/fieldset/stories/fieldset-error.story.js +30 -0
- package/lib/cjs/fieldset/stories/fieldset-error.story.js.map +1 -0
- package/lib/cjs/fieldset/stories/fieldset-optional.story.js +30 -0
- package/lib/cjs/fieldset/stories/fieldset-optional.story.js.map +1 -0
- package/lib/cjs/fieldset/stories/fieldset-required.story.js +30 -0
- package/lib/cjs/fieldset/stories/fieldset-required.story.js.map +1 -0
- package/lib/cjs/fieldset/stories/fieldset-visually-hidden-label.story.js +30 -0
- package/lib/cjs/fieldset/stories/fieldset-visually-hidden-label.story.js.map +1 -0
- package/lib/cjs/fieldset/stories/index.js +52 -0
- package/lib/cjs/fieldset/stories/index.js.map +1 -0
- package/lib/cjs/filled-button/FilledButton.js +1 -1
- package/lib/cjs/icon-button/IconButton.js +1 -1
- package/lib/cjs/icons/generated/custom/FloppyDiskArrowTopRight.js +1 -1
- package/lib/cjs/icons/generated/custom/FloppyDiskArrowTopRight.js.map +1 -1
- package/lib/cjs/index.js +8 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/kbd/kbd-utils.js +1 -1
- package/lib/cjs/logo/Logo.js +1 -1
- package/lib/cjs/outlined-button/OutlinedButton.js +1 -1
- package/lib/cjs/radio/Radio.js +16 -3
- package/lib/cjs/radio/Radio.js.map +1 -1
- package/lib/cjs/radio-group/RadioGroup.js +62 -0
- package/lib/cjs/radio-group/RadioGroup.js.map +1 -0
- package/lib/cjs/radio-group/index.js +26 -0
- package/lib/cjs/radio-group/index.js.map +1 -0
- package/lib/cjs/radio-group/stories/index.js +60 -0
- package/lib/cjs/radio-group/stories/index.js.map +1 -0
- package/lib/cjs/radio-group/stories/radio-group-controlled.story.js +32 -0
- package/lib/cjs/radio-group/stories/radio-group-controlled.story.js.map +1 -0
- package/lib/cjs/radio-group/stories/radio-group-default.story.js +30 -0
- package/lib/cjs/radio-group/stories/radio-group-default.story.js.map +1 -0
- package/lib/cjs/radio-group/stories/radio-group-disabled.story.js +30 -0
- package/lib/cjs/radio-group/stories/radio-group-disabled.story.js.map +1 -0
- package/lib/cjs/radio-group/stories/radio-group-error.story.js +30 -0
- package/lib/cjs/radio-group/stories/radio-group-error.story.js.map +1 -0
- package/lib/cjs/radio-group/stories/radio-group-horizontal.story.js +30 -0
- package/lib/cjs/radio-group/stories/radio-group-horizontal.story.js.map +1 -0
- package/lib/cjs/radio-group/stories/radio-group-optional.story.js +30 -0
- package/lib/cjs/radio-group/stories/radio-group-optional.story.js.map +1 -0
- package/lib/cjs/radio-group/stories/radio-group-required.story.js +30 -0
- package/lib/cjs/radio-group/stories/radio-group-required.story.js.map +1 -0
- package/lib/cjs/radio-group/stories/radio-group-visually-hidden-label.story.js +30 -0
- package/lib/cjs/radio-group/stories/radio-group-visually-hidden-label.story.js.map +1 -0
- package/lib/cjs/read-only-tag/ReadOnlyTag.js +1 -1
- package/lib/cjs/select/types.js +1 -1
- package/lib/cjs/spotlight/SpotlightTour.js +1 -1
- package/lib/cjs/text-button/TextButton.js +1 -1
- package/lib/cjs/tree-view/TreeViewItem.js +1 -1
- package/lib/cjs/tree-view/TreeViewTextItem.js +1 -1
- package/lib/cjs/tree-view/TreeViewTrail.js +1 -1
- package/lib/cjs/tree-view/tree-view-types.js +1 -1
- package/lib/cjs/tree-view/tree-view-utils.js +1 -1
- package/lib/cjs/typography/Typography.js +1 -1
- package/lib/esm/_common/form-control/FormFieldLabel.js +1 -1
- package/lib/esm/_common/form-control/FormFieldLabel.js.map +1 -1
- package/lib/esm/_common/form-control/FormFieldMessage.js +1 -1
- package/lib/esm/_common/form-control/FormFieldMessage.js.map +1 -1
- package/lib/esm/_common/form-control/form-control-types.js +1 -1
- package/lib/esm/_common/form-control/form-control-types.js.map +1 -1
- package/lib/esm/_common/form-control/form-field-group-context.js +28 -0
- package/lib/esm/_common/form-control/form-field-group-context.js.map +1 -0
- package/lib/esm/_common/form-control/index.js +2 -1
- package/lib/esm/_common/form-control/index.js.map +1 -1
- package/lib/esm/_common/form-control/use-form-field.js +1 -1
- package/lib/esm/_common/form-control/use-form-field.js.map +1 -1
- package/lib/esm/_common/form-control/use-inline-field-label.js +1 -1
- package/lib/esm/_common/form-control/use-inline-field-label.js.map +1 -1
- package/lib/esm/_generated/style-rules/color-utils.js +1 -1
- package/lib/esm/_generated/style-rules/numeric-utils.js +1 -1
- package/lib/esm/accordion/accordion-types.js +1 -1
- package/lib/esm/announcement-banner/AnnouncementBanner.js +1 -1
- package/lib/esm/announcement-banner/AnnouncementBanner.js.map +1 -1
- package/lib/esm/announcement-banner/index.js +1 -1
- package/lib/esm/announcement-banner/index.js.map +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-closeable.story.js +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-closeable.story.js.map +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-custom-icons.story.js +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-custom-icons.story.js.map +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-default.story.js +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-default.story.js.map +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js.map +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-injected-urgent.story.js +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-injected-urgent.story.js.map +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-present-at-page-render.story.js +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-present-at-page-render.story.js.map +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-variants.story.js +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-variants.story.js.map +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-with-actions.story.js +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-with-actions.story.js.map +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-with-page-content.story.js +1 -1
- package/lib/esm/announcement-banner/stories/announcement-banner-with-page-content.story.js.map +1 -1
- package/lib/esm/announcement-banner/stories/index.js +1 -1
- package/lib/esm/announcement-banner/stories/index.js.map +1 -1
- package/lib/esm/box/Box.js +1 -1
- package/lib/esm/checkbox/Checkbox.js +7 -4
- package/lib/esm/checkbox/Checkbox.js.map +1 -1
- package/lib/esm/checkbox-group/CheckboxGroup.js +49 -0
- package/lib/esm/checkbox-group/CheckboxGroup.js.map +1 -0
- package/lib/esm/checkbox-group/index.js +22 -0
- package/lib/esm/checkbox-group/index.js.map +1 -0
- package/lib/esm/checkbox-group/stories/checkbox-group-default.story.js +28 -0
- package/lib/esm/checkbox-group/stories/checkbox-group-default.story.js.map +1 -0
- package/lib/esm/checkbox-group/stories/checkbox-group-disabled.story.js +28 -0
- package/lib/esm/checkbox-group/stories/checkbox-group-disabled.story.js.map +1 -0
- package/lib/esm/checkbox-group/stories/checkbox-group-error.story.js +28 -0
- package/lib/esm/checkbox-group/stories/checkbox-group-error.story.js.map +1 -0
- package/lib/esm/checkbox-group/stories/checkbox-group-optional.story.js +28 -0
- package/lib/esm/checkbox-group/stories/checkbox-group-optional.story.js.map +1 -0
- package/lib/esm/checkbox-group/stories/checkbox-group-required.story.js +28 -0
- package/lib/esm/checkbox-group/stories/checkbox-group-required.story.js.map +1 -0
- package/lib/esm/checkbox-group/stories/checkbox-group-visually-hidden-label.story.js +28 -0
- package/lib/esm/checkbox-group/stories/checkbox-group-visually-hidden-label.story.js.map +1 -0
- package/lib/esm/checkbox-group/stories/index.js +40 -0
- package/lib/esm/checkbox-group/stories/index.js.map +1 -0
- package/lib/esm/clean-icon-button/CleanIconButton.js +1 -1
- package/lib/esm/data-grid/DataGrid.js +1 -1
- package/lib/esm/data-grid/data-grid-context.js +1 -1
- package/lib/esm/data-grid/data-grid-nav/index.js +1 -1
- package/lib/esm/data-grid/helpers/index.js +1 -1
- package/lib/esm/data-grid/stories/staticData.js +1 -1
- package/lib/esm/dismissible-tag/DismissibleTag.js +1 -1
- package/lib/esm/fieldset/Fieldset.js +71 -0
- package/lib/esm/fieldset/Fieldset.js.map +1 -0
- package/lib/esm/fieldset/index.js +22 -0
- package/lib/esm/fieldset/index.js.map +1 -0
- package/lib/esm/fieldset/stories/fieldset-default.story.js +28 -0
- package/lib/esm/fieldset/stories/fieldset-default.story.js.map +1 -0
- package/lib/esm/fieldset/stories/fieldset-disabled.story.js +28 -0
- package/lib/esm/fieldset/stories/fieldset-disabled.story.js.map +1 -0
- package/lib/esm/fieldset/stories/fieldset-error.story.js +28 -0
- package/lib/esm/fieldset/stories/fieldset-error.story.js.map +1 -0
- package/lib/esm/fieldset/stories/fieldset-optional.story.js +28 -0
- package/lib/esm/fieldset/stories/fieldset-optional.story.js.map +1 -0
- package/lib/esm/fieldset/stories/fieldset-required.story.js +28 -0
- package/lib/esm/fieldset/stories/fieldset-required.story.js.map +1 -0
- package/lib/esm/fieldset/stories/fieldset-visually-hidden-label.story.js +28 -0
- package/lib/esm/fieldset/stories/fieldset-visually-hidden-label.story.js.map +1 -0
- package/lib/esm/fieldset/stories/index.js +40 -0
- package/lib/esm/fieldset/stories/index.js.map +1 -0
- package/lib/esm/filled-button/FilledButton.js +1 -1
- package/lib/esm/icon-button/IconButton.js +1 -1
- package/lib/esm/icons/generated/custom/FloppyDiskArrowTopRight.js +1 -1
- package/lib/esm/icons/generated/custom/FloppyDiskArrowTopRight.js.map +1 -1
- package/lib/esm/index.js +3 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/kbd/kbd-utils.js +1 -1
- package/lib/esm/logo/Logo.js +1 -1
- package/lib/esm/outlined-button/OutlinedButton.js +1 -1
- package/lib/esm/radio/Radio.js +17 -4
- package/lib/esm/radio/Radio.js.map +1 -1
- package/lib/esm/radio-group/RadioGroup.js +59 -0
- package/lib/esm/radio-group/RadioGroup.js.map +1 -0
- package/lib/esm/radio-group/index.js +22 -0
- package/lib/esm/radio-group/index.js.map +1 -0
- package/lib/esm/radio-group/stories/index.js +46 -0
- package/lib/esm/radio-group/stories/index.js.map +1 -0
- package/lib/esm/radio-group/stories/radio-group-controlled.story.js +30 -0
- package/lib/esm/radio-group/stories/radio-group-controlled.story.js.map +1 -0
- package/lib/esm/radio-group/stories/radio-group-default.story.js +28 -0
- package/lib/esm/radio-group/stories/radio-group-default.story.js.map +1 -0
- package/lib/esm/radio-group/stories/radio-group-disabled.story.js +28 -0
- package/lib/esm/radio-group/stories/radio-group-disabled.story.js.map +1 -0
- package/lib/esm/radio-group/stories/radio-group-error.story.js +28 -0
- package/lib/esm/radio-group/stories/radio-group-error.story.js.map +1 -0
- package/lib/esm/radio-group/stories/radio-group-horizontal.story.js +28 -0
- package/lib/esm/radio-group/stories/radio-group-horizontal.story.js.map +1 -0
- package/lib/esm/radio-group/stories/radio-group-optional.story.js +28 -0
- package/lib/esm/radio-group/stories/radio-group-optional.story.js.map +1 -0
- package/lib/esm/radio-group/stories/radio-group-required.story.js +28 -0
- package/lib/esm/radio-group/stories/radio-group-required.story.js.map +1 -0
- package/lib/esm/radio-group/stories/radio-group-visually-hidden-label.story.js +28 -0
- package/lib/esm/radio-group/stories/radio-group-visually-hidden-label.story.js.map +1 -0
- package/lib/esm/read-only-tag/ReadOnlyTag.js +1 -1
- package/lib/esm/select/types.js +1 -1
- package/lib/esm/spotlight/SpotlightTour.js +1 -1
- package/lib/esm/text-button/TextButton.js +1 -1
- package/lib/esm/tree-view/TreeViewItem.js +1 -1
- package/lib/esm/tree-view/TreeViewTextItem.js +1 -1
- package/lib/esm/tree-view/TreeViewTrail.js +1 -1
- package/lib/esm/tree-view/tree-view-types.js +1 -1
- package/lib/esm/tree-view/tree-view-utils.js +1 -1
- package/lib/esm/typography/Typography.js +1 -1
- package/lib/types/_common/ButtonSpinner.d.ts +1 -1
- package/lib/types/_common/TruncatedTextWithTooltip.d.ts +1 -1
- package/lib/types/_common/form-control/FormFieldLabel.d.ts +1 -1
- package/lib/types/_common/form-control/FormFieldMessage.d.ts +1 -1
- package/lib/types/_common/form-control/form-control-types.d.ts +1 -1
- package/lib/types/_common/form-control/form-field-group-context.d.ts +36 -0
- package/lib/types/_common/form-control/form-field-group-context.d.ts.map +1 -0
- package/lib/types/_common/form-control/index.d.ts +2 -1
- package/lib/types/_common/form-control/index.d.ts.map +1 -1
- package/lib/types/_common/form-control/use-form-field.d.ts +1 -1
- package/lib/types/_common/form-control/use-inline-field-label.d.ts +1 -1
- package/lib/types/_common/utils.d.ts +1 -1
- package/lib/types/_generated/style-rules/date-utils.d.ts +1 -1
- package/lib/types/_generated/style-rules/range-utils.d.ts +1 -1
- package/lib/types/accordion/Accordion.d.ts +1 -1
- package/lib/types/accordion/accordion-context.d.ts +1 -1
- package/lib/types/ai/response/stories/response-all-components.story.d.ts +1 -1
- package/lib/types/ai/response/stories/response-code-examples.story.d.ts +1 -1
- package/lib/types/ai/response/stories/response-full-example.story.d.ts +1 -1
- package/lib/types/ai/response/stories/response-headings.story.d.ts +1 -1
- package/lib/types/ai/response/stories/response-lists.story.d.ts +1 -1
- package/lib/types/announcement-banner/AnnouncementBanner.d.ts +1 -1
- package/lib/types/announcement-banner/index.d.ts +1 -1
- package/lib/types/announcement-banner/stories/announcement-banner-closeable.story.d.ts +1 -1
- package/lib/types/announcement-banner/stories/announcement-banner-custom-icons.story.d.ts +1 -1
- package/lib/types/announcement-banner/stories/announcement-banner-default.story.d.ts +1 -1
- package/lib/types/announcement-banner/stories/announcement-banner-injected-non-urgent.story.d.ts +1 -1
- package/lib/types/announcement-banner/stories/announcement-banner-injected-urgent.story.d.ts +1 -1
- package/lib/types/announcement-banner/stories/announcement-banner-present-at-page-render.story.d.ts +1 -1
- package/lib/types/announcement-banner/stories/announcement-banner-variants.story.d.ts +1 -1
- package/lib/types/announcement-banner/stories/announcement-banner-with-actions.story.d.ts +1 -1
- package/lib/types/announcement-banner/stories/announcement-banner-with-page-content.story.d.ts +1 -1
- package/lib/types/announcement-banner/stories/index.d.ts +1 -1
- package/lib/types/avatar/Avatar.d.ts +1 -1
- package/lib/types/banner/Banner.d.ts +1 -1
- package/lib/types/button/ButtonBase.d.ts +1 -1
- package/lib/types/checkbox/Checkbox.d.ts.map +1 -1
- package/lib/types/checkbox-group/CheckboxGroup.d.ts +40 -0
- package/lib/types/checkbox-group/CheckboxGroup.d.ts.map +1 -0
- package/lib/types/checkbox-group/index.d.ts +22 -0
- package/lib/types/checkbox-group/index.d.ts.map +1 -0
- package/lib/types/checkbox-group/stories/checkbox-group-default.story.d.ts +24 -0
- package/lib/types/checkbox-group/stories/checkbox-group-default.story.d.ts.map +1 -0
- package/lib/types/checkbox-group/stories/checkbox-group-disabled.story.d.ts +24 -0
- package/lib/types/checkbox-group/stories/checkbox-group-disabled.story.d.ts.map +1 -0
- package/lib/types/checkbox-group/stories/checkbox-group-error.story.d.ts +24 -0
- package/lib/types/checkbox-group/stories/checkbox-group-error.story.d.ts.map +1 -0
- package/lib/types/checkbox-group/stories/checkbox-group-optional.story.d.ts +24 -0
- package/lib/types/checkbox-group/stories/checkbox-group-optional.story.d.ts.map +1 -0
- package/lib/types/checkbox-group/stories/checkbox-group-required.story.d.ts +24 -0
- package/lib/types/checkbox-group/stories/checkbox-group-required.story.d.ts.map +1 -0
- package/lib/types/checkbox-group/stories/checkbox-group-visually-hidden-label.story.d.ts +24 -0
- package/lib/types/checkbox-group/stories/checkbox-group-visually-hidden-label.story.d.ts.map +1 -0
- package/lib/types/checkbox-group/stories/index.d.ts +33 -0
- package/lib/types/checkbox-group/stories/index.d.ts.map +1 -0
- package/lib/types/code-block/CodeBlock.d.ts +1 -1
- package/lib/types/combobox/use-combobox-popover.d.ts +1 -1
- package/lib/types/data-grid/Components.d.ts +1 -1
- package/lib/types/data-grid/data-grid-nav/data-grid-nav.d.ts +1 -1
- package/lib/types/date-picker/DatePicker.d.ts +1 -1
- package/lib/types/dialog/Dialog.d.ts +1 -1
- package/lib/types/divider/Divider.d.ts +1 -1
- package/lib/types/dropdown-button/DropdownButton.d.ts +1 -1
- package/lib/types/dropzone/Dropzone.d.ts +1 -1
- package/lib/types/dropzone/stories/dropzone-csv-files.story.d.ts +1 -1
- package/lib/types/dropzone/stories/dropzone-custom-extensions.story.d.ts +1 -1
- package/lib/types/dropzone/stories/dropzone-default.story.d.ts +1 -1
- package/lib/types/dropzone/stories/dropzone-disabled.story.d.ts +1 -1
- package/lib/types/dropzone/stories/dropzone-full.story.d.ts +1 -1
- package/lib/types/dropzone/stories/dropzone-loading-progress.story.d.ts +1 -1
- package/lib/types/fieldset/Fieldset.d.ts +59 -0
- package/lib/types/fieldset/Fieldset.d.ts.map +1 -0
- package/lib/types/fieldset/index.d.ts +22 -0
- package/lib/types/fieldset/index.d.ts.map +1 -0
- package/lib/types/fieldset/stories/fieldset-default.story.d.ts +24 -0
- package/lib/types/fieldset/stories/fieldset-default.story.d.ts.map +1 -0
- package/lib/types/fieldset/stories/fieldset-disabled.story.d.ts +24 -0
- package/lib/types/fieldset/stories/fieldset-disabled.story.d.ts.map +1 -0
- package/lib/types/fieldset/stories/fieldset-error.story.d.ts +24 -0
- package/lib/types/fieldset/stories/fieldset-error.story.d.ts.map +1 -0
- package/lib/types/fieldset/stories/fieldset-optional.story.d.ts +24 -0
- package/lib/types/fieldset/stories/fieldset-optional.story.d.ts.map +1 -0
- package/lib/types/fieldset/stories/fieldset-required.story.d.ts +24 -0
- package/lib/types/fieldset/stories/fieldset-required.story.d.ts.map +1 -0
- package/lib/types/fieldset/stories/fieldset-visually-hidden-label.story.d.ts +24 -0
- package/lib/types/fieldset/stories/fieldset-visually-hidden-label.story.d.ts.map +1 -0
- package/lib/types/fieldset/stories/index.d.ts +33 -0
- package/lib/types/fieldset/stories/index.d.ts.map +1 -0
- package/lib/types/graph-label/GraphLabel.d.ts +1 -1
- package/lib/types/graph-label/color.d.ts +1 -1
- package/lib/types/hooks/index.d.ts +1 -1
- package/lib/types/icon-button-array/IconButtonArray.d.ts +1 -1
- package/lib/types/icon-button-base/IconButtonBase.d.ts +1 -1
- package/lib/types/icons/generated/custom/FloppyDiskArrowTopRight.d.ts +1 -1
- package/lib/types/icons/manual/Neo4JAiColor.d.ts +1 -1
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/inline-edit/InlineEdit.d.ts +1 -1
- package/lib/types/kbd/Kbd.d.ts +1 -1
- package/lib/types/loading-bar/LoadingBar.d.ts +1 -1
- package/lib/types/loading-spinner/LoadingSpinner.d.ts +1 -1
- package/lib/types/menu/Menu.d.ts +1 -1
- package/lib/types/modal/Modal.d.ts +1 -1
- package/lib/types/portal/Portal.d.ts +1 -1
- package/lib/types/progress-bar/ProgressBar.d.ts +1 -1
- package/lib/types/radio/Radio.d.ts +2 -2
- package/lib/types/radio/Radio.d.ts.map +1 -1
- package/lib/types/radio-group/RadioGroup.d.ts +50 -0
- package/lib/types/radio-group/RadioGroup.d.ts.map +1 -0
- package/lib/types/radio-group/index.d.ts +22 -0
- package/lib/types/radio-group/index.d.ts.map +1 -0
- package/lib/types/radio-group/stories/index.d.ts +37 -0
- package/lib/types/radio-group/stories/index.d.ts.map +1 -0
- package/lib/types/radio-group/stories/radio-group-controlled.story.d.ts +24 -0
- package/lib/types/radio-group/stories/radio-group-controlled.story.d.ts.map +1 -0
- package/lib/types/radio-group/stories/radio-group-default.story.d.ts +24 -0
- package/lib/types/radio-group/stories/radio-group-default.story.d.ts.map +1 -0
- package/lib/types/radio-group/stories/radio-group-disabled.story.d.ts +24 -0
- package/lib/types/radio-group/stories/radio-group-disabled.story.d.ts.map +1 -0
- package/lib/types/radio-group/stories/radio-group-error.story.d.ts +24 -0
- package/lib/types/radio-group/stories/radio-group-error.story.d.ts.map +1 -0
- package/lib/types/radio-group/stories/radio-group-horizontal.story.d.ts +24 -0
- package/lib/types/radio-group/stories/radio-group-horizontal.story.d.ts.map +1 -0
- package/lib/types/radio-group/stories/radio-group-optional.story.d.ts +24 -0
- package/lib/types/radio-group/stories/radio-group-optional.story.d.ts.map +1 -0
- package/lib/types/radio-group/stories/radio-group-required.story.d.ts +24 -0
- package/lib/types/radio-group/stories/radio-group-required.story.d.ts.map +1 -0
- package/lib/types/radio-group/stories/radio-group-visually-hidden-label.story.d.ts +24 -0
- package/lib/types/radio-group/stories/radio-group-visually-hidden-label.story.d.ts.map +1 -0
- package/lib/types/segmented-control/SegmentedControl.d.ts +1 -1
- package/lib/types/select/Select.d.ts +1 -1
- package/lib/types/select-icon-button/SelectIconButton.d.ts +1 -1
- package/lib/types/selectable-tag/SelectableTag.d.ts +1 -1
- package/lib/types/skeleton/Skeleton.d.ts +1 -1
- package/lib/types/slider/Slider.d.ts +1 -1
- package/lib/types/slider/stories/slider-custom-step-length.story.d.ts +1 -1
- package/lib/types/slider/stories/slider-default.story.d.ts +1 -1
- package/lib/types/slider/stories/slider-disabled.story.d.ts +1 -1
- package/lib/types/slider/stories/slider-range.story.d.ts +1 -1
- package/lib/types/slider/stories/slider-show-steps.story.d.ts +1 -1
- package/lib/types/slider/stories/slider-show-values.story.d.ts +1 -1
- package/lib/types/slider/stories/slider-single.story.d.ts +1 -1
- package/lib/types/spotlight/Spotlight.d.ts +1 -1
- package/lib/types/spotlight/SpotlightProvider.d.ts +1 -1
- package/lib/types/spotlight/SpotlightTarget.d.ts +1 -1
- package/lib/types/status-indicator/StatusIndicator.d.ts +1 -1
- package/lib/types/status-label/StatusLabel.d.ts +1 -1
- package/lib/types/tabs/Tabs.d.ts +1 -1
- package/lib/types/tabs/use-tabs-scroll-overflow.d.ts +1 -1
- package/lib/types/tag/Tag.d.ts +1 -1
- package/lib/types/tag-base/TagBase.d.ts +1 -1
- package/lib/types/text-area/TextArea.d.ts +1 -1
- package/lib/types/text-link/TextLink.d.ts +1 -1
- package/lib/types/text-overflow/TextOverflow.d.ts +1 -1
- package/lib/types/theme/ThemeProvider.d.ts +1 -1
- package/lib/types/theme/agnostic.d.ts +1 -1
- package/lib/types/time-picker/TimePicker.d.ts +1 -1
- package/lib/types/time-picker/time-picker-hooks.d.ts +1 -1
- package/lib/types/timezone-picker/TimeZonePicker.d.ts +1 -1
- package/lib/types/timezone-picker/timezone-picker-hooks.d.ts +1 -1
- package/lib/types/toast/Toast.d.ts +1 -1
- package/lib/types/toast/ToastControlled.d.ts +1 -1
- package/lib/types/tree-view/TreeItemWrapper.d.ts +1 -1
- package/lib/types/tree-view/tree-view-keyboard-helpers.d.ts +1 -1
- package/lib/types/typography/stories/typography-anchor.story.d.ts +1 -1
- package/lib/types/wizard/Wizard.d.ts +1 -1
- package/package.json +17 -2
- package/skills/ndl-react/SKILL.md +5 -2
- package/skills/ndl-react/components/checkbox-group.md +195 -0
- package/skills/ndl-react/components/fieldset.md +235 -0
- package/skills/ndl-react/components/radio-group.md +259 -0
- package/skills/ndl-react/components/radio.md +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"announcement-banner-variants.story.js","sourceRoot":"","sources":["../../../../src/announcement-banner/stories/announcement-banner-variants.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAsD;AAEtD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,0CAA0C,aACvD,uBAAC,0BAAkB,IAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,IAAI,YAC9C,uBAAC,0BAAkB,CAAC,MAAM,oCAA8C,GACrD,EACrB,uBAAC,0BAAkB,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,IAAI,YACjD,uBAAC,0BAAkB,CAAC,MAAM,uCAEE,GACT,EACrB,uBAAC,0BAAkB,IAAC,OAAO,EAAC,QAAQ,EAAC,OAAO,EAAE,IAAI,YAChD,uBAAC,0BAAkB,CAAC,MAAM,sCAEE,GACT,EACrB,uBAAC,0BAAkB,IAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,IAAI,YACnD,uBAAC,0BAAkB,CAAC,MAAM,yCAEE,GACT,EACrB,uBAAC,0BAAkB,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,IAAI,YACjD,uBAAC,0BAAkB,CAAC,MAAM,uCAEE,GACT,IACjB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"announcement-banner-variants.story.js","sourceRoot":"","sources":["../../../../src/announcement-banner/stories/announcement-banner-variants.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAsD;AAEtD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,0CAA0C,aACvD,uBAAC,0BAAkB,IAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,IAAI,YAC9C,uBAAC,0BAAkB,CAAC,MAAM,oCAA8C,GACrD,EACrB,uBAAC,0BAAkB,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,IAAI,YACjD,uBAAC,0BAAkB,CAAC,MAAM,uCAEE,GACT,EACrB,uBAAC,0BAAkB,IAAC,OAAO,EAAC,QAAQ,EAAC,OAAO,EAAE,IAAI,YAChD,uBAAC,0BAAkB,CAAC,MAAM,sCAEE,GACT,EACrB,uBAAC,0BAAkB,IAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,IAAI,YACnD,uBAAC,0BAAkB,CAAC,MAAM,yCAEE,GACT,EACrB,uBAAC,0BAAkB,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,IAAI,YACjD,uBAAC,0BAAkB,CAAC,MAAM,uCAEE,GACT,IACjB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { AnnouncementBanner } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-flex-col n-gap-token-8 n-w-full\">\n <AnnouncementBanner variant=\"info\" hasIcon={true}>\n <AnnouncementBanner.Header>Info announcement</AnnouncementBanner.Header>\n </AnnouncementBanner>\n <AnnouncementBanner variant=\"warning\" hasIcon={true}>\n <AnnouncementBanner.Header>\n Warning announcement\n </AnnouncementBanner.Header>\n </AnnouncementBanner>\n <AnnouncementBanner variant=\"danger\" hasIcon={true}>\n <AnnouncementBanner.Header>\n Danger announcement\n </AnnouncementBanner.Header>\n </AnnouncementBanner>\n <AnnouncementBanner variant=\"discovery\" hasIcon={true}>\n <AnnouncementBanner.Header>\n Discovery announcement\n </AnnouncementBanner.Header>\n </AnnouncementBanner>\n <AnnouncementBanner variant=\"neutral\" hasIcon={true}>\n <AnnouncementBanner.Header>\n Neutral announcement\n </AnnouncementBanner.Header>\n </AnnouncementBanner>\n </div>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"announcement-banner-with-actions.story.js","sourceRoot":"","sources":["../../../../src/announcement-banner/stories/announcement-banner-with-actions.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAI0B;AAE1B,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,0BAAkB,IAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC,SAAS,aAClD,uBAAC,0BAAkB,CAAC,MAAM,6CAEE,EAC5B,wBAAC,0BAAkB,CAAC,OAAO,eACzB,uBAAC,sBAAc,0BAAyB,EACxC,uBAAC,kBAAU,6BAAwB,IACR,IACV,CACtB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"announcement-banner-with-actions.story.js","sourceRoot":"","sources":["../../../../src/announcement-banner/stories/announcement-banner-with-actions.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAI0B;AAE1B,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,0BAAkB,IAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC,SAAS,aAClD,uBAAC,0BAAkB,CAAC,MAAM,6CAEE,EAC5B,wBAAC,0BAAkB,CAAC,OAAO,eACzB,uBAAC,sBAAc,0BAAyB,EACxC,uBAAC,kBAAU,6BAAwB,IACR,IACV,CACtB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport {\n AnnouncementBanner,\n OutlinedButton,\n TextButton,\n} from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <AnnouncementBanner hasIcon={true} variant=\"warning\">\n <AnnouncementBanner.Header>\n Your trial ends in 3 days.\n </AnnouncementBanner.Header>\n <AnnouncementBanner.Actions>\n <OutlinedButton>Upgrade</OutlinedButton>\n <TextButton>Learn more</TextButton>\n </AnnouncementBanner.Actions>\n </AnnouncementBanner>\n );\n};\n\nexport default Component;\n"]}
|
package/lib/cjs/announcement-banner/stories/announcement-banner-with-page-content.story.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"announcement-banner-with-page-content.story.js","sourceRoot":"","sources":["../../../../src/announcement-banner/stories/announcement-banner-with-page-content.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAK0B;AAC1B,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IAEjD,OAAO,CACL,iCAAK,SAAS,EAAC,0CAA0C,aACtD,SAAS,IAAI,CACZ,wBAAC,0BAAkB,IACjB,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,IAAI,EACb,WAAW,EAAE,IAAI,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,aAElC,uBAAC,0BAAkB,CAAC,MAAM,qEAEE,EAC5B,uBAAC,0BAAkB,CAAC,OAAO,cACzB,uBAAC,sBAAc,6BAA4B,GAChB,IACV,CACtB,EACD,iCAAK,SAAS,EAAC,4GAA4G,aACxH,CAAC,SAAS,IAAI,CACb,0CACE,uBAAC,kBAAU,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,wCAEhC,GACT,CACP,EACD,uBAAC,kBAAU,IAAC,OAAO,EAAC,SAAS,2BAAwB,EACrD,uBAAC,sBAAc,4BAA2B,EAC1C,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,6sBAYpB,EACb,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,owBAapB,EACb,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,izBAapB,EACb,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,oVAMpB,EACb,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,kpBAWpB,IACT,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"announcement-banner-with-page-content.story.js","sourceRoot":"","sources":["../../../../src/announcement-banner/stories/announcement-banner-with-page-content.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAK0B;AAC1B,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IAEjD,OAAO,CACL,iCAAK,SAAS,EAAC,0CAA0C,aACtD,SAAS,IAAI,CACZ,wBAAC,0BAAkB,IACjB,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,IAAI,EACb,WAAW,EAAE,IAAI,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,aAElC,uBAAC,0BAAkB,CAAC,MAAM,qEAEE,EAC5B,uBAAC,0BAAkB,CAAC,OAAO,cACzB,uBAAC,sBAAc,6BAA4B,GAChB,IACV,CACtB,EACD,iCAAK,SAAS,EAAC,4GAA4G,aACxH,CAAC,SAAS,IAAI,CACb,0CACE,uBAAC,kBAAU,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,wCAEhC,GACT,CACP,EACD,uBAAC,kBAAU,IAAC,OAAO,EAAC,SAAS,2BAAwB,EACrD,uBAAC,sBAAc,4BAA2B,EAC1C,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,6sBAYpB,EACb,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,owBAapB,EACb,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,izBAapB,EACb,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,oVAMpB,EACb,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,kpBAWpB,IACT,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport {\n AnnouncementBanner,\n OutlinedButton,\n TextButton,\n Typography,\n} from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [isVisible, setIsVisible] = useState(true);\n\n return (\n <div className=\"n-flex n-flex-col n-max-w-[768px] n-h-52\">\n {isVisible && (\n <AnnouncementBanner\n variant=\"warning\"\n hasIcon={true}\n isCloseable={true}\n onClose={() => setIsVisible(false)}\n >\n <AnnouncementBanner.Header>\n Scheduled maintenance starts tonight at 22:00 UTC.\n </AnnouncementBanner.Header>\n <AnnouncementBanner.Actions>\n <OutlinedButton>Learn more</OutlinedButton>\n </AnnouncementBanner.Actions>\n </AnnouncementBanner>\n )}\n <div className=\"n-flex n-flex-col n-gap-token-16 n-p-token-24 n-bg-neutral-bg-default n-flex-1 n-min-h-0 n-overflow-y-auto\">\n {!isVisible && (\n <div>\n <TextButton onClick={() => setIsVisible(true)}>\n Show announcement again\n </TextButton>\n </div>\n )}\n <Typography variant=\"title-2\">Page title</Typography>\n <OutlinedButton>Can focus</OutlinedButton>\n <Typography variant=\"body-medium\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque\n tempus, quam non molestie faucibus, orci nibh bibendum urna, ut\n lacinia orci dui a augue. Nullam at risus quam. Fusce pulvinar, metus\n vitae finibus dapibus, nisi ipsum venenatis sapien, at facilisis eros\n massa ac nunc. Aliquam sed odio orci. Vivamus condimentum sit amet\n ipsum bibendum sollicitudin. Etiam eget vehicula urna, et ullamcorper\n libero. Interdum et malesuada fames ac ante ipsum primis in faucibus.\n Proin sodales euismod sem, posuere maximus libero interdum semper.\n Nunc mollis posuere arcu non elementum. Vivamus sed laoreet mauris.\n Etiam fringilla arcu convallis erat vehicula iaculis. Pellentesque\n dictum aliquam cursus.\n </Typography>\n <Typography variant=\"body-medium\">\n Integer vehicula turpis quis risus aliquet congue. Vivamus\n pellentesque nibh ac blandit varius. Fusce placerat lacus ut mauris\n porta, nec facilisis risus pulvinar. Nullam elementum nulla ut laoreet\n imperdiet. Maecenas eget erat erat. Phasellus in turpis placerat,\n imperdiet ante nec, tincidunt nisl. Donec a lacus neque. Nullam\n iaculis ante molestie ultrices semper. Sed non lorem ullamcorper\n ligula elementum convallis. Aenean egestas risus quis tortor cursus\n dapibus. Nulla hendrerit at orci ut scelerisque. Nullam vel bibendum\n tellus. Praesent efficitur ultrices lectus at posuere. Maecenas\n facilisis lacus ac turpis malesuada, sit amet imperdiet ipsum\n condimentum. Donec et nibh eget justo luctus ornare. Maecenas suscipit\n nulla at ullamcorper congue.\n </Typography>\n <Typography variant=\"body-medium\">\n Vestibulum vehicula nibh mi, ultrices condimentum massa venenatis sit\n amet. Pellentesque accumsan mollis ex, id lobortis lacus venenatis id.\n Proin sem dui, mollis id gravida ac, vulputate et lacus. In pharetra\n nunc odio, in fermentum elit dignissim at. Nunc ut justo elit. Proin\n ligula orci, faucibus vitae vehicula nec, faucibus sit amet erat.\n Interdum et malesuada fames ac ante ipsum primis in faucibus. Quisque\n pharetra venenatis rutrum. Sed pharetra turpis id arcu maximus,\n interdum rhoncus eros mollis. Donec vitae sapien et odio interdum\n bibendum. Quisque eleifend, sem ut ornare mollis, orci nunc dapibus\n odio, aliquam fringilla augue nulla id magna. Phasellus consectetur,\n velit egestas sodales ultricies, odio nunc facilisis libero, vel\n vehicula nisi quam quis nisl. Proin vel massa libero.\n </Typography>\n <Typography variant=\"body-medium\">\n Sed mollis lacinia tincidunt. Curabitur blandit pellentesque\n consequat. Maecenas mollis pharetra dolor in ornare. Cras vel nibh eu\n nisi venenatis convallis id vel nisl. Curabitur et viverra nisl.\n Phasellus et finibus turpis. Praesent scelerisque vel lectus at\n imperdiet. Curabitur porta egestas magna ullamcorper hendrerit.\n </Typography>\n <Typography variant=\"body-medium\">\n Curabitur hendrerit egestas mi, ut venenatis turpis sagittis nec.\n Proin consectetur, nisi et vehicula placerat, tellus augue luctus\n odio, in commodo mauris urna nec libero. Maecenas eu placerat sapien,\n in aliquam tellus. Sed pharetra nunc id urna iaculis tincidunt. In hac\n habitasse platea dictumst. Donec tincidunt risus vitae congue congue.\n Fusce consequat ut justo ut tristique. Nunc ut urna quis neque\n consequat venenatis. Praesent nec feugiat orci. Vestibulum rutrum dui\n lacus, sit amet vulputate dolor finibus ut. Donec placerat urna eu\n fringilla convallis. Praesent sollicitudin felis at lacus semper, vel\n convallis magna scelerisque.\n </Typography>\n </div>\n </div>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/announcement-banner/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,yFAA2F;AAAlF,+JAAA,OAAO,OAA6B;AAC7C,2FAA6F;AAApF,iKAAA,OAAO,OAA8B;AAC9C,mGAAoG;AAA3F,wKAAA,OAAO,OAAiC;AACjD,6FAA+F;AAAtF,mKAAA,OAAO,OAA+B;AAC/C,mGAAoG;AAA3F,wKAAA,OAAO,OAAiC;AACjD,6GAA6G;AAApG,iLAAA,OAAO,OAAqC;AACrD,uHAAsH;AAA7G,0LAAA,OAAO,OAAyC;AACzD,iHAAiH;AAAxG,qLAAA,OAAO,OAAuC;AACvD,yGAA0G;AAAjG,8KAAA,OAAO,OAAoC;AAEpD,6EAAyE;AACzE,wHAA0F;AAC1F,8HAA+F;AAC/F,oHAAsF;AACtF,4IAA4G;AAC5G,oIAAqG;AACrG,kJAAiH;AACjH,sHAAwF;AACxF,8HAA+F;AAC/F,wIAAwG;AAE3F,QAAA,4BAA4B,GAAG,IAAA,0CAAmB,EAC7D,+CAA+B,CAChC,CAAC;AAEW,QAAA,6BAA6B,GAAG,IAAA,0CAAmB,EAC9D,gDAAgC,CACjC,CAAC;AAEW,QAAA,gCAAgC,GAAG,IAAA,0CAAmB,EACjE,oDAAmC,CACpC,CAAC;AAEW,QAAA,8BAA8B,GAAG,IAAA,0CAAmB,EAC/D,iDAAiC,CAClC,CAAC;AAEW,QAAA,gCAAgC,GAAG,IAAA,0CAAmB,EACjE,oDAAmC,CACpC,CAAC;AAEW,QAAA,oCAAoC,GAAG,IAAA,0CAAmB,EACrE,yDAAuC,CACxC,CAAC;AAEW,QAAA,wCAAwC,GAAG,IAAA,0CAAmB,EACzE,8DAA2C,CAC5C,CAAC;AAEW,QAAA,sCAAsC,GAAG,IAAA,0CAAmB,EACvE,2DAAyC,CAC1C,CAAC;AAEW,QAAA,mCAAmC,GAAG,IAAA,0CAAmB,EACpE,uDAAsC,CACvC,CAAC","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/announcement-banner/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,yFAA2F;AAAlF,+JAAA,OAAO,OAA6B;AAC7C,2FAA6F;AAApF,iKAAA,OAAO,OAA8B;AAC9C,mGAAoG;AAA3F,wKAAA,OAAO,OAAiC;AACjD,6FAA+F;AAAtF,mKAAA,OAAO,OAA+B;AAC/C,mGAAoG;AAA3F,wKAAA,OAAO,OAAiC;AACjD,6GAA6G;AAApG,iLAAA,OAAO,OAAqC;AACrD,uHAAsH;AAA7G,0LAAA,OAAO,OAAyC;AACzD,iHAAiH;AAAxG,qLAAA,OAAO,OAAuC;AACvD,yGAA0G;AAAjG,8KAAA,OAAO,OAAoC;AAEpD,6EAAyE;AACzE,wHAA0F;AAC1F,8HAA+F;AAC/F,oHAAsF;AACtF,4IAA4G;AAC5G,oIAAqG;AACrG,kJAAiH;AACjH,sHAAwF;AACxF,8HAA+F;AAC/F,wIAAwG;AAE3F,QAAA,4BAA4B,GAAG,IAAA,0CAAmB,EAC7D,+CAA+B,CAChC,CAAC;AAEW,QAAA,6BAA6B,GAAG,IAAA,0CAAmB,EAC9D,gDAAgC,CACjC,CAAC;AAEW,QAAA,gCAAgC,GAAG,IAAA,0CAAmB,EACjE,oDAAmC,CACpC,CAAC;AAEW,QAAA,8BAA8B,GAAG,IAAA,0CAAmB,EAC/D,iDAAiC,CAClC,CAAC;AAEW,QAAA,gCAAgC,GAAG,IAAA,0CAAmB,EACjE,oDAAmC,CACpC,CAAC;AAEW,QAAA,oCAAoC,GAAG,IAAA,0CAAmB,EACrE,yDAAuC,CACxC,CAAC;AAEW,QAAA,wCAAwC,GAAG,IAAA,0CAAmB,EACzE,8DAA2C,CAC5C,CAAC;AAEW,QAAA,sCAAsC,GAAG,IAAA,0CAAmB,EACvE,2DAAyC,CAC1C,CAAC;AAEW,QAAA,mCAAmC,GAAG,IAAA,0CAAmB,EACpE,uDAAsC,CACvC,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as AnnouncementBannerDefault } from './announcement-banner-default.story';\nexport { default as AnnouncementBannerVariants } from './announcement-banner-variants.story';\nexport { default as AnnouncementBannerCustomIcons } from './announcement-banner-custom-icons.story';\nexport { default as AnnouncementBannerCloseable } from './announcement-banner-closeable.story';\nexport { default as AnnouncementBannerWithActions } from './announcement-banner-with-actions.story';\nexport { default as AnnouncementBannerWithPageContent } from './announcement-banner-with-page-content.story';\nexport { default as AnnouncementBannerPresentAtPageRender } from './announcement-banner-present-at-page-render.story';\nexport { default as AnnouncementBannerInjectedNonUrgent } from './announcement-banner-injected-non-urgent.story';\nexport { default as AnnouncementBannerInjectedUrgent } from './announcement-banner-injected-urgent.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport AnnouncementBannerCloseableSrcRaw from './announcement-banner-closeable.story?raw';\nimport AnnouncementBannerCustomIconsSrcRaw from './announcement-banner-custom-icons.story?raw';\nimport AnnouncementBannerDefaultSrcRaw from './announcement-banner-default.story?raw';\nimport AnnouncementBannerInjectedNonUrgentSrcRaw from './announcement-banner-injected-non-urgent.story?raw';\nimport AnnouncementBannerInjectedUrgentSrcRaw from './announcement-banner-injected-urgent.story?raw';\nimport AnnouncementBannerPresentAtPageRenderSrcRaw from './announcement-banner-present-at-page-render.story?raw';\nimport AnnouncementBannerVariantsSrcRaw from './announcement-banner-variants.story?raw';\nimport AnnouncementBannerWithActionsSrcRaw from './announcement-banner-with-actions.story?raw';\nimport AnnouncementBannerWithPageContentSrcRaw from './announcement-banner-with-page-content.story?raw';\n\nexport const AnnouncementBannerDefaultSrc = removeLicenseHeader(\n AnnouncementBannerDefaultSrcRaw,\n);\n\nexport const AnnouncementBannerVariantsSrc = removeLicenseHeader(\n AnnouncementBannerVariantsSrcRaw,\n);\n\nexport const AnnouncementBannerCustomIconsSrc = removeLicenseHeader(\n AnnouncementBannerCustomIconsSrcRaw,\n);\n\nexport const AnnouncementBannerCloseableSrc = removeLicenseHeader(\n AnnouncementBannerCloseableSrcRaw,\n);\n\nexport const AnnouncementBannerWithActionsSrc = removeLicenseHeader(\n AnnouncementBannerWithActionsSrcRaw,\n);\n\nexport const AnnouncementBannerWithPageContentSrc = removeLicenseHeader(\n AnnouncementBannerWithPageContentSrcRaw,\n);\n\nexport const AnnouncementBannerPresentAtPageRenderSrc = removeLicenseHeader(\n AnnouncementBannerPresentAtPageRenderSrcRaw,\n);\n\nexport const AnnouncementBannerInjectedNonUrgentSrc = removeLicenseHeader(\n AnnouncementBannerInjectedNonUrgentSrcRaw,\n);\n\nexport const AnnouncementBannerInjectedUrgentSrc = removeLicenseHeader(\n AnnouncementBannerInjectedUrgentSrcRaw,\n);\n"]}
|
package/lib/cjs/box/Box.js
CHANGED
|
@@ -44,6 +44,9 @@ const use_semi_controlled_input_1 = require("../_common/use-semi-controlled-inpu
|
|
|
44
44
|
const Checkbox = (_a) => {
|
|
45
45
|
var _b;
|
|
46
46
|
var { isChecked, isDefaultChecked, isIndeterminate = false, isFluid = false, isDisabled = false, hasLeadingLabel, ariaLabel, onChange, onClick, value, label, className, style, htmlAttributes, ref } = _a, restProps = __rest(_a, ["isChecked", "isDefaultChecked", "isIndeterminate", "isFluid", "isDisabled", "hasLeadingLabel", "ariaLabel", "onChange", "onClick", "value", "label", "className", "style", "htmlAttributes", "ref"]);
|
|
47
|
+
const group = (0, form_control_1.useFormFieldGroup)('checkbox');
|
|
48
|
+
const _c = htmlAttributes !== null && htmlAttributes !== void 0 ? htmlAttributes : {}, { 'aria-describedby': htmlAriaDescribedBy, 'aria-invalid': htmlAriaInvalid } = _c, inputHtmlAttributes = __rest(_c, ['aria-describedby', 'aria-invalid']);
|
|
49
|
+
const isDisabledState = isDisabled || (group === null || group === void 0 ? void 0 : group.isDisabled) === true;
|
|
47
50
|
const internalRef = (0, react_2.useRef)(null);
|
|
48
51
|
const mergedRefs = (0, react_1.useMergeRefs)([internalRef, ref]);
|
|
49
52
|
const [isCheckedState, internalOnChange] = (0, use_semi_controlled_input_1.useSemiControlledInput)({
|
|
@@ -53,7 +56,7 @@ const Checkbox = (_a) => {
|
|
|
53
56
|
state: (_b = isChecked !== null && isChecked !== void 0 ? isChecked : isDefaultChecked) !== null && _b !== void 0 ? _b : false,
|
|
54
57
|
});
|
|
55
58
|
const checkboxClasses = (0, classnames_1.default)('ndl-checkbox', className, {
|
|
56
|
-
'ndl-disabled':
|
|
59
|
+
'ndl-disabled': isDisabledState,
|
|
57
60
|
});
|
|
58
61
|
(0, react_2.useEffect)(() => {
|
|
59
62
|
if (internalRef.current) {
|
|
@@ -63,11 +66,11 @@ const Checkbox = (_a) => {
|
|
|
63
66
|
const { labelContent, fieldClassName } = (0, form_control_1.useInlineFieldLabel)({
|
|
64
67
|
ariaLabel,
|
|
65
68
|
componentName: 'Checkbox',
|
|
66
|
-
isDisabled,
|
|
69
|
+
isDisabled: isDisabledState,
|
|
67
70
|
isFluid,
|
|
68
71
|
label,
|
|
69
72
|
});
|
|
70
|
-
return ((0, jsx_runtime_1.jsxs)("label", { className: fieldClassName, children: [hasLeadingLabel === true && labelContent, (0, jsx_runtime_1.jsx)("input", Object.assign({ ref: mergedRefs, type: "checkbox", "aria-label": ariaLabel, disabled:
|
|
73
|
+
return ((0, jsx_runtime_1.jsxs)("label", { className: fieldClassName, children: [hasLeadingLabel === true && labelContent, (0, jsx_runtime_1.jsx)("input", Object.assign({ ref: mergedRefs, type: "checkbox", "aria-label": ariaLabel, "aria-describedby": htmlAriaDescribedBy, "aria-invalid": (group === null || group === void 0 ? void 0 : group.hasError) === true ? true : htmlAriaInvalid, disabled: isDisabledState, checked: isCheckedState, name: group === null || group === void 0 ? void 0 : group.name, onClick: onClick, onChange: internalOnChange, value: value, style: style, className: checkboxClasses }, restProps, inputHtmlAttributes)), Boolean(hasLeadingLabel) === false && labelContent] }));
|
|
71
74
|
};
|
|
72
75
|
exports.Checkbox = Checkbox;
|
|
73
76
|
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,8CAAkD;AAClD,4DAAoC;AACpC,iCAA0C;AAE1C,
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,8CAAkD;AAClD,4DAAoC;AACpC,iCAA0C;AAE1C,0DAGiC;AAEjC,oFAA8E;AAuCvE,MAAM,QAAQ,GAAG,CAAC,EAiBa,EAAE,EAAE;;QAjBjB,EACvB,SAAS,EACT,gBAAgB,EAChB,eAAe,GAAG,KAAK,EACvB,OAAO,GAAG,KAAK,EACf,UAAU,GAAG,KAAK,EAClB,eAAe,EACf,SAAS,EACT,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,SAAS,EACT,KAAK,EACL,cAAc,EACd,GAAG,OAEiC,EADjC,SAAS,cAhBW,qMAiBxB,CADa;IAEZ,MAAM,KAAK,GAAG,IAAA,gCAAiB,EAAC,UAAU,CAAC,CAAC;IAC5C,MAAM,KAIF,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,EAAE,EAJlB,EACJ,kBAAkB,EAAE,mBAAmB,EACvC,cAAc,EAAE,eAAe,OAET,EADnB,mBAAmB,cAHlB,oCAIL,CAAuB,CAAC;IACzB,MAAM,eAAe,GAAG,UAAU,IAAI,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,MAAK,IAAI,CAAC;IACjE,MAAM,WAAW,GAAG,IAAA,cAAM,EAAmB,IAAI,CAAC,CAAC;IACnD,MAAM,UAAU,GAAG,IAAA,oBAAY,EAAC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC;IAEpD,MAAM,CAAC,cAAc,EAAE,gBAAgB,CAAC,GAAG,IAAA,kDAAsB,EAAC;QAChE,SAAS,EAAE,UAAU;QACrB,YAAY,EAAE,SAAS,KAAK,SAAS;QACrC,QAAQ;QACR,KAAK,EAAE,MAAA,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,gBAAgB,mCAAI,KAAK;KAC9C,CAAC,CAAC;IAEH,MAAM,eAAe,GAAG,IAAA,oBAAU,EAAC,cAAc,EAAE,SAAS,EAAE;QAC5D,cAAc,EAAE,eAAe;KAChC,CAAC,CAAC;IAEH,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC;YACxB,WAAW,CAAC,OAAO,CAAC,aAAa,GAAG,eAAe,CAAC;QACtD,CAAC;IACH,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,IAAA,kCAAmB,EAAC;QAC3D,SAAS;QACT,aAAa,EAAE,UAAU;QACzB,UAAU,EAAE,eAAe;QAC3B,OAAO;QACP,KAAK;KACN,CAAC,CAAC;IAEH,OAAO,CACL,mCAAO,SAAS,EAAE,cAAc,aAC7B,eAAe,KAAK,IAAI,IAAI,YAAY,EACzC,gDACE,GAAG,EAAE,UAAU,EACf,IAAI,EAAC,UAAU,gBACH,SAAS,sBACH,mBAAmB,kBACvB,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,MAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,EAC/D,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EACjB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,gBAAgB,EAC1B,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,eAAe,IACtB,SAAS,EACT,mBAAmB,EACvB,EACD,OAAO,CAAC,eAAe,CAAC,KAAK,KAAK,IAAI,YAAY,IAC7C,CACT,CAAC;AACJ,CAAC,CAAC;AA5EW,QAAA,QAAQ,YA4EnB","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { useMergeRefs } from '@floating-ui/react';\nimport classNames from 'classnames';\nimport { useEffect, useRef } from 'react';\n\nimport {\n useFormFieldGroup,\n useInlineFieldLabel,\n} from '../_common/form-control';\nimport { type CommonProps, type HtmlAttributes } from '../_common/types';\nimport { useSemiControlledInput } from '../_common/use-semi-controlled-input';\n\ntype CheckboxProps = {\n /** Whether the checkbox is checked */\n isChecked?: boolean;\n /** Checks the input by default in uncontrolled mode */\n isDefaultChecked?: boolean; // isDefaultChecked sounds weird to me?\n /** Whether the checkbox is indeterminate */\n isIndeterminate?: boolean;\n /** Whether the checkbox is disabled */\n isDisabled?: boolean;\n /** Whether the checkbox & label should take the full available width of its container */\n isFluid?: boolean;\n /** The value of the checkbox */\n value?: HtmlAttributes<'input'>['value']; // should this be required?\n /** Whether the label should be displayed before the checkbox */\n hasLeadingLabel?: boolean;\n /** The callback function triggered when the checkbox value changes */\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;\n /** The callback function triggered when the checkbox is clicked */\n onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;\n} & (\n | {\n /** The aria label of the checkbox. Required if the label is not a string. */\n ariaLabel: string;\n // TODO v5: inconsistent naming. Naming the checkbox takes a union of\n // `label` and `ariaLabel`, so the accessible name comes from a different\n // prop depending on what the label renders. Combobox instead requires the\n // label and clips it with `hasVisuallyHiddenLabel`, and TextInput reaches\n // for htmlAttributes['aria-label'].\n /** The label of the checkbox. If not a string, supply an aria label for screen reader support. */\n label?: undefined;\n }\n | {\n ariaLabel?: string;\n label: React.ReactNode;\n }\n);\n\nexport const Checkbox = ({\n isChecked,\n isDefaultChecked,\n isIndeterminate = false,\n isFluid = false,\n isDisabled = false,\n hasLeadingLabel,\n ariaLabel,\n onChange,\n onClick,\n value,\n label,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: CommonProps<'input', CheckboxProps>) => {\n const group = useFormFieldGroup('checkbox');\n const {\n 'aria-describedby': htmlAriaDescribedBy,\n 'aria-invalid': htmlAriaInvalid,\n ...inputHtmlAttributes\n } = htmlAttributes ?? {};\n const isDisabledState = isDisabled || group?.isDisabled === true;\n const internalRef = useRef<HTMLInputElement>(null);\n const mergedRefs = useMergeRefs([internalRef, ref]);\n\n const [isCheckedState, internalOnChange] = useSemiControlledInput({\n inputType: 'checkbox',\n isControlled: isChecked !== undefined,\n onChange,\n state: isChecked ?? isDefaultChecked ?? false,\n });\n\n const checkboxClasses = classNames('ndl-checkbox', className, {\n 'ndl-disabled': isDisabledState,\n });\n\n useEffect(() => {\n if (internalRef.current) {\n internalRef.current.indeterminate = isIndeterminate;\n }\n }, [isIndeterminate]);\n\n const { labelContent, fieldClassName } = useInlineFieldLabel({\n ariaLabel,\n componentName: 'Checkbox',\n isDisabled: isDisabledState,\n isFluid,\n label,\n });\n\n return (\n <label className={fieldClassName}>\n {hasLeadingLabel === true && labelContent}\n <input\n ref={mergedRefs}\n type=\"checkbox\"\n aria-label={ariaLabel}\n aria-describedby={htmlAriaDescribedBy}\n aria-invalid={group?.hasError === true ? true : htmlAriaInvalid}\n disabled={isDisabledState}\n checked={isCheckedState}\n name={group?.name}\n onClick={onClick}\n onChange={internalOnChange}\n value={value}\n style={style}\n className={checkboxClasses}\n {...restProps}\n {...inputHtmlAttributes}\n />\n {Boolean(hasLeadingLabel) === false && labelContent}\n </label>\n );\n};\n"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
"use strict";
|
|
23
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
24
|
+
var t = {};
|
|
25
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
26
|
+
t[p] = s[p];
|
|
27
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
28
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
29
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
30
|
+
t[p[i]] = s[p[i]];
|
|
31
|
+
}
|
|
32
|
+
return t;
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.CheckboxGroup = void 0;
|
|
36
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
37
|
+
const Fieldset_1 = require("../fieldset/Fieldset");
|
|
38
|
+
/**
|
|
39
|
+
* Groups atomic `Checkbox` components under an accessible legend.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* Checked state remains on each `Checkbox`. Browsers cannot natively validate
|
|
43
|
+
* an “at least one” checkbox requirement, so applications should set
|
|
44
|
+
* `errorText` after validating a required group.
|
|
45
|
+
*/
|
|
46
|
+
const CheckboxGroup = (_a) => {
|
|
47
|
+
var { name, isDisabled = false, isRequired = false } = _a, props = __rest(_a, ["name", "isDisabled", "isRequired"]);
|
|
48
|
+
return ((0, jsx_runtime_1.jsx)(Fieldset_1.FieldsetBase, Object.assign({}, props, { isDisabled: isDisabled, isRequired: isRequired, fieldGroup: { controlType: 'checkbox', name } })));
|
|
49
|
+
};
|
|
50
|
+
exports.CheckboxGroup = CheckboxGroup;
|
|
51
|
+
CheckboxGroup.displayName = 'CheckboxGroup';
|
|
52
|
+
//# sourceMappingURL=CheckboxGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxGroup.js","sourceRoot":"","sources":["../../../src/checkbox-group/CheckboxGroup.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAsBA,mDAAwE;AAOxE;;;;;;;GAOG;AACH,MAAM,aAAa,GAAG,CAAC,EAKuB,EAAE,EAAE;QAL3B,EACrB,IAAI,EACJ,UAAU,GAAG,KAAK,EAClB,UAAU,GAAG,KAAK,OAE0B,EADzC,KAAK,cAJa,oCAKtB,CADS;IACyC,OAAA,CACjD,uBAAC,uBAAY,oBACP,KAAK,IACT,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,IAC7C,CACH,CAAA;CAAA,CAAC;AAIO,sCAAa;AAFtB,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { type CommonProps } from '../_common/types';\nimport { FieldsetBase, type FieldsetProps } from '../fieldset/Fieldset';\n\ntype CheckboxGroupProps = FieldsetProps & {\n /** Shared native name for checkbox form values */\n name?: string;\n};\n\n/**\n * Groups atomic `Checkbox` components under an accessible legend.\n *\n * @remarks\n * Checked state remains on each `Checkbox`. Browsers cannot natively validate\n * an “at least one” checkbox requirement, so applications should set\n * `errorText` after validating a required group.\n */\nconst CheckboxGroup = ({\n name,\n isDisabled = false,\n isRequired = false,\n ...props\n}: CommonProps<'fieldset', CheckboxGroupProps>) => (\n <FieldsetBase\n {...props}\n isDisabled={isDisabled}\n isRequired={isRequired}\n fieldGroup={{ controlType: 'checkbox', name }}\n />\n);\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\nexport { CheckboxGroup };\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
exports.CheckboxGroup = void 0;
|
|
24
|
+
var CheckboxGroup_1 = require("./CheckboxGroup");
|
|
25
|
+
Object.defineProperty(exports, "CheckboxGroup", { enumerable: true, get: function () { return CheckboxGroup_1.CheckboxGroup; } });
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/checkbox-group/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,iDAAgD;AAAvC,8GAAA,aAAa,OAAA","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { CheckboxGroup } from './CheckboxGroup';\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/*!
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const Component = () => {
|
|
27
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.CheckboxGroup, { label: "Notification channels", name: "notification-channel", helpText: "Choose every channel you want to use.", children: [(0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Email", value: "email", isDefaultChecked: true }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "In-app", value: "in-app" }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Mobile push", value: "push" })] }));
|
|
28
|
+
};
|
|
29
|
+
exports.default = Component;
|
|
30
|
+
//# sourceMappingURL=checkbox-group-default.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-group-default.story.js","sourceRoot":"","sources":["../../../../src/checkbox-group/stories/checkbox-group-default.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2D;AAE3D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,qBAAa,IACZ,KAAK,EAAC,uBAAuB,EAC7B,IAAI,EAAC,sBAAsB,EAC3B,QAAQ,EAAC,uCAAuC,aAEhD,uBAAC,gBAAQ,IAAC,KAAK,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,EAAC,gBAAgB,SAAG,EACzD,uBAAC,gBAAQ,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,QAAQ,GAAG,EAC1C,uBAAC,gBAAQ,IAAC,KAAK,EAAC,aAAa,EAAC,KAAK,EAAC,MAAM,GAAG,IAC/B,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Checkbox, CheckboxGroup } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <CheckboxGroup\n label=\"Notification channels\"\n name=\"notification-channel\"\n helpText=\"Choose every channel you want to use.\"\n >\n <Checkbox label=\"Email\" value=\"email\" isDefaultChecked />\n <Checkbox label=\"In-app\" value=\"in-app\" />\n <Checkbox label=\"Mobile push\" value=\"push\" />\n </CheckboxGroup>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/*!
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const Component = () => {
|
|
27
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.CheckboxGroup, { label: "Notification channels", name: "notification-channel-disabled", isDisabled: true, children: [(0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Email", value: "email", isDefaultChecked: true }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "In-app", value: "in-app" }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Mobile push", value: "push" })] }));
|
|
28
|
+
};
|
|
29
|
+
exports.default = Component;
|
|
30
|
+
//# sourceMappingURL=checkbox-group-disabled.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-group-disabled.story.js","sourceRoot":"","sources":["../../../../src/checkbox-group/stories/checkbox-group-disabled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2D;AAE3D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,qBAAa,IACZ,KAAK,EAAC,uBAAuB,EAC7B,IAAI,EAAC,+BAA+B,EACpC,UAAU,mBAEV,uBAAC,gBAAQ,IAAC,KAAK,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,EAAC,gBAAgB,SAAG,EACzD,uBAAC,gBAAQ,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,QAAQ,GAAG,EAC1C,uBAAC,gBAAQ,IAAC,KAAK,EAAC,aAAa,EAAC,KAAK,EAAC,MAAM,GAAG,IAC/B,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Checkbox, CheckboxGroup } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <CheckboxGroup\n label=\"Notification channels\"\n name=\"notification-channel-disabled\"\n isDisabled\n >\n <Checkbox label=\"Email\" value=\"email\" isDefaultChecked />\n <Checkbox label=\"In-app\" value=\"in-app\" />\n <Checkbox label=\"Mobile push\" value=\"push\" />\n </CheckboxGroup>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/*!
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const Component = () => {
|
|
27
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.CheckboxGroup, { label: "Notification channels", name: "notification-channel-error", errorText: "Select at least one notification channel.", children: [(0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Email", value: "email", isDefaultChecked: true }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "In-app", value: "in-app" }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Mobile push", value: "push" })] }));
|
|
28
|
+
};
|
|
29
|
+
exports.default = Component;
|
|
30
|
+
//# sourceMappingURL=checkbox-group-error.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-group-error.story.js","sourceRoot":"","sources":["../../../../src/checkbox-group/stories/checkbox-group-error.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2D;AAE3D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,qBAAa,IACZ,KAAK,EAAC,uBAAuB,EAC7B,IAAI,EAAC,4BAA4B,EACjC,SAAS,EAAC,2CAA2C,aAErD,uBAAC,gBAAQ,IAAC,KAAK,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,EAAC,gBAAgB,SAAG,EACzD,uBAAC,gBAAQ,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,QAAQ,GAAG,EAC1C,uBAAC,gBAAQ,IAAC,KAAK,EAAC,aAAa,EAAC,KAAK,EAAC,MAAM,GAAG,IAC/B,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Checkbox, CheckboxGroup } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <CheckboxGroup\n label=\"Notification channels\"\n name=\"notification-channel-error\"\n errorText=\"Select at least one notification channel.\"\n >\n <Checkbox label=\"Email\" value=\"email\" isDefaultChecked />\n <Checkbox label=\"In-app\" value=\"in-app\" />\n <Checkbox label=\"Mobile push\" value=\"push\" />\n </CheckboxGroup>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/*!
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const Component = () => {
|
|
27
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.CheckboxGroup, { label: "Notification channels", name: "notification-channel-optional", hasRequiredIndicator: true, children: [(0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Email", value: "email", isDefaultChecked: true }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "In-app", value: "in-app" }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Mobile push", value: "push" })] }));
|
|
28
|
+
};
|
|
29
|
+
exports.default = Component;
|
|
30
|
+
//# sourceMappingURL=checkbox-group-optional.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-group-optional.story.js","sourceRoot":"","sources":["../../../../src/checkbox-group/stories/checkbox-group-optional.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2D;AAE3D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,qBAAa,IACZ,KAAK,EAAC,uBAAuB,EAC7B,IAAI,EAAC,+BAA+B,EACpC,oBAAoB,mBAEpB,uBAAC,gBAAQ,IAAC,KAAK,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,EAAC,gBAAgB,SAAG,EACzD,uBAAC,gBAAQ,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,QAAQ,GAAG,EAC1C,uBAAC,gBAAQ,IAAC,KAAK,EAAC,aAAa,EAAC,KAAK,EAAC,MAAM,GAAG,IAC/B,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Checkbox, CheckboxGroup } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <CheckboxGroup\n label=\"Notification channels\"\n name=\"notification-channel-optional\"\n hasRequiredIndicator\n >\n <Checkbox label=\"Email\" value=\"email\" isDefaultChecked />\n <Checkbox label=\"In-app\" value=\"in-app\" />\n <Checkbox label=\"Mobile push\" value=\"push\" />\n </CheckboxGroup>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/*!
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const Component = () => {
|
|
27
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.CheckboxGroup, { label: "Notification channels", name: "notification-channel-required", hasRequiredIndicator: true, isRequired: true, children: [(0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Email", value: "email", isDefaultChecked: true }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "In-app", value: "in-app" }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Mobile push", value: "push" })] }));
|
|
28
|
+
};
|
|
29
|
+
exports.default = Component;
|
|
30
|
+
//# sourceMappingURL=checkbox-group-required.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-group-required.story.js","sourceRoot":"","sources":["../../../../src/checkbox-group/stories/checkbox-group-required.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2D;AAE3D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,qBAAa,IACZ,KAAK,EAAC,uBAAuB,EAC7B,IAAI,EAAC,+BAA+B,EACpC,oBAAoB,QACpB,UAAU,mBAEV,uBAAC,gBAAQ,IAAC,KAAK,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,EAAC,gBAAgB,SAAG,EACzD,uBAAC,gBAAQ,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,QAAQ,GAAG,EAC1C,uBAAC,gBAAQ,IAAC,KAAK,EAAC,aAAa,EAAC,KAAK,EAAC,MAAM,GAAG,IAC/B,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Checkbox, CheckboxGroup } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <CheckboxGroup\n label=\"Notification channels\"\n name=\"notification-channel-required\"\n hasRequiredIndicator\n isRequired\n >\n <Checkbox label=\"Email\" value=\"email\" isDefaultChecked />\n <Checkbox label=\"In-app\" value=\"in-app\" />\n <Checkbox label=\"Mobile push\" value=\"push\" />\n </CheckboxGroup>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/*!
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const Component = () => {
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(react_1.CheckboxGroup, { label: "Notification channels", name: "notification-channel-hidden", hasVisuallyHiddenLabel: true, children: [(0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Email", value: "email", isDefaultChecked: true }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "In-app", value: "in-app" }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Mobile push", value: "push" })] }) }));
|
|
28
|
+
};
|
|
29
|
+
exports.default = Component;
|
|
30
|
+
//# sourceMappingURL=checkbox-group-visually-hidden-label.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-group-visually-hidden-label.story.js","sourceRoot":"","sources":["../../../../src/checkbox-group/stories/checkbox-group-visually-hidden-label.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2D;AAE3D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,2DACE,wBAAC,qBAAa,IACZ,KAAK,EAAC,uBAAuB,EAC7B,IAAI,EAAC,6BAA6B,EAClC,sBAAsB,mBAEtB,uBAAC,gBAAQ,IAAC,KAAK,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,EAAC,gBAAgB,SAAG,EACzD,uBAAC,gBAAQ,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,QAAQ,GAAG,EAC1C,uBAAC,gBAAQ,IAAC,KAAK,EAAC,aAAa,EAAC,KAAK,EAAC,MAAM,GAAG,IAC/B,GACf,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Checkbox, CheckboxGroup } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <>\n <CheckboxGroup\n label=\"Notification channels\"\n name=\"notification-channel-hidden\"\n hasVisuallyHiddenLabel\n >\n <Checkbox label=\"Email\" value=\"email\" isDefaultChecked />\n <Checkbox label=\"In-app\" value=\"in-app\" />\n <Checkbox label=\"Mobile push\" value=\"push\" />\n </CheckboxGroup>\n </>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CheckboxGroupVisuallyHiddenLabelSrc = exports.CheckboxGroupRequiredSrc = exports.CheckboxGroupOptionalSrc = exports.CheckboxGroupErrorSrc = exports.CheckboxGroupDisabledSrc = exports.CheckboxGroupDefaultSrc = exports.CheckboxGroupVisuallyHiddenLabel = exports.CheckboxGroupRequired = exports.CheckboxGroupOptional = exports.CheckboxGroupError = exports.CheckboxGroupDisabled = exports.CheckboxGroupDefault = void 0;
|
|
27
|
+
var checkbox_group_default_story_1 = require("./checkbox-group-default.story");
|
|
28
|
+
Object.defineProperty(exports, "CheckboxGroupDefault", { enumerable: true, get: function () { return __importDefault(checkbox_group_default_story_1).default; } });
|
|
29
|
+
var checkbox_group_disabled_story_1 = require("./checkbox-group-disabled.story");
|
|
30
|
+
Object.defineProperty(exports, "CheckboxGroupDisabled", { enumerable: true, get: function () { return __importDefault(checkbox_group_disabled_story_1).default; } });
|
|
31
|
+
var checkbox_group_error_story_1 = require("./checkbox-group-error.story");
|
|
32
|
+
Object.defineProperty(exports, "CheckboxGroupError", { enumerable: true, get: function () { return __importDefault(checkbox_group_error_story_1).default; } });
|
|
33
|
+
var checkbox_group_optional_story_1 = require("./checkbox-group-optional.story");
|
|
34
|
+
Object.defineProperty(exports, "CheckboxGroupOptional", { enumerable: true, get: function () { return __importDefault(checkbox_group_optional_story_1).default; } });
|
|
35
|
+
var checkbox_group_required_story_1 = require("./checkbox-group-required.story");
|
|
36
|
+
Object.defineProperty(exports, "CheckboxGroupRequired", { enumerable: true, get: function () { return __importDefault(checkbox_group_required_story_1).default; } });
|
|
37
|
+
var checkbox_group_visually_hidden_label_story_1 = require("./checkbox-group-visually-hidden-label.story");
|
|
38
|
+
Object.defineProperty(exports, "CheckboxGroupVisuallyHiddenLabel", { enumerable: true, get: function () { return __importDefault(checkbox_group_visually_hidden_label_story_1).default; } });
|
|
39
|
+
const export_stories_utils_1 = require("../../_common/export-stories-utils");
|
|
40
|
+
const checkbox_group_default_story_raw_1 = __importDefault(require("./checkbox-group-default.story?raw"));
|
|
41
|
+
const checkbox_group_disabled_story_raw_1 = __importDefault(require("./checkbox-group-disabled.story?raw"));
|
|
42
|
+
const checkbox_group_error_story_raw_1 = __importDefault(require("./checkbox-group-error.story?raw"));
|
|
43
|
+
const checkbox_group_optional_story_raw_1 = __importDefault(require("./checkbox-group-optional.story?raw"));
|
|
44
|
+
const checkbox_group_required_story_raw_1 = __importDefault(require("./checkbox-group-required.story?raw"));
|
|
45
|
+
const checkbox_group_visually_hidden_label_story_raw_1 = __importDefault(require("./checkbox-group-visually-hidden-label.story?raw"));
|
|
46
|
+
exports.CheckboxGroupDefaultSrc = (0, export_stories_utils_1.removeLicenseHeader)(checkbox_group_default_story_raw_1.default);
|
|
47
|
+
exports.CheckboxGroupDisabledSrc = (0, export_stories_utils_1.removeLicenseHeader)(checkbox_group_disabled_story_raw_1.default);
|
|
48
|
+
exports.CheckboxGroupErrorSrc = (0, export_stories_utils_1.removeLicenseHeader)(checkbox_group_error_story_raw_1.default);
|
|
49
|
+
exports.CheckboxGroupOptionalSrc = (0, export_stories_utils_1.removeLicenseHeader)(checkbox_group_optional_story_raw_1.default);
|
|
50
|
+
exports.CheckboxGroupRequiredSrc = (0, export_stories_utils_1.removeLicenseHeader)(checkbox_group_required_story_raw_1.default);
|
|
51
|
+
exports.CheckboxGroupVisuallyHiddenLabelSrc = (0, export_stories_utils_1.removeLicenseHeader)(checkbox_group_visually_hidden_label_story_raw_1.default);
|
|
52
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/checkbox-group/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,+EAAiF;AAAxE,qJAAA,OAAO,OAAwB;AACxC,iFAAmF;AAA1E,uJAAA,OAAO,OAAyB;AACzC,2EAA6E;AAApE,iJAAA,OAAO,OAAsB;AACtC,iFAAmF;AAA1E,uJAAA,OAAO,OAAyB;AACzC,iFAAmF;AAA1E,uJAAA,OAAO,OAAyB;AACzC,2GAA2G;AAAlG,+KAAA,OAAO,OAAoC;AAEpD,6EAAyE;AACzE,0GAA4E;AAC5E,4GAA8E;AAC9E,sGAAwE;AACxE,4GAA8E;AAC9E,4GAA8E;AAC9E,sIAAsG;AAEzF,QAAA,uBAAuB,GAAG,IAAA,0CAAmB,EACxD,0CAA0B,CAC3B,CAAC;AACW,QAAA,wBAAwB,GAAG,IAAA,0CAAmB,EACzD,2CAA2B,CAC5B,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,wCAAwB,CACzB,CAAC;AACW,QAAA,wBAAwB,GAAG,IAAA,0CAAmB,EACzD,2CAA2B,CAC5B,CAAC;AACW,QAAA,wBAAwB,GAAG,IAAA,0CAAmB,EACzD,2CAA2B,CAC5B,CAAC;AACW,QAAA,mCAAmC,GAAG,IAAA,0CAAmB,EACpE,wDAAsC,CACvC,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as CheckboxGroupDefault } from './checkbox-group-default.story';\nexport { default as CheckboxGroupDisabled } from './checkbox-group-disabled.story';\nexport { default as CheckboxGroupError } from './checkbox-group-error.story';\nexport { default as CheckboxGroupOptional } from './checkbox-group-optional.story';\nexport { default as CheckboxGroupRequired } from './checkbox-group-required.story';\nexport { default as CheckboxGroupVisuallyHiddenLabel } from './checkbox-group-visually-hidden-label.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport CheckboxGroupDefaultSrcRaw from './checkbox-group-default.story?raw';\nimport CheckboxGroupDisabledSrcRaw from './checkbox-group-disabled.story?raw';\nimport CheckboxGroupErrorSrcRaw from './checkbox-group-error.story?raw';\nimport CheckboxGroupOptionalSrcRaw from './checkbox-group-optional.story?raw';\nimport CheckboxGroupRequiredSrcRaw from './checkbox-group-required.story?raw';\nimport CheckboxGroupVisuallyHiddenLabelSrcRaw from './checkbox-group-visually-hidden-label.story?raw';\n\nexport const CheckboxGroupDefaultSrc = removeLicenseHeader(\n CheckboxGroupDefaultSrcRaw,\n);\nexport const CheckboxGroupDisabledSrc = removeLicenseHeader(\n CheckboxGroupDisabledSrcRaw,\n);\nexport const CheckboxGroupErrorSrc = removeLicenseHeader(\n CheckboxGroupErrorSrcRaw,\n);\nexport const CheckboxGroupOptionalSrc = removeLicenseHeader(\n CheckboxGroupOptionalSrcRaw,\n);\nexport const CheckboxGroupRequiredSrc = removeLicenseHeader(\n CheckboxGroupRequiredSrcRaw,\n);\nexport const CheckboxGroupVisuallyHiddenLabelSrc = removeLicenseHeader(\n CheckboxGroupVisuallyHiddenLabelSrcRaw,\n);\n"]}
|