prime-ui-kit 0.6.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/examples/02-settings-panels.d.ts.map +1 -1
- package/dist/components/accordion/examples/04-api-docs-sections.d.ts.map +1 -1
- package/dist/components/accordion/examples/05-knowledge-base-categories.d.ts.map +1 -1
- package/dist/components/avatar/examples/app-header-nav.d.ts.map +1 -1
- package/dist/components/avatar/examples/src-from-state.d.ts.map +1 -1
- package/dist/components/banner/examples/cookie-consent-row.d.ts.map +1 -1
- package/dist/components/banner/examples/feature-promo.d.ts.map +1 -1
- package/dist/components/checkbox/examples/bulk-select-rows.d.ts.map +1 -1
- package/dist/components/checkbox/examples/empty-label-form.d.ts.map +1 -1
- package/dist/components/checkbox/examples/feature-flags-list.d.ts.map +1 -1
- package/dist/components/checkbox/examples/settings-panel.d.ts.map +1 -1
- package/dist/components/color-picker/ColorPicker.d.ts.map +1 -1
- package/dist/components/color-picker/ColorPickerRac.d.ts.map +1 -1
- package/dist/components/color-picker/examples/controlled-form-field.d.ts.map +1 -1
- package/dist/components/color-picker/examples/theme-accent.d.ts.map +1 -1
- package/dist/components/command-menu/examples/composition-tags-footer.d.ts.map +1 -1
- package/dist/components/command-menu/examples/variants-density-items.d.ts.map +1 -1
- package/dist/components/datepicker/examples/full-width-form.d.ts.map +1 -1
- package/dist/components/digit-input/examples/error-state.d.ts.map +1 -1
- package/dist/components/digit-input/examples/resend-and-clear.d.ts.map +1 -1
- package/dist/components/divider/examples/section-breaks.d.ts.map +1 -1
- package/dist/components/dropdown/Dropdown.d.ts +0 -14
- package/dist/components/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/dropdown/examples/account-menu.d.ts.map +1 -1
- package/dist/components/dropdown/examples/actions-menu.d.ts.map +1 -1
- package/dist/components/dropdown/examples/full-width.d.ts.map +1 -1
- package/dist/components/empty-page/EmptyPage.d.ts +63 -0
- package/dist/components/empty-page/EmptyPage.d.ts.map +1 -0
- package/dist/components/empty-page/examples/canonical.d.ts +3 -0
- package/dist/components/empty-page/examples/canonical.d.ts.map +1 -0
- package/dist/components/empty-page/examples/sizes.d.ts +3 -0
- package/dist/components/empty-page/examples/sizes.d.ts.map +1 -0
- package/dist/components/empty-page/examples/table-region.d.ts +6 -0
- package/dist/components/empty-page/examples/table-region.d.ts.map +1 -0
- package/dist/components/hint/examples/a11y-describedby.d.ts.map +1 -1
- package/dist/components/hint/examples/error-hint.d.ts.map +1 -1
- package/dist/components/hint/examples/field-help.d.ts.map +1 -1
- package/dist/components/hint/examples/field-states.d.ts.map +1 -1
- package/dist/components/hint/examples/inline-tip-form.d.ts.map +1 -1
- package/dist/components/hint/examples/success-confirmation.d.ts.map +1 -1
- package/dist/components/hint/examples/variants.d.ts.map +1 -1
- package/dist/components/index.css +254 -106
- package/dist/components/index.css.map +4 -4
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +373 -337
- package/dist/components/index.js.map +4 -4
- package/dist/components/input/examples/login-email.d.ts.map +1 -1
- package/dist/components/input/examples/search.d.ts.map +1 -1
- package/dist/components/link-button/examples/disabled.d.ts.map +1 -1
- package/dist/components/link-button/examples/external.d.ts.map +1 -1
- package/dist/components/link-button/examples/inline-text-link.d.ts.map +1 -1
- package/dist/components/link-button/examples/navigation-cluster.d.ts.map +1 -1
- package/dist/components/modal/examples/pattern-controlled.d.ts.map +1 -1
- package/dist/components/modal/examples/pattern-portal-and-scroll.d.ts.map +1 -1
- package/dist/components/modal/examples/scenario-multi-field-form.d.ts.map +1 -1
- package/dist/components/notification/examples/action-toast.d.ts.map +1 -1
- package/dist/components/notification/examples/error-success.d.ts.map +1 -1
- package/dist/components/popover/Popover.d.ts +3 -3
- package/dist/components/popover/Popover.d.ts.map +1 -1
- package/dist/components/popover/examples/composition.d.ts +1 -1
- package/dist/components/popover/examples/date-trigger.d.ts.map +1 -1
- package/dist/components/popover/examples/features.d.ts.map +1 -1
- package/dist/components/popover/examples/form-in-popover.d.ts.map +1 -1
- package/dist/components/popover/examples/full-width.d.ts.map +1 -1
- package/dist/components/popover/examples/placement.d.ts.map +1 -1
- package/dist/components/popover/examples/rich-content.d.ts.map +1 -1
- package/dist/components/popover/examples/sizes.d.ts +1 -1
- package/dist/components/progress-bar/examples/step-progress.d.ts.map +1 -1
- package/dist/components/progress-circle/examples/dashboard-ring.d.ts.map +1 -1
- package/dist/components/progress-circle/examples/states.d.ts.map +1 -1
- package/dist/components/radio/examples/plan-picker.d.ts.map +1 -1
- package/dist/components/segmented-control/examples/pricing-toggle.d.ts.map +1 -1
- package/dist/components/segmented-control/examples/view-mode.d.ts.map +1 -1
- package/dist/components/select/examples/01-country.d.ts.map +1 -1
- package/dist/components/select/examples/02-controlled.d.ts.map +1 -1
- package/dist/components/select/examples/03-groups.d.ts.map +1 -1
- package/dist/components/select/examples/04-full-width-form.d.ts.map +1 -1
- package/dist/components/switch/examples/composition.d.ts.map +1 -1
- package/dist/components/switch/examples/scenario-feature-flag.d.ts.map +1 -1
- package/dist/components/tabs/examples/01-settings-vertical-rail.d.ts.map +1 -1
- package/dist/components/tag/examples/controlled.d.ts.map +1 -1
- package/dist/components/textarea/examples/01-support-ticket.d.ts.map +1 -1
- package/dist/components/textarea/examples/02-comment.d.ts.map +1 -1
- package/dist/components/textarea/examples/controlled.d.ts.map +1 -1
- package/dist/components/textarea/examples/features.d.ts.map +1 -1
- package/dist/components/tooltip/examples/composition.d.ts.map +1 -1
- package/dist/index.css +254 -106
- package/dist/index.css.map +4 -4
- package/dist/index.js +375 -338
- package/dist/index.js.map +4 -4
- package/dist/internal/states.d.ts +2 -0
- package/dist/internal/states.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/accordion/COMPONENT.md +1 -1
- package/src/components/accordion/examples/01-faq-marketing.tsx +1 -1
- package/src/components/accordion/examples/02-settings-panels.tsx +1 -6
- package/src/components/accordion/examples/03-checkout-order-summary.tsx +1 -1
- package/src/components/accordion/examples/04-api-docs-sections.tsx +0 -1
- package/src/components/accordion/examples/05-knowledge-base-categories.tsx +1 -7
- package/src/components/avatar/COMPONENT.md +2 -2
- package/src/components/avatar/examples/app-header-nav.tsx +5 -13
- package/src/components/avatar/examples/comment-thread.tsx +1 -1
- package/src/components/avatar/examples/src-from-state.tsx +0 -1
- package/src/components/badge/examples/admin-tags.tsx +6 -6
- package/src/components/badge/examples/ecommerce-inventory.tsx +5 -5
- package/src/components/badge/examples/inbox-labels.tsx +5 -5
- package/src/components/badge/examples/status-presence.tsx +4 -4
- package/src/components/banner/examples/controlled-visibility.tsx +1 -1
- package/src/components/banner/examples/cookie-consent-row.tsx +0 -1
- package/src/components/banner/examples/feature-promo.tsx +0 -1
- package/src/components/button/examples/canonical-composition.tsx +4 -4
- package/src/components/button/examples/destructive-confirm.tsx +3 -3
- package/src/components/button/examples/form-submit-row.tsx +2 -2
- package/src/components/button/examples/full-width-stack.tsx +2 -2
- package/src/components/button/examples/icon-composition.tsx +6 -6
- package/src/components/button/examples/toolbar.tsx +4 -4
- package/src/components/button-group/COMPONENT.md +1 -1
- package/src/components/button-group/examples/editor-toolbar.tsx +1 -1
- package/src/components/button-group/examples/form-footer.tsx +1 -1
- package/src/components/button-group/examples/full-width.tsx +1 -1
- package/src/components/button-group/examples/view-switcher.tsx +1 -1
- package/src/components/button-group/examples/wizard-actions.tsx +1 -1
- package/src/components/checkbox/examples/bulk-select-rows.tsx +0 -2
- package/src/components/checkbox/examples/empty-label-form.tsx +1 -2
- package/src/components/checkbox/examples/feature-flags-list.tsx +0 -1
- package/src/components/checkbox/examples/settings-panel.tsx +1 -4
- package/src/components/color-picker/COMPONENT.md +2 -2
- package/src/components/color-picker/examples/brand-kit.tsx +3 -3
- package/src/components/color-picker/examples/controlled-form-field.tsx +4 -6
- package/src/components/color-picker/examples/field-eyedropper.tsx +2 -2
- package/src/components/color-picker/examples/format-variants.tsx +2 -2
- package/src/components/color-picker/examples/full-width.tsx +2 -2
- package/src/components/color-picker/examples/minimal-popover.tsx +2 -2
- package/src/components/color-picker/examples/panel-placement.tsx +4 -4
- package/src/components/color-picker/examples/product-variant-swatch.tsx +2 -2
- package/src/components/color-picker/examples/readout-trigger.tsx +2 -2
- package/src/components/color-picker/examples/states.tsx +4 -4
- package/src/components/color-picker/examples/theme-accent.tsx +2 -7
- package/src/components/command-menu/examples/app-palette.tsx +1 -1
- package/src/components/command-menu/examples/composition-tags-footer.tsx +2 -7
- package/src/components/command-menu/examples/controlled-open-search.tsx +1 -1
- package/src/components/command-menu/examples/disabled-items.tsx +1 -1
- package/src/components/command-menu/examples/file-search.tsx +1 -1
- package/src/components/command-menu/examples/full-width-panel.tsx +1 -1
- package/src/components/command-menu/examples/item-icon-as.tsx +1 -1
- package/src/components/command-menu/examples/quick-actions.tsx +1 -1
- package/src/components/command-menu/examples/variants-density-items.tsx +2 -4
- package/src/components/data-table/COMPONENT.md +2 -0
- package/src/components/datepicker/examples/birthdate.tsx +2 -2
- package/src/components/datepicker/examples/booking.tsx +2 -2
- package/src/components/datepicker/examples/full-width-form.tsx +3 -10
- package/src/components/datepicker/examples/range-report.tsx +2 -2
- package/src/components/digit-input/examples/composition.tsx +3 -3
- package/src/components/digit-input/examples/error-state.tsx +3 -5
- package/src/components/digit-input/examples/otp-login.tsx +3 -3
- package/src/components/digit-input/examples/resend-and-clear.tsx +3 -9
- package/src/components/digit-input/examples/verification-step.tsx +4 -4
- package/src/components/divider/examples/card-splits.tsx +2 -2
- package/src/components/divider/examples/inset-stack.tsx +1 -1
- package/src/components/divider/examples/line-spacing-column.tsx +3 -3
- package/src/components/divider/examples/section-breaks.tsx +2 -6
- package/src/components/drawer/COMPONENT.md +1 -1
- package/src/components/drawer/examples/cart-preview.tsx +4 -4
- package/src/components/drawer/examples/explicit-panel.tsx +3 -3
- package/src/components/drawer/examples/filters-panel.tsx +7 -7
- package/src/components/drawer/examples/mobile-nav-sheet.tsx +3 -3
- package/src/components/drawer/examples/settings-side.tsx +6 -6
- package/src/components/dropdown/COMPONENT.md +5 -18
- package/src/components/dropdown/examples/account-menu.tsx +31 -33
- package/src/components/dropdown/examples/actions-menu.tsx +0 -1
- package/src/components/dropdown/examples/composition.tsx +1 -1
- package/src/components/dropdown/examples/controlled.tsx +1 -1
- package/src/components/dropdown/examples/dropdown-examples.module.css +0 -4
- package/src/components/dropdown/examples/full-width.tsx +0 -1
- package/src/components/dropdown/examples/select-like-list.tsx +1 -1
- package/src/components/dropdown/examples/states.tsx +1 -1
- package/src/components/dropdown/examples/variants.tsx +1 -1
- package/src/components/empty-page/COMPONENT.md +143 -0
- package/src/components/empty-page/examples/canonical.tsx +22 -0
- package/src/components/empty-page/examples/examples-demos.module.css +25 -0
- package/src/components/empty-page/examples/sizes.tsx +23 -0
- package/src/components/empty-page/examples/table-region.tsx +35 -0
- package/src/components/file-upload/examples/full-width.tsx +1 -1
- package/src/components/hint/examples/a11y-describedby.tsx +2 -4
- package/src/components/hint/examples/controlled-variant.tsx +1 -1
- package/src/components/hint/examples/error-hint.tsx +3 -5
- package/src/components/hint/examples/field-help.tsx +3 -5
- package/src/components/hint/examples/field-states.tsx +9 -19
- package/src/components/hint/examples/inline-tip-form.tsx +6 -10
- package/src/components/hint/examples/success-confirmation.tsx +3 -5
- package/src/components/hint/examples/variants.tsx +3 -9
- package/src/components/hint/examples/with-icon.tsx +1 -1
- package/src/components/input/examples/affix-url-and-amount.tsx +2 -2
- package/src/components/input/examples/checkout-full-width.tsx +2 -2
- package/src/components/input/examples/login-email.tsx +1 -5
- package/src/components/input/examples/password-with-hint.tsx +1 -1
- package/src/components/input/examples/search.tsx +0 -1
- package/src/components/kbd/examples/composition-chord-icon.tsx +1 -1
- package/src/components/kbd/examples/toolbar-hints.tsx +2 -2
- package/src/components/label/examples/with-icon.tsx +1 -1
- package/src/components/link-button/COMPONENT.md +1 -1
- package/src/components/link-button/examples/composition.tsx +3 -3
- package/src/components/link-button/examples/disabled.tsx +2 -4
- package/src/components/link-button/examples/external.tsx +1 -6
- package/src/components/link-button/examples/inline-text-link.tsx +2 -4
- package/src/components/link-button/examples/navigation-cluster.tsx +4 -12
- package/src/components/modal/COMPONENT.md +4 -4
- package/src/components/modal/examples/canonical-maximal.tsx +4 -4
- package/src/components/modal/examples/pattern-close-behavior.tsx +3 -3
- package/src/components/modal/examples/pattern-controlled.tsx +3 -5
- package/src/components/modal/examples/pattern-full-width-footer.tsx +3 -3
- package/src/components/modal/examples/pattern-portal-and-scroll.tsx +3 -5
- package/src/components/modal/examples/scenario-confirm-delete.tsx +3 -3
- package/src/components/modal/examples/scenario-edit-entity.tsx +4 -4
- package/src/components/modal/examples/scenario-legal-consent.tsx +2 -2
- package/src/components/modal/examples/scenario-multi-field-form.tsx +7 -13
- package/src/components/notification/examples/action-toast.tsx +0 -2
- package/src/components/notification/examples/error-success.tsx +0 -2
- package/src/components/page-content/COMPONENT.md +1 -0
- package/src/components/popover/COMPONENT.md +1 -1
- package/src/components/popover/examples/as-child.tsx +1 -1
- package/src/components/popover/examples/canonical-panel.tsx +2 -2
- package/src/components/popover/examples/composition.tsx +7 -7
- package/src/components/popover/examples/controlled.tsx +4 -4
- package/src/components/popover/examples/date-trigger.tsx +3 -10
- package/src/components/popover/examples/features.tsx +6 -13
- package/src/components/popover/examples/form-in-popover.tsx +5 -13
- package/src/components/popover/examples/full-width.tsx +2 -9
- package/src/components/popover/examples/inset-variants.tsx +6 -6
- package/src/components/popover/examples/placement.tsx +2 -7
- package/src/components/popover/examples/rich-content.tsx +6 -8
- package/src/components/popover/examples/sizes.tsx +5 -5
- package/src/components/popover/examples/states.tsx +4 -4
- package/src/components/progress-bar/examples/indeterminate-busy-state.tsx +1 -1
- package/src/components/progress-bar/examples/step-progress.tsx +0 -1
- package/src/components/progress-bar/examples/upload-progress.tsx +1 -1
- package/src/components/progress-bar/examples/wizard-composition.tsx +1 -1
- package/src/components/progress-circle/examples/a11y-label.tsx +1 -1
- package/src/components/progress-circle/examples/composition.tsx +2 -2
- package/src/components/progress-circle/examples/dashboard-ring.tsx +1 -6
- package/src/components/progress-circle/examples/max-scale.tsx +3 -3
- package/src/components/progress-circle/examples/states.tsx +5 -13
- package/src/components/radio/examples/notification-channel.tsx +3 -3
- package/src/components/radio/examples/plan-picker.tsx +0 -3
- package/src/components/radio/examples/settings-group.tsx +4 -4
- package/src/components/radio/examples/shipping-method.tsx +3 -3
- package/src/components/segmented-control/examples/canonical-composition.tsx +7 -7
- package/src/components/segmented-control/examples/composition.tsx +7 -7
- package/src/components/segmented-control/examples/features.tsx +3 -3
- package/src/components/segmented-control/examples/full-width.tsx +1 -1
- package/src/components/segmented-control/examples/pricing-toggle.tsx +0 -1
- package/src/components/segmented-control/examples/states.tsx +3 -3
- package/src/components/segmented-control/examples/view-mode.tsx +0 -1
- package/src/components/segmented-progress-bar/examples/size-ladder.tsx +1 -1
- package/src/components/select/COMPONENT.md +3 -3
- package/src/components/select/examples/01-country.tsx +2 -4
- package/src/components/select/examples/02-controlled.tsx +2 -4
- package/src/components/select/examples/03-groups.tsx +2 -4
- package/src/components/select/examples/04-full-width-form.tsx +4 -8
- package/src/components/select/examples/pattern-composition.tsx +1 -1
- package/src/components/select/examples/pattern-controlled.tsx +1 -1
- package/src/components/select/examples/pattern-features.tsx +1 -1
- package/src/components/select/examples/pattern-full-width.tsx +1 -1
- package/src/components/select/examples/pattern-native.tsx +1 -1
- package/src/components/select/examples/pattern-states.tsx +4 -4
- package/src/components/slider/COMPONENT.md +1 -1
- package/src/components/stepper/COMPONENT.md +1 -1
- package/src/components/stepper/examples/01-checkout-horizontal.tsx +1 -1
- package/src/components/stepper/examples/02-onboarding-vertical.tsx +1 -1
- package/src/components/stepper/examples/03-vertical-primitive-rail.tsx +1 -1
- package/src/components/stepper/examples/04-checkout-step-error.tsx +1 -1
- package/src/components/stepper/examples/05-horizontal-primitive.tsx +1 -1
- package/src/components/switch/COMPONENT.md +1 -1
- package/src/components/switch/examples/canonical-maximal.tsx +1 -1
- package/src/components/switch/examples/composition.tsx +1 -2
- package/src/components/switch/examples/controlled.tsx +1 -1
- package/src/components/switch/examples/full-width.tsx +1 -1
- package/src/components/switch/examples/scenario-billing-annual.tsx +1 -1
- package/src/components/switch/examples/scenario-feature-flag.tsx +1 -6
- package/src/components/switch/examples/scenario-settings-toggle.tsx +3 -3
- package/src/components/switch/examples/states.tsx +6 -6
- package/src/components/switch/examples/variants.tsx +2 -2
- package/src/components/tabs/COMPONENT.md +1 -1
- package/src/components/tabs/examples/01-settings-vertical-rail.tsx +1 -6
- package/src/components/tag/COMPONENT.md +1 -1
- package/src/components/tag/examples/01-filter-chips.tsx +1 -1
- package/src/components/tag/examples/02-removable-selected-values.tsx +1 -1
- package/src/components/tag/examples/03-status-metadata.tsx +3 -3
- package/src/components/tag/examples/controlled.tsx +1 -6
- package/src/components/tag/examples/removable.tsx +1 -1
- package/src/components/textarea/examples/01-support-ticket.tsx +0 -1
- package/src/components/textarea/examples/02-comment.tsx +1 -2
- package/src/components/textarea/examples/composition.tsx +2 -2
- package/src/components/textarea/examples/controlled.tsx +0 -1
- package/src/components/textarea/examples/features.tsx +3 -12
- package/src/components/textarea/examples/full-width.tsx +1 -1
- package/src/components/textarea/examples/states.tsx +4 -4
- package/src/components/textarea/examples/variants.tsx +2 -2
- package/src/components/tooltip/COMPONENT.md +0 -1
- package/src/components/tooltip/examples/canonical-icon-hint.tsx +1 -1
- package/src/components/tooltip/examples/composition.tsx +3 -9
- package/src/components/tooltip/examples/controlled.tsx +2 -2
- package/src/components/tooltip/examples/delay.tsx +1 -1
- package/src/components/tooltip/examples/long-content.tsx +2 -2
- package/src/components/tooltip/examples/side.tsx +4 -4
- package/src/components/tooltip/examples/states.tsx +2 -2
- package/src/components/tooltip/examples/surfaces.tsx +2 -2
- package/dist/components/dropdown/examples/inset.d.ts +0 -3
- package/dist/components/dropdown/examples/inset.d.ts.map +0 -1
- package/src/components/dropdown/examples/inset.tsx +0 -51
|
@@ -43,7 +43,7 @@ export default function CompositionExample() {
|
|
|
43
43
|
</Typography.Root>
|
|
44
44
|
</div>
|
|
45
45
|
</ProgressCircle.Root>
|
|
46
|
-
<ProgressCircle.Root value={65} max={100}
|
|
46
|
+
<ProgressCircle.Root value={65} max={100}>
|
|
47
47
|
<div
|
|
48
48
|
style={{
|
|
49
49
|
display: "flex",
|
|
@@ -52,7 +52,7 @@ export default function CompositionExample() {
|
|
|
52
52
|
gap: "var(--prime-sys-spacing-xs)",
|
|
53
53
|
}}
|
|
54
54
|
>
|
|
55
|
-
<IconDownload
|
|
55
|
+
<IconDownload aria-hidden />
|
|
56
56
|
<Typography.Root as="span" variant="body-compact" weight="medium">
|
|
57
57
|
65%
|
|
58
58
|
</Typography.Root>
|
|
@@ -19,12 +19,7 @@ export default function DashboardRingExample() {
|
|
|
19
19
|
paddingBlock: "var(--prime-sys-spacing-s)",
|
|
20
20
|
}}
|
|
21
21
|
>
|
|
22
|
-
<ProgressCircle.Root
|
|
23
|
-
value={68}
|
|
24
|
-
max={100}
|
|
25
|
-
size="m"
|
|
26
|
-
label="Quarter target, 68 percent complete"
|
|
27
|
-
>
|
|
22
|
+
<ProgressCircle.Root value={68} max={100} label="Quarter target, 68 percent complete">
|
|
28
23
|
<Typography.Root as="span" variant="body-small" weight="medium">
|
|
29
24
|
68%
|
|
30
25
|
</Typography.Root>
|
|
@@ -22,7 +22,7 @@ export default function MaxScaleExample() {
|
|
|
22
22
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
23
23
|
45 of 100
|
|
24
24
|
</Typography.Root>
|
|
25
|
-
<ProgressCircle.Root value={45} max={100}
|
|
25
|
+
<ProgressCircle.Root value={45} max={100}>
|
|
26
26
|
45%
|
|
27
27
|
</ProgressCircle.Root>
|
|
28
28
|
</div>
|
|
@@ -37,7 +37,7 @@ export default function MaxScaleExample() {
|
|
|
37
37
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
38
38
|
3 of 5 steps
|
|
39
39
|
</Typography.Root>
|
|
40
|
-
<ProgressCircle.Root value={3} max={5}
|
|
40
|
+
<ProgressCircle.Root value={3} max={5}>
|
|
41
41
|
3/5
|
|
42
42
|
</ProgressCircle.Root>
|
|
43
43
|
</div>
|
|
@@ -52,7 +52,7 @@ export default function MaxScaleExample() {
|
|
|
52
52
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
53
53
|
750 of 1000
|
|
54
54
|
</Typography.Root>
|
|
55
|
-
<ProgressCircle.Root value={750} max={1000}
|
|
55
|
+
<ProgressCircle.Root value={750} max={1000}>
|
|
56
56
|
75%
|
|
57
57
|
</ProgressCircle.Root>
|
|
58
58
|
</div>
|
|
@@ -26,9 +26,7 @@ export default function StatesExample() {
|
|
|
26
26
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
27
27
|
value 0
|
|
28
28
|
</Typography.Root>
|
|
29
|
-
<ProgressCircle.Root value={0}
|
|
30
|
-
0%
|
|
31
|
-
</ProgressCircle.Root>
|
|
29
|
+
<ProgressCircle.Root value={0}>0%</ProgressCircle.Root>
|
|
32
30
|
</div>
|
|
33
31
|
<div
|
|
34
32
|
style={{
|
|
@@ -41,9 +39,7 @@ export default function StatesExample() {
|
|
|
41
39
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
42
40
|
value 50
|
|
43
41
|
</Typography.Root>
|
|
44
|
-
<ProgressCircle.Root value={50}
|
|
45
|
-
50%
|
|
46
|
-
</ProgressCircle.Root>
|
|
42
|
+
<ProgressCircle.Root value={50}>50%</ProgressCircle.Root>
|
|
47
43
|
</div>
|
|
48
44
|
<div
|
|
49
45
|
style={{
|
|
@@ -56,9 +52,7 @@ export default function StatesExample() {
|
|
|
56
52
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
57
53
|
value 100
|
|
58
54
|
</Typography.Root>
|
|
59
|
-
<ProgressCircle.Root value={100}
|
|
60
|
-
100%
|
|
61
|
-
</ProgressCircle.Root>
|
|
55
|
+
<ProgressCircle.Root value={100}>100%</ProgressCircle.Root>
|
|
62
56
|
</div>
|
|
63
57
|
<div
|
|
64
58
|
style={{
|
|
@@ -71,9 +65,7 @@ export default function StatesExample() {
|
|
|
71
65
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
72
66
|
value −20 → 0
|
|
73
67
|
</Typography.Root>
|
|
74
|
-
<ProgressCircle.Root value={-20}
|
|
75
|
-
clamp
|
|
76
|
-
</ProgressCircle.Root>
|
|
68
|
+
<ProgressCircle.Root value={-20}>clamp</ProgressCircle.Root>
|
|
77
69
|
</div>
|
|
78
70
|
<div
|
|
79
71
|
style={{
|
|
@@ -86,7 +78,7 @@ export default function StatesExample() {
|
|
|
86
78
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
87
79
|
value 140, max 100
|
|
88
80
|
</Typography.Root>
|
|
89
|
-
<ProgressCircle.Root value={140} max={100}
|
|
81
|
+
<ProgressCircle.Root value={140} max={100}>
|
|
90
82
|
full
|
|
91
83
|
</ProgressCircle.Root>
|
|
92
84
|
</div>
|
|
@@ -11,15 +11,15 @@ export default function NotificationChannelExample() {
|
|
|
11
11
|
Choose one primary channel for account and login notices.
|
|
12
12
|
</p>
|
|
13
13
|
<div className={styles.columnTight}>
|
|
14
|
-
<Radio.Root name="security-alert-example" value="email" defaultChecked
|
|
14
|
+
<Radio.Root name="security-alert-example" value="email" defaultChecked>
|
|
15
15
|
<Radio.Label>Email</Radio.Label>
|
|
16
16
|
<Radio.Hint>Sent to your verified address immediately.</Radio.Hint>
|
|
17
17
|
</Radio.Root>
|
|
18
|
-
<Radio.Root name="security-alert-example" value="sms"
|
|
18
|
+
<Radio.Root name="security-alert-example" value="sms">
|
|
19
19
|
<Radio.Label>SMS</Radio.Label>
|
|
20
20
|
<Radio.Hint>Requires a phone number on file.</Radio.Hint>
|
|
21
21
|
</Radio.Root>
|
|
22
|
-
<Radio.Root name="security-alert-example" value="app"
|
|
22
|
+
<Radio.Root name="security-alert-example" value="app">
|
|
23
23
|
<Radio.Label>Mobile app only</Radio.Label>
|
|
24
24
|
<Radio.Hint>No email or SMS; push when the app is installed.</Radio.Hint>
|
|
25
25
|
</Radio.Root>
|
|
@@ -13,7 +13,6 @@ export default function PlanPickerExample() {
|
|
|
13
13
|
<Radio.Root
|
|
14
14
|
name="plan-example"
|
|
15
15
|
value="starter"
|
|
16
|
-
size="m"
|
|
17
16
|
checked={plan === "starter"}
|
|
18
17
|
onChange={(e) => {
|
|
19
18
|
if (e.currentTarget.checked) setPlan("starter");
|
|
@@ -25,7 +24,6 @@ export default function PlanPickerExample() {
|
|
|
25
24
|
<Radio.Root
|
|
26
25
|
name="plan-example"
|
|
27
26
|
value="growth"
|
|
28
|
-
size="m"
|
|
29
27
|
checked={plan === "growth"}
|
|
30
28
|
onChange={(e) => {
|
|
31
29
|
if (e.currentTarget.checked) setPlan("growth");
|
|
@@ -37,7 +35,6 @@ export default function PlanPickerExample() {
|
|
|
37
35
|
<Radio.Root
|
|
38
36
|
name="plan-example"
|
|
39
37
|
value="scale"
|
|
40
|
-
size="m"
|
|
41
38
|
checked={plan === "scale"}
|
|
42
39
|
onChange={(e) => {
|
|
43
40
|
if (e.currentTarget.checked) setPlan("scale");
|
|
@@ -8,19 +8,19 @@ export default function SettingsGroupExample() {
|
|
|
8
8
|
<fieldset className={styles.fieldsetPlain}>
|
|
9
9
|
<legend className={styles.legend}>Appearance</legend>
|
|
10
10
|
<div className={styles.columnTight}>
|
|
11
|
-
<Radio.Root name="theme-example" value="light" defaultChecked
|
|
11
|
+
<Radio.Root name="theme-example" value="light" defaultChecked>
|
|
12
12
|
<Radio.Label>Light</Radio.Label>
|
|
13
13
|
<Radio.Hint>Best for bright environments.</Radio.Hint>
|
|
14
14
|
</Radio.Root>
|
|
15
|
-
<Radio.Root name="theme-example" value="dark"
|
|
15
|
+
<Radio.Root name="theme-example" value="dark">
|
|
16
16
|
<Radio.Label>Dark</Radio.Label>
|
|
17
17
|
<Radio.Hint>Reduced glare in low light.</Radio.Hint>
|
|
18
18
|
</Radio.Root>
|
|
19
|
-
<Radio.Root name="theme-example" value="system"
|
|
19
|
+
<Radio.Root name="theme-example" value="system">
|
|
20
20
|
<Radio.Label>Match system</Radio.Label>
|
|
21
21
|
<Radio.Hint>Follows your OS light/dark schedule.</Radio.Hint>
|
|
22
22
|
</Radio.Root>
|
|
23
|
-
<Radio.Root name="theme-example" value="contrast"
|
|
23
|
+
<Radio.Root name="theme-example" value="contrast" disabled>
|
|
24
24
|
<Radio.Label>High contrast</Radio.Label>
|
|
25
25
|
<Radio.Hint>Available on Enterprise; contact sales to enable.</Radio.Hint>
|
|
26
26
|
</Radio.Root>
|
|
@@ -8,15 +8,15 @@ export default function ShippingMethodExample() {
|
|
|
8
8
|
<fieldset className={styles.fieldsetPlain}>
|
|
9
9
|
<legend className={styles.legend}>Shipping method</legend>
|
|
10
10
|
<div className={styles.columnTight}>
|
|
11
|
-
<Radio.Root name="shipping-example" value="standard" defaultChecked
|
|
11
|
+
<Radio.Root name="shipping-example" value="standard" defaultChecked>
|
|
12
12
|
<Radio.Label>Standard (5–7 business days)</Radio.Label>
|
|
13
13
|
<Radio.Hint>Free on orders over $50.</Radio.Hint>
|
|
14
14
|
</Radio.Root>
|
|
15
|
-
<Radio.Root name="shipping-example" value="express"
|
|
15
|
+
<Radio.Root name="shipping-example" value="express">
|
|
16
16
|
<Radio.Label>Express (2 business days)</Radio.Label>
|
|
17
17
|
<Radio.Hint>Flat rate; tracking included.</Radio.Hint>
|
|
18
18
|
</Radio.Root>
|
|
19
|
-
<Radio.Root name="shipping-example" value="pickup"
|
|
19
|
+
<Radio.Root name="shipping-example" value="pickup">
|
|
20
20
|
<Radio.Label>Pick up in store</Radio.Label>
|
|
21
21
|
<Radio.Hint>Ready next day at your selected location.</Radio.Hint>
|
|
22
22
|
</Radio.Root>
|
|
@@ -18,22 +18,22 @@ export default function CanonicalCompositionExample() {
|
|
|
18
18
|
alignItems: "flex-start",
|
|
19
19
|
}}
|
|
20
20
|
>
|
|
21
|
-
<SegmentedControl.Root defaultValue="light"
|
|
21
|
+
<SegmentedControl.Root defaultValue="light">
|
|
22
22
|
<SegmentedControl.Item value="light">
|
|
23
23
|
<SegmentedControl.Icon>
|
|
24
|
-
<Icon name="theme.light"
|
|
24
|
+
<Icon name="theme.light" />
|
|
25
25
|
</SegmentedControl.Icon>
|
|
26
26
|
Light
|
|
27
27
|
</SegmentedControl.Item>
|
|
28
28
|
<SegmentedControl.Item value="dark">
|
|
29
29
|
<SegmentedControl.Icon>
|
|
30
|
-
<Icon name="theme.dark"
|
|
30
|
+
<Icon name="theme.dark" />
|
|
31
31
|
</SegmentedControl.Icon>
|
|
32
32
|
Dark
|
|
33
33
|
</SegmentedControl.Item>
|
|
34
34
|
</SegmentedControl.Root>
|
|
35
35
|
|
|
36
|
-
<SegmentedControl.Root value={period} onValueChange={setPeriod}
|
|
36
|
+
<SegmentedControl.Root value={period} onValueChange={setPeriod}>
|
|
37
37
|
<SegmentedControl.Item value="day">Day</SegmentedControl.Item>
|
|
38
38
|
<SegmentedControl.Item value="week">Week</SegmentedControl.Item>
|
|
39
39
|
<SegmentedControl.Item value="month">Month</SegmentedControl.Item>
|
|
@@ -50,16 +50,16 @@ export default function CanonicalCompositionExample() {
|
|
|
50
50
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
51
51
|
Layout preview
|
|
52
52
|
</Typography.Root>
|
|
53
|
-
<SegmentedControl.Root defaultValue="grid"
|
|
53
|
+
<SegmentedControl.Root defaultValue="grid">
|
|
54
54
|
<SegmentedControl.Item value="feed">
|
|
55
55
|
<SegmentedControl.Icon>
|
|
56
|
-
<Icon name="nav.home"
|
|
56
|
+
<Icon name="nav.home" />
|
|
57
57
|
</SegmentedControl.Icon>
|
|
58
58
|
<span className={styles.visuallyHidden}>Feed</span>
|
|
59
59
|
</SegmentedControl.Item>
|
|
60
60
|
<SegmentedControl.Item value="grid">
|
|
61
61
|
<SegmentedControl.Icon>
|
|
62
|
-
<Icon name="nav.layoutGrid"
|
|
62
|
+
<Icon name="nav.layoutGrid" />
|
|
63
63
|
</SegmentedControl.Icon>
|
|
64
64
|
<span className={styles.visuallyHidden}>Grid</span>
|
|
65
65
|
</SegmentedControl.Item>
|
|
@@ -10,16 +10,16 @@ export default function SegmentedCompositionExample() {
|
|
|
10
10
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
11
11
|
Icon and label
|
|
12
12
|
</Typography.Root>
|
|
13
|
-
<SegmentedControl.Root defaultValue="light"
|
|
13
|
+
<SegmentedControl.Root defaultValue="light">
|
|
14
14
|
<SegmentedControl.Item value="light">
|
|
15
15
|
<SegmentedControl.Icon>
|
|
16
|
-
<Icon name="theme.light"
|
|
16
|
+
<Icon name="theme.light" />
|
|
17
17
|
</SegmentedControl.Icon>
|
|
18
18
|
Light
|
|
19
19
|
</SegmentedControl.Item>
|
|
20
20
|
<SegmentedControl.Item value="dark">
|
|
21
21
|
<SegmentedControl.Icon>
|
|
22
|
-
<Icon name="theme.dark"
|
|
22
|
+
<Icon name="theme.dark" />
|
|
23
23
|
</SegmentedControl.Icon>
|
|
24
24
|
Dark
|
|
25
25
|
</SegmentedControl.Item>
|
|
@@ -29,22 +29,22 @@ export default function SegmentedCompositionExample() {
|
|
|
29
29
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
30
30
|
Icon-only + visually hidden text
|
|
31
31
|
</Typography.Root>
|
|
32
|
-
<SegmentedControl.Root defaultValue="grid"
|
|
32
|
+
<SegmentedControl.Root defaultValue="grid">
|
|
33
33
|
<SegmentedControl.Item value="feed">
|
|
34
34
|
<SegmentedControl.Icon>
|
|
35
|
-
<Icon name="nav.home"
|
|
35
|
+
<Icon name="nav.home" />
|
|
36
36
|
</SegmentedControl.Icon>
|
|
37
37
|
<span className={styles.visuallyHidden}>Feed</span>
|
|
38
38
|
</SegmentedControl.Item>
|
|
39
39
|
<SegmentedControl.Item value="grid">
|
|
40
40
|
<SegmentedControl.Icon>
|
|
41
|
-
<Icon name="nav.layoutGrid"
|
|
41
|
+
<Icon name="nav.layoutGrid" />
|
|
42
42
|
</SegmentedControl.Icon>
|
|
43
43
|
<span className={styles.visuallyHidden}>Grid</span>
|
|
44
44
|
</SegmentedControl.Item>
|
|
45
45
|
<SegmentedControl.Item value="compact">
|
|
46
46
|
<SegmentedControl.Icon>
|
|
47
|
-
<Icon name="theme.light"
|
|
47
|
+
<Icon name="theme.light" />
|
|
48
48
|
</SegmentedControl.Icon>
|
|
49
49
|
<span className={styles.visuallyHidden}>Compact</span>
|
|
50
50
|
</SegmentedControl.Item>
|
|
@@ -10,7 +10,7 @@ export default function SegmentedFeaturesExample() {
|
|
|
10
10
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
11
11
|
Two segments
|
|
12
12
|
</Typography.Root>
|
|
13
|
-
<SegmentedControl.Root defaultValue="all"
|
|
13
|
+
<SegmentedControl.Root defaultValue="all">
|
|
14
14
|
<SegmentedControl.Item value="all">All tasks</SegmentedControl.Item>
|
|
15
15
|
<SegmentedControl.Item value="mine">Mine</SegmentedControl.Item>
|
|
16
16
|
</SegmentedControl.Root>
|
|
@@ -19,7 +19,7 @@ export default function SegmentedFeaturesExample() {
|
|
|
19
19
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
20
20
|
Three segments
|
|
21
21
|
</Typography.Root>
|
|
22
|
-
<SegmentedControl.Root defaultValue="day"
|
|
22
|
+
<SegmentedControl.Root defaultValue="day">
|
|
23
23
|
<SegmentedControl.Item value="day">Today</SegmentedControl.Item>
|
|
24
24
|
<SegmentedControl.Item value="week">Week</SegmentedControl.Item>
|
|
25
25
|
<SegmentedControl.Item value="month">Month</SegmentedControl.Item>
|
|
@@ -29,7 +29,7 @@ export default function SegmentedFeaturesExample() {
|
|
|
29
29
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
30
30
|
Four segments
|
|
31
31
|
</Typography.Root>
|
|
32
|
-
<SegmentedControl.Root defaultValue="q1"
|
|
32
|
+
<SegmentedControl.Root defaultValue="q1">
|
|
33
33
|
<SegmentedControl.Item value="q1">Q1</SegmentedControl.Item>
|
|
34
34
|
<SegmentedControl.Item value="q2">Q2</SegmentedControl.Item>
|
|
35
35
|
<SegmentedControl.Item value="q3">Q3</SegmentedControl.Item>
|
|
@@ -6,7 +6,7 @@ import styles from "./segmented-examples.module.css";
|
|
|
6
6
|
export default function SegmentedFullWidthExample() {
|
|
7
7
|
return (
|
|
8
8
|
<div className={styles.fullWidthShelf}>
|
|
9
|
-
<SegmentedControl.Root defaultValue="day"
|
|
9
|
+
<SegmentedControl.Root defaultValue="day" className={styles.fullWidthRoot}>
|
|
10
10
|
<SegmentedControl.Item value="day">Day</SegmentedControl.Item>
|
|
11
11
|
<SegmentedControl.Item value="week">Week</SegmentedControl.Item>
|
|
12
12
|
<SegmentedControl.Item value="month">Month</SegmentedControl.Item>
|
|
@@ -27,7 +27,6 @@ export default function PricingToggleExample() {
|
|
|
27
27
|
onValueChange={(v) => {
|
|
28
28
|
if (isBillingCycle(v)) setCycle(v);
|
|
29
29
|
}}
|
|
30
|
-
size="m"
|
|
31
30
|
>
|
|
32
31
|
<SegmentedControl.Item value="monthly">Monthly</SegmentedControl.Item>
|
|
33
32
|
<SegmentedControl.Item value="annual">Annual</SegmentedControl.Item>
|
|
@@ -10,7 +10,7 @@ export default function SegmentedStatesExample() {
|
|
|
10
10
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
11
11
|
Default
|
|
12
12
|
</Typography.Root>
|
|
13
|
-
<SegmentedControl.Root defaultValue="day"
|
|
13
|
+
<SegmentedControl.Root defaultValue="day">
|
|
14
14
|
<SegmentedControl.Item value="day">Day</SegmentedControl.Item>
|
|
15
15
|
<SegmentedControl.Item value="week">Week</SegmentedControl.Item>
|
|
16
16
|
<SegmentedControl.Item value="month">Month</SegmentedControl.Item>
|
|
@@ -20,7 +20,7 @@ export default function SegmentedStatesExample() {
|
|
|
20
20
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
21
21
|
One segment disabled
|
|
22
22
|
</Typography.Root>
|
|
23
|
-
<SegmentedControl.Root defaultValue="active"
|
|
23
|
+
<SegmentedControl.Root defaultValue="active">
|
|
24
24
|
<SegmentedControl.Item value="active">Active</SegmentedControl.Item>
|
|
25
25
|
<SegmentedControl.Item value="paused" disabled>
|
|
26
26
|
Paused
|
|
@@ -32,7 +32,7 @@ export default function SegmentedStatesExample() {
|
|
|
32
32
|
<Typography.Root as="span" variant="body-compact" tone="muted">
|
|
33
33
|
Entire control disabled
|
|
34
34
|
</Typography.Root>
|
|
35
|
-
<SegmentedControl.Root defaultValue="day" disabled
|
|
35
|
+
<SegmentedControl.Root defaultValue="day" disabled>
|
|
36
36
|
<SegmentedControl.Item value="day">Day</SegmentedControl.Item>
|
|
37
37
|
<SegmentedControl.Item value="week">Week</SegmentedControl.Item>
|
|
38
38
|
<SegmentedControl.Item value="month">Month</SegmentedControl.Item>
|
|
@@ -38,7 +38,6 @@ export default function ViewModeExample() {
|
|
|
38
38
|
onValueChange={(v) => {
|
|
39
39
|
if (isCatalogView(v)) setView(v);
|
|
40
40
|
}}
|
|
41
|
-
size="m"
|
|
42
41
|
>
|
|
43
42
|
<SegmentedControl.Item value="list">List</SegmentedControl.Item>
|
|
44
43
|
<SegmentedControl.Item value="grid">Grid</SegmentedControl.Item>
|
|
@@ -11,7 +11,7 @@ export default function SizeLadderExample() {
|
|
|
11
11
|
return (
|
|
12
12
|
<>
|
|
13
13
|
<SegmentedProgressBar.Root size="s" segments={segments} />
|
|
14
|
-
<SegmentedProgressBar.Root
|
|
14
|
+
<SegmentedProgressBar.Root segments={segments} />
|
|
15
15
|
<SegmentedProgressBar.Root size="l" segments={segments} />
|
|
16
16
|
<SegmentedProgressBar.Root size="xl" segments={segments} />
|
|
17
17
|
</>
|
|
@@ -38,10 +38,10 @@ export function Example() {
|
|
|
38
38
|
|
|
39
39
|
return (
|
|
40
40
|
<div>
|
|
41
|
-
<Label.Root id={labelId}
|
|
41
|
+
<Label.Root id={labelId}>
|
|
42
42
|
Department
|
|
43
43
|
</Label.Root>
|
|
44
|
-
<Select.Root
|
|
44
|
+
<Select.Root placeholder="Choose">
|
|
45
45
|
<Select.Trigger aria-labelledby={labelId}>
|
|
46
46
|
<Select.Value />
|
|
47
47
|
</Select.Trigger>
|
|
@@ -66,7 +66,7 @@ import { Select } from "prime-ui-kit";
|
|
|
66
66
|
|
|
67
67
|
export function NativeExample() {
|
|
68
68
|
return (
|
|
69
|
-
<Select.Root native
|
|
69
|
+
<Select.Root native placeholder="Choose">
|
|
70
70
|
<Select.Item value="a">Option A</Select.Item>
|
|
71
71
|
<Select.Item value="b">Option B</Select.Item>
|
|
72
72
|
</Select.Root>
|
|
@@ -16,10 +16,8 @@ export default function SelectExampleCountry() {
|
|
|
16
16
|
Select a country for tax and delivery estimates.
|
|
17
17
|
</Typography.Root>
|
|
18
18
|
<div className={styles.field}>
|
|
19
|
-
<Label.Root id={countryLabelId}
|
|
20
|
-
|
|
21
|
-
</Label.Root>
|
|
22
|
-
<Select.Root size="m" defaultValue="us" placeholder="Choose a country">
|
|
19
|
+
<Label.Root id={countryLabelId}>Country or region</Label.Root>
|
|
20
|
+
<Select.Root defaultValue="us" placeholder="Choose a country">
|
|
23
21
|
<Select.Trigger aria-labelledby={countryLabelId}>
|
|
24
22
|
<Select.Value />
|
|
25
23
|
</Select.Trigger>
|
|
@@ -13,10 +13,8 @@ export default function SelectExampleControlled() {
|
|
|
13
13
|
return (
|
|
14
14
|
<div className={styles.stack}>
|
|
15
15
|
<div className={styles.field}>
|
|
16
|
-
<Label.Root id={tierLabelId}
|
|
17
|
-
|
|
18
|
-
</Label.Root>
|
|
19
|
-
<Select.Root size="m" value={tier} onChange={setTier} placeholder="Choose a tier">
|
|
16
|
+
<Label.Root id={tierLabelId}>Subscription tier</Label.Root>
|
|
17
|
+
<Select.Root value={tier} onChange={setTier} placeholder="Choose a tier">
|
|
20
18
|
<Select.Trigger aria-labelledby={tierLabelId}>
|
|
21
19
|
<Select.Value />
|
|
22
20
|
</Select.Trigger>
|
|
@@ -11,10 +11,8 @@ export default function SelectExampleGroups() {
|
|
|
11
11
|
|
|
12
12
|
return (
|
|
13
13
|
<div className={styles.field}>
|
|
14
|
-
<Label.Root id={timezoneLabelId}
|
|
15
|
-
|
|
16
|
-
</Label.Root>
|
|
17
|
-
<Select.Root size="m" defaultValue="utc" placeholder="Select time zone">
|
|
14
|
+
<Label.Root id={timezoneLabelId}>Time zone</Label.Root>
|
|
15
|
+
<Select.Root defaultValue="utc" placeholder="Select time zone">
|
|
18
16
|
<Select.Trigger aria-labelledby={timezoneLabelId}>
|
|
19
17
|
<Select.Value />
|
|
20
18
|
</Select.Trigger>
|
|
@@ -17,10 +17,8 @@ export default function SelectExampleFullWidthForm() {
|
|
|
17
17
|
Delivery details
|
|
18
18
|
</Typography.Root>
|
|
19
19
|
<div className={styles.fieldFullBleed}>
|
|
20
|
-
<Label.Root id={nameLabelId}
|
|
21
|
-
|
|
22
|
-
</Label.Root>
|
|
23
|
-
<Select.Root size="m" placeholder="How should we address the package?">
|
|
20
|
+
<Label.Root id={nameLabelId}>Full name</Label.Root>
|
|
21
|
+
<Select.Root placeholder="How should we address the package?">
|
|
24
22
|
<Select.Trigger aria-labelledby={nameLabelId}>
|
|
25
23
|
<Select.Value />
|
|
26
24
|
</Select.Trigger>
|
|
@@ -32,10 +30,8 @@ export default function SelectExampleFullWidthForm() {
|
|
|
32
30
|
</Select.Root>
|
|
33
31
|
</div>
|
|
34
32
|
<div className={styles.fieldFullBleed}>
|
|
35
|
-
<Label.Root id={methodLabelId}
|
|
36
|
-
|
|
37
|
-
</Label.Root>
|
|
38
|
-
<Select.Root size="m" defaultValue="standard" placeholder="Choose shipping">
|
|
33
|
+
<Label.Root id={methodLabelId}>Shipping method</Label.Root>
|
|
34
|
+
<Select.Root defaultValue="standard" placeholder="Choose shipping">
|
|
39
35
|
<Select.Trigger aria-labelledby={methodLabelId}>
|
|
40
36
|
<Select.Value />
|
|
41
37
|
</Select.Trigger>
|
|
@@ -7,7 +7,7 @@ import styles from "./examples.module.css";
|
|
|
7
7
|
export default function SelectPatternCompositionExample() {
|
|
8
8
|
return (
|
|
9
9
|
<div className={`${styles.stack} ${styles.stackNarrow}`}>
|
|
10
|
-
<Select.Root
|
|
10
|
+
<Select.Root defaultValue="eur" placeholder="Report currency">
|
|
11
11
|
<Select.Trigger>
|
|
12
12
|
<Select.TriggerIcon>
|
|
13
13
|
<Icon name="nav.layoutGrid" size="s" tone="subtle" />
|
|
@@ -11,7 +11,7 @@ export default function SelectPatternControlledExample() {
|
|
|
11
11
|
|
|
12
12
|
return (
|
|
13
13
|
<div className={`${styles.stack} ${styles.stackNarrow}`}>
|
|
14
|
-
<Select.Root
|
|
14
|
+
<Select.Root value={tier} onChange={setTier} placeholder="Tier">
|
|
15
15
|
<Select.Trigger aria-label="Subscription tier">
|
|
16
16
|
<Select.Value />
|
|
17
17
|
</Select.Trigger>
|
|
@@ -5,7 +5,7 @@ const ZONES = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "K"] as const;
|
|
|
5
5
|
/** Groups, labels, separator, disabled item, long scrollable list; mirrors `playground/snippets/select/features.tsx`. */
|
|
6
6
|
export default function SelectPatternFeaturesExample() {
|
|
7
7
|
return (
|
|
8
|
-
<Select.Root
|
|
8
|
+
<Select.Root placeholder="Zones and groups">
|
|
9
9
|
<Select.Trigger>
|
|
10
10
|
<Select.Value />
|
|
11
11
|
</Select.Trigger>
|
|
@@ -6,7 +6,7 @@ import styles from "./examples.module.css";
|
|
|
6
6
|
export default function SelectPatternFullWidthExample() {
|
|
7
7
|
return (
|
|
8
8
|
<div className={styles.fullWidthShell}>
|
|
9
|
-
<Select.Root
|
|
9
|
+
<Select.Root defaultValue="ship" placeholder="Shipping method">
|
|
10
10
|
<Select.Trigger>
|
|
11
11
|
<Select.Value />
|
|
12
12
|
</Select.Trigger>
|
|
@@ -3,7 +3,7 @@ import { Select } from "@/components/select/Select";
|
|
|
3
3
|
/** Native `<select>` via `native`; optional `Select.Content` wrapper; mirrors `playground/snippets/select/native.tsx`. */
|
|
4
4
|
export default function SelectPatternNativeExample() {
|
|
5
5
|
return (
|
|
6
|
-
<Select.Root native
|
|
6
|
+
<Select.Root native placeholder="Mode">
|
|
7
7
|
<Select.Content>
|
|
8
8
|
<Select.Item value="auto">Auto</Select.Item>
|
|
9
9
|
<Select.Item value="light">Light</Select.Item>
|
|
@@ -6,7 +6,7 @@ import styles from "./examples.module.css";
|
|
|
6
6
|
export default function SelectPatternStatesExample() {
|
|
7
7
|
return (
|
|
8
8
|
<div className={`${styles.stack} ${styles.stackNarrow}`}>
|
|
9
|
-
<Select.Root
|
|
9
|
+
<Select.Root placeholder="Placeholder only">
|
|
10
10
|
<Select.Trigger>
|
|
11
11
|
<Select.Value />
|
|
12
12
|
</Select.Trigger>
|
|
@@ -15,7 +15,7 @@ export default function SelectPatternStatesExample() {
|
|
|
15
15
|
<Select.Item value="b">Option B</Select.Item>
|
|
16
16
|
</Select.Content>
|
|
17
17
|
</Select.Root>
|
|
18
|
-
<Select.Root
|
|
18
|
+
<Select.Root defaultValue="b" placeholder="With default value">
|
|
19
19
|
<Select.Trigger>
|
|
20
20
|
<Select.Value />
|
|
21
21
|
</Select.Trigger>
|
|
@@ -24,7 +24,7 @@ export default function SelectPatternStatesExample() {
|
|
|
24
24
|
<Select.Item value="b">Option B</Select.Item>
|
|
25
25
|
</Select.Content>
|
|
26
26
|
</Select.Root>
|
|
27
|
-
<Select.Root
|
|
27
|
+
<Select.Root defaultValue="on" disabled placeholder="Disabled">
|
|
28
28
|
<Select.Trigger>
|
|
29
29
|
<Select.Value />
|
|
30
30
|
</Select.Trigger>
|
|
@@ -33,7 +33,7 @@ export default function SelectPatternStatesExample() {
|
|
|
33
33
|
<Select.Item value="on">On</Select.Item>
|
|
34
34
|
</Select.Content>
|
|
35
35
|
</Select.Root>
|
|
36
|
-
<Select.Root
|
|
36
|
+
<Select.Root hasError placeholder="Validation error">
|
|
37
37
|
<Select.Trigger>
|
|
38
38
|
<Select.Value />
|
|
39
39
|
</Select.Trigger>
|
|
@@ -30,7 +30,7 @@ import { Slider } from "prime-ui-kit";
|
|
|
30
30
|
|
|
31
31
|
export function Example() {
|
|
32
32
|
return (
|
|
33
|
-
<Slider.Root label="Output level" min={0} max={100} step={1} defaultValue={50}
|
|
33
|
+
<Slider.Root label="Output level" min={0} max={100} step={1} defaultValue={50} />
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
36
|
```
|
|
@@ -56,7 +56,7 @@ import { Stepper } from "prime-ui-kit";
|
|
|
56
56
|
|
|
57
57
|
export function Example() {
|
|
58
58
|
return (
|
|
59
|
-
<Stepper.Root
|
|
59
|
+
<Stepper.Root orientation="vertical">
|
|
60
60
|
<Stepper.Step type="button">
|
|
61
61
|
<Stepper.Indicator />
|
|
62
62
|
<Stepper.Content title="Account" description="Sign in or create a profile" />
|
|
@@ -11,7 +11,7 @@ export default function StepperExampleCheckoutHorizontal() {
|
|
|
11
11
|
|
|
12
12
|
return (
|
|
13
13
|
<div className={styles.stack}>
|
|
14
|
-
<Stepper.Root orientation="horizontal" currentStep={step}
|
|
14
|
+
<Stepper.Root orientation="horizontal" currentStep={step} className={styles.rail}>
|
|
15
15
|
<Stepper.Step type="button" onClick={() => setStep(0)}>
|
|
16
16
|
<Stepper.Indicator />
|
|
17
17
|
<Stepper.Content title="Cart" description="Review items" />
|
|
@@ -12,7 +12,7 @@ export default function StepperExampleOnboardingVertical() {
|
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
14
|
<div className={styles.stack}>
|
|
15
|
-
<Stepper.Root currentStep={step} orientation="vertical"
|
|
15
|
+
<Stepper.Root currentStep={step} orientation="vertical" className={styles.rail}>
|
|
16
16
|
<Stepper.Step type="button" onClick={() => setStep(0)}>
|
|
17
17
|
<Stepper.Indicator />
|
|
18
18
|
<Stepper.Content title="Welcome" description="Product tour and goals" />
|
|
@@ -18,7 +18,7 @@ export default function StepperExampleVerticalPrimitiveRail() {
|
|
|
18
18
|
const [active, setActive] = React.useState(1);
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
|
-
<VerticalStepper.Root
|
|
21
|
+
<VerticalStepper.Root className={styles.rail}>
|
|
22
22
|
{STEPS.map((label, idx) => (
|
|
23
23
|
<VerticalStepper.Item
|
|
24
24
|
key={label}
|