@nvidia-elements/core 0.1.2 → 0.1.4
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/CHANGELOG.md +17 -0
- package/dist/accordion/accordion2.js +4 -4
- package/dist/alert/alert-group2.js +1 -1
- package/dist/alert/alert2.js +1 -1
- package/dist/avatar/avatar-group2.js +1 -1
- package/dist/avatar/avatar2.js +1 -1
- package/dist/badge/badge2.js +1 -1
- package/dist/breadcrumb/breadcrumb2.js +1 -1
- package/dist/bundles/index.d.ts +6 -1
- package/dist/bundles/index.js +1 -1
- package/dist/button/button.examples.js.map +1 -1
- package/dist/button/button.examples.json +2 -2
- package/dist/button/button2.js +1 -1
- package/dist/button-group/button-group2.js +1 -1
- package/dist/card/card2.js +4 -4
- package/dist/chat-message/chat-message2.js +1 -1
- package/dist/checkbox/checkbox-group2.js +1 -1
- package/dist/checkbox/checkbox2.js +1 -1
- package/dist/color/color2.js +1 -1
- package/dist/combobox/combobox2.js +1 -1
- package/dist/copy-button/copy-button2.js +1 -1
- package/dist/custom-elements-jsx.d.ts +24 -33
- package/dist/custom-elements-vue.d.ts +24 -33
- package/dist/custom-elements.json +255 -106
- package/dist/data.html.json +16 -48
- package/dist/data.snippets.json +45 -45
- package/dist/date/date2.js +1 -1
- package/dist/datetime/datetime2.js +1 -1
- package/dist/dialog/dialog-footer2.js +1 -1
- package/dist/dialog/dialog-header2.js +1 -1
- package/dist/dialog/dialog2.js +1 -1
- package/dist/divider/divider2.js +1 -1
- package/dist/dot/dot2.js +1 -1
- package/dist/drawer/drawer-content2.js +1 -1
- package/dist/drawer/drawer-footer2.js +1 -1
- package/dist/drawer/drawer-header2.js +1 -1
- package/dist/drawer/drawer2.js +1 -1
- package/dist/dropdown/dropdown-footer2.js +1 -1
- package/dist/dropdown/dropdown-header2.js +1 -1
- package/dist/dropdown/dropdown2.js +1 -1
- package/dist/dropdown-group/dropdown-group.js +1 -1
- package/dist/dropzone/dropzone2.js +1 -1
- package/dist/file/file2.js +1 -1
- package/dist/format-datetime/format-datetime2.js +1 -1
- package/dist/format-number/format-number2.js +1 -1
- package/dist/format-relative-time/format-relative-time2.js +1 -1
- package/dist/forms/control/control2.js +1 -1
- package/dist/forms/control-group/control-group2.js +1 -1
- package/dist/forms/control-message/control-message2.js +1 -1
- package/dist/grid/cell/cell2.js +1 -1
- package/dist/grid/column/column2.js +1 -1
- package/dist/grid/footer/footer2.js +1 -1
- package/dist/grid/grid2.js +1 -1
- package/dist/grid/header/header2.js +1 -1
- package/dist/grid/placeholder/placeholder2.js +1 -1
- package/dist/grid/row/row2.js +1 -1
- package/dist/icon/icon2.js +2 -2
- package/dist/icon-button/icon-button2.js +1 -1
- package/dist/index.js +1 -1
- package/dist/input/input-group2.js +1 -1
- package/dist/input/input2.js +1 -1
- package/dist/internal/base/button.d.ts +6 -1
- package/dist/internal/base/button.js +9 -2
- package/dist/internal/base/button.js.map +1 -1
- package/dist/internal/controllers/state-current.controller.d.ts +1 -1
- package/dist/internal/controllers/state-current.controller.js +1 -1
- package/dist/internal/controllers/state-current.controller.js.map +1 -1
- package/dist/internal/controllers/state-disabled.controller.d.ts +1 -1
- package/dist/internal/controllers/state-disabled.controller.js +1 -1
- package/dist/internal/controllers/state-disabled.controller.js.map +1 -1
- package/dist/internal/controllers/state-expanded.controller.d.ts +1 -1
- package/dist/internal/controllers/state-expanded.controller.js +1 -1
- package/dist/internal/controllers/state-expanded.controller.js.map +1 -1
- package/dist/internal/controllers/state-pressed.controller.d.ts +1 -1
- package/dist/internal/controllers/state-pressed.controller.js +1 -1
- package/dist/internal/controllers/state-pressed.controller.js.map +1 -1
- package/dist/internal/controllers/state-selected.controller.d.ts +1 -1
- package/dist/internal/controllers/state-selected.controller.js +1 -1
- package/dist/internal/controllers/state-selected.controller.js.map +1 -1
- package/dist/internal/controllers/type-anchor.controller.d.ts +1 -1
- package/dist/internal/controllers/type-anchor.controller.js +1 -1
- package/dist/internal/controllers/type-anchor.controller.js.map +1 -1
- package/dist/internal/controllers/type-button.controller.d.ts +1 -1
- package/dist/internal/controllers/type-button.controller.js +1 -1
- package/dist/internal/controllers/type-button.controller.js.map +1 -1
- package/dist/internal/controllers/type-command.controller.d.ts +1 -1
- package/dist/internal/controllers/type-command.controller.js +1 -1
- package/dist/internal/controllers/type-command.controller.js.map +1 -1
- package/dist/internal/controllers/type-interest.controller.d.ts +1 -1
- package/dist/internal/controllers/type-interest.controller.js.map +1 -1
- package/dist/internal/controllers/type-submit.controller.d.ts +1 -1
- package/dist/internal/controllers/type-submit.controller.js +1 -1
- package/dist/internal/controllers/type-submit.controller.js.map +1 -1
- package/dist/internal/services/global.service.js +1 -1
- package/dist/internal/types/index.d.ts +4 -0
- package/dist/internal/types/index.js.map +1 -1
- package/dist/logo/logo2.js +1 -1
- package/dist/menu/menu-item2.js +1 -1
- package/dist/menu/menu2.js +1 -1
- package/dist/month/month2.js +1 -1
- package/dist/notification/notification-group2.js +1 -1
- package/dist/notification/notification2.js +1 -1
- package/dist/page/page-panel/page-panel-content2.js +1 -1
- package/dist/page/page-panel/page-panel-footer2.js +1 -1
- package/dist/page/page-panel/page-panel-header2.js +1 -1
- package/dist/page/page-panel/page-panel2.js +1 -1
- package/dist/page/page2.js +1 -1
- package/dist/page-header/page-header2.js +1 -1
- package/dist/page-loader/page-loader2.js +1 -1
- package/dist/pagination/pagination2.js +1 -1
- package/dist/panel/panel2.js +4 -4
- package/dist/password/password2.js +1 -1
- package/dist/preferences-input/preferences-input2.js +1 -1
- package/dist/progress-bar/progress-bar2.js +1 -1
- package/dist/progress-ring/progress-ring2.js +1 -1
- package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
- package/dist/pulse/pulse2.js +1 -1
- package/dist/radio/radio-group2.js +1 -1
- package/dist/radio/radio2.js +1 -1
- package/dist/range/range2.js +1 -1
- package/dist/resize-handle/resize-handle2.js +1 -1
- package/dist/search/search2.js +1 -1
- package/dist/select/select2.js +1 -1
- package/dist/skeleton/skeleton2.js +1 -1
- package/dist/sort-button/sort-button2.js +1 -1
- package/dist/sparkline/sparkline2.js +1 -1
- package/dist/star-rating/star-rating2.js +1 -1
- package/dist/steps/steps2.js +2 -2
- package/dist/switch/switch-group2.js +1 -1
- package/dist/switch/switch2.js +1 -1
- package/dist/tabs/tabs-group2.js +1 -1
- package/dist/tabs/tabs2.js +2 -2
- package/dist/tag/tag2.js +1 -1
- package/dist/textarea/textarea2.js +1 -1
- package/dist/time/time2.js +1 -1
- package/dist/toast/toast2.js +1 -1
- package/dist/toggletip/toggletip-footer2.js +1 -1
- package/dist/toggletip/toggletip-header2.js +1 -1
- package/dist/toggletip/toggletip2.js +1 -1
- package/dist/toolbar/toolbar2.js +1 -1
- package/dist/tooltip/tooltip2.js +1 -1
- package/dist/tree/tree-node2.js +1 -1
- package/dist/tree/tree2.js +1 -1
- package/dist/week/week2.js +1 -1
- package/package.json +3 -5
- package/postinstall.mjs +0 -113
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.examples.js","names":[],"sources":["../../src/button/button.examples.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { html } from 'lit';\nimport '@nvidia-elements/core/button/define.js';\nimport '@nvidia-elements/core/toggletip/define.js';\nimport '@nvidia-elements/core/icon/define.js';\nimport '@nvidia-elements/core/search/define.js';\nimport '@nvidia-elements/core/progress-ring/define.js';\n\nexport default {\n title: 'Elements/Button',\n component: 'nve-button'\n};\n\ndeclare const __ELEMENTS_REPO_BASE_URL__: string;\n\n/**\n * @summary Basic button component with standard appearance and behavior for primary user actions.\n */\nexport const Default = {\n render: () => html`<nve-button>standard</nve-button>`\n};\n\n/**\n * @summary Button interaction states including hover, focus, pressed, selected, and disabled.\n * @tags test-case\n */\nexport const GroupStates = {\n render: () => html`\n <div nve-layout=\"row gap:xs\">\n <nve-button>standard</nve-button>\n <nve-button selected>selected</nve-button>\n <nve-button pressed>pressed</nve-button>\n <nve-button disabled>disabled</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Interaction states that communicate button hierarchy, importance, and availability to users.\n */\nexport const Interaction = {\n render: () => html`\n <div nve-layout=\"row gap:xs\">\n <nve-button>standard</nve-button>\n <nve-button interaction=\"emphasis\">emphasis</nve-button>\n <nve-button interaction=\"destructive\">destructive</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Container style variants for buttons to accommodate different visual weight and context.\n */\nexport const Container = {\n render: () => html`\n <div nve-layout=\"row gap:xs align:vertical-center\">\n <nve-button container=\"inline\">inline</nve-button>\n <nve-button container=\"flat\">flat</nve-button>\n <nve-button>default</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Button size variants to accommodate layout densities and touch target requirements.\n */\nexport const Size = {\n render: () => html`\n <div nve-layout=\"row gap:xs\">\n <nve-button size=\"sm\">small button</nve-button>\n <nve-button>standard button</nve-button>\n <nve-button size=\"lg\">large button</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Pressed state for toggle buttons marking active/selected state with clear visual feedback.\n */\nexport const Pressed = {\n render: () => html`\n <div nve-layout=\"row gap:xs align:vertical-center\">\n <nve-button pressed container=\"inline\">pressed inline</nve-button>\n <nve-button pressed container=\"flat\">pressed flat</nve-button>\n <nve-button pressed>pressed</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Button selection states to accommodate different visual weight and context.\n */\nexport const Selected = {\n render: () => html`\n <div nve-layout=\"row gap:xs align:vertical-center\">\n <nve-button selected container=\"inline\">selected inline</nve-button>\n <nve-button selected container=\"flat\">selected flat</nve-button>\n <nve-button selected>selected</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Button disabled states to accommodate different visual weight and context.\n */\nexport const Disabled = {\n render: () => html`\n <div nve-layout=\"row gap:xs align:vertical-center\">\n <nve-button disabled container=\"inline\">disabled inline</nve-button>\n <nve-button disabled container=\"flat\">disabled flat</nve-button>\n <nve-button disabled>disabled</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Use the `commandfor` and `command` attributes to trigger custom Invoker Commands, such as rotating an image.\n */\nexport const InvokerCommand = {\n render: () => html`\n <img id=\"logo\" src=\"${__ELEMENTS_REPO_BASE_URL__}/favicon.svg\" alt=\"logo\" style=\"width: 100px; height: 100px;\" />\n <section>\n <nve-button commandfor=\"logo\" command=\"--rotate-left\">Rotate left</nve-button>\n <nve-button commandfor=\"logo\" command=\"--rotate-right\">Rotate right</nve-button>\n <nve-button commandfor=\"popover\" command=\"toggle-popover\">toggle-popover</nve-button>\n </section>\n <nve-toggletip id=\"popover\">popover</nve-toggletip>\n <script type=\"module\">\n const logo = document.getElementById('logo');\n logo.addEventListener('command', (event) => {\n if (event.command == '--rotate-left') {\n logo.style.rotate = '-90deg';\n } else if (event.command == '--rotate-right') {\n logo.style.rotate = '90deg';\n }\n });\n </script>\n `\n};\n\n/**\n * @summary Button with icons positioned before or after text to enhance visual clarity and user understanding.\n */\nexport const WithIcon = {\n render: () => html`\n <nve-button><nve-icon name=\"person\"></nve-icon> button</nve-button>\n <nve-button>button <nve-icon name=\"person\"></nve-icon></nve-button>\n `\n};\n\n/**\n * @summary Flat button style for secondary actions with minimal visual weight, maintaining clear interaction states.\n */\nexport const Flat = {\n render: () => html`\n <div nve-layout=\"row gap:xs\">\n <nve-button container=\"flat\">standard</nve-button>\n <nve-button container=\"flat\" interaction=\"emphasis\">emphasis</nve-button>\n <nve-button container=\"flat\" interaction=\"destructive\">destructive</nve-button>\n <nve-button container=\"flat\" disabled>disabled</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Inline button style for text-like actions that blend with content while maintaining button functionality.\n */\nexport const Inline = {\n render: () => html`\n <div nve-layout=\"row gap:xs\">\n <nve-button container=\"inline\">standard</nve-button>\n <nve-button container=\"inline\" interaction=\"emphasis\">emphasis</nve-button>\n <nve-button container=\"inline\" interaction=\"destructive\">destructive</nve-button>\n <nve-button container=\"inline\" disabled>disabled</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Button styling applied to links for consistent visual treatment while maintaining semantic navigation behavior.\n */\nexport const Link = {\n render: () => html`\n <div nve-layout=\"row gap:xs\"> \n <nve-button><a href=\"#\">standard</a></nve-button>\n <nve-button interaction=\"emphasis\"><a href=\"#\">emphasis</a></nve-button>\n <nve-button interaction=\"destructive\"><a href=\"#\">destructive</a></nve-button>\n <nve-button disabled><a href=\"#\">disabled</a></nve-button>\n </div>\n `\n}\n\n/**\n * @summary Flat button selection state for choice groups where one option is active, providing clear selection feedback.\n */\nexport const SelectedFlat = {\n render: () => html`\n <div nve-layout=\"row gap:xs\">\n <nve-button selected container=\"flat\">selected</nve-button>\n <nve-button container=\"flat\">unselected</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Flat button styling for navigation links, providing subtle visual treatment for secondary navigation actions.\n */\nexport const LinkFlat = {\n render: () => html`\n <div nve-layout=\"row gap:xs\">\n <nve-button container=\"flat\"><a href=\"#\">flat</a></nve-button>\n <nve-button container=\"flat\" interaction=\"emphasis\"><a href=\"#\">flat emphasis</a></nve-button>\n <nve-button container=\"flat\" interaction=\"destructive\"><a href=\"#\">flat destructive</a></nve-button>\n </div>\n `\n}\n\n/**\n * @summary Text wrapping behavior in constrained widths, where content adapts to available space.\n * @tags test-case\n */\nexport const NoWrap = {\n render: () => html`\n <nve-button style=\"--width: 100px\">item item item</nve-button>\n <nve-button style=\"--width: 100px\">\n <span>item</span><span>item</span><span>item</span>\n </nve-button>\n `\n}\n\n/**\n * @summary Form submission button with proper form integration and data handling for user input processing.\n */\nexport const FormSubmit = {\n render: () => html`\n<form id=\"test-form\">\n <nve-button name=\"test-button\" value=\"test-value\">submit</nve-button>\n</form>\n<script type=\"module\">\n const form = document.querySelector('#test-form');\n const button = document.querySelector('[name=\"test-button\"]');\n\n button.addEventListener('click', e => console.log(e));\n form.addEventListener('submit', e => {\n e.preventDefault();\n console.log(Object.fromEntries(new FormData(form, e.submitter)));\n });\n</script>\n`\n}\n\n/**\n * @summary Use the form control option for buttons that open custom controls such as dropdowns, filter menus, or pickers within a form layout. This pattern keeps the UI cohesive and helps users recognize the button as part of the form.\n */\nexport const FormControl = {\n render: () => html`\n<div nve-layout=\"row gap:xs\" style=\"max-width: 400px\">\n <nve-search>\n <input type=\"search\" placeholder=\"search\" aria-label=\"search\" />\n </nve-search>\n <nve-button nve-control>filter option <nve-icon name=\"caret\" direction=\"down\" size=\"sm\"></nve-icon></nve-button>\n</div>\n `\n}\n\n/**\n * @summary Button integrated with popover API to trigger contextual overlays, providing extra information or controls.\n * @tags test-case\n */\nexport const Popover = {\n render: () => html`\n <div popover id=\"popover-example\">popover</div>\n <nve-button popovertarget=\"popover-example\">toggle</nve-button>\n `\n}\n\n/**\n * @summary Override button appearance with custom CSS properties for brand-specific designs while maintaining functionality.\n * @tags test-case\n */\nexport const BackgroundOverride = {\n render: () => html`\n <style>\n nve-button.custom {\n --color: var(--nve-sys-text-black-color);\n --background-image: linear-gradient(340deg, rgb(255 234 177) 0%, var(--nve-ref-color-yellow-amber-900) 60%);\n\n &:hover {\n --background-image: linear-gradient(340deg, rgb(255 234 177) 0%, color-mix(in oklab, var(--nve-ref-color-yellow-amber-900) 100%, #000 4%) 60%);\n }\n }\n </style>\n\n <nve-button class=\"custom\">Create Account</nve-button>\n <nve-button>Create Account</nve-button>\n `\n};\n\n/**\n * @summary Button styled as a link by slotting an anchor tag inside. Use when an action needs button visual treatment while maintaining semantic link navigation and accessibility.\n */\nexport const ValidLinkButton = {\n render: () => html`\n <nve-button><a href=\"#\">default</a></nve-button>\n `\n}\n\n/**\n * @summary Do not wrap buttons in anchor tags.\n * @tags anti-pattern\n */\nexport const InvalidLinkButton = {\n render: () => html`\n <a href=\"#\"><nve-button>default</nve-button></a>\n `\n}\n\n/**\n * @summary Use a progress ring within a button to communicate that an action is processing and prevent repeated submissions. Limit this pattern to short, indeterminate actions (about five seconds or less); for longer or determinate tasks, use a progress bar or ring outside the button.\n */\nexport const ProgressDisclosure = {\n render: () => html`\n <nve-button>\n <nve-progress-ring status=\"neutral\" size=\"xxs\"></nve-progress-ring>\n Submitting\n </nve-button>\n `\n};\n\n/**\n * @summary Use standard interaction styling to keep buttons readable on contrasting backgrounds in light and dark themes. This pattern verifies the static button colors that deliver the intended contrast for each theme.\n * @tags pattern\n */\nexport const ContrastColoredBackgrounds = {\n render: () => html`\n<div nve-layout=\"column gap:lg\" style=\"width: 280px\">\n <nve-toolbar status=\"accent\">\n <div nve-text=\"label medium sm\">10 Selected</div>\n <nve-button slot=\"suffix\">Edit</nve-button>\n </nve-toolbar>\n\n <nve-alert-group status=\"danger\">\n <nve-alert> Error Detected <nve-button slot=\"actions\" container=\"flat\">Review</nve-button> </nve-alert>\n </nve-alert-group>\n\n <nve-card style=\"width: 280px\">\n <nve-card-content \n style=\"width: 100%;\n height: 100%;\n aspect-ratio: 16/9;\n object-fit: cover;\n background: repeating-conic-gradient(var(--nve-sys-layer-overlay-background) 0% 25%, transparent 0% 50%) 50% / 40px 40px;\n background-position: center;\n border-style: hidden;\"> </nve-card-content>\n <nve-card-footer>\n <div nve-layout=\"row gap:xs\">\n <nve-button container=\"flat\" style=\"margin-left: auto\">Cancel</nve-button>\n <nve-button>action</nve-button>\n </div>\n </nve-card-footer>\n </nve-card>\n</div>\n `\n};\n"],"mappings":";AAGA,IAAA,IAAS"}
|
|
1
|
+
{"version":3,"file":"button.examples.js","names":[],"sources":["../../src/button/button.examples.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { html } from 'lit';\nimport '@nvidia-elements/core/button/define.js';\nimport '@nvidia-elements/core/toggletip/define.js';\nimport '@nvidia-elements/core/icon/define.js';\nimport '@nvidia-elements/core/search/define.js';\nimport '@nvidia-elements/core/progress-ring/define.js';\n\nexport default {\n title: 'Elements/Button',\n component: 'nve-button'\n};\n\n/**\n * @summary Basic button component with standard appearance and behavior for primary user actions.\n */\nexport const Default = {\n render: () => html`<nve-button>standard</nve-button>`\n};\n\n/**\n * @summary Button interaction states including hover, focus, pressed, selected, and disabled.\n * @tags test-case\n */\nexport const GroupStates = {\n render: () => html`\n <div nve-layout=\"row gap:xs\">\n <nve-button>standard</nve-button>\n <nve-button selected>selected</nve-button>\n <nve-button pressed>pressed</nve-button>\n <nve-button disabled>disabled</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Interaction states that communicate button hierarchy, importance, and availability to users.\n */\nexport const Interaction = {\n render: () => html`\n <div nve-layout=\"row gap:xs\">\n <nve-button>standard</nve-button>\n <nve-button interaction=\"emphasis\">emphasis</nve-button>\n <nve-button interaction=\"destructive\">destructive</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Container style variants for buttons to accommodate different visual weight and context.\n */\nexport const Container = {\n render: () => html`\n <div nve-layout=\"row gap:xs align:vertical-center\">\n <nve-button container=\"inline\">inline</nve-button>\n <nve-button container=\"flat\">flat</nve-button>\n <nve-button>default</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Button size variants to accommodate layout densities and touch target requirements.\n */\nexport const Size = {\n render: () => html`\n <div nve-layout=\"row gap:xs\">\n <nve-button size=\"sm\">small button</nve-button>\n <nve-button>standard button</nve-button>\n <nve-button size=\"lg\">large button</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Pressed state for toggle buttons marking active/selected state with clear visual feedback.\n */\nexport const Pressed = {\n render: () => html`\n <div nve-layout=\"row gap:xs align:vertical-center\">\n <nve-button pressed container=\"inline\">pressed inline</nve-button>\n <nve-button pressed container=\"flat\">pressed flat</nve-button>\n <nve-button pressed>pressed</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Button selection states to accommodate different visual weight and context.\n */\nexport const Selected = {\n render: () => html`\n <div nve-layout=\"row gap:xs align:vertical-center\">\n <nve-button selected container=\"inline\">selected inline</nve-button>\n <nve-button selected container=\"flat\">selected flat</nve-button>\n <nve-button selected>selected</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Button disabled states to accommodate different visual weight and context.\n */\nexport const Disabled = {\n render: () => html`\n <div nve-layout=\"row gap:xs align:vertical-center\">\n <nve-button disabled container=\"inline\">disabled inline</nve-button>\n <nve-button disabled container=\"flat\">disabled flat</nve-button>\n <nve-button disabled>disabled</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Use the `commandfor` and `command` attributes to trigger custom Invoker Commands, such as rotating an image.\n */\nexport const InvokerCommand = {\n render: () => html`\n <nve-icon\n id=\"rotation-target\"\n name=\"sparkles\"\n aria-label=\"sparkles icon\"\n style=\"inline-size: 100px; block-size: 100px;\"\n ></nve-icon>\n <section>\n <nve-button commandfor=\"rotation-target\" command=\"--rotate-left\">Rotate left</nve-button>\n <nve-button commandfor=\"rotation-target\" command=\"--rotate-right\">Rotate right</nve-button>\n <nve-button commandfor=\"popover\" command=\"toggle-popover\">toggle-popover</nve-button>\n </section>\n <nve-toggletip id=\"popover\">popover</nve-toggletip>\n <script type=\"module\">\n const target = document.getElementById('rotation-target');\n target.addEventListener('command', (event) => {\n if (event.command === '--rotate-left') {\n target.style.rotate = '-90deg';\n } else if (event.command === '--rotate-right') {\n target.style.rotate = '90deg';\n }\n });\n </script>\n `\n};\n\n/**\n * @summary Button with icons positioned before or after text to enhance visual clarity and user understanding.\n */\nexport const WithIcon = {\n render: () => html`\n <nve-button><nve-icon name=\"person\"></nve-icon> button</nve-button>\n <nve-button>button <nve-icon name=\"person\"></nve-icon></nve-button>\n `\n};\n\n/**\n * @summary Flat button style for secondary actions with minimal visual weight, maintaining clear interaction states.\n */\nexport const Flat = {\n render: () => html`\n <div nve-layout=\"row gap:xs\">\n <nve-button container=\"flat\">standard</nve-button>\n <nve-button container=\"flat\" interaction=\"emphasis\">emphasis</nve-button>\n <nve-button container=\"flat\" interaction=\"destructive\">destructive</nve-button>\n <nve-button container=\"flat\" disabled>disabled</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Inline button style for text-like actions that blend with content while maintaining button functionality.\n */\nexport const Inline = {\n render: () => html`\n <div nve-layout=\"row gap:xs\">\n <nve-button container=\"inline\">standard</nve-button>\n <nve-button container=\"inline\" interaction=\"emphasis\">emphasis</nve-button>\n <nve-button container=\"inline\" interaction=\"destructive\">destructive</nve-button>\n <nve-button container=\"inline\" disabled>disabled</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Button styling applied to links for consistent visual treatment while maintaining semantic navigation behavior.\n */\nexport const Link = {\n render: () => html`\n <div nve-layout=\"row gap:xs\"> \n <nve-button><a href=\"#\">standard</a></nve-button>\n <nve-button interaction=\"emphasis\"><a href=\"#\">emphasis</a></nve-button>\n <nve-button interaction=\"destructive\"><a href=\"#\">destructive</a></nve-button>\n <nve-button disabled><a href=\"#\">disabled</a></nve-button>\n </div>\n `\n}\n\n/**\n * @summary Flat button selection state for choice groups where one option is active, providing clear selection feedback.\n */\nexport const SelectedFlat = {\n render: () => html`\n <div nve-layout=\"row gap:xs\">\n <nve-button selected container=\"flat\">selected</nve-button>\n <nve-button container=\"flat\">unselected</nve-button>\n </div>\n `\n}\n\n/**\n * @summary Flat button styling for navigation links, providing subtle visual treatment for secondary navigation actions.\n */\nexport const LinkFlat = {\n render: () => html`\n <div nve-layout=\"row gap:xs\">\n <nve-button container=\"flat\"><a href=\"#\">flat</a></nve-button>\n <nve-button container=\"flat\" interaction=\"emphasis\"><a href=\"#\">flat emphasis</a></nve-button>\n <nve-button container=\"flat\" interaction=\"destructive\"><a href=\"#\">flat destructive</a></nve-button>\n </div>\n `\n}\n\n/**\n * @summary Text wrapping behavior in constrained widths, where content adapts to available space.\n * @tags test-case\n */\nexport const NoWrap = {\n render: () => html`\n <nve-button style=\"--width: 100px\">item item item</nve-button>\n <nve-button style=\"--width: 100px\">\n <span>item</span><span>item</span><span>item</span>\n </nve-button>\n `\n}\n\n/**\n * @summary Form submission button with proper form integration and data handling for user input processing.\n */\nexport const FormSubmit = {\n render: () => html`\n<form id=\"test-form\">\n <nve-button name=\"test-button\" value=\"test-value\">submit</nve-button>\n</form>\n<script type=\"module\">\n const form = document.querySelector('#test-form');\n const button = document.querySelector('[name=\"test-button\"]');\n\n button.addEventListener('click', e => console.log(e));\n form.addEventListener('submit', e => {\n e.preventDefault();\n console.log(Object.fromEntries(new FormData(form, e.submitter)));\n });\n</script>\n`\n}\n\n/**\n * @summary Use the form control option for buttons that open custom controls such as dropdowns, filter menus, or pickers within a form layout. This pattern keeps the UI cohesive and helps users recognize the button as part of the form.\n */\nexport const FormControl = {\n render: () => html`\n<div nve-layout=\"row gap:xs\" style=\"max-width: 400px\">\n <nve-search>\n <input type=\"search\" placeholder=\"search\" aria-label=\"search\" />\n </nve-search>\n <nve-button nve-control>filter option <nve-icon name=\"caret\" direction=\"down\" size=\"sm\"></nve-icon></nve-button>\n</div>\n `\n}\n\n/**\n * @summary Button integrated with popover API to trigger contextual overlays, providing extra information or controls.\n * @tags test-case\n */\nexport const Popover = {\n render: () => html`\n <div popover id=\"popover-example\">popover</div>\n <nve-button popovertarget=\"popover-example\">toggle</nve-button>\n `\n}\n\n/**\n * @summary Override button appearance with custom CSS properties for brand-specific designs while maintaining functionality.\n * @tags test-case\n */\nexport const BackgroundOverride = {\n render: () => html`\n <style>\n nve-button.custom {\n --color: var(--nve-sys-text-black-color);\n --background-image: linear-gradient(340deg, rgb(255 234 177) 0%, var(--nve-ref-color-yellow-amber-900) 60%);\n\n &:hover {\n --background-image: linear-gradient(340deg, rgb(255 234 177) 0%, color-mix(in oklab, var(--nve-ref-color-yellow-amber-900) 100%, #000 4%) 60%);\n }\n }\n </style>\n\n <nve-button class=\"custom\">Create Account</nve-button>\n <nve-button>Create Account</nve-button>\n `\n};\n\n/**\n * @summary Button styled as a link by slotting an anchor tag inside. Use when an action needs button visual treatment while maintaining semantic link navigation and accessibility.\n */\nexport const ValidLinkButton = {\n render: () => html`\n <nve-button><a href=\"#\">default</a></nve-button>\n `\n}\n\n/**\n * @summary Do not wrap buttons in anchor tags.\n * @tags anti-pattern\n */\nexport const InvalidLinkButton = {\n render: () => html`\n <a href=\"#\"><nve-button>default</nve-button></a>\n `\n}\n\n/**\n * @summary Use a progress ring within a button to communicate that an action is processing and prevent repeated submissions. Limit this pattern to short, indeterminate actions (about five seconds or less); for longer or determinate tasks, use a progress bar or ring outside the button.\n */\nexport const ProgressDisclosure = {\n render: () => html`\n <nve-button>\n <nve-progress-ring status=\"neutral\" size=\"xxs\"></nve-progress-ring>\n Submitting\n </nve-button>\n `\n};\n\n/**\n * @summary Use standard interaction styling to keep buttons readable on contrasting backgrounds in light and dark themes. This pattern verifies the static button colors that deliver the intended contrast for each theme.\n * @tags pattern\n */\nexport const ContrastColoredBackgrounds = {\n render: () => html`\n<div nve-layout=\"column gap:lg\" style=\"width: 280px\">\n <nve-toolbar status=\"accent\">\n <div nve-text=\"label medium sm\">10 Selected</div>\n <nve-button slot=\"suffix\">Edit</nve-button>\n </nve-toolbar>\n\n <nve-alert-group status=\"danger\">\n <nve-alert> Error Detected <nve-button slot=\"actions\" container=\"flat\">Review</nve-button> </nve-alert>\n </nve-alert-group>\n\n <nve-card style=\"width: 280px\">\n <nve-card-content \n style=\"width: 100%;\n height: 100%;\n aspect-ratio: 16/9;\n object-fit: cover;\n background: repeating-conic-gradient(var(--nve-sys-layer-overlay-background) 0% 25%, transparent 0% 50%) 50% / 40px 40px;\n background-position: center;\n border-style: hidden;\"> </nve-card-content>\n <nve-card-footer>\n <div nve-layout=\"row gap:xs\">\n <nve-button container=\"flat\" style=\"margin-left: auto\">Cancel</nve-button>\n <nve-button>action</nve-button>\n </div>\n </nve-card-footer>\n </nve-card>\n</div>\n `\n};\n"],"mappings":";AAGA,IAAA,IAAS"}
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
{
|
|
80
80
|
"id": "button-invoker-command",
|
|
81
81
|
"name": "InvokerCommand",
|
|
82
|
-
"template": "<
|
|
82
|
+
"template": "<nve-icon\n id=\"rotation-target\"\n name=\"sparkles\"\n aria-label=\"sparkles icon\"\n style=\"inline-size: 100px; block-size: 100px\"\n></nve-icon>\n<section>\n <nve-button commandfor=\"rotation-target\" command=\"--rotate-left\">Rotate left</nve-button>\n <nve-button commandfor=\"rotation-target\" command=\"--rotate-right\">Rotate right</nve-button>\n <nve-button commandfor=\"popover\" command=\"toggle-popover\">toggle-popover</nve-button>\n</section>\n<nve-toggletip id=\"popover\">popover</nve-toggletip>\n<script type=\"module\">\n const target = document.getElementById(\"rotation-target\");\n target.addEventListener(\"command\", (event) => {\n if (event.command === \"--rotate-left\") {\n target.style.rotate = \"-90deg\";\n } else if (event.command === \"--rotate-right\") {\n target.style.rotate = \"90deg\";\n }\n });\n</script>\n",
|
|
83
83
|
"summary": "Use the `commandfor` and `command` attributes to trigger custom Invoker Commands, such as rotating an image.",
|
|
84
84
|
"description": "",
|
|
85
|
-
"composition":
|
|
85
|
+
"composition": true,
|
|
86
86
|
"tags": []
|
|
87
87
|
},
|
|
88
88
|
{
|
package/dist/button/button2.js
CHANGED
package/dist/card/card2.js
CHANGED
|
@@ -16,7 +16,7 @@ var d = class extends c {
|
|
|
16
16
|
static {
|
|
17
17
|
this.metadata = {
|
|
18
18
|
tag: "nve-card",
|
|
19
|
-
version: "0.1.
|
|
19
|
+
version: "0.1.4"
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
@@ -37,7 +37,7 @@ var f = class extends c {
|
|
|
37
37
|
static {
|
|
38
38
|
this.metadata = {
|
|
39
39
|
tag: "nve-card-header",
|
|
40
|
-
version: "0.1.
|
|
40
|
+
version: "0.1.4",
|
|
41
41
|
parents: ["nve-card"]
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -53,7 +53,7 @@ var p = class extends c {
|
|
|
53
53
|
static {
|
|
54
54
|
this.metadata = {
|
|
55
55
|
tag: "nve-card-content",
|
|
56
|
-
version: "0.1.
|
|
56
|
+
version: "0.1.4",
|
|
57
57
|
parents: ["nve-card"]
|
|
58
58
|
};
|
|
59
59
|
}
|
|
@@ -72,7 +72,7 @@ var m = class extends c {
|
|
|
72
72
|
static {
|
|
73
73
|
this.metadata = {
|
|
74
74
|
tag: "nve-card-footer",
|
|
75
|
-
version: "0.1.
|
|
75
|
+
version: "0.1.4",
|
|
76
76
|
parents: ["nve-card"]
|
|
77
77
|
};
|
|
78
78
|
}
|
package/dist/color/color2.js
CHANGED
|
@@ -440,10 +440,7 @@ export type ButtonProps = {
|
|
|
440
440
|
|
|
441
441
|
- `false` The associated content collapses and hides from the user. */
|
|
442
442
|
expanded?: boolean;
|
|
443
|
-
/**
|
|
444
|
-
- `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it.
|
|
445
|
-
|
|
446
|
-
- `false` The element allows editing and the user can change its value through interaction. */
|
|
443
|
+
/** */
|
|
447
444
|
readonly?: boolean;
|
|
448
445
|
/** Like input form, sets a button to submit a form outside its parent form.
|
|
449
446
|
Returns a reference to the form element if available.
|
|
@@ -495,6 +492,8 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
495
492
|
/** The idref of the element that receives the interest.
|
|
496
493
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
497
494
|
interestfor?: string | null;
|
|
495
|
+
/** @deprecated Use `readOnly`. The `readonly` attribute remains supported. */
|
|
496
|
+
readonly?: boolean;
|
|
498
497
|
};
|
|
499
498
|
|
|
500
499
|
export type CardProps = {
|
|
@@ -740,10 +739,7 @@ export type CopyButtonProps = {
|
|
|
740
739
|
|
|
741
740
|
- `false` The associated content collapses and hides from the user. */
|
|
742
741
|
expanded?: boolean;
|
|
743
|
-
/**
|
|
744
|
-
- `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it.
|
|
745
|
-
|
|
746
|
-
- `false` The element allows editing and the user can change its value through interaction. */
|
|
742
|
+
/** */
|
|
747
743
|
readonly?: boolean;
|
|
748
744
|
/** Like input form, sets a button to submit a form outside its parent form.
|
|
749
745
|
Returns a reference to the form element if available.
|
|
@@ -793,6 +789,8 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
793
789
|
/** The idref of the element that receives the interest.
|
|
794
790
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
795
791
|
interestfor?: string | null;
|
|
792
|
+
/** @deprecated Use `readOnly`. The `readonly` attribute remains supported. */
|
|
793
|
+
readonly?: boolean;
|
|
796
794
|
};
|
|
797
795
|
|
|
798
796
|
export type DateProps = {
|
|
@@ -1778,10 +1776,7 @@ Only supported by expand-panel/collapse-panel (horizontal axis) and arrow/caret/
|
|
|
1778
1776
|
|
|
1779
1777
|
- `false` The associated content collapses and hides from the user. */
|
|
1780
1778
|
expanded?: boolean;
|
|
1781
|
-
/**
|
|
1782
|
-
- `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it.
|
|
1783
|
-
|
|
1784
|
-
- `false` The element allows editing and the user can change its value through interaction. */
|
|
1779
|
+
/** */
|
|
1785
1780
|
readonly?: boolean;
|
|
1786
1781
|
/** Like input form, sets a button to submit a form outside its parent form.
|
|
1787
1782
|
Returns a reference to the form element if available.
|
|
@@ -1833,6 +1828,8 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
1833
1828
|
/** The idref of the element that receives the interest.
|
|
1834
1829
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
1835
1830
|
interestfor?: string | null;
|
|
1831
|
+
/** @deprecated Use `readOnly`. The `readonly` attribute remains supported. */
|
|
1832
|
+
readonly?: boolean;
|
|
1836
1833
|
};
|
|
1837
1834
|
|
|
1838
1835
|
export type IconProps = {
|
|
@@ -2251,10 +2248,7 @@ export type MenuItemProps = {
|
|
|
2251
2248
|
|
|
2252
2249
|
- `false` The associated content collapses and hides from the user. */
|
|
2253
2250
|
expanded?: boolean;
|
|
2254
|
-
/**
|
|
2255
|
-
- `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it.
|
|
2256
|
-
|
|
2257
|
-
- `false` The element allows editing and the user can change its value through interaction. */
|
|
2251
|
+
/** */
|
|
2258
2252
|
readonly?: boolean;
|
|
2259
2253
|
/** Like input form, sets a button to submit a form outside its parent form.
|
|
2260
2254
|
Returns a reference to the form element if available.
|
|
@@ -2306,6 +2300,8 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
2306
2300
|
/** The idref of the element that receives the interest.
|
|
2307
2301
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
2308
2302
|
interestfor?: string | null;
|
|
2303
|
+
/** @deprecated Use `readOnly`. The `readonly` attribute remains supported. */
|
|
2304
|
+
readonly?: boolean;
|
|
2309
2305
|
};
|
|
2310
2306
|
|
|
2311
2307
|
export type MenuProps = {
|
|
@@ -2969,10 +2965,7 @@ export type SortButtonProps = {
|
|
|
2969
2965
|
|
|
2970
2966
|
- `false` The associated content collapses and hides from the user. */
|
|
2971
2967
|
expanded?: boolean;
|
|
2972
|
-
/**
|
|
2973
|
-
- `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it.
|
|
2974
|
-
|
|
2975
|
-
- `false` The element allows editing and the user can change its value through interaction. */
|
|
2968
|
+
/** */
|
|
2976
2969
|
readonly?: boolean;
|
|
2977
2970
|
/** Like input form, sets a button to submit a form outside its parent form.
|
|
2978
2971
|
Returns a reference to the form element if available.
|
|
@@ -3024,7 +3017,8 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
3024
3017
|
/** The idref of the element that receives the interest.
|
|
3025
3018
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
3026
3019
|
interestfor?: string | null;
|
|
3027
|
-
|
|
3020
|
+
/** @deprecated Use `readOnly`. The `readonly` attribute remains supported. */
|
|
3021
|
+
readonly?: boolean;
|
|
3028
3022
|
/** Dispatched on sort button click, returns the current sort value and the next sort value. */
|
|
3029
3023
|
onsort?: (e: CustomEvent<never>) => void;
|
|
3030
3024
|
};
|
|
@@ -3195,10 +3189,7 @@ Demonstrates different container styles to accommodate visual weight and context
|
|
|
3195
3189
|
|
|
3196
3190
|
- `false` The associated content collapses and hides from the user. */
|
|
3197
3191
|
expanded?: boolean;
|
|
3198
|
-
/**
|
|
3199
|
-
- `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it.
|
|
3200
|
-
|
|
3201
|
-
- `false` The element allows editing and the user can change its value through interaction. */
|
|
3192
|
+
/** */
|
|
3202
3193
|
readonly?: boolean;
|
|
3203
3194
|
/** Like input form, sets a button to submit a form outside its parent form.
|
|
3204
3195
|
Returns a reference to the form element if available.
|
|
@@ -3245,6 +3236,8 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
3245
3236
|
/** The idref of the element that receives the interest.
|
|
3246
3237
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
3247
3238
|
interestfor?: string | null;
|
|
3239
|
+
/** @deprecated Use `readOnly`. The `readonly` attribute remains supported. */
|
|
3240
|
+
readonly?: boolean;
|
|
3248
3241
|
};
|
|
3249
3242
|
|
|
3250
3243
|
export type StepsProps = {
|
|
@@ -3349,10 +3342,7 @@ export type TabsItemProps = {
|
|
|
3349
3342
|
|
|
3350
3343
|
- `false` The associated content collapses and hides from the user. */
|
|
3351
3344
|
expanded?: boolean;
|
|
3352
|
-
/**
|
|
3353
|
-
- `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it.
|
|
3354
|
-
|
|
3355
|
-
- `false` The element allows editing and the user can change its value through interaction. */
|
|
3345
|
+
/** */
|
|
3356
3346
|
readonly?: boolean;
|
|
3357
3347
|
/** Like input form, sets a button to submit a form outside its parent form.
|
|
3358
3348
|
Returns a reference to the form element if available.
|
|
@@ -3399,6 +3389,8 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
3399
3389
|
/** The idref of the element that receives the interest.
|
|
3400
3390
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
3401
3391
|
interestfor?: string | null;
|
|
3392
|
+
/** @deprecated Use `readOnly`. The `readonly` attribute remains supported. */
|
|
3393
|
+
readonly?: boolean;
|
|
3402
3394
|
};
|
|
3403
3395
|
|
|
3404
3396
|
export type TabsProps = {
|
|
@@ -3463,10 +3455,7 @@ export type TagProps = {
|
|
|
3463
3455
|
|
|
3464
3456
|
- `false` The associated content collapses and hides from the user. */
|
|
3465
3457
|
expanded?: boolean;
|
|
3466
|
-
/**
|
|
3467
|
-
- `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it.
|
|
3468
|
-
|
|
3469
|
-
- `false` The element allows editing and the user can change its value through interaction. */
|
|
3458
|
+
/** */
|
|
3470
3459
|
readonly?: boolean;
|
|
3471
3460
|
/** Like input form, sets a button to submit a form outside its parent form.
|
|
3472
3461
|
Returns a reference to the form element if available.
|
|
@@ -3518,6 +3507,8 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
3518
3507
|
/** The idref of the element that receives the interest.
|
|
3519
3508
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
3520
3509
|
interestfor?: string | null;
|
|
3510
|
+
/** @deprecated Use `readOnly`. The `readonly` attribute remains supported. */
|
|
3511
|
+
readonly?: boolean;
|
|
3521
3512
|
};
|
|
3522
3513
|
|
|
3523
3514
|
export type TextareaProps = {
|
|
@@ -367,10 +367,7 @@ type ButtonProps = {
|
|
|
367
367
|
|
|
368
368
|
- `false` The associated content collapses and hides from the user. */
|
|
369
369
|
expanded?: boolean;
|
|
370
|
-
/**
|
|
371
|
-
- `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it.
|
|
372
|
-
|
|
373
|
-
- `false` The element allows editing and the user can change its value through interaction. */
|
|
370
|
+
/** */
|
|
374
371
|
readonly?: boolean;
|
|
375
372
|
/** Like input form, sets a button to submit a form outside its parent form.
|
|
376
373
|
Returns a reference to the form element if available.
|
|
@@ -422,6 +419,8 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
422
419
|
/** The idref of the element that receives the interest.
|
|
423
420
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
424
421
|
interestfor?: string | null;
|
|
422
|
+
/** @deprecated Use `readOnly`. The `readonly` attribute remains supported. */
|
|
423
|
+
readonly?: boolean;
|
|
425
424
|
};
|
|
426
425
|
|
|
427
426
|
type CardProps = {
|
|
@@ -667,10 +666,7 @@ type CopyButtonProps = {
|
|
|
667
666
|
|
|
668
667
|
- `false` The associated content collapses and hides from the user. */
|
|
669
668
|
expanded?: boolean;
|
|
670
|
-
/**
|
|
671
|
-
- `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it.
|
|
672
|
-
|
|
673
|
-
- `false` The element allows editing and the user can change its value through interaction. */
|
|
669
|
+
/** */
|
|
674
670
|
readonly?: boolean;
|
|
675
671
|
/** Like input form, sets a button to submit a form outside its parent form.
|
|
676
672
|
Returns a reference to the form element if available.
|
|
@@ -720,6 +716,8 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
720
716
|
/** The idref of the element that receives the interest.
|
|
721
717
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
722
718
|
interestfor?: string | null;
|
|
719
|
+
/** @deprecated Use `readOnly`. The `readonly` attribute remains supported. */
|
|
720
|
+
readonly?: boolean;
|
|
723
721
|
};
|
|
724
722
|
|
|
725
723
|
type DateProps = {
|
|
@@ -1705,10 +1703,7 @@ Only supported by expand-panel/collapse-panel (horizontal axis) and arrow/caret/
|
|
|
1705
1703
|
|
|
1706
1704
|
- `false` The associated content collapses and hides from the user. */
|
|
1707
1705
|
expanded?: boolean;
|
|
1708
|
-
/**
|
|
1709
|
-
- `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it.
|
|
1710
|
-
|
|
1711
|
-
- `false` The element allows editing and the user can change its value through interaction. */
|
|
1706
|
+
/** */
|
|
1712
1707
|
readonly?: boolean;
|
|
1713
1708
|
/** Like input form, sets a button to submit a form outside its parent form.
|
|
1714
1709
|
Returns a reference to the form element if available.
|
|
@@ -1760,6 +1755,8 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
1760
1755
|
/** The idref of the element that receives the interest.
|
|
1761
1756
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
1762
1757
|
interestfor?: string | null;
|
|
1758
|
+
/** @deprecated Use `readOnly`. The `readonly` attribute remains supported. */
|
|
1759
|
+
readonly?: boolean;
|
|
1763
1760
|
};
|
|
1764
1761
|
|
|
1765
1762
|
type IconProps = {
|
|
@@ -2178,10 +2175,7 @@ type MenuItemProps = {
|
|
|
2178
2175
|
|
|
2179
2176
|
- `false` The associated content collapses and hides from the user. */
|
|
2180
2177
|
expanded?: boolean;
|
|
2181
|
-
/**
|
|
2182
|
-
- `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it.
|
|
2183
|
-
|
|
2184
|
-
- `false` The element allows editing and the user can change its value through interaction. */
|
|
2178
|
+
/** */
|
|
2185
2179
|
readonly?: boolean;
|
|
2186
2180
|
/** Like input form, sets a button to submit a form outside its parent form.
|
|
2187
2181
|
Returns a reference to the form element if available.
|
|
@@ -2233,6 +2227,8 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
2233
2227
|
/** The idref of the element that receives the interest.
|
|
2234
2228
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
2235
2229
|
interestfor?: string | null;
|
|
2230
|
+
/** @deprecated Use `readOnly`. The `readonly` attribute remains supported. */
|
|
2231
|
+
readonly?: boolean;
|
|
2236
2232
|
};
|
|
2237
2233
|
|
|
2238
2234
|
type MenuProps = {
|
|
@@ -2896,10 +2892,7 @@ type SortButtonProps = {
|
|
|
2896
2892
|
|
|
2897
2893
|
- `false` The associated content collapses and hides from the user. */
|
|
2898
2894
|
expanded?: boolean;
|
|
2899
|
-
/**
|
|
2900
|
-
- `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it.
|
|
2901
|
-
|
|
2902
|
-
- `false` The element allows editing and the user can change its value through interaction. */
|
|
2895
|
+
/** */
|
|
2903
2896
|
readonly?: boolean;
|
|
2904
2897
|
/** Like input form, sets a button to submit a form outside its parent form.
|
|
2905
2898
|
Returns a reference to the form element if available.
|
|
@@ -2951,7 +2944,8 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
2951
2944
|
/** The idref of the element that receives the interest.
|
|
2952
2945
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
2953
2946
|
interestfor?: string | null;
|
|
2954
|
-
|
|
2947
|
+
/** @deprecated Use `readOnly`. The `readonly` attribute remains supported. */
|
|
2948
|
+
readonly?: boolean;
|
|
2955
2949
|
/** Dispatched on sort button click, returns the current sort value and the next sort value. */
|
|
2956
2950
|
onsort?: (e: CustomEvent<never>) => void;
|
|
2957
2951
|
};
|
|
@@ -3122,10 +3116,7 @@ Demonstrates different container styles to accommodate visual weight and context
|
|
|
3122
3116
|
|
|
3123
3117
|
- `false` The associated content collapses and hides from the user. */
|
|
3124
3118
|
expanded?: boolean;
|
|
3125
|
-
/**
|
|
3126
|
-
- `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it.
|
|
3127
|
-
|
|
3128
|
-
- `false` The element allows editing and the user can change its value through interaction. */
|
|
3119
|
+
/** */
|
|
3129
3120
|
readonly?: boolean;
|
|
3130
3121
|
/** Like input form, sets a button to submit a form outside its parent form.
|
|
3131
3122
|
Returns a reference to the form element if available.
|
|
@@ -3172,6 +3163,8 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
3172
3163
|
/** The idref of the element that receives the interest.
|
|
3173
3164
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
3174
3165
|
interestfor?: string | null;
|
|
3166
|
+
/** @deprecated Use `readOnly`. The `readonly` attribute remains supported. */
|
|
3167
|
+
readonly?: boolean;
|
|
3175
3168
|
};
|
|
3176
3169
|
|
|
3177
3170
|
type StepsProps = {
|
|
@@ -3276,10 +3269,7 @@ type TabsItemProps = {
|
|
|
3276
3269
|
|
|
3277
3270
|
- `false` The associated content collapses and hides from the user. */
|
|
3278
3271
|
expanded?: boolean;
|
|
3279
|
-
/**
|
|
3280
|
-
- `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it.
|
|
3281
|
-
|
|
3282
|
-
- `false` The element allows editing and the user can change its value through interaction. */
|
|
3272
|
+
/** */
|
|
3283
3273
|
readonly?: boolean;
|
|
3284
3274
|
/** Like input form, sets a button to submit a form outside its parent form.
|
|
3285
3275
|
Returns a reference to the form element if available.
|
|
@@ -3326,6 +3316,8 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
3326
3316
|
/** The idref of the element that receives the interest.
|
|
3327
3317
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
3328
3318
|
interestfor?: string | null;
|
|
3319
|
+
/** @deprecated Use `readOnly`. The `readonly` attribute remains supported. */
|
|
3320
|
+
readonly?: boolean;
|
|
3329
3321
|
};
|
|
3330
3322
|
|
|
3331
3323
|
type TabsProps = {
|
|
@@ -3390,10 +3382,7 @@ type TagProps = {
|
|
|
3390
3382
|
|
|
3391
3383
|
- `false` The associated content collapses and hides from the user. */
|
|
3392
3384
|
expanded?: boolean;
|
|
3393
|
-
/**
|
|
3394
|
-
- `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it.
|
|
3395
|
-
|
|
3396
|
-
- `false` The element allows editing and the user can change its value through interaction. */
|
|
3385
|
+
/** */
|
|
3397
3386
|
readonly?: boolean;
|
|
3398
3387
|
/** Like input form, sets a button to submit a form outside its parent form.
|
|
3399
3388
|
Returns a reference to the form element if available.
|
|
@@ -3445,6 +3434,8 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
3445
3434
|
/** The idref of the element that receives the interest.
|
|
3446
3435
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
3447
3436
|
interestfor?: string | null;
|
|
3437
|
+
/** @deprecated Use `readOnly`. The `readonly` attribute remains supported. */
|
|
3438
|
+
readonly?: boolean;
|
|
3448
3439
|
};
|
|
3449
3440
|
|
|
3450
3441
|
type TextareaProps = {
|