ui-lab-registry 0.3.44 → 0.3.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Anchor/examples/01-inline-text.d.ts +6 -0
- package/dist/components/Anchor/examples/01-inline-text.d.ts.map +1 -0
- package/dist/components/Anchor/examples/01-inline-text.js +10 -0
- package/dist/components/Anchor/examples/01-inline-text.js.map +1 -0
- package/dist/components/Anchor/examples/02-underline-variants.d.ts +6 -0
- package/dist/components/Anchor/examples/02-underline-variants.d.ts.map +1 -0
- package/dist/components/Anchor/examples/02-underline-variants.js +10 -0
- package/dist/components/Anchor/examples/02-underline-variants.js.map +1 -0
- package/dist/components/Anchor/examples/03-preview-tooltip.d.ts +6 -0
- package/dist/components/Anchor/examples/03-preview-tooltip.d.ts.map +1 -0
- package/dist/components/Anchor/examples/03-preview-tooltip.js +10 -0
- package/dist/components/Anchor/examples/03-preview-tooltip.js.map +1 -0
- package/dist/components/Anchor/examples/04-breadcrumb.d.ts +6 -0
- package/dist/components/Anchor/examples/04-breadcrumb.d.ts.map +1 -0
- package/dist/components/Anchor/examples/04-breadcrumb.js +15 -0
- package/dist/components/Anchor/examples/04-breadcrumb.js.map +1 -0
- package/dist/components/Anchor/examples/index.d.ts +8 -1
- package/dist/components/Anchor/examples/index.d.ts.map +1 -1
- package/dist/components/Anchor/examples/index.js +8 -1
- package/dist/components/Anchor/examples/index.js.map +1 -1
- package/dist/components/Anchor/examples.json +19 -4
- package/dist/components/Anchor/index.d.ts.map +1 -1
- package/dist/components/Anchor/index.js +8 -2
- package/dist/components/Anchor/index.js.map +1 -1
- package/dist/components/Badge/examples/01-status-badges.d.ts +6 -0
- package/dist/components/Badge/examples/01-status-badges.d.ts.map +1 -0
- package/dist/components/Badge/examples/01-status-badges.js +10 -0
- package/dist/components/Badge/examples/01-status-badges.js.map +1 -0
- package/dist/components/Badge/examples/02-icon-position.d.ts +6 -0
- package/dist/components/Badge/examples/02-icon-position.d.ts.map +1 -0
- package/dist/components/Badge/examples/02-icon-position.js +11 -0
- package/dist/components/Badge/examples/02-icon-position.js.map +1 -0
- package/dist/components/Badge/examples/02-variants-and-sizes.d.ts.map +1 -1
- package/dist/components/Badge/examples/02-variants-and-sizes.js +3 -3
- package/dist/components/Badge/examples/02-variants-and-sizes.js.map +1 -1
- package/dist/components/Badge/examples/03-selectable-tags.d.ts +6 -0
- package/dist/components/Badge/examples/03-selectable-tags.d.ts.map +1 -0
- package/dist/components/Badge/examples/03-selectable-tags.js +21 -0
- package/dist/components/Badge/examples/03-selectable-tags.js.map +1 -0
- package/dist/components/Badge/examples/04-dismissible.d.ts +6 -0
- package/dist/components/Badge/examples/04-dismissible.d.ts.map +1 -0
- package/dist/components/Badge/examples/04-dismissible.js +14 -0
- package/dist/components/Badge/examples/04-dismissible.js.map +1 -0
- package/dist/components/Badge/examples/05-semantic-colors.d.ts +6 -0
- package/dist/components/Badge/examples/05-semantic-colors.d.ts.map +1 -0
- package/dist/components/Badge/examples/05-semantic-colors.js +10 -0
- package/dist/components/Badge/examples/05-semantic-colors.js.map +1 -0
- package/dist/components/Badge/examples/index.d.ts +10 -4
- package/dist/components/Badge/examples/index.d.ts.map +1 -1
- package/dist/components/Badge/examples/index.js +10 -4
- package/dist/components/Badge/examples/index.js.map +1 -1
- package/dist/components/Badge/examples.json +24 -9
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/index.js +12 -15
- package/dist/components/Badge/index.js.map +1 -1
- package/dist/components/Banner/examples/01-variants.d.ts +6 -0
- package/dist/components/Banner/examples/01-variants.d.ts.map +1 -0
- package/dist/components/Banner/examples/01-variants.js +10 -0
- package/dist/components/Banner/examples/01-variants.js.map +1 -0
- package/dist/components/Banner/examples/02-dismissible.d.ts +6 -0
- package/dist/components/Banner/examples/02-dismissible.d.ts.map +1 -0
- package/dist/components/Banner/examples/02-dismissible.js +13 -0
- package/dist/components/Banner/examples/02-dismissible.js.map +1 -0
- package/dist/components/Banner/examples/03-form-feedback.d.ts +6 -0
- package/dist/components/Banner/examples/03-form-feedback.d.ts.map +1 -0
- package/dist/components/Banner/examples/03-form-feedback.js +21 -0
- package/dist/components/Banner/examples/03-form-feedback.js.map +1 -0
- package/dist/components/Banner/examples/04-settings-panel.d.ts +6 -0
- package/dist/components/Banner/examples/04-settings-panel.d.ts.map +1 -0
- package/dist/components/Banner/examples/04-settings-panel.js +10 -0
- package/dist/components/Banner/examples/04-settings-panel.js.map +1 -0
- package/dist/components/Banner/examples/05-body-only.d.ts +6 -0
- package/dist/components/Banner/examples/05-body-only.d.ts.map +1 -0
- package/dist/components/Banner/examples/05-body-only.js +10 -0
- package/dist/components/Banner/examples/05-body-only.js.map +1 -0
- package/dist/components/Banner/examples/index.d.ts +10 -2
- package/dist/components/Banner/examples/index.d.ts.map +1 -1
- package/dist/components/Banner/examples/index.js +10 -2
- package/dist/components/Banner/examples/index.js.map +1 -1
- package/dist/components/Banner/examples.json +24 -4
- package/dist/components/Banner/index.d.ts.map +1 -1
- package/dist/components/Banner/index.js +13 -16
- package/dist/components/Banner/index.js.map +1 -1
- package/dist/components/Button/examples/01-variants.d.ts.map +1 -1
- package/dist/components/Button/examples/01-variants.js +12 -4
- package/dist/components/Button/examples/01-variants.js.map +1 -1
- package/dist/components/Button/examples/02-multi-actions.d.ts.map +1 -1
- package/dist/components/Button/examples/02-multi-actions.js.map +1 -1
- package/dist/components/Button/examples/04-sub-stack-actions.js +1 -1
- package/dist/components/Button/examples/04-sub-stack-actions.js.map +1 -1
- package/dist/components/Button/examples/06-icons.d.ts +6 -0
- package/dist/components/Button/examples/06-icons.d.ts.map +1 -0
- package/dist/components/Button/examples/06-icons.js +11 -0
- package/dist/components/Button/examples/06-icons.js.map +1 -0
- package/dist/components/Button/examples/07-split-button.d.ts +6 -0
- package/dist/components/Button/examples/07-split-button.d.ts.map +1 -0
- package/dist/components/Button/examples/07-split-button.js +20 -0
- package/dist/components/Button/examples/07-split-button.js.map +1 -0
- package/dist/components/Button/examples/08-button-group.d.ts +6 -0
- package/dist/components/Button/examples/08-button-group.d.ts.map +1 -0
- package/dist/components/Button/examples/08-button-group.js +14 -0
- package/dist/components/Button/examples/08-button-group.js.map +1 -0
- package/dist/components/Button/examples/index.d.ts +6 -0
- package/dist/components/Button/examples/index.d.ts.map +1 -1
- package/dist/components/Button/examples/index.js +6 -0
- package/dist/components/Button/examples/index.js.map +1 -1
- package/dist/components/Button/examples.json +19 -4
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +6 -0
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Card/examples/01-notification.d.ts +6 -0
- package/dist/components/Card/examples/01-notification.d.ts.map +1 -0
- package/dist/components/Card/examples/01-notification.js +13 -0
- package/dist/components/Card/examples/01-notification.js.map +1 -0
- package/dist/components/Card/examples/02-settings-panel.d.ts +6 -0
- package/dist/components/Card/examples/02-settings-panel.d.ts.map +1 -0
- package/dist/components/Card/examples/02-settings-panel.js +18 -0
- package/dist/components/Card/examples/02-settings-panel.js.map +1 -0
- package/dist/components/Card/examples/03-task-progress.d.ts +6 -0
- package/dist/components/Card/examples/03-task-progress.d.ts.map +1 -0
- package/dist/components/Card/examples/03-task-progress.js +17 -0
- package/dist/components/Card/examples/03-task-progress.js.map +1 -0
- package/dist/components/Card/examples/index.d.ts +6 -2
- package/dist/components/Card/examples/index.d.ts.map +1 -1
- package/dist/components/Card/examples/index.js +6 -2
- package/dist/components/Card/examples/index.js.map +1 -1
- package/dist/components/Card/examples.json +14 -4
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/index.js +6 -2
- package/dist/components/Card/index.js.map +1 -1
- package/dist/components/Checkbox/examples/01-basic-states.d.ts +6 -0
- package/dist/components/Checkbox/examples/01-basic-states.d.ts.map +1 -0
- package/dist/components/Checkbox/examples/01-basic-states.js +10 -0
- package/dist/components/Checkbox/examples/01-basic-states.js.map +1 -0
- package/dist/components/Checkbox/examples/02-helper-text.d.ts +6 -0
- package/dist/components/Checkbox/examples/02-helper-text.d.ts.map +1 -0
- package/dist/components/Checkbox/examples/02-helper-text.js +10 -0
- package/dist/components/Checkbox/examples/02-helper-text.js.map +1 -0
- package/dist/components/Checkbox/examples/03-controlled.d.ts +6 -0
- package/dist/components/Checkbox/examples/03-controlled.d.ts.map +1 -0
- package/dist/components/Checkbox/examples/03-controlled.js +13 -0
- package/dist/components/Checkbox/examples/03-controlled.js.map +1 -0
- package/dist/components/Checkbox/examples/04-group.d.ts +6 -0
- package/dist/components/Checkbox/examples/04-group.d.ts.map +1 -0
- package/dist/components/Checkbox/examples/04-group.js +25 -0
- package/dist/components/Checkbox/examples/04-group.js.map +1 -0
- package/dist/components/Checkbox/examples/05-indeterminate.d.ts +6 -0
- package/dist/components/Checkbox/examples/05-indeterminate.d.ts.map +1 -0
- package/dist/components/Checkbox/examples/05-indeterminate.js +26 -0
- package/dist/components/Checkbox/examples/05-indeterminate.js.map +1 -0
- package/dist/components/Checkbox/examples/06-consent-form.d.ts +6 -0
- package/dist/components/Checkbox/examples/06-consent-form.d.ts.map +1 -0
- package/dist/components/Checkbox/examples/06-consent-form.js +14 -0
- package/dist/components/Checkbox/examples/06-consent-form.js.map +1 -0
- package/dist/components/Checkbox/examples/index.d.ts +12 -4
- package/dist/components/Checkbox/examples/index.d.ts.map +1 -1
- package/dist/components/Checkbox/examples/index.js +12 -4
- package/dist/components/Checkbox/examples/index.js.map +1 -1
- package/dist/components/Checkbox/examples.json +29 -9
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +13 -16
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/Color/examples/01-basic-color-picker.d.ts +6 -0
- package/dist/components/Color/examples/01-basic-color-picker.d.ts.map +1 -0
- package/dist/components/Color/examples/01-basic-color-picker.js +11 -0
- package/dist/components/Color/examples/01-basic-color-picker.js.map +1 -0
- package/dist/components/Color/examples/02-color-picker-opacity.d.ts +6 -0
- package/dist/components/Color/examples/02-color-picker-opacity.d.ts.map +1 -0
- package/dist/components/Color/examples/02-color-picker-opacity.js +13 -0
- package/dist/components/Color/examples/02-color-picker-opacity.js.map +1 -0
- package/dist/components/Color/examples/03-color-picker-preview.d.ts +6 -0
- package/dist/components/Color/examples/03-color-picker-preview.d.ts.map +1 -0
- package/dist/components/Color/examples/03-color-picker-preview.js +13 -0
- package/dist/components/Color/examples/03-color-picker-preview.js.map +1 -0
- package/dist/components/Color/examples/04-color-slider-primitive.d.ts +6 -0
- package/dist/components/Color/examples/04-color-slider-primitive.d.ts.map +1 -0
- package/dist/components/Color/examples/04-color-slider-primitive.js +16 -0
- package/dist/components/Color/examples/04-color-slider-primitive.js.map +1 -0
- package/dist/components/Color/examples/index.d.ts +8 -3
- package/dist/components/Color/examples/index.d.ts.map +1 -1
- package/dist/components/Color/examples/index.js +8 -3
- package/dist/components/Color/examples/index.js.map +1 -1
- package/dist/components/Color/examples.json +18 -8
- package/dist/components/Color/index.d.ts.map +1 -1
- package/dist/components/Color/index.js +8 -4
- package/dist/components/Color/index.js.map +1 -1
- package/dist/components/Expand/examples/01-basic.d.ts +6 -0
- package/dist/components/Expand/examples/01-basic.d.ts.map +1 -0
- package/dist/components/Expand/examples/01-basic.js +10 -0
- package/dist/components/Expand/examples/01-basic.js.map +1 -0
- package/dist/components/Expand/examples/02-accordion.d.ts +6 -0
- package/dist/components/Expand/examples/02-accordion.d.ts.map +1 -0
- package/dist/components/Expand/examples/02-accordion.js +30 -0
- package/dist/components/Expand/examples/02-accordion.js.map +1 -0
- package/dist/components/Expand/examples/03-custom-trigger.d.ts +6 -0
- package/dist/components/Expand/examples/03-custom-trigger.d.ts.map +1 -0
- package/dist/components/Expand/examples/03-custom-trigger.js +11 -0
- package/dist/components/Expand/examples/03-custom-trigger.js.map +1 -0
- package/dist/components/Expand/examples/04-directions.d.ts +6 -0
- package/dist/components/Expand/examples/04-directions.d.ts.map +1 -0
- package/dist/components/Expand/examples/04-directions.js +10 -0
- package/dist/components/Expand/examples/04-directions.js.map +1 -0
- package/dist/components/Expand/examples/05-settings-panel.d.ts +6 -0
- package/dist/components/Expand/examples/05-settings-panel.d.ts.map +1 -0
- package/dist/components/Expand/examples/05-settings-panel.js +11 -0
- package/dist/components/Expand/examples/05-settings-panel.js.map +1 -0
- package/dist/components/Expand/examples/06-disabled.d.ts +6 -0
- package/dist/components/Expand/examples/06-disabled.d.ts.map +1 -0
- package/dist/components/Expand/examples/06-disabled.js +10 -0
- package/dist/components/Expand/examples/06-disabled.js.map +1 -0
- package/dist/components/Expand/examples/07-inline-info.d.ts +6 -0
- package/dist/components/Expand/examples/07-inline-info.d.ts.map +1 -0
- package/dist/components/Expand/examples/07-inline-info.js +11 -0
- package/dist/components/Expand/examples/07-inline-info.js.map +1 -0
- package/dist/components/Expand/examples/index.d.ts +14 -2
- package/dist/components/Expand/examples/index.d.ts.map +1 -1
- package/dist/components/Expand/examples/index.js +14 -2
- package/dist/components/Expand/examples/index.js.map +1 -1
- package/dist/components/Expand/examples.json +34 -4
- package/dist/components/Expand/index.d.ts.map +1 -1
- package/dist/components/Expand/index.js +14 -2
- package/dist/components/Expand/index.js.map +1 -1
- package/dist/components/Flex/examples/01-axis-control.d.ts +11 -0
- package/dist/components/Flex/examples/01-axis-control.d.ts.map +1 -0
- package/dist/components/Flex/examples/01-axis-control.js +149 -0
- package/dist/components/Flex/examples/01-axis-control.js.map +1 -0
- package/dist/components/Flex/examples/02-wrap-overflow.d.ts +11 -0
- package/dist/components/Flex/examples/02-wrap-overflow.d.ts.map +1 -0
- package/dist/components/Flex/examples/02-wrap-overflow.js +147 -0
- package/dist/components/Flex/examples/02-wrap-overflow.js.map +1 -0
- package/dist/components/Flex/examples/03-container-query-reflow.d.ts +11 -0
- package/dist/components/Flex/examples/03-container-query-reflow.d.ts.map +1 -0
- package/dist/components/Flex/examples/03-container-query-reflow.js +151 -0
- package/dist/components/Flex/examples/03-container-query-reflow.js.map +1 -0
- package/dist/components/Flex/examples/index.d.ts +6 -2
- package/dist/components/Flex/examples/index.d.ts.map +1 -1
- package/dist/components/Flex/examples/index.js +6 -2
- package/dist/components/Flex/examples/index.js.map +1 -1
- package/dist/components/Flex/examples.json +14 -4
- package/dist/components/Flex/index.d.ts.map +1 -1
- package/dist/components/Flex/index.js +12 -8
- package/dist/components/Flex/index.js.map +1 -1
- package/dist/components/Gallery/examples/01-grid-composition.d.ts +11 -0
- package/dist/components/Gallery/examples/01-grid-composition.d.ts.map +1 -0
- package/dist/components/Gallery/examples/01-grid-composition.js +95 -0
- package/dist/components/Gallery/examples/01-grid-composition.js.map +1 -0
- package/dist/components/Gallery/examples/02-item-orientation.d.ts +11 -0
- package/dist/components/Gallery/examples/02-item-orientation.d.ts.map +1 -0
- package/dist/components/Gallery/examples/02-item-orientation.js +106 -0
- package/dist/components/Gallery/examples/02-item-orientation.js.map +1 -0
- package/dist/components/Gallery/examples/03-span-layout.d.ts +11 -0
- package/dist/components/Gallery/examples/03-span-layout.d.ts.map +1 -0
- package/dist/components/Gallery/examples/03-span-layout.js +95 -0
- package/dist/components/Gallery/examples/03-span-layout.js.map +1 -0
- package/dist/components/Gallery/examples/index.d.ts +6 -2
- package/dist/components/Gallery/examples/index.d.ts.map +1 -1
- package/dist/components/Gallery/examples/index.js +6 -2
- package/dist/components/Gallery/examples/index.js.map +1 -1
- package/dist/components/Gallery/examples.json +14 -4
- package/dist/components/Gallery/index.d.ts.map +1 -1
- package/dist/components/Gallery/index.js +6 -2
- package/dist/components/Gallery/index.js.map +1 -1
- package/dist/components/Grid/examples/02-track-placement.d.ts +11 -0
- package/dist/components/Grid/examples/02-track-placement.d.ts.map +1 -0
- package/dist/components/Grid/examples/02-track-placement.js +181 -0
- package/dist/components/Grid/examples/02-track-placement.js.map +1 -0
- package/dist/components/Grid/examples/03-editorial-spans.d.ts +11 -0
- package/dist/components/Grid/examples/03-editorial-spans.d.ts.map +1 -0
- package/dist/components/Grid/examples/03-editorial-spans.js +167 -0
- package/dist/components/Grid/examples/03-editorial-spans.js.map +1 -0
- package/dist/components/Grid/examples/04-responsive-card-rail.d.ts +11 -0
- package/dist/components/Grid/examples/04-responsive-card-rail.d.ts.map +1 -0
- package/dist/components/Grid/examples/04-responsive-card-rail.js +126 -0
- package/dist/components/Grid/examples/04-responsive-card-rail.js.map +1 -0
- package/dist/components/Grid/examples/index.d.ts +6 -0
- package/dist/components/Grid/examples/index.d.ts.map +1 -1
- package/dist/components/Grid/examples/index.js +6 -0
- package/dist/components/Grid/examples/index.js.map +1 -1
- package/dist/components/Grid/examples.json +15 -0
- package/dist/components/Grid/index.d.ts.map +1 -1
- package/dist/components/Grid/index.js +6 -0
- package/dist/components/Grid/index.js.map +1 -1
- package/dist/components/Group/examples/02-create-project.d.ts +6 -0
- package/dist/components/Group/examples/02-create-project.d.ts.map +1 -0
- package/dist/components/Group/examples/02-create-project.js +11 -0
- package/dist/components/Group/examples/02-create-project.js.map +1 -0
- package/dist/components/Group/examples/03-filter-bar.d.ts +6 -0
- package/dist/components/Group/examples/03-filter-bar.d.ts.map +1 -0
- package/dist/components/Group/examples/03-filter-bar.js +14 -0
- package/dist/components/Group/examples/03-filter-bar.js.map +1 -0
- package/dist/components/Group/examples/04-documentation-search.d.ts +6 -0
- package/dist/components/Group/examples/04-documentation-search.d.ts.map +1 -0
- package/dist/components/Group/examples/04-documentation-search.js +11 -0
- package/dist/components/Group/examples/04-documentation-search.js.map +1 -0
- package/dist/components/Group/examples/05-email-signup.d.ts +6 -0
- package/dist/components/Group/examples/05-email-signup.d.ts.map +1 -0
- package/dist/components/Group/examples/05-email-signup.js +11 -0
- package/dist/components/Group/examples/05-email-signup.js.map +1 -0
- package/dist/components/Group/examples/06-copy-command.d.ts +6 -0
- package/dist/components/Group/examples/06-copy-command.d.ts.map +1 -0
- package/dist/components/Group/examples/06-copy-command.js +11 -0
- package/dist/components/Group/examples/06-copy-command.js.map +1 -0
- package/dist/components/Group/examples/07-delete-confirmation.d.ts +6 -0
- package/dist/components/Group/examples/07-delete-confirmation.d.ts.map +1 -0
- package/dist/components/Group/examples/07-delete-confirmation.js +11 -0
- package/dist/components/Group/examples/07-delete-confirmation.js.map +1 -0
- package/dist/components/Group/examples/08-slider-integration.d.ts +6 -0
- package/dist/components/Group/examples/08-slider-integration.d.ts.map +1 -0
- package/dist/components/Group/examples/08-slider-integration.js +19 -0
- package/dist/components/Group/examples/08-slider-integration.js.map +1 -0
- package/dist/components/Group/examples/index.d.ts +14 -0
- package/dist/components/Group/examples/index.d.ts.map +1 -1
- package/dist/components/Group/examples/index.js +14 -0
- package/dist/components/Group/examples/index.js.map +1 -1
- package/dist/components/Group/examples.json +35 -0
- package/dist/components/Group/index.d.ts.map +1 -1
- package/dist/components/Group/index.js +14 -0
- package/dist/components/Group/index.js.map +1 -1
- package/dist/components/Input/examples/03-sign-in.d.ts +6 -0
- package/dist/components/Input/examples/03-sign-in.d.ts.map +1 -0
- package/dist/components/Input/examples/03-sign-in.js +22 -0
- package/dist/components/Input/examples/03-sign-in.js.map +1 -0
- package/dist/components/Input/examples/04-search.d.ts +6 -0
- package/dist/components/Input/examples/04-search.d.ts.map +1 -0
- package/dist/components/Input/examples/04-search.js +16 -0
- package/dist/components/Input/examples/04-search.js.map +1 -0
- package/dist/components/Input/examples/05-user-handle.d.ts +6 -0
- package/dist/components/Input/examples/05-user-handle.d.ts.map +1 -0
- package/dist/components/Input/examples/05-user-handle.js +27 -0
- package/dist/components/Input/examples/05-user-handle.js.map +1 -0
- package/dist/components/Input/examples/06-api-key.d.ts +6 -0
- package/dist/components/Input/examples/06-api-key.d.ts.map +1 -0
- package/dist/components/Input/examples/06-api-key.js +35 -0
- package/dist/components/Input/examples/06-api-key.js.map +1 -0
- package/dist/components/Input/examples/07-url-validation.d.ts +6 -0
- package/dist/components/Input/examples/07-url-validation.d.ts.map +1 -0
- package/dist/components/Input/examples/07-url-validation.js +23 -0
- package/dist/components/Input/examples/07-url-validation.js.map +1 -0
- package/dist/components/Input/examples/08-quantity.d.ts +6 -0
- package/dist/components/Input/examples/08-quantity.d.ts.map +1 -0
- package/dist/components/Input/examples/08-quantity.js +13 -0
- package/dist/components/Input/examples/08-quantity.js.map +1 -0
- package/dist/components/Input/examples/index.d.ts +12 -0
- package/dist/components/Input/examples/index.d.ts.map +1 -1
- package/dist/components/Input/examples/index.js +12 -0
- package/dist/components/Input/examples/index.js.map +1 -1
- package/dist/components/Input/examples.json +30 -0
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +12 -0
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/List/examples/02-review-queue.d.ts +6 -0
- package/dist/components/List/examples/02-review-queue.d.ts.map +1 -0
- package/dist/components/List/examples/02-review-queue.js +32 -0
- package/dist/components/List/examples/02-review-queue.js.map +1 -0
- package/dist/components/List/examples/03-notification-rules.d.ts +6 -0
- package/dist/components/List/examples/03-notification-rules.d.ts.map +1 -0
- package/dist/components/List/examples/03-notification-rules.js +40 -0
- package/dist/components/List/examples/03-notification-rules.js.map +1 -0
- package/dist/components/List/examples/04-quota-editor.d.ts +6 -0
- package/dist/components/List/examples/04-quota-editor.d.ts.map +1 -0
- package/dist/components/List/examples/04-quota-editor.js +40 -0
- package/dist/components/List/examples/04-quota-editor.js.map +1 -0
- package/dist/components/List/examples/05-permissions-matrix.d.ts +6 -0
- package/dist/components/List/examples/05-permissions-matrix.d.ts.map +1 -0
- package/dist/components/List/examples/05-permissions-matrix.js +39 -0
- package/dist/components/List/examples/05-permissions-matrix.js.map +1 -0
- package/dist/components/List/examples/index.d.ts +8 -0
- package/dist/components/List/examples/index.d.ts.map +1 -1
- package/dist/components/List/examples/index.js +8 -0
- package/dist/components/List/examples/index.js.map +1 -1
- package/dist/components/List/examples.json +20 -0
- package/dist/components/List/index.d.ts.map +1 -1
- package/dist/components/List/index.js +10 -2
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/Menu/examples/03-toolbar-dropdown.d.ts +6 -0
- package/dist/components/Menu/examples/03-toolbar-dropdown.d.ts.map +1 -0
- package/dist/components/Menu/examples/03-toolbar-dropdown.js +11 -0
- package/dist/components/Menu/examples/03-toolbar-dropdown.js.map +1 -0
- package/dist/components/Menu/examples/04-table-row-actions.d.ts +6 -0
- package/dist/components/Menu/examples/04-table-row-actions.d.ts.map +1 -0
- package/dist/components/Menu/examples/04-table-row-actions.js +16 -0
- package/dist/components/Menu/examples/04-table-row-actions.js.map +1 -0
- package/dist/components/Menu/examples/05-context-menu.d.ts +6 -0
- package/dist/components/Menu/examples/05-context-menu.d.ts.map +1 -0
- package/dist/components/Menu/examples/05-context-menu.js +10 -0
- package/dist/components/Menu/examples/05-context-menu.js.map +1 -0
- package/dist/components/Menu/examples/06-view-options.d.ts +6 -0
- package/dist/components/Menu/examples/06-view-options.d.ts.map +1 -0
- package/dist/components/Menu/examples/06-view-options.js +15 -0
- package/dist/components/Menu/examples/06-view-options.js.map +1 -0
- package/dist/components/Menu/examples/index.d.ts +8 -0
- package/dist/components/Menu/examples/index.d.ts.map +1 -1
- package/dist/components/Menu/examples/index.js +8 -0
- package/dist/components/Menu/examples/index.js.map +1 -1
- package/dist/components/Menu/examples.json +20 -0
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js +8 -0
- package/dist/components/Menu/index.js.map +1 -1
- package/dist/components/Modal/examples/02-form-modal.js +1 -1
- package/dist/components/Modal/examples/02-form-modal.js.map +1 -1
- package/dist/components/Modal/examples/03-delete-confirmation.d.ts +6 -0
- package/dist/components/Modal/examples/03-delete-confirmation.d.ts.map +1 -0
- package/dist/components/Modal/examples/03-delete-confirmation.js +13 -0
- package/dist/components/Modal/examples/03-delete-confirmation.js.map +1 -0
- package/dist/components/Modal/examples/04-create-api-key.d.ts +6 -0
- package/dist/components/Modal/examples/04-create-api-key.d.ts.map +1 -0
- package/dist/components/Modal/examples/04-create-api-key.js +14 -0
- package/dist/components/Modal/examples/04-create-api-key.js.map +1 -0
- package/dist/components/Modal/examples/05-notification-settings.d.ts +6 -0
- package/dist/components/Modal/examples/05-notification-settings.d.ts.map +1 -0
- package/dist/components/Modal/examples/05-notification-settings.js +19 -0
- package/dist/components/Modal/examples/05-notification-settings.js.map +1 -0
- package/dist/components/Modal/examples/index.d.ts +6 -0
- package/dist/components/Modal/examples/index.d.ts.map +1 -1
- package/dist/components/Modal/examples/index.js +6 -0
- package/dist/components/Modal/examples/index.js.map +1 -1
- package/dist/components/Modal/examples.json +16 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js +8 -0
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Panel/examples/01-sidebar-toggle.d.ts +6 -0
- package/dist/components/Panel/examples/01-sidebar-toggle.d.ts.map +1 -0
- package/dist/components/Panel/examples/01-sidebar-toggle.js +10 -0
- package/dist/components/Panel/examples/01-sidebar-toggle.js.map +1 -0
- package/dist/components/Panel/examples/index.d.ts +3 -0
- package/dist/components/Panel/examples/index.d.ts.map +1 -0
- package/dist/components/Panel/examples/index.js +3 -0
- package/dist/components/Panel/examples/index.js.map +1 -0
- package/dist/components/Panel/examples.json +7 -0
- package/dist/components/Panel/index.d.ts +1 -0
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +8 -0
- package/dist/components/Panel/index.js.map +1 -1
- package/dist/components/Path/examples/01-basic-path.js +2 -2
- package/dist/components/Path/examples/01-basic-path.js.map +1 -1
- package/dist/components/Path/examples/02-custom-separator.d.ts +6 -0
- package/dist/components/Path/examples/02-custom-separator.d.ts.map +1 -0
- package/dist/components/Path/examples/02-custom-separator.js +11 -0
- package/dist/components/Path/examples/02-custom-separator.js.map +1 -0
- package/dist/components/Path/examples/03-collapsed-breadcrumb.d.ts +6 -0
- package/dist/components/Path/examples/03-collapsed-breadcrumb.d.ts.map +1 -0
- package/dist/components/Path/examples/03-collapsed-breadcrumb.js +16 -0
- package/dist/components/Path/examples/03-collapsed-breadcrumb.js.map +1 -0
- package/dist/components/Path/examples/index.d.ts +4 -0
- package/dist/components/Path/examples/index.d.ts.map +1 -1
- package/dist/components/Path/examples/index.js +4 -0
- package/dist/components/Path/examples/index.js.map +1 -1
- package/dist/components/Path/examples.json +11 -1
- package/dist/components/Path/index.d.ts.map +1 -1
- package/dist/components/Path/index.js +11 -7
- package/dist/components/Path/index.js.map +1 -1
- package/dist/components/Popover/examples/01-basic-popover.d.ts.map +1 -1
- package/dist/components/Popover/examples/01-basic-popover.js +5 -4
- package/dist/components/Popover/examples/01-basic-popover.js.map +1 -1
- package/dist/components/Popover/examples/02-toggleable-options.d.ts +6 -0
- package/dist/components/Popover/examples/02-toggleable-options.d.ts.map +1 -0
- package/dist/components/Popover/examples/02-toggleable-options.js +23 -0
- package/dist/components/Popover/examples/02-toggleable-options.js.map +1 -0
- package/dist/components/Popover/examples/03-table-row-actions.d.ts +6 -0
- package/dist/components/Popover/examples/03-table-row-actions.d.ts.map +1 -0
- package/dist/components/Popover/examples/03-table-row-actions.js +17 -0
- package/dist/components/Popover/examples/03-table-row-actions.js.map +1 -0
- package/dist/components/Popover/examples/04-input-form.d.ts +6 -0
- package/dist/components/Popover/examples/04-input-form.d.ts.map +1 -0
- package/dist/components/Popover/examples/04-input-form.js +14 -0
- package/dist/components/Popover/examples/04-input-form.js.map +1 -0
- package/dist/components/Popover/examples/05-arrow-positions.d.ts +6 -0
- package/dist/components/Popover/examples/05-arrow-positions.d.ts.map +1 -0
- package/dist/components/Popover/examples/05-arrow-positions.js +11 -0
- package/dist/components/Popover/examples/05-arrow-positions.js.map +1 -0
- package/dist/components/Popover/examples/index.d.ts +8 -0
- package/dist/components/Popover/examples/index.d.ts.map +1 -1
- package/dist/components/Popover/examples/index.js +8 -0
- package/dist/components/Popover/examples/index.js.map +1 -1
- package/dist/components/Popover/examples.json +23 -3
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +8 -0
- package/dist/components/Popover/index.js.map +1 -1
- package/dist/components/Progress/examples/01-basic-progress.d.ts.map +1 -1
- package/dist/components/Progress/examples/01-basic-progress.js +20 -5
- package/dist/components/Progress/examples/01-basic-progress.js.map +1 -1
- package/dist/components/Progress/examples/02-storage-quota.d.ts +6 -0
- package/dist/components/Progress/examples/02-storage-quota.d.ts.map +1 -0
- package/dist/components/Progress/examples/02-storage-quota.js +12 -0
- package/dist/components/Progress/examples/02-storage-quota.js.map +1 -0
- package/dist/components/Progress/examples/03-onboarding-steps.d.ts +6 -0
- package/dist/components/Progress/examples/03-onboarding-steps.d.ts.map +1 -0
- package/dist/components/Progress/examples/03-onboarding-steps.js +14 -0
- package/dist/components/Progress/examples/03-onboarding-steps.js.map +1 -0
- package/dist/components/Progress/examples/04-indeterminate.d.ts +6 -0
- package/dist/components/Progress/examples/04-indeterminate.d.ts.map +1 -0
- package/dist/components/Progress/examples/04-indeterminate.js +19 -0
- package/dist/components/Progress/examples/04-indeterminate.js.map +1 -0
- package/dist/components/Progress/examples/05-skill-levels.d.ts +6 -0
- package/dist/components/Progress/examples/05-skill-levels.d.ts.map +1 -0
- package/dist/components/Progress/examples/05-skill-levels.js +15 -0
- package/dist/components/Progress/examples/05-skill-levels.js.map +1 -0
- package/dist/components/Progress/examples/index.d.ts +8 -0
- package/dist/components/Progress/examples/index.d.ts.map +1 -1
- package/dist/components/Progress/examples/index.js +8 -0
- package/dist/components/Progress/examples/index.js.map +1 -1
- package/dist/components/Progress/examples.json +23 -3
- package/dist/components/Progress/index.d.ts.map +1 -1
- package/dist/components/Progress/index.js +11 -14
- package/dist/components/Progress/index.js.map +1 -1
- package/dist/components/Scroll/examples/01-basic-scroll.d.ts.map +1 -1
- package/dist/components/Scroll/examples/01-basic-scroll.js +29 -3
- package/dist/components/Scroll/examples/01-basic-scroll.js.map +1 -1
- package/dist/components/Scroll/examples/02-settings-panel.d.ts +6 -0
- package/dist/components/Scroll/examples/02-settings-panel.d.ts.map +1 -0
- package/dist/components/Scroll/examples/02-settings-panel.js +21 -0
- package/dist/components/Scroll/examples/02-settings-panel.js.map +1 -0
- package/dist/components/Scroll/examples/03-horizontal-tags.d.ts +6 -0
- package/dist/components/Scroll/examples/03-horizontal-tags.d.ts.map +1 -0
- package/dist/components/Scroll/examples/03-horizontal-tags.js +24 -0
- package/dist/components/Scroll/examples/03-horizontal-tags.js.map +1 -0
- package/dist/components/Scroll/examples/index.d.ts +4 -0
- package/dist/components/Scroll/examples/index.d.ts.map +1 -1
- package/dist/components/Scroll/examples/index.js +4 -0
- package/dist/components/Scroll/examples/index.js.map +1 -1
- package/dist/components/Scroll/examples.json +13 -3
- package/dist/components/Scroll/index.d.ts.map +1 -1
- package/dist/components/Scroll/index.js +4 -0
- package/dist/components/Scroll/index.js.map +1 -1
- package/dist/components/Select/examples/03-country-select.d.ts +6 -0
- package/dist/components/Select/examples/03-country-select.d.ts.map +1 -0
- package/dist/components/Select/examples/03-country-select.js +28 -0
- package/dist/components/Select/examples/03-country-select.js.map +1 -0
- package/dist/components/Select/examples/index.d.ts +2 -0
- package/dist/components/Select/examples/index.d.ts.map +1 -1
- package/dist/components/Select/examples/index.js +2 -0
- package/dist/components/Select/examples/index.js.map +1 -1
- package/dist/components/Select/examples.json +5 -0
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +2 -0
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Slider/examples/01-basic-slider.d.ts.map +1 -1
- package/dist/components/Slider/examples/01-basic-slider.js +7 -4
- package/dist/components/Slider/examples/01-basic-slider.js.map +1 -1
- package/dist/components/Slider/examples/02-settings-panel.d.ts +6 -0
- package/dist/components/Slider/examples/02-settings-panel.d.ts.map +1 -0
- package/dist/components/Slider/examples/02-settings-panel.js +20 -0
- package/dist/components/Slider/examples/02-settings-panel.js.map +1 -0
- package/dist/components/Slider/examples/03-price-range.d.ts +6 -0
- package/dist/components/Slider/examples/03-price-range.d.ts.map +1 -0
- package/dist/components/Slider/examples/03-price-range.js +13 -0
- package/dist/components/Slider/examples/03-price-range.js.map +1 -0
- package/dist/components/Slider/examples/04-step-slider.d.ts +6 -0
- package/dist/components/Slider/examples/04-step-slider.d.ts.map +1 -0
- package/dist/components/Slider/examples/04-step-slider.js +13 -0
- package/dist/components/Slider/examples/04-step-slider.js.map +1 -0
- package/dist/components/Slider/examples/05-disabled-state.d.ts +6 -0
- package/dist/components/Slider/examples/05-disabled-state.d.ts.map +1 -0
- package/dist/components/Slider/examples/05-disabled-state.js +10 -0
- package/dist/components/Slider/examples/05-disabled-state.js.map +1 -0
- package/dist/components/Slider/examples/06-vertical-mixer.d.ts +6 -0
- package/dist/components/Slider/examples/06-vertical-mixer.d.ts.map +1 -0
- package/dist/components/Slider/examples/06-vertical-mixer.js +17 -0
- package/dist/components/Slider/examples/06-vertical-mixer.js.map +1 -0
- package/dist/components/Slider/examples/index.d.ts +10 -0
- package/dist/components/Slider/examples/index.d.ts.map +1 -1
- package/dist/components/Slider/examples/index.js +10 -0
- package/dist/components/Slider/examples/index.js.map +1 -1
- package/dist/components/Slider/examples.json +28 -3
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +10 -0
- package/dist/components/Slider/index.js.map +1 -1
- package/dist/components/Switch/examples/01-basic-switch.d.ts.map +1 -1
- package/dist/components/Switch/examples/01-basic-switch.js +7 -4
- package/dist/components/Switch/examples/01-basic-switch.js.map +1 -1
- package/dist/components/Switch/examples/02-settings-panel.d.ts +6 -0
- package/dist/components/Switch/examples/02-settings-panel.d.ts.map +1 -0
- package/dist/components/Switch/examples/02-settings-panel.js +20 -0
- package/dist/components/Switch/examples/02-settings-panel.js.map +1 -0
- package/dist/components/Switch/examples/03-disabled-state.d.ts +6 -0
- package/dist/components/Switch/examples/03-disabled-state.d.ts.map +1 -0
- package/dist/components/Switch/examples/03-disabled-state.js +10 -0
- package/dist/components/Switch/examples/03-disabled-state.js.map +1 -0
- package/dist/components/Switch/examples/04-small-size.d.ts +6 -0
- package/dist/components/Switch/examples/04-small-size.d.ts.map +1 -0
- package/dist/components/Switch/examples/04-small-size.js +13 -0
- package/dist/components/Switch/examples/04-small-size.js.map +1 -0
- package/dist/components/Switch/examples/05-controlled-toggle.d.ts +6 -0
- package/dist/components/Switch/examples/05-controlled-toggle.d.ts.map +1 -0
- package/dist/components/Switch/examples/05-controlled-toggle.js +13 -0
- package/dist/components/Switch/examples/05-controlled-toggle.js.map +1 -0
- package/dist/components/Switch/examples/index.d.ts +8 -0
- package/dist/components/Switch/examples/index.d.ts.map +1 -1
- package/dist/components/Switch/examples/index.js +8 -0
- package/dist/components/Switch/examples/index.js.map +1 -1
- package/dist/components/Switch/examples.json +23 -3
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.js +8 -0
- package/dist/components/Switch/index.js.map +1 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/Tabs/examples/03-underline-tabs.d.ts +6 -0
- package/dist/components/Tabs/examples/03-underline-tabs.d.ts.map +1 -0
- package/dist/components/Tabs/examples/03-underline-tabs.js +13 -0
- package/dist/components/Tabs/examples/03-underline-tabs.js.map +1 -0
- package/dist/components/Tabs/examples/04-vertical-underline-tabs.d.ts +6 -0
- package/dist/components/Tabs/examples/04-vertical-underline-tabs.d.ts.map +1 -0
- package/dist/components/Tabs/examples/04-vertical-underline-tabs.js +13 -0
- package/dist/components/Tabs/examples/04-vertical-underline-tabs.js.map +1 -0
- package/dist/components/Tabs/examples/index.d.ts +4 -0
- package/dist/components/Tabs/examples/index.d.ts.map +1 -1
- package/dist/components/Tabs/examples/index.js +4 -0
- package/dist/components/Tabs/examples/index.js.map +1 -1
- package/dist/components/Tabs/examples.json +10 -0
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +4 -0
- package/dist/components/Tabs/index.js.map +1 -1
- package/dist/components/Textarea/examples/01-basic-textarea.d.ts.map +1 -1
- package/dist/components/Textarea/examples/01-basic-textarea.js +8 -5
- package/dist/components/Textarea/examples/01-basic-textarea.js.map +1 -1
- package/dist/components/Textarea/examples/02-bio-settings.d.ts +6 -0
- package/dist/components/Textarea/examples/02-bio-settings.d.ts.map +1 -0
- package/dist/components/Textarea/examples/02-bio-settings.js +13 -0
- package/dist/components/Textarea/examples/02-bio-settings.js.map +1 -0
- package/dist/components/Textarea/examples/03-error-state.d.ts +6 -0
- package/dist/components/Textarea/examples/03-error-state.d.ts.map +1 -0
- package/dist/components/Textarea/examples/03-error-state.js +14 -0
- package/dist/components/Textarea/examples/03-error-state.js.map +1 -0
- package/dist/components/Textarea/examples/04-disabled-readonly.d.ts +6 -0
- package/dist/components/Textarea/examples/04-disabled-readonly.d.ts.map +1 -0
- package/dist/components/Textarea/examples/04-disabled-readonly.js +10 -0
- package/dist/components/Textarea/examples/04-disabled-readonly.js.map +1 -0
- package/dist/components/Textarea/examples/05-scrolling.d.ts +6 -0
- package/dist/components/Textarea/examples/05-scrolling.d.ts.map +1 -0
- package/dist/components/Textarea/examples/05-scrolling.js +13 -0
- package/dist/components/Textarea/examples/05-scrolling.js.map +1 -0
- package/dist/components/Textarea/examples/index.d.ts +8 -0
- package/dist/components/Textarea/examples/index.d.ts.map +1 -1
- package/dist/components/Textarea/examples/index.js +8 -0
- package/dist/components/Textarea/examples/index.js.map +1 -1
- package/dist/components/Textarea/examples.json +23 -3
- package/dist/components/Textarea/index.d.ts.map +1 -1
- package/dist/components/Textarea/index.js +8 -0
- package/dist/components/Textarea/index.js.map +1 -1
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/index.js.map +1 -1
- package/dist/generated-data.d.ts.map +1 -1
- package/dist/generated-data.js +999 -429
- package/dist/generated-data.js.map +1 -1
- package/dist/generated-styles.d.ts.map +1 -1
- package/dist/generated-styles.js +1135 -203
- package/dist/generated-styles.js.map +1 -1
- package/dist/generated-styles.json +1135 -203
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/patterns/data/badge-row/variations/main/index.js +1 -1
- package/dist/patterns/data/badge-row/variations/main/index.js.map +1 -1
- package/dist/patterns/data/badge-row/variations/mixed/index.js +1 -1
- package/dist/patterns/data/badge-row/variations/mixed/index.js.map +1 -1
- package/dist/patterns/data/badge-row/variations/outline/index.js +1 -1
- package/dist/patterns/data/badge-row/variations/outline/index.js.map +1 -1
- package/dist/patterns/data/data-table-row/variations/expandable/index.js +1 -1
- package/dist/patterns/data/data-table-row/variations/expandable/index.js.map +1 -1
- package/dist/patterns/data/data-table-row/variations/main/index.js +1 -1
- package/dist/patterns/data/data-table-row/variations/main/index.js.map +1 -1
- package/dist/patterns/data/data-table-row/variations/selectable/index.js +1 -1
- package/dist/patterns/data/data-table-row/variations/selectable/index.js.map +1 -1
- package/dist/patterns/interaction/tab-content-header/variations/with-badge/index.js +1 -1
- package/dist/patterns/interaction/tab-content-header/variations/with-badge/index.js.map +1 -1
- package/dist/patterns/layout/split-row/variations/main/index.js +1 -1
- package/dist/patterns/layout/split-row/variations/main/index.js.map +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +536 -61
- package/dist/registry.js.map +1 -1
- package/dist/types.d.ts +18 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/load-component-examples.d.ts +4 -7
- package/dist/utils/load-component-examples.d.ts.map +1 -1
- package/dist/utils/load-component-examples.js +4 -7
- package/dist/utils/load-component-examples.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Anchor/examples/01-inline-text.tsx +22 -0
- package/src/components/Anchor/examples/02-underline-variants.tsx +24 -0
- package/src/components/Anchor/examples/03-preview-tooltip.tsx +27 -0
- package/src/components/Anchor/examples/04-breadcrumb.tsx +29 -0
- package/src/components/Anchor/examples/index.ts +11 -1
- package/src/components/Anchor/examples.json +19 -4
- package/src/components/Anchor/index.tsx +8 -2
- package/src/components/Badge/examples/01-status-badges.tsx +17 -0
- package/src/components/Badge/examples/02-icon-position.tsx +18 -0
- package/src/components/Badge/examples/03-selectable-tags.tsx +40 -0
- package/src/components/Badge/examples/04-dismissible.tsx +37 -0
- package/src/components/Badge/examples/05-semantic-colors.tsx +18 -0
- package/src/components/Badge/examples/index.ts +13 -4
- package/src/components/Badge/examples.json +24 -9
- package/src/components/Badge/index.tsx +11 -15
- package/src/components/Banner/examples/01-variants.tsx +33 -0
- package/src/components/Banner/examples/02-dismissible.tsx +31 -0
- package/src/components/Banner/examples/03-form-feedback.tsx +47 -0
- package/src/components/Banner/examples/04-settings-panel.tsx +21 -0
- package/src/components/Banner/examples/05-body-only.tsx +22 -0
- package/src/components/Banner/examples/index.ts +14 -2
- package/src/components/Banner/examples.json +24 -4
- package/src/components/Banner/index.tsx +12 -16
- package/src/components/Button/examples/01-variants.tsx +18 -52
- package/src/components/Button/examples/02-multi-actions.tsx +0 -1
- package/src/components/Button/examples/04-sub-stack-actions.tsx +1 -1
- package/src/components/Button/examples/06-icons.tsx +25 -0
- package/src/components/Button/examples/07-split-button.tsx +47 -0
- package/src/components/Button/examples/08-button-group.tsx +30 -0
- package/src/components/Button/examples/index.ts +6 -0
- package/src/components/Button/examples.json +19 -4
- package/src/components/Button/index.tsx +6 -0
- package/src/components/Card/examples/01-notification.tsx +37 -0
- package/src/components/Card/examples/02-settings-panel.tsx +48 -0
- package/src/components/Card/examples/03-task-progress.tsx +43 -0
- package/src/components/Card/examples/index.ts +8 -2
- package/src/components/Card/examples.json +14 -4
- package/src/components/Card/index.tsx +6 -2
- package/src/components/Card/metadata.json +42 -0
- package/src/components/Checkbox/examples/01-basic-states.tsx +17 -0
- package/src/components/Checkbox/examples/02-helper-text.tsx +26 -0
- package/src/components/Checkbox/examples/03-controlled.tsx +28 -0
- package/src/components/Checkbox/examples/04-group.tsx +49 -0
- package/src/components/Checkbox/examples/05-indeterminate.tsx +56 -0
- package/src/components/Checkbox/examples/06-consent-form.tsx +35 -0
- package/src/components/Checkbox/examples/index.ts +16 -4
- package/src/components/Checkbox/examples.json +29 -9
- package/src/components/Checkbox/index.tsx +12 -16
- package/src/components/Color/examples/01-basic-color-picker.tsx +18 -0
- package/src/components/Color/examples/02-color-picker-opacity.tsx +29 -0
- package/src/components/Color/examples/03-color-picker-preview.tsx +27 -0
- package/src/components/Color/examples/04-color-slider-primitive.tsx +47 -0
- package/src/components/Color/examples/index.ts +11 -3
- package/src/components/Color/examples.json +18 -8
- package/src/components/Color/index.tsx +8 -4
- package/src/components/Expand/examples/01-basic.tsx +18 -0
- package/src/components/Expand/examples/02-accordion.tsx +46 -0
- package/src/components/Expand/examples/03-custom-trigger.tsx +30 -0
- package/src/components/Expand/examples/04-directions.tsx +33 -0
- package/src/components/Expand/examples/05-settings-panel.tsx +54 -0
- package/src/components/Expand/examples/06-disabled.tsx +19 -0
- package/src/components/Expand/examples/07-inline-info.tsx +29 -0
- package/src/components/Expand/examples/index.ts +20 -2
- package/src/components/Expand/examples.json +34 -4
- package/src/components/Expand/index.tsx +14 -2
- package/src/components/Flex/examples/01-axis-control.tsx +199 -0
- package/src/components/Flex/examples/02-wrap-overflow.tsx +183 -0
- package/src/components/Flex/examples/03-container-query-reflow.tsx +198 -0
- package/src/components/Flex/examples/index.ts +8 -2
- package/src/components/Flex/examples.json +14 -4
- package/src/components/Flex/index.tsx +12 -8
- package/src/components/Gallery/examples/01-grid-composition.tsx +121 -0
- package/src/components/Gallery/examples/02-item-orientation.tsx +133 -0
- package/src/components/Gallery/examples/03-span-layout.tsx +130 -0
- package/src/components/Gallery/examples/index.ts +8 -2
- package/src/components/Gallery/examples.json +14 -4
- package/src/components/Gallery/index.tsx +6 -2
- package/src/components/Grid/examples/02-track-placement.tsx +210 -0
- package/src/components/Grid/examples/03-editorial-spans.tsx +196 -0
- package/src/components/Grid/examples/04-responsive-card-rail.tsx +153 -0
- package/src/components/Grid/examples/index.ts +6 -0
- package/src/components/Grid/examples.json +15 -0
- package/src/components/Grid/index.tsx +6 -0
- package/src/components/Group/examples/02-create-project.tsx +19 -0
- package/src/components/Group/examples/03-filter-bar.tsx +34 -0
- package/src/components/Group/examples/04-documentation-search.tsx +21 -0
- package/src/components/Group/examples/05-email-signup.tsx +21 -0
- package/src/components/Group/examples/06-copy-command.tsx +17 -0
- package/src/components/Group/examples/07-delete-confirmation.tsx +19 -0
- package/src/components/Group/examples/08-slider-integration.tsx +30 -0
- package/src/components/Group/examples/index.ts +14 -0
- package/src/components/Group/examples.json +35 -0
- package/src/components/Group/index.tsx +14 -0
- package/src/components/Input/examples/03-sign-in.tsx +41 -0
- package/src/components/Input/examples/04-search.tsx +31 -0
- package/src/components/Input/examples/05-user-handle.tsx +40 -0
- package/src/components/Input/examples/06-api-key.tsx +48 -0
- package/src/components/Input/examples/07-url-validation.tsx +36 -0
- package/src/components/Input/examples/08-quantity.tsx +26 -0
- package/src/components/Input/examples/index.ts +12 -0
- package/src/components/Input/examples.json +30 -0
- package/src/components/Input/index.tsx +12 -0
- package/src/components/List/examples/02-review-queue.tsx +54 -0
- package/src/components/List/examples/03-notification-rules.tsx +80 -0
- package/src/components/List/examples/04-quota-editor.tsx +71 -0
- package/src/components/List/examples/05-permissions-matrix.tsx +91 -0
- package/src/components/List/examples/index.ts +8 -0
- package/src/components/List/examples.json +20 -0
- package/src/components/List/index.tsx +10 -2
- package/src/components/Menu/examples/03-toolbar-dropdown.tsx +35 -0
- package/src/components/Menu/examples/04-table-row-actions.tsx +60 -0
- package/src/components/Menu/examples/05-context-menu.tsx +36 -0
- package/src/components/Menu/examples/06-view-options.tsx +39 -0
- package/src/components/Menu/examples/index.ts +8 -0
- package/src/components/Menu/examples.json +20 -0
- package/src/components/Menu/index.tsx +8 -0
- package/src/components/Modal/examples/02-form-modal.tsx +1 -1
- package/src/components/Modal/examples/03-delete-confirmation.tsx +42 -0
- package/src/components/Modal/examples/04-create-api-key.tsx +54 -0
- package/src/components/Modal/examples/05-notification-settings.tsx +58 -0
- package/src/components/Modal/examples/index.ts +6 -0
- package/src/components/Modal/examples.json +16 -1
- package/src/components/Modal/index.tsx +8 -0
- package/src/components/Modal/metadata.json +41 -1
- package/src/components/Panel/examples/01-sidebar-toggle.tsx +20 -0
- package/src/components/Panel/examples/index.ts +2 -0
- package/src/components/Panel/examples.json +7 -1
- package/src/components/Panel/index.tsx +9 -0
- package/src/components/Path/examples/01-basic-path.tsx +5 -5
- package/src/components/Path/examples/02-custom-separator.tsx +17 -0
- package/src/components/Path/examples/03-collapsed-breadcrumb.tsx +37 -0
- package/src/components/Path/examples/index.ts +4 -0
- package/src/components/Path/examples.json +11 -1
- package/src/components/Path/index.tsx +15 -11
- package/src/components/Popover/examples/01-basic-popover.tsx +24 -5
- package/src/components/Popover/examples/02-toggleable-options.tsx +58 -0
- package/src/components/Popover/examples/03-table-row-actions.tsx +64 -0
- package/src/components/Popover/examples/04-input-form.tsx +46 -0
- package/src/components/Popover/examples/05-arrow-positions.tsx +27 -0
- package/src/components/Popover/examples/index.ts +8 -0
- package/src/components/Popover/examples.json +23 -3
- package/src/components/Popover/index.tsx +8 -0
- package/src/components/Progress/examples/01-basic-progress.tsx +34 -5
- package/src/components/Progress/examples/02-storage-quota.tsx +22 -0
- package/src/components/Progress/examples/03-onboarding-steps.tsx +34 -0
- package/src/components/Progress/examples/04-indeterminate.tsx +33 -0
- package/src/components/Progress/examples/05-skill-levels.tsx +22 -0
- package/src/components/Progress/examples/index.ts +8 -0
- package/src/components/Progress/examples.json +23 -3
- package/src/components/Progress/index.tsx +10 -14
- package/src/components/Scroll/examples/01-basic-scroll.tsx +45 -12
- package/src/components/Scroll/examples/02-settings-panel.tsx +40 -0
- package/src/components/Scroll/examples/03-horizontal-tags.tsx +38 -0
- package/src/components/Scroll/examples/index.ts +4 -0
- package/src/components/Scroll/examples.json +13 -3
- package/src/components/Scroll/index.tsx +4 -0
- package/src/components/Select/examples/03-country-select.tsx +55 -0
- package/src/components/Select/examples/index.ts +2 -0
- package/src/components/Select/examples.json +5 -0
- package/src/components/Select/index.tsx +2 -0
- package/src/components/Slider/examples/01-basic-slider.tsx +19 -4
- package/src/components/Slider/examples/02-settings-panel.tsx +33 -0
- package/src/components/Slider/examples/03-price-range.tsx +34 -0
- package/src/components/Slider/examples/04-step-slider.tsx +35 -0
- package/src/components/Slider/examples/05-disabled-state.tsx +21 -0
- package/src/components/Slider/examples/06-vertical-mixer.tsx +34 -0
- package/src/components/Slider/examples/index.ts +10 -0
- package/src/components/Slider/examples.json +28 -3
- package/src/components/Slider/index.tsx +10 -0
- package/src/components/Switch/examples/01-basic-switch.tsx +20 -4
- package/src/components/Switch/examples/02-settings-panel.tsx +32 -0
- package/src/components/Switch/examples/03-disabled-state.tsx +21 -0
- package/src/components/Switch/examples/04-small-size.tsx +25 -0
- package/src/components/Switch/examples/05-controlled-toggle.tsx +32 -0
- package/src/components/Switch/examples/index.ts +8 -0
- package/src/components/Switch/examples.json +23 -3
- package/src/components/Switch/index.tsx +8 -0
- package/src/components/Table/index.tsx +0 -1
- package/src/components/Tabs/examples/03-underline-tabs.tsx +23 -0
- package/src/components/Tabs/examples/04-vertical-underline-tabs.tsx +23 -0
- package/src/components/Tabs/examples/index.ts +4 -0
- package/src/components/Tabs/examples.json +10 -0
- package/src/components/Tabs/index.tsx +4 -0
- package/src/components/Textarea/examples/01-basic-textarea.tsx +21 -8
- package/src/components/Textarea/examples/02-bio-settings.tsx +30 -0
- package/src/components/Textarea/examples/03-error-state.tsx +31 -0
- package/src/components/Textarea/examples/04-disabled-readonly.tsx +25 -0
- package/src/components/Textarea/examples/05-scrolling.tsx +26 -0
- package/src/components/Textarea/examples/index.ts +8 -0
- package/src/components/Textarea/examples.json +23 -3
- package/src/components/Textarea/index.tsx +8 -0
- package/src/components/Toast/index.tsx +1 -4
- package/src/generated-data.ts +999 -429
- package/src/generated-styles.ts +1135 -203
- package/src/index.ts +2 -0
- package/src/patterns/data/badge-row/variations/main/index.tsx +1 -1
- package/src/patterns/data/badge-row/variations/mixed/index.tsx +1 -1
- package/src/patterns/data/badge-row/variations/outline/index.tsx +1 -1
- package/src/patterns/data/data-table-row/variations/expandable/index.tsx +1 -1
- package/src/patterns/data/data-table-row/variations/main/index.tsx +1 -1
- package/src/patterns/data/data-table-row/variations/selectable/index.tsx +1 -1
- package/src/patterns/interaction/tab-content-header/variations/with-badge/index.tsx +1 -1
- package/src/patterns/layout/split-row/variations/main/index.tsx +1 -1
- package/src/registry.ts +536 -61
- package/src/types.ts +20 -1
- package/src/utils/load-component-examples.ts +8 -7
- package/src/components/Anchor/examples/01-basic-anchor.tsx +0 -18
- package/src/components/Badge/examples/01-basic-badge.tsx +0 -11
- package/src/components/Badge/examples/02-variants-and-sizes.tsx +0 -71
- package/src/components/Banner/examples/01-basic-banner.tsx +0 -15
- package/src/components/Card/examples/01-basic-card.tsx +0 -22
- package/src/components/Checkbox/examples/01-basic-checkbox.tsx +0 -21
- package/src/components/Checkbox/examples/02-checkbox-group-with-descriptions.tsx +0 -59
- package/src/components/Color/examples/01-basic-color.tsx +0 -25
- package/src/components/Color/examples/02-opacity-slider.tsx +0 -26
- package/src/components/Color/examples/03-format-switching.tsx +0 -46
- package/src/components/Expand/examples/01-basic-expand.tsx +0 -18
- package/src/components/Flex/examples/01-basic-flex.tsx +0 -17
- package/src/components/Gallery/examples/01-basic-gallery.tsx +0 -28
|
@@ -8,5 +8,35 @@
|
|
|
8
8
|
"title": "Validation States",
|
|
9
9
|
"description": "Input fields with error and success validation states, including helper text for user feedback.",
|
|
10
10
|
"code": "import React from 'react';\nimport { Input, Label } from 'ui-lab-components';\nimport { FaCircleExclamation, FaCircleCheck } from 'react-icons/fa6';\n\nexport default function Example() {\n return (\n <div className=\"flex flex-col gap-6 w-full max-w-sm\">\n {/* Error State */}\n <div className=\"flex flex-col gap-1.5\">\n <Label error helperText=\"Please enter a valid email address\" helperTextError>\n Email\n </Label>\n <Input\n type=\"email\"\n placeholder=\"Enter your email\"\n error\n defaultValue=\"invalid-email\"\n icon={{ suffix: <FaCircleExclamation className=\"text-danger-600\" size={14} /> }}\n />\n </div>\n\n {/* Success State */}\n <div className=\"flex flex-col gap-1.5\">\n <Label helperText=\"Email address is available\">\n Email\n </Label>\n <Input\n type=\"email\"\n placeholder=\"Enter your email\"\n defaultValue=\"user@example.com\"\n icon={{ suffix: <FaCircleCheck className=\"text-success-600\" size={14} /> }}\n className=\"border-success-600 focus:border-success-600\"\n />\n </div>\n\n {/* Default State with Helper Text */}\n <div className=\"flex flex-col gap-1.5\">\n <Label required helperText=\"We'll never share your email with anyone else.\">\n Email\n </Label>\n <Input\n type=\"email\"\n placeholder=\"Enter your email\"\n />\n </div>\n </div>\n );\n}"
|
|
11
|
+
},
|
|
12
|
+
"03-sign-in": {
|
|
13
|
+
"title": "Sign In Form",
|
|
14
|
+
"description": "Email and password fields with a password visibility toggle — a common authentication pattern.",
|
|
15
|
+
"code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Input, Flex, Button } from \"ui-lab-components\";\nimport { FaEnvelope, FaLock, FaEye, FaEyeSlash } from \"react-icons/fa6\";\n\nexport default function Example() {\n const [showPassword, setShowPassword] = useState(false);\n\n return (\n <Flex direction=\"column\" gap=\"sm\" style={{ width: 320 }}>\n <Input\n type=\"email\"\n icon={<FaEnvelope className=\"w-3.5 h-3.5 text-foreground-400\" />}\n placeholder=\"Email address\"\n autoComplete=\"email\"\n />\n <Input\n type={showPassword ? \"text\" : \"password\"}\n icon={<FaLock className=\"w-3.5 h-3.5 text-foreground-400\" />}\n placeholder=\"Password\"\n autoComplete=\"current-password\"\n actions={[\n {\n icon: showPassword\n ? <FaEyeSlash className=\"w-3.5 h-3.5\" />\n : <FaEye className=\"w-3.5 h-3.5\" />,\n title: showPassword ? \"Hide password\" : \"Show password\",\n onClick: () => setShowPassword((v) => !v),\n },\n ]}\n />\n <Button variant=\"primary\" className=\"w-full mt-1\">Sign in</Button>\n </Flex>\n );\n}"
|
|
16
|
+
},
|
|
17
|
+
"04-search": {
|
|
18
|
+
"title": "Search",
|
|
19
|
+
"description": "Search input with a keyboard shortcut hint that switches to a clear action once the user types.",
|
|
20
|
+
"code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Input, Flex, Badge } from \"ui-lab-components\";\nimport { FaMagnifyingGlass, FaXmark } from \"react-icons/fa6\";\n\nexport default function Example() {\n const [query, setQuery] = useState(\"\");\n\n return (\n <Flex direction=\"column\" gap=\"sm\" style={{ width: 340 }}>\n <Input\n icon={<FaMagnifyingGlass className=\"w-3.5 h-3.5 text-foreground-400\" />}\n placeholder=\"Search components...\"\n value={query}\n onChange={(e) => setQuery(e.target.value)}\n hint={!query ? <Badge>⌘K</Badge> : undefined}\n actions={\n query\n ? [{ icon: <FaXmark className=\"w-3.5 h-3.5\" />, title: \"Clear\", onClick: () => setQuery(\"\") }]\n : []\n }\n />\n </Flex>\n );\n}"
|
|
21
|
+
},
|
|
22
|
+
"05-user-handle": {
|
|
23
|
+
"title": "User Handle",
|
|
24
|
+
"description": "Editable username field with an inline copy action.",
|
|
25
|
+
"code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Input, Flex } from \"ui-lab-components\";\nimport { FaAt, FaCopy, FaCheck } from \"react-icons/fa6\";\n\nexport default function Example() {\n const [handle, setHandle] = useState(\"kyza\");\n const [copied, setCopied] = useState(false);\n\n const handleCopy = () => {\n setCopied(true);\n setTimeout(() => setCopied(false), 1500);\n };\n\n return (\n <Flex direction=\"column\" gap=\"sm\" style={{ width: 320 }}>\n <Input\n icon={<FaAt className=\"w-3.5 h-3.5 text-foreground-400\" />}\n placeholder=\"username\"\n value={handle}\n onChange={(e) => setHandle(e.target.value)}\n actions={[\n {\n icon: copied\n ? <FaCheck className=\"w-3.5 h-3.5 text-green-500\" />\n : <FaCopy className=\"w-3.5 h-3.5\" />,\n title: copied ? \"Copied!\" : \"Copy handle\",\n onClick: handleCopy,\n },\n ]}\n />\n </Flex>\n );\n}"
|
|
26
|
+
},
|
|
27
|
+
"06-api-key": {
|
|
28
|
+
"title": "API Key",
|
|
29
|
+
"description": "Read-only secret field with reveal and copy actions — suitable for credentials and tokens.",
|
|
30
|
+
"code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Input, Flex } from \"ui-lab-components\";\nimport { FaKey, FaEye, FaEyeSlash, FaCopy, FaCheck } from \"react-icons/fa6\";\n\nexport default function Example() {\n const [revealed, setRevealed] = useState(false);\n const [copied, setCopied] = useState(false);\n const key = \"sk-proj-a8f2c1d9e4b7\";\n\n const handleCopy = () => {\n setCopied(true);\n setTimeout(() => setCopied(false), 1500);\n };\n\n return (\n <Flex direction=\"column\" gap=\"sm\" style={{ width: 360 }}>\n <Input\n type={revealed ? \"text\" : \"password\"}\n icon={<FaKey className=\"w-3.5 h-3.5 text-foreground-400\" />}\n value={key}\n readOnly\n actions={[\n {\n icon: revealed\n ? <FaEyeSlash className=\"w-3.5 h-3.5\" />\n : <FaEye className=\"w-3.5 h-3.5\" />,\n title: revealed ? \"Hide key\" : \"Reveal key\",\n onClick: () => setRevealed((v) => !v),\n },\n {\n icon: copied\n ? <FaCheck className=\"w-3.5 h-3.5 text-green-500\" />\n : <FaCopy className=\"w-3.5 h-3.5\" />,\n title: copied ? \"Copied!\" : \"Copy key\",\n onClick: handleCopy,\n },\n ]}\n />\n </Flex>\n );\n}"
|
|
31
|
+
},
|
|
32
|
+
"07-url-validation": {
|
|
33
|
+
"title": "URL with Validation",
|
|
34
|
+
"description": "URL field that shows a success or error icon in the suffix slot based on the input value.",
|
|
35
|
+
"code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Input, Flex } from \"ui-lab-components\";\nimport { FaLink, FaCircleExclamation, FaCheck } from \"react-icons/fa6\";\n\nexport default function Example() {\n const [url, setUrl] = useState(\"\");\n\n const isValid = url.length === 0 || /^https?:\\/\\/.+\\..+/.test(url);\n const showError = url.length > 0 && !isValid;\n\n return (\n <Flex direction=\"column\" gap=\"sm\" style={{ width: 340 }}>\n <Input\n placeholder=\"https://example.com\"\n value={url}\n onChange={(e) => setUrl(e.target.value)}\n error={showError}\n icon={{\n prefix: <FaLink className=\"w-3.5 h-3.5 text-foreground-400\" />,\n suffix: showError\n ? <FaCircleExclamation className=\"w-3.5 h-3.5 text-red-500\" />\n : url.length > 0\n ? <FaCheck className=\"w-3.5 h-3.5 text-green-500\" />\n : undefined,\n }}\n />\n </Flex>\n );\n}"
|
|
36
|
+
},
|
|
37
|
+
"08-quantity": {
|
|
38
|
+
"title": "Quantity",
|
|
39
|
+
"description": "Number input with native spin controls for selecting a bounded quantity.",
|
|
40
|
+
"code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Input, Flex } from \"ui-lab-components\";\n\nexport default function Example() {\n const [qty, setQty] = useState(1);\n\n return (\n <Flex direction=\"column\" gap=\"sm\" style={{ width: 200 }}>\n <Input\n type=\"number\"\n placeholder=\"Qty\"\n value={qty}\n min={1}\n max={99}\n onChange={(e) => setQty(Number(e.target.value))}\n />\n </Flex>\n );\n}"
|
|
11
41
|
}
|
|
12
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAwBtD,QAAA,MAAM,aAAa,EAAE,UAAU,EA+B9B,CAAA;AAQD,eAAO,MAAM,WAAW,EAAE,eAmDzB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,cAAc,qBAAqB,CAAC"}
|
|
@@ -2,11 +2,23 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Input } from 'ui-lab-components';
|
|
3
3
|
import Example1, { metadata as metadata1 } from './examples/01-basic-input.js';
|
|
4
4
|
import Example2, { metadata as metadata2 } from './examples/02-validation.js';
|
|
5
|
+
import Example3, { metadata as metadata3 } from './examples/03-sign-in.js';
|
|
6
|
+
import Example4, { metadata as metadata4 } from './examples/04-search.js';
|
|
7
|
+
import Example5, { metadata as metadata5 } from './examples/05-user-handle.js';
|
|
8
|
+
import Example6, { metadata as metadata6 } from './examples/06-api-key.js';
|
|
9
|
+
import Example7, { metadata as metadata7 } from './examples/07-url-validation.js';
|
|
10
|
+
import Example8, { metadata as metadata8 } from './examples/08-quantity.js';
|
|
5
11
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
6
12
|
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
7
13
|
const examplesData = [
|
|
8
14
|
{ id: '01-basic-input', Component: Example1, metadata: metadata1 },
|
|
9
15
|
{ id: '02-validation', Component: Example2, metadata: metadata2 },
|
|
16
|
+
{ id: '03-sign-in', Component: Example3, metadata: metadata3 },
|
|
17
|
+
{ id: '04-search', Component: Example4, metadata: metadata4 },
|
|
18
|
+
{ id: '05-user-handle', Component: Example5, metadata: metadata5 },
|
|
19
|
+
{ id: '06-api-key', Component: Example6, metadata: metadata6 },
|
|
20
|
+
{ id: '07-url-validation', Component: Example7, metadata: metadata7 },
|
|
21
|
+
{ id: '08-quantity', Component: Example8, metadata: metadata8 },
|
|
10
22
|
];
|
|
11
23
|
const inputControls = [
|
|
12
24
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,QAAQ,EAAE,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,QAAQ,EAAE,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,YAAY,MAAM,iBAAiB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAE/E,MAAM,YAAY,GAAG;IACnB,EAAE,EAAE,EAAE,gBAAgB,EAAE,SAAS,EAAE,QAAQ,EAAE,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@@
|
|
|
1
|
+
{"version":3,"file":"02-review-queue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/examples/02-review-queue.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAQF,MAAM,CAAC,OAAO,UAAU,OAAO,4CAqC9B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { List } from "ui-lab-components";
|
|
5
|
+
export const metadata = {
|
|
6
|
+
title: "Review Queue",
|
|
7
|
+
description: "A compact checklist for work that can be completed directly from each row.",
|
|
8
|
+
};
|
|
9
|
+
const reviewItems = [
|
|
10
|
+
{ id: "legal", title: "Legal review", desc: "Updated retention language" },
|
|
11
|
+
{ id: "security", title: "Security review", desc: "New access scopes" },
|
|
12
|
+
{ id: "billing", title: "Billing review", desc: "Invoice copy changes" },
|
|
13
|
+
];
|
|
14
|
+
export default function Example() {
|
|
15
|
+
const [checked, setChecked] = useState(() => new Set(["legal"]));
|
|
16
|
+
const setItem = (id, value) => {
|
|
17
|
+
setChecked((current) => {
|
|
18
|
+
const next = new Set(current);
|
|
19
|
+
value ? next.add(id) : next.delete(id);
|
|
20
|
+
return next;
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
const toggleItem = (id) => {
|
|
24
|
+
setChecked((current) => {
|
|
25
|
+
const next = new Set(current);
|
|
26
|
+
next.has(id) ? next.delete(id) : next.add(id);
|
|
27
|
+
return next;
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
return (_jsx(List, { items: reviewItems, spacing: "sm", style: { width: 320 }, children: reviewItems.map((item) => (_jsxs(List.Item, { value: item.id, interactive: true, onClick: () => toggleItem(item.id), children: [_jsx(List.Checkbox, { "aria-label": `Mark ${item.title} reviewed`, placement: "start", checked: checked.has(item.id), onCheckedChange: (value) => setItem(item.id, value) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx(List.Title, { children: item.title }), _jsx(List.Desc, { children: item.desc })] })] }, item.id))) }));
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=02-review-queue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"02-review-queue.js","sourceRoot":"","sources":["../../../../src/components/List/examples/02-review-queue.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,4EAA4E;CAC1F,CAAC;AAEF,MAAM,WAAW,GAAG;IAClB,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,4BAA4B,EAAE;IAC1E,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,mBAAmB,EAAE;IACvE,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,sBAAsB,EAAE;CACzE,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO;IAC7B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAEjE,MAAM,OAAO,GAAG,CAAC,EAAU,EAAE,KAAc,EAAE,EAAE;QAC7C,UAAU,CAAC,CAAC,OAAO,EAAE,EAAE;YACrB,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;YAC9B,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAA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X,CACb,CAAC,GACG,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"03-notification-rules.d.ts","sourceRoot":"","sources":["../../../../src/components/List/examples/03-notification-rules.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAQF,MAAM,CAAC,OAAO,UAAU,OAAO,4CA+D9B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { List, Select } from "ui-lab-components";
|
|
5
|
+
export const metadata = {
|
|
6
|
+
title: "Notification Rules",
|
|
7
|
+
description: "Rows can combine a leading checkbox with a trailing Select action.",
|
|
8
|
+
};
|
|
9
|
+
const notificationItems = [
|
|
10
|
+
{ id: "comments", title: "Comments", desc: "Replies and mentions" },
|
|
11
|
+
{ id: "deployments", title: "Deployments", desc: "Preview and production updates" },
|
|
12
|
+
{ id: "incidents", title: "Incidents", desc: "Status changes and postmortems" },
|
|
13
|
+
];
|
|
14
|
+
export default function Example() {
|
|
15
|
+
const [checked, setChecked] = useState(() => new Set(["comments", "incidents"]));
|
|
16
|
+
const [delivery, setDelivery] = useState({
|
|
17
|
+
comments: "digest",
|
|
18
|
+
deployments: "email",
|
|
19
|
+
incidents: "push",
|
|
20
|
+
});
|
|
21
|
+
const setItem = (id, value) => {
|
|
22
|
+
setChecked((current) => {
|
|
23
|
+
const next = new Set(current);
|
|
24
|
+
value ? next.add(id) : next.delete(id);
|
|
25
|
+
return next;
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
const toggleItem = (id) => {
|
|
29
|
+
setChecked((current) => {
|
|
30
|
+
const next = new Set(current);
|
|
31
|
+
next.has(id) ? next.delete(id) : next.add(id);
|
|
32
|
+
return next;
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
const setDeliveryMode = (id, value) => {
|
|
36
|
+
setDelivery((current) => ({ ...current, [id]: value }));
|
|
37
|
+
};
|
|
38
|
+
return (_jsx(List, { items: notificationItems, spacing: "sm", style: { width: 400 }, children: notificationItems.map((item) => (_jsxs(List.Item, { value: item.id, interactive: true, onClick: () => toggleItem(item.id), children: [_jsx(List.Checkbox, { "aria-label": `Enable ${item.title.toLowerCase()} notifications`, placement: "start", checked: checked.has(item.id), onCheckedChange: (value) => setItem(item.id, value) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx(List.Title, { children: item.title }), _jsx(List.Desc, { children: item.desc })] }), _jsxs(List.Select, { selectedKey: delivery[item.id], valueLabel: String(delivery[item.id] ?? ""), isDisabled: !checked.has(item.id), onSelectionChange: (value) => setDeliveryMode(item.id, value), children: [_jsx(Select.Trigger, { children: _jsx(Select.Value, { placeholder: "Mode" }) }), _jsx(Select.Content, { children: _jsxs(Select.List, { children: [_jsx(Select.Item, { value: "email", children: "Email" }), _jsx(Select.Item, { value: "digest", children: "Digest" }), _jsx(Select.Item, { value: "push", children: "Push" })] }) })] })] }, item.id))) }));
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=03-notification-rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"03-notification-rules.js","sourceRoot":"","sources":["../../../../src/components/List/examples/03-notification-rules.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EAAE,oEAAoE;CAClF,CAAC;AAEF,MAAM,iBAAiB,GAAG;IACxB,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,sBAAsB,EAAE;IACnE,EAAE,EAAE,EAAE,aAAa,E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EACjC,iBAAiB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,aAE7D,KAAC,MAAM,CAAC,OAAO,cACb,KAAC,MAAM,CAAC,KAAK,IAAC,WAAW,EAAC,MAAM,GAAG,GACpB,EACjB,KAAC,MAAM,CAAC,OAAO,cACb,MAAC,MAAM,CAAC,IAAI,eACV,KAAC,MAAM,CAAC,IAAI,IAAC,KAAK,EAAC,OAAO,sBAAoB,EAC9C,KAAC,MAAM,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,uBAAqB,EAChD,KAAC,MAAM,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,qBAAmB,IAChC,GACC,IACL,KA3BA,IAAI,CAAC,EAAE,CA4BX,CACb,CAAC,GACG,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"04-quota-editor.d.ts","sourceRoot":"","sources":["../../../../src/components/List/examples/04-quota-editor.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAQF,MAAM,CAAC,OAAO,UAAU,OAAO,4CAsD9B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { List } from "ui-lab-components";
|
|
5
|
+
export const metadata = {
|
|
6
|
+
title: "Quota Editor",
|
|
7
|
+
description: "Inline inputs work as row actions without taking over the List primitive.",
|
|
8
|
+
};
|
|
9
|
+
const quotaItems = [
|
|
10
|
+
{ id: "seats", title: "Seats", desc: "Maximum workspace members" },
|
|
11
|
+
{ id: "projects", title: "Projects", desc: "Active projects per workspace" },
|
|
12
|
+
{ id: "tokens", title: "Tokens", desc: "Monthly API token budget" },
|
|
13
|
+
];
|
|
14
|
+
export default function Example() {
|
|
15
|
+
const [checked, setChecked] = useState(() => new Set(["seats", "projects"]));
|
|
16
|
+
const [limits, setLimits] = useState({
|
|
17
|
+
seats: "24",
|
|
18
|
+
projects: "12",
|
|
19
|
+
tokens: "50000",
|
|
20
|
+
});
|
|
21
|
+
const setItem = (id, value) => {
|
|
22
|
+
setChecked((current) => {
|
|
23
|
+
const next = new Set(current);
|
|
24
|
+
value ? next.add(id) : next.delete(id);
|
|
25
|
+
return next;
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
const toggleItem = (id) => {
|
|
29
|
+
setChecked((current) => {
|
|
30
|
+
const next = new Set(current);
|
|
31
|
+
next.has(id) ? next.delete(id) : next.add(id);
|
|
32
|
+
return next;
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
const setLimit = (id, value) => {
|
|
36
|
+
setLimits((current) => ({ ...current, [id]: value }));
|
|
37
|
+
};
|
|
38
|
+
return (_jsx(List, { items: quotaItems, spacing: "sm", style: { width: 396 }, children: quotaItems.map((item) => (_jsxs(List.Item, { value: item.id, interactive: true, onClick: () => toggleItem(item.id), children: [_jsx(List.Checkbox, { "aria-label": `Enable ${item.title.toLowerCase()} limit`, placement: "start", checked: checked.has(item.id), onCheckedChange: (value) => setItem(item.id, value) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx(List.Title, { children: item.title }), _jsx(List.Desc, { children: item.desc })] }), _jsx(List.Input, { "aria-label": `${item.title} limit`, type: "number", value: limits[item.id], disabled: !checked.has(item.id), onChange: (event) => setLimit(item.id, event.currentTarget.value), className: "w-24" })] }, item.id))) }));
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=04-quota-editor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"04-quota-editor.js","sourceRoot":"","sources":["../../../../src/components/List/examples/04-quota-editor.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,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Aa,IAC9B,EACN,KAAC,IAAI,CAAC,KAAK,kBACG,GAAG,IAAI,CAAC,KAAK,QAAQ,EACjC,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EACtB,QAAQ,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,EAC/B,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,EACjE,SAAS,EAAC,MAAM,GAChB,KAlBY,IAAI,CAAC,EAAE,CAmBX,CACb,CAAC,GACG,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"05-permissions-matrix.d.ts","sourceRoot":"","sources":["../../../../src/components/List/examples/05-permissions-matrix.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAQF,MAAM,CAAC,OAAO,UAAU,OAAO,4CA0E9B"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo, useState } from "react";
|
|
4
|
+
import { List, Select } from "ui-lab-components";
|
|
5
|
+
export const metadata = {
|
|
6
|
+
title: "Permissions Matrix",
|
|
7
|
+
description: "A parent checkbox can summarize rows that also expose per-row Select controls.",
|
|
8
|
+
};
|
|
9
|
+
const permissionItems = [
|
|
10
|
+
{ id: "members", title: "Members", desc: "Invite and remove workspace members" },
|
|
11
|
+
{ id: "billing", title: "Billing", desc: "Update plan, seats, and invoices" },
|
|
12
|
+
{ id: "tokens", title: "Tokens", desc: "Issue scoped API credentials" },
|
|
13
|
+
];
|
|
14
|
+
export default function Example() {
|
|
15
|
+
const rows = useMemo(() => [{ id: "all", title: "All permissions" }, ...permissionItems], []);
|
|
16
|
+
const [checked, setChecked] = useState(() => new Set(["members", "tokens"]));
|
|
17
|
+
const [level, setLevel] = useState({
|
|
18
|
+
members: "edit",
|
|
19
|
+
billing: "view",
|
|
20
|
+
tokens: "edit",
|
|
21
|
+
});
|
|
22
|
+
const allChecked = checked.size === permissionItems.length;
|
|
23
|
+
const isIndeterminate = checked.size > 0 && !allChecked;
|
|
24
|
+
const setItem = (id, value) => {
|
|
25
|
+
setChecked((current) => {
|
|
26
|
+
const next = new Set(current);
|
|
27
|
+
value ? next.add(id) : next.delete(id);
|
|
28
|
+
return next;
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
const setAll = (value) => {
|
|
32
|
+
permissionItems.forEach((item) => setItem(item.id, value));
|
|
33
|
+
};
|
|
34
|
+
const setPermissionLevel = (id, value) => {
|
|
35
|
+
setLevel((current) => ({ ...current, [id]: value }));
|
|
36
|
+
};
|
|
37
|
+
return (_jsxs(List, { items: rows, spacing: "sm", style: { width: 420 }, children: [_jsxs(List.Item, { value: "all", interactive: true, onClick: () => setAll(!allChecked), children: [_jsx(List.Checkbox, { "aria-label": "Toggle all permissions", placement: "start", checked: allChecked, isIndeterminate: isIndeterminate, onCheckedChange: setAll }), _jsx(List.Title, { children: "All permissions" })] }), _jsx(List.Divider, {}), permissionItems.map((item) => (_jsxs(List.Item, { value: item.id, interactive: true, onClick: () => setItem(item.id, !checked.has(item.id)), children: [_jsx("div", { className: "w-5 flex-shrink-0" }), _jsx(List.Checkbox, { "aria-label": `Allow ${item.title.toLowerCase()}`, placement: "start", checked: checked.has(item.id), onCheckedChange: (value) => setItem(item.id, value) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx(List.Title, { children: item.title }), _jsx(List.Desc, { children: item.desc })] }), _jsxs(List.Select, { selectedKey: level[item.id], valueLabel: String(level[item.id] ?? ""), isDisabled: !checked.has(item.id), onSelectionChange: (value) => setPermissionLevel(item.id, value), children: [_jsx(Select.Trigger, { children: _jsx(Select.Value, { placeholder: "Access" }) }), _jsx(Select.Content, { children: _jsxs(Select.List, { children: [_jsx(Select.Item, { value: "view", children: "View" }), _jsx(Select.Item, { value: "edit", children: "Edit" }), _jsx(Select.Item, { value: "admin", children: "Admin" })] }) })] })] }, item.id)))] }));
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=05-permissions-matrix.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"05-permissions-matrix.js","sourceRoot":"","sources":["../../../../src/components/List/examples/05-permissions-matrix.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EAAE,gFAAgF;CAC9F,CAAC;AAEF,MAAM,eAAe,GAAG;IACtB,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,qCAAqC,EAAE;IAChF,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,kCAAkC,EAAE;IAC7E,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,8BAA8B,EAAE;CACxE,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO;IAC7B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,GAAG,eAAe,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9F,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IA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C,UAAU,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,EACjC,iBAAiB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,aAEhE,KAAC,MAAM,CAAC,OAAO,cACb,KAAC,MAAM,CAAC,KAAK,IAAC,WAAW,EAAC,QAAQ,GAAG,GACtB,EACjB,KAAC,MAAM,CAAC,OAAO,cACb,MAAC,MAAM,CAAC,IAAI,eACV,KAAC,MAAM,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,qBAAmB,EAC5C,KAAC,MAAM,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,qBAAmB,EAC5C,KAAC,MAAM,CAAC,IAAI,IAAC,KAAK,EAAC,OAAO,sBAAoB,IAClC,GACC,IACL,KA5BA,IAAI,CAAC,EAAE,CA6BX,CACb,CAAC,IACG,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
export { default as Example1 } from './01-basic.js';
|
|
2
2
|
export { metadata as metadata1 } from './01-basic.js';
|
|
3
|
+
export { default as Example2 } from './02-review-queue.js';
|
|
4
|
+
export { metadata as metadata2 } from './02-review-queue.js';
|
|
5
|
+
export { default as Example3 } from './03-notification-rules.js';
|
|
6
|
+
export { metadata as metadata3 } from './03-notification-rules.js';
|
|
7
|
+
export { default as Example4 } from './04-quota-editor.js';
|
|
8
|
+
export { metadata as metadata4 } from './04-quota-editor.js';
|
|
9
|
+
export { default as Example5 } from './05-permissions-matrix.js';
|
|
10
|
+
export { metadata as metadata5 } from './05-permissions-matrix.js';
|
|
3
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/List/examples/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/List/examples/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
export { default as Example1 } from './01-basic.js';
|
|
2
2
|
export { metadata as metadata1 } from './01-basic.js';
|
|
3
|
+
export { default as Example2 } from './02-review-queue.js';
|
|
4
|
+
export { metadata as metadata2 } from './02-review-queue.js';
|
|
5
|
+
export { default as Example3 } from './03-notification-rules.js';
|
|
6
|
+
export { metadata as metadata3 } from './03-notification-rules.js';
|
|
7
|
+
export { default as Example4 } from './04-quota-editor.js';
|
|
8
|
+
export { metadata as metadata4 } from './04-quota-editor.js';
|
|
9
|
+
export { default as Example5 } from './05-permissions-matrix.js';
|
|
10
|
+
export { metadata as metadata5 } from './05-permissions-matrix.js';
|
|
3
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/List/examples/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/List/examples/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -3,5 +3,25 @@
|
|
|
3
3
|
"title": "Basic List",
|
|
4
4
|
"description": "A simple list displaying basic items with selection and interaction support.",
|
|
5
5
|
"code": "import { List } from 'ui-lab-components';\nimport { Button } from 'ui-lab-components';\n\nexport default function Example() {\n return (\n <List aria-label=\"Basic List Example\">\n <List.Header>\n <h2>Items</h2>\n </List.Header>\n <List.Item interactive>Item One</List.Item>\n <List.Item interactive>Item Two</List.Item>\n <List.Item interactive>Item Three</List.Item>\n <List.Footer align=\"center\">\n <Button variant=\"primary\" size=\"sm\">\n Load More\n </Button>\n </List.Footer>\n </List>\n );\n}"
|
|
6
|
+
},
|
|
7
|
+
"02-review-queue": {
|
|
8
|
+
"title": "Review Queue",
|
|
9
|
+
"description": "A compact checklist for work that can be completed directly from each row.",
|
|
10
|
+
"code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { List } from \"ui-lab-components\";\n\nconst reviewItems = [\n { id: \"legal\", title: \"Legal review\", desc: \"Updated retention language\" },\n { id: \"security\", title: \"Security review\", desc: \"New access scopes\" },\n { id: \"billing\", title: \"Billing review\", desc: \"Invoice copy changes\" },\n];\n\nexport default function Example() {\n const [checked, setChecked] = useState(() => new Set([\"legal\"]));\n\n const setItem = (id: string, value: boolean) => {\n setChecked((current) => {\n const next = new Set(current);\n value ? next.add(id) : next.delete(id);\n return next;\n });\n };\n\n const toggleItem = (id: string) => {\n setChecked((current) => {\n const next = new Set(current);\n next.has(id) ? next.delete(id) : next.add(id);\n return next;\n });\n };\n\n return (\n <List items={reviewItems} spacing=\"sm\" style={{ width: 320 }}>\n {reviewItems.map((item) => (\n <List.Item key={item.id} value={item.id} interactive onClick={() => toggleItem(item.id)}>\n <List.Checkbox\n aria-label={`Mark ${item.title} reviewed`}\n placement=\"start\"\n checked={checked.has(item.id)}\n onCheckedChange={(value) => setItem(item.id, value)}\n />\n <div className=\"min-w-0 flex-1\">\n <List.Title>{item.title}</List.Title>\n <List.Desc>{item.desc}</List.Desc>\n </div>\n </List.Item>\n ))}\n </List>\n );\n}"
|
|
11
|
+
},
|
|
12
|
+
"03-notification-rules": {
|
|
13
|
+
"title": "Notification Rules",
|
|
14
|
+
"description": "Rows can combine a leading checkbox with a trailing Select action.",
|
|
15
|
+
"code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { List, Select } from \"ui-lab-components\";\n\nconst notificationItems = [\n { id: \"comments\", title: \"Comments\", desc: \"Replies and mentions\" },\n { id: \"deployments\", title: \"Deployments\", desc: \"Preview and production updates\" },\n { id: \"incidents\", title: \"Incidents\", desc: \"Status changes and postmortems\" },\n];\n\nexport default function Example() {\n const [checked, setChecked] = useState(() => new Set([\"comments\", \"incidents\"]));\n const [delivery, setDelivery] = useState<Record<string, string | number | null>>({\n comments: \"digest\",\n deployments: \"email\",\n incidents: \"push\",\n });\n\n const setItem = (id: string, value: boolean) => {\n setChecked((current) => {\n const next = new Set(current);\n value ? next.add(id) : next.delete(id);\n return next;\n });\n };\n\n const toggleItem = (id: string) => {\n setChecked((current) => {\n const next = new Set(current);\n next.has(id) ? next.delete(id) : next.add(id);\n return next;\n });\n };\n\n const setDeliveryMode = (id: string, value: string | number | null) => {\n setDelivery((current) => ({ ...current, [id]: value }));\n };\n\n return (\n <List items={notificationItems} spacing=\"sm\" style={{ width: 400 }}>\n {notificationItems.map((item) => (\n <List.Item key={item.id} value={item.id} interactive onClick={() => toggleItem(item.id)}>\n <List.Checkbox\n aria-label={`Enable ${item.title.toLowerCase()} notifications`}\n placement=\"start\"\n checked={checked.has(item.id)}\n onCheckedChange={(value) => setItem(item.id, value)}\n />\n <div className=\"min-w-0 flex-1\">\n <List.Title>{item.title}</List.Title>\n <List.Desc>{item.desc}</List.Desc>\n </div>\n <List.Select\n selectedKey={delivery[item.id]}\n valueLabel={String(delivery[item.id] ?? \"\")}\n isDisabled={!checked.has(item.id)}\n onSelectionChange={(value) => setDeliveryMode(item.id, value)}\n >\n <Select.Trigger>\n <Select.Value placeholder=\"Mode\" />\n </Select.Trigger>\n <Select.Content>\n <Select.List>\n <Select.Item value=\"email\">Email</Select.Item>\n <Select.Item value=\"digest\">Digest</Select.Item>\n <Select.Item value=\"push\">Push</Select.Item>\n </Select.List>\n </Select.Content>\n </List.Select>\n </List.Item>\n ))}\n </List>\n );\n}"
|
|
16
|
+
},
|
|
17
|
+
"04-quota-editor": {
|
|
18
|
+
"title": "Quota Editor",
|
|
19
|
+
"description": "Inline inputs work as row actions without taking over the List primitive.",
|
|
20
|
+
"code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { List } from \"ui-lab-components\";\n\nconst quotaItems = [\n { id: \"seats\", title: \"Seats\", desc: \"Maximum workspace members\" },\n { id: \"projects\", title: \"Projects\", desc: \"Active projects per workspace\" },\n { id: \"tokens\", title: \"Tokens\", desc: \"Monthly API token budget\" },\n];\n\nexport default function Example() {\n const [checked, setChecked] = useState(() => new Set([\"seats\", \"projects\"]));\n const [limits, setLimits] = useState<Record<string, string>>({\n seats: \"24\",\n projects: \"12\",\n tokens: \"50000\",\n });\n\n const setItem = (id: string, value: boolean) => {\n setChecked((current) => {\n const next = new Set(current);\n value ? next.add(id) : next.delete(id);\n return next;\n });\n };\n\n const toggleItem = (id: string) => {\n setChecked((current) => {\n const next = new Set(current);\n next.has(id) ? next.delete(id) : next.add(id);\n return next;\n });\n };\n\n const setLimit = (id: string, value: string) => {\n setLimits((current) => ({ ...current, [id]: value }));\n };\n\n return (\n <List items={quotaItems} spacing=\"sm\" style={{ width: 396 }}>\n {quotaItems.map((item) => (\n <List.Item key={item.id} value={item.id} interactive onClick={() => toggleItem(item.id)}>\n <List.Checkbox\n aria-label={`Enable ${item.title.toLowerCase()} limit`}\n placement=\"start\"\n checked={checked.has(item.id)}\n onCheckedChange={(value) => setItem(item.id, value)}\n />\n <div className=\"min-w-0 flex-1\">\n <List.Title>{item.title}</List.Title>\n <List.Desc>{item.desc}</List.Desc>\n </div>\n <List.Input\n aria-label={`${item.title} limit`}\n type=\"number\"\n value={limits[item.id]}\n disabled={!checked.has(item.id)}\n onChange={(event) => setLimit(item.id, event.currentTarget.value)}\n className=\"w-24\"\n />\n </List.Item>\n ))}\n </List>\n );\n}"
|
|
21
|
+
},
|
|
22
|
+
"05-permissions-matrix": {
|
|
23
|
+
"title": "Permissions Matrix",
|
|
24
|
+
"description": "A parent checkbox can summarize rows that also expose per-row Select controls.",
|
|
25
|
+
"code": "\"use client\";\n\nimport { useMemo, useState } from \"react\";\nimport { List, Select } from \"ui-lab-components\";\n\nconst permissionItems = [\n { id: \"members\", title: \"Members\", desc: \"Invite and remove workspace members\" },\n { id: \"billing\", title: \"Billing\", desc: \"Update plan, seats, and invoices\" },\n { id: \"tokens\", title: \"Tokens\", desc: \"Issue scoped API credentials\" },\n];\n\nexport default function Example() {\n const rows = useMemo(() => [{ id: \"all\", title: \"All permissions\" }, ...permissionItems], []);\n const [checked, setChecked] = useState(() => new Set([\"members\", \"tokens\"]));\n const [level, setLevel] = useState<Record<string, string | number | null>>({\n members: \"edit\",\n billing: \"view\",\n tokens: \"edit\",\n });\n const allChecked = checked.size === permissionItems.length;\n const isIndeterminate = checked.size > 0 && !allChecked;\n\n const setItem = (id: string, value: boolean) => {\n setChecked((current) => {\n const next = new Set(current);\n value ? next.add(id) : next.delete(id);\n return next;\n });\n };\n\n const setAll = (value: boolean) => {\n permissionItems.forEach((item) => setItem(item.id, value));\n };\n\n const setPermissionLevel = (id: string, value: string | number | null) => {\n setLevel((current) => ({ ...current, [id]: value }));\n };\n\n return (\n <List items={rows} spacing=\"sm\" style={{ width: 420 }}>\n <List.Item value=\"all\" interactive onClick={() => setAll(!allChecked)}>\n <List.Checkbox\n aria-label=\"Toggle all permissions\"\n placement=\"start\"\n checked={allChecked}\n isIndeterminate={isIndeterminate}\n onCheckedChange={setAll}\n />\n <List.Title>All permissions</List.Title>\n </List.Item>\n <List.Divider />\n {permissionItems.map((item) => (\n <List.Item key={item.id} value={item.id} interactive onClick={() => setItem(item.id, !checked.has(item.id))}>\n <div className=\"w-5 flex-shrink-0\" />\n <List.Checkbox\n aria-label={`Allow ${item.title.toLowerCase()}`}\n placement=\"start\"\n checked={checked.has(item.id)}\n onCheckedChange={(value) => setItem(item.id, value)}\n />\n <div className=\"min-w-0 flex-1\">\n <List.Title>{item.title}</List.Title>\n <List.Desc>{item.desc}</List.Desc>\n </div>\n <List.Select\n selectedKey={level[item.id]}\n valueLabel={String(level[item.id] ?? \"\")}\n isDisabled={!checked.has(item.id)}\n onSelectionChange={(value) => setPermissionLevel(item.id, value)}\n >\n <Select.Trigger>\n <Select.Value placeholder=\"Access\" />\n </Select.Trigger>\n <Select.Content>\n <Select.List>\n <Select.Item value=\"view\">View</Select.Item>\n <Select.Item value=\"edit\">Edit</Select.Item>\n <Select.Item value=\"admin\">Admin</Select.Item>\n </Select.List>\n </Select.Content>\n </List.Select>\n </List.Item>\n ))}\n </List>\n );\n}"
|
|
6
26
|
}
|
|
7
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/List/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/List/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAkC1C,eAAO,MAAM,UAAU,EAAE,eA8KxB,CAAC;AAEF,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { List, Button } from 'ui-lab-components';
|
|
3
3
|
import Example1, { metadata as metadata1 } from './examples/01-basic.js';
|
|
4
|
+
import Example2, { metadata as metadata2 } from './examples/02-review-queue.js';
|
|
5
|
+
import Example3, { metadata as metadata3 } from './examples/03-notification-rules.js';
|
|
6
|
+
import Example4, { metadata as metadata4 } from './examples/04-quota-editor.js';
|
|
7
|
+
import Example5, { metadata as metadata5 } from './examples/05-permissions-matrix.js';
|
|
4
8
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
5
9
|
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
6
10
|
const examplesData = [
|
|
7
11
|
{ id: '01-basic', Component: Example1, metadata: metadata1 },
|
|
12
|
+
{ id: '02-review-queue', Component: Example2, metadata: metadata2 },
|
|
13
|
+
{ id: '03-notification-rules', Component: Example3, metadata: metadata3 },
|
|
14
|
+
{ id: '04-quota-editor', Component: Example4, metadata: metadata4 },
|
|
15
|
+
{ id: '05-permissions-matrix', Component: Example5, metadata: metadata5 },
|
|
8
16
|
];
|
|
9
17
|
const basicListCode = `import { List, Button } from "ui-lab-components";
|
|
10
18
|
|
|
@@ -92,7 +100,7 @@ export function Example() {
|
|
|
92
100
|
</List.Header>
|
|
93
101
|
<List.Item interactive>
|
|
94
102
|
<p>Item with actions</p>
|
|
95
|
-
<List.ActionGroup justify="
|
|
103
|
+
<List.ActionGroup justify="between">
|
|
96
104
|
<button>👍 Like</button>
|
|
97
105
|
<button>💬 Reply</button>
|
|
98
106
|
</List.ActionGroup>
|
|
@@ -100,7 +108,7 @@ export function Example() {
|
|
|
100
108
|
</List>
|
|
101
109
|
);
|
|
102
110
|
}`,
|
|
103
|
-
preview: (_jsxs(List, { "aria-label": "Actions List", children: [_jsx(List.Header, { children: _jsx("h3", { children: "Feed" }) }), _jsxs(List.Item, { interactive: true, children: [_jsx("p", { className: "text-sm text-foreground-300", children: "Item with actions" }), _jsxs(List.ActionGroup, { justify: "
|
|
111
|
+
preview: (_jsxs(List, { "aria-label": "Actions List", children: [_jsx(List.Header, { children: _jsx("h3", { children: "Feed" }) }), _jsxs(List.Item, { interactive: true, children: [_jsx("p", { className: "text-sm text-foreground-300", children: "Item with actions" }), _jsxs(List.ActionGroup, { justify: "between", children: [_jsx("button", { className: "text-sm text-foreground-300 hover:text-foreground-100 transition-colors", children: "\uD83D\uDC4D Like" }), _jsx("button", { className: "text-sm text-foreground-300 hover:text-foreground-100 transition-colors", children: "\uD83D\uDCAC Reply" })] })] })] })),
|
|
104
112
|
},
|
|
105
113
|
{
|
|
106
114
|
id: 'sticky-header',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/List/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAA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AI,EAAE;;;;;;;;;;;;;;;;EAgBV;YACI,OAAO,EAAE,CACP,cAAK,SAAS,EAAC,2DAA2D,YACxE,MAAC,IAAI,kBAAY,aAAa,aAC5B,KAAC,IAAI,CAAC,MAAM,IAAC,MAAM,kBACjB,iCAAc,GACF,EACd,KAAC,IAAI,CAAC,IAAI,IAAC,WAAW,+BAAqB,EAC3C,KAAC,IAAI,CAAC,IAAI,IAAC,WAAW,+BAAqB,EAC3C,KAAC,IAAI,CAAC,IAAI,IAAC,WAAW,iCAAuB,EAC7C,KAAC,IAAI,CAAC,IAAI,IAAC,WAAW,gCAAsB,IACvC,GACH,CACP;SACF;KACF;CACF,CAAC;AAEF,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"03-toolbar-dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Menu/examples/03-toolbar-dropdown.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO,4CA0B9B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Menu, Button } from "ui-lab-components";
|
|
3
|
+
import { FaChevronDown } from "react-icons/fa6";
|
|
4
|
+
export const metadata = {
|
|
5
|
+
title: "Toolbar Dropdown",
|
|
6
|
+
description: "Dropdown menu of actions with keyboard shortcuts and a disabled item.",
|
|
7
|
+
};
|
|
8
|
+
export default function Example() {
|
|
9
|
+
return (_jsxs(Menu, { type: "pop-over", children: [_jsx(Menu.Trigger, { children: _jsxs(Button, { variant: "ghost", children: ["File ", _jsx(FaChevronDown, { className: "w-3 h-3 ml-1" })] }) }), _jsxs(Menu.Content, { align: "start", children: [_jsxs(Menu.Item, { onSelect: () => { }, children: ["New file", _jsx(Menu.Shortcut, { children: "\u2318N" })] }), _jsxs(Menu.Item, { onSelect: () => { }, children: ["Open\u2026", _jsx(Menu.Shortcut, { children: "\u2318O" })] }), _jsxs(Menu.Item, { onSelect: () => { }, children: ["Save", _jsx(Menu.Shortcut, { children: "\u2318S" })] }), _jsx(Menu.Separator, {}), _jsx(Menu.Item, { disabled: true, children: "Recent files" })] })] }));
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=03-toolbar-dropdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"03-toolbar-dropdown.js","sourceRoot":"","sources":["../../../../src/components/Menu/examples/03-toolbar-dropdown.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,uEAAuE;CACrF,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO;IAC7B,OAAO,CACL,MAAC,IAAI,IAAC,IAAI,EAAC,UAAU,aACnB,KAAC,IAAI,CAAC,OAAO,cACX,MAAC,MAAM,IAAC,OAAO,EAAC,OAAO,sBAChB,KAAC,aAAa,IAAC,SAAS,EAAC,cAAc,GAAG,IACxC,GACI,EACf,MAAC,IAAI,CAAC,OAAO,IAAC,KAAK,EAAC,OAAO,aACzB,MAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,yBAE3B,KAAC,IAAI,CAAC,QAAQ,0BAAmB,IACvB,EACZ,MAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,2BAE3B,KAAC,IAAI,CAAC,QAAQ,0BAAmB,IACvB,EACZ,MAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,qBAE3B,KAAC,IAAI,CAAC,QAAQ,0BAAmB,IACvB,EACZ,KAAC,IAAI,CAAC,SAAS,KAAG,EAClB,KAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,mCAAyB,IAC/B,IACV,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"04-table-row-actions.d.ts","sourceRoot":"","sources":["../../../../src/components/Menu/examples/04-table-row-actions.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAQF,MAAM,CAAC,OAAO,UAAU,OAAO,4CA6C9B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Menu, Button } from "ui-lab-components";
|
|
3
|
+
import { FaEllipsis } from "react-icons/fa6";
|
|
4
|
+
export const metadata = {
|
|
5
|
+
title: "Table Row Actions",
|
|
6
|
+
description: "Per-row overflow menu in a table, with a destructive action separated from neutral ones.",
|
|
7
|
+
};
|
|
8
|
+
const rows = [
|
|
9
|
+
{ id: "doc_1", name: "Q3 roadmap", updated: "2h ago" },
|
|
10
|
+
{ id: "doc_2", name: "Pricing review", updated: "yesterday" },
|
|
11
|
+
{ id: "doc_3", name: "Hiring plan", updated: "3 days ago" },
|
|
12
|
+
];
|
|
13
|
+
export default function Example() {
|
|
14
|
+
return (_jsxs("table", { className: "w-full text-sm border-collapse", children: [_jsx("thead", { children: _jsxs("tr", { className: "border-b border-background-700", children: [_jsx("th", { className: "text-left py-2 px-3 font-medium text-foreground-200", children: "Document" }), _jsx("th", { className: "text-left py-2 px-3 font-medium text-foreground-200", children: "Updated" }), _jsx("th", { className: "py-2 px-3" })] }) }), _jsx("tbody", { children: rows.map((row) => (_jsxs("tr", { className: "border-b border-background-700 last:border-0", children: [_jsx("td", { className: "py-2 px-3", children: row.name }), _jsx("td", { className: "py-2 px-3 text-foreground-400", children: row.updated }), _jsx("td", { className: "py-2 px-3 text-right", children: _jsxs(Menu, { type: "pop-over", children: [_jsx(Menu.Trigger, { children: _jsx(Button, { icon: _jsx(FaEllipsis, {}), size: "icon", variant: "ghost", styles: "p-2", "aria-label": `Actions for ${row.name}` }) }), _jsxs(Menu.Content, { align: "end", children: [_jsx(Menu.Item, { onSelect: () => { }, children: "Open" }), _jsx(Menu.Item, { onSelect: () => { }, children: "Rename" }), _jsx(Menu.Item, { onSelect: () => { }, children: "Duplicate" }), _jsx(Menu.Separator, {}), _jsx(Menu.Item, { onSelect: () => { }, styles: { root: "text-destructive" }, children: "Delete" })] })] }) })] }, row.id))) })] }));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=04-table-row-actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"04-table-row-actions.js","sourceRoot":"","sources":["../../../../src/components/Menu/examples/04-table-row-actions.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,0FAA0F;CACxG,CAAC;AAEF,MAAM,IAAI,GAAG;IACX,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE;IACtD,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,EAAE;IAC7D,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE;CAC5D,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO;IAC7B,OAAO,CACL,iBAAO,SAAS,EAAC,gCAAgC,aAC/C,0BACE,cAAI,SAAS,EAAC,gCAAgC,aAC5C,aAAI,SAAS,EAAC,qDAAqD,yBAAc,EACjF,aAAI,SAAS,EAAC,qDAAqD,wBAAa,EAChF,aAAI,SAAS,EAAC,WAAW,GAAG,IACzB,GACC,EACR,0BACG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACjB,cAAiB,SAAS,EAAC,8CAA8C,aACvE,aAAI,SAAS,EAAC,WAAW,YAAE,GAAG,CAAC,IAAI,GAAM,EACzC,aAAI,SAAS,EAAC,+BAA+B,YAAE,GAAG,CAAC,OAAO,GAAM,EAChE,aAAI,SAAS,EAAC,sBAAsB,YAClC,MAAC,IAAI,IAAC,IAAI,EAAC,UAAU,aACnB,KAAC,IAAI,CAAC,OAAO,cACX,KAAC,MAAM,IACL,IAAI,EAAE,KAAC,UAAU,KAAG,EACpB,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,OAAO,EACf,MAAM,EAAC,KAAK,gBACA,eAAe,GAAG,CAAC,IAAI,EAAE,GACrC,GACW,EACf,MAAC,IAAI,CAAC,OAAO,IAAC,KAAK,EAAC,KAAK,aACvB,KAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,qBAAkB,EAC/C,KAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,uBAAoB,EACjD,KAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,0BAAuB,EACpD,KAAC,IAAI,CAAC,SAAS,KAAG,EAClB,KAAC,IAAI,CAAC,IAAI,IACR,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,EAClB,MAAM,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,uBAG1B,IACC,IACV,GACJ,KA3BE,GAAG,CAAC,EAAE,CA4BV,CACN,CAAC,GACI,IACF,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"05-context-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/Menu/examples/05-context-menu.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO,4CA4B9B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Menu } from "ui-lab-components";
|
|
3
|
+
export const metadata = {
|
|
4
|
+
title: "Context Menu",
|
|
5
|
+
description: "Right-click anywhere in the surface to open the menu at the cursor position.",
|
|
6
|
+
};
|
|
7
|
+
export default function Example() {
|
|
8
|
+
return (_jsxs(Menu, { type: "context-menu", children: [_jsx(Menu.Trigger, { children: _jsx("div", { className: "flex items-center justify-center w-80 h-32 border border-dashed border-background-700 rounded-sm text-sm text-foreground-400 select-none", children: "Right-click anywhere in this area" }) }), _jsxs(Menu.Content, { children: [_jsxs(Menu.Item, { onSelect: () => { }, children: ["Cut", _jsx(Menu.Shortcut, { children: "\u2318X" })] }), _jsxs(Menu.Item, { onSelect: () => { }, children: ["Copy", _jsx(Menu.Shortcut, { children: "\u2318C" })] }), _jsxs(Menu.Item, { onSelect: () => { }, children: ["Paste", _jsx(Menu.Shortcut, { children: "\u2318V" })] }), _jsx(Menu.Separator, {}), _jsx(Menu.Item, { onSelect: () => { }, styles: { root: "text-destructive" }, children: "Delete" })] })] }));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=05-context-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"05-context-menu.js","sourceRoot":"","sources":["../../../../src/components/Menu/examples/05-context-menu.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,8EAA8E;CAC5F,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO;IAC7B,OAAO,CACL,MAAC,IAAI,IAAC,IAAI,EAAC,cAAc,aACvB,KAAC,IAAI,CAAC,OAAO,cACX,cAAK,SAAS,EAAC,0IAA0I,kDAEnJ,GACO,EACf,MAAC,IAAI,CAAC,OAAO,eACX,MAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,oBAE3B,KAAC,IAAI,CAAC,QAAQ,0BAAmB,IACvB,EACZ,MAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,qBAE3B,KAAC,IAAI,CAAC,QAAQ,0BAAmB,IACvB,EACZ,MAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,sBAE3B,KAAC,IAAI,CAAC,QAAQ,0BAAmB,IACvB,EACZ,KAAC,IAAI,CAAC,SAAS,KAAG,EAClB,KAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,uBAEvD,IACC,IACV,CACR,CAAC;AACJ,CAAC"}
|