@pontive/pontkit-core 1.40.0 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +129 -195
- package/catalog.json +31 -2378
- package/dist/{pont2/core → core}/controllers/action.d.ts +10 -10
- package/dist/{pont2/core → core}/controllers/copy.d.ts +3 -3
- package/dist/{pont2/core → core}/design-mode.d.ts +3 -3
- package/dist/{pont2/core → core}/events.d.ts +4 -4
- package/dist/core/format.d.ts +46 -0
- package/dist/{pont2/core → core}/host-element.d.ts +8 -8
- package/dist/{pont2/core → core}/icons.d.ts +5 -0
- package/dist/{pont2/core → core}/ids.d.ts +1 -1
- package/dist/{pont2/core → core}/index.d.ts +1 -0
- package/dist/core/messages.d.ts +197 -0
- package/dist/{pont2/core → core}/names.d.ts +23 -23
- package/dist/{pont2/core → core}/popup/anchored.d.ts +6 -6
- package/dist/{pont2/core → core}/popup/popup-content.d.ts +2 -2
- package/dist/{pont2/core → core}/popup/popup-root.d.ts +5 -5
- package/dist/{pont2/core → core}/url.d.ts +2 -2
- package/dist/{pont2/custom-elements.json → custom-elements.json} +24665 -18922
- package/dist/{pont2/globals.css → globals.css} +14 -14
- package/dist/index.d.ts +51 -12
- package/dist/index.mjs +11138 -40562
- package/dist/index.mjs.map +1 -1
- package/dist/kit/account-menu/account-menu.d.ts +115 -0
- package/dist/kit/account-settings/account-settings.d.ts +157 -0
- package/dist/kit/account-settings/profile.d.ts +74 -0
- package/dist/{pont2/kit → kit}/alert/alert.d.ts +12 -12
- package/dist/kit/aliases.d.ts +33 -0
- package/dist/{pont2/kit → kit}/auth-button/auth-button.d.ts +23 -23
- package/dist/{pont2/kit → kit}/auth-button/providers.d.ts +2 -2
- package/dist/{pont2/kit → kit}/auth-field/auth-field.d.ts +24 -24
- package/dist/{pont2/kit → kit}/auth-field/password-field.d.ts +15 -15
- package/dist/{pont2/kit → kit}/avatar/avatar.d.ts +9 -9
- package/dist/{pont2/kit → kit}/badge-selector/badge-selector.d.ts +5 -5
- package/dist/{pont2/kit → kit}/block/block.d.ts +15 -15
- package/dist/{pont2/kit → kit}/block/branding.d.ts +5 -5
- package/dist/{pont2/kit → kit}/consent/consent.d.ts +7 -7
- package/dist/{pont2/kit → kit}/container/container.d.ts +6 -6
- package/dist/{pont2/kit → kit}/countdown/countdown.d.ts +10 -10
- package/dist/{pont2/kit → kit}/data-table/data-table.d.ts +11 -11
- package/dist/{pont2/kit → kit}/divider/divider.d.ts +4 -4
- package/dist/{pont2/kit → kit}/edit-identifier/edit-identifier.d.ts +8 -8
- package/dist/{pont2/kit → kit}/flow-widget/flow-widget.d.ts +27 -27
- package/dist/kit/flow-widget/preview.d.ts +46 -0
- package/dist/{pont2/kit → kit}/flow-widget/specimens.d.ts +2 -2
- package/dist/{pont2/kit → kit}/gap/gap.d.ts +6 -6
- package/dist/{pont2/kit → kit}/header/header.d.ts +9 -9
- package/dist/{pont2/kit → kit}/index.d.ts +4 -0
- package/dist/{pont2/kit → kit}/input-otp/input-otp.d.ts +14 -14
- package/dist/{pont2/kit → kit}/layout/flow-error.d.ts +1 -1
- package/dist/{pont2/kit → kit}/layout/layout.d.ts +24 -24
- package/dist/{pont2/kit → kit}/link/link.d.ts +15 -15
- package/dist/{pont2/kit → kit}/logo/logo.d.ts +7 -7
- package/dist/kit/member-management/errors.d.ts +60 -0
- package/dist/kit/member-management/member-management.d.ts +237 -0
- package/dist/kit/member-management/roles.d.ts +42 -0
- package/dist/{pont2/kit → kit}/multi-email-input/multi-email-input.d.ts +6 -6
- package/dist/{pont2/kit → kit}/multi-select-filter/multi-select-filter.d.ts +5 -5
- package/dist/kit/organization-switcher/organization-switcher.d.ts +111 -0
- package/dist/{pont2/kit → kit}/otp-field/otp-field.d.ts +17 -17
- package/dist/{pont2/kit → kit}/otp-field/otp-resend.d.ts +10 -10
- package/dist/{pont2/kit → kit}/pagination/pagination.d.ts +7 -7
- package/dist/kit/provider/account-client.d.ts +355 -0
- package/dist/kit/provider/account-controller.d.ts +47 -0
- package/dist/kit/provider/account-user.d.ts +16 -0
- package/dist/{pont2/kit → kit}/provider/contexts.d.ts +7 -7
- package/dist/{pont2/kit → kit}/provider/provider.d.ts +70 -38
- package/dist/{pont2/kit → kit}/provider/redirect.d.ts +3 -3
- package/dist/{pont2/kit → kit}/provider/runtime-config.d.ts +1 -1
- package/dist/{pont2/kit → kit}/provider/sdk.d.ts +16 -2
- package/dist/{pont2/kit → kit}/provider/signed-in.d.ts +15 -15
- package/dist/{pont2/kit → kit}/provider/widget-messages.d.ts +1 -1
- package/dist/{pont2/kit → kit}/provider-field/provider-field.d.ts +13 -13
- package/dist/{pont2/kit → kit}/qr-code/qr-code.d.ts +13 -13
- package/dist/{pont2/kit → kit}/recovery-codes/recovery-codes.d.ts +13 -13
- package/dist/{pont2/kit → kit}/scope-list/scope-list.d.ts +8 -8
- package/dist/{pont2/kit → kit}/secret/secret.d.ts +11 -11
- package/dist/{pont2/kit → kit}/typography/typography.d.ts +15 -15
- package/dist/{pont2/kit → kit}/watermark/watermark.d.ts +8 -8
- package/dist/{pont2/primitives → primitives}/alert/alert.d.ts +9 -9
- package/dist/{pont2/primitives → primitives}/alert-dialog/alert-dialog.d.ts +40 -40
- package/dist/{pont2/primitives → primitives}/avatar/avatar.d.ts +16 -16
- package/dist/{pont2/primitives → primitives}/badge/badge.d.ts +4 -4
- package/dist/{pont2/primitives → primitives}/button/button.d.ts +10 -10
- package/dist/{pont2/primitives → primitives}/button-group/button-group.d.ts +9 -9
- package/dist/{pont2/primitives → primitives}/card/card.d.ts +17 -17
- package/dist/{pont2/primitives → primitives}/checkbox/checkbox.d.ts +4 -4
- package/dist/{pont2/primitives → primitives}/combobox/combobox.d.ts +35 -35
- package/dist/{pont2/primitives → primitives}/dialog/dialog.d.ts +37 -37
- package/dist/{pont2/primitives → primitives}/drawer/drawer.d.ts +31 -31
- package/dist/{pont2/primitives → primitives}/dropdown-menu/dropdown-menu.d.ts +47 -47
- package/dist/{pont2/primitives → primitives}/empty/empty.d.ts +12 -12
- package/dist/{pont2/primitives → primitives}/field/field.d.ts +31 -31
- package/dist/{pont2/primitives → primitives}/hover-card/hover-card.d.ts +13 -13
- package/dist/{pont2/primitives → primitives}/input/input.d.ts +5 -5
- package/dist/{pont2/primitives → primitives}/input-group/input-group.d.ts +20 -20
- package/dist/{pont2/primitives → primitives}/input-otp/input-otp.d.ts +11 -11
- package/dist/{pont2/primitives → primitives}/item/item.d.ts +22 -22
- package/dist/{pont2/primitives → primitives}/kbd/kbd.d.ts +6 -6
- package/dist/{pont2/primitives → primitives}/label/label.d.ts +5 -5
- package/dist/{pont2/primitives → primitives}/native-select/native-select.d.ts +7 -7
- package/dist/{pont2/primitives → primitives}/pagination/pagination.d.ts +25 -25
- package/dist/{pont2/primitives → primitives}/popover/popover.d.ts +25 -25
- package/dist/{pont2/primitives → primitives}/progress/progress.d.ts +9 -9
- package/dist/{pont2/primitives → primitives}/radio-group/radio-group.d.ts +7 -7
- package/dist/{pont2/primitives → primitives}/select/select.d.ts +26 -26
- package/dist/{pont2/primitives → primitives}/separator/separator.d.ts +4 -4
- package/dist/{pont2/primitives → primitives}/sheet/sheet.d.ts +31 -31
- package/dist/{pont2/primitives → primitives}/skeleton/skeleton.d.ts +2 -2
- package/dist/{pont2/primitives → primitives}/slider/slider-math.d.ts +1 -1
- package/dist/{pont2/primitives → primitives}/slider/slider.d.ts +4 -4
- package/dist/{pont2/primitives → primitives}/sonner/sonner.d.ts +7 -7
- package/dist/{pont2/primitives → primitives}/sonner/toast-store.d.ts +1 -1
- package/dist/{pont2/primitives → primitives}/spinner/spinner.d.ts +5 -5
- package/dist/{pont2/primitives → primitives}/switch/switch.d.ts +4 -4
- package/dist/{pont2/primitives → primitives}/table/table.d.ts +9 -9
- package/dist/{pont2/primitives → primitives}/tabs/tabs.d.ts +13 -13
- package/dist/{pont2/primitives → primitives}/textarea/textarea.d.ts +5 -5
- package/dist/{pont2/primitives → primitives}/tooltip/tooltip.d.ts +13 -13
- package/dist/styles.css +5928 -29700
- package/dist/{pont2/theme → theme}/fonts.d.ts +6 -4
- package/dist/{pont2/theme → theme}/golden.d.ts +1 -1
- package/dist/{pont2/theme → theme}/index.d.ts +3 -3
- package/dist/theme/scopes.d.ts +21 -0
- package/dist/{pont2/theme → theme}/shadcn.d.ts +1 -1
- package/dist/{pont2/theme → theme}/types.d.ts +21 -10
- package/dist/{pont2/theme → theme}/value.d.ts +1 -1
- package/dist/{pont2/theme → theme}/vocabulary.d.ts +5 -5
- package/dist/theme-golden.json +1493 -0
- package/dist/theme.mjs +552 -0
- package/dist/theme.mjs.map +1 -0
- package/dist/{pont2/tokens.json → tokens.json} +3633 -2311
- package/package.json +28 -65
- package/custom-elements.json +0 -1
- package/dist/assets/icons/account.icon.d.ts +0 -1
- package/dist/assets/icons/badge-check-icon.d.ts +0 -1
- package/dist/assets/icons/burger-menu.icon.d.ts +0 -1
- package/dist/assets/icons/check.d.ts +0 -1
- package/dist/assets/icons/clock-icon.d.ts +0 -1
- package/dist/assets/icons/close.icon.d.ts +0 -1
- package/dist/assets/icons/copy.icon.d.ts +0 -1
- package/dist/assets/icons/edit.icon.d.ts +0 -1
- package/dist/assets/icons/email.d.ts +0 -1
- package/dist/assets/icons/image-icon.d.ts +0 -1
- package/dist/assets/icons/index.d.ts +0 -20
- package/dist/assets/icons/link-icon.d.ts +0 -1
- package/dist/assets/icons/location.icon.d.ts +0 -1
- package/dist/assets/icons/members-icon.d.ts +0 -1
- package/dist/assets/icons/personal-info.icon.d.ts +0 -1
- package/dist/assets/icons/plusIcon.d.ts +0 -1
- package/dist/assets/icons/refresh-cw-icon.d.ts +0 -1
- package/dist/assets/icons/search-icon.d.ts +0 -1
- package/dist/assets/icons/triangle-alert.d.ts +0 -1
- package/dist/assets/icons/url.icon.d.ts +0 -1
- package/dist/assets/icons/user-round-check-icon.d.ts +0 -1
- package/dist/components/index.d.ts +0 -4
- package/dist/components/renderers/auth/button/_passkey-button.d.ts +0 -81
- package/dist/components/renderers/auth/button/_provider-button.d.ts +0 -103
- package/dist/components/renderers/auth/button/_submit-button.d.ts +0 -71
- package/dist/components/renderers/auth/button/button.defs.d.ts +0 -21
- package/dist/components/renderers/auth/button/button.stories/passkey-button.stories.d.ts +0 -12
- package/dist/components/renderers/auth/button/button.stories/provider-button.stories.d.ts +0 -24
- package/dist/components/renderers/auth/button/button.stories/submit-button.stories.d.ts +0 -12
- package/dist/components/renderers/auth/button/button.types.d.ts +0 -54
- package/dist/components/renderers/auth/button/index.d.ts +0 -11
- package/dist/components/renderers/auth/edit-identifier/_edit-identifier.d.ts +0 -33
- package/dist/components/renderers/auth/edit-identifier/edit-identifier.defs.d.ts +0 -2
- package/dist/components/renderers/auth/edit-identifier/edit-identifier.types.d.ts +0 -7
- package/dist/components/renderers/auth/edit-identifier/index.d.ts +0 -7
- package/dist/components/renderers/auth/field/_confirm-field.d.ts +0 -168
- package/dist/components/renderers/auth/field/_email-field.d.ts +0 -160
- package/dist/components/renderers/auth/field/_identifier-field.d.ts +0 -171
- package/dist/components/renderers/auth/field/_name-field.d.ts +0 -186
- package/dist/components/renderers/auth/field/_password-field.d.ts +0 -230
- package/dist/components/renderers/auth/field/_phone-field.d.ts +0 -160
- package/dist/components/renderers/auth/field/_username-field.d.ts +0 -186
- package/dist/components/renderers/auth/field/field.defs.d.ts +0 -24
- package/dist/components/renderers/auth/field/field.stories/confirm-field.stories.d.ts +0 -14
- package/dist/components/renderers/auth/field/field.stories/email-field.stories.d.ts +0 -13
- package/dist/components/renderers/auth/field/field.stories/helpers.d.ts +0 -2
- package/dist/components/renderers/auth/field/field.stories/identifier-field.stories.d.ts +0 -25
- package/dist/components/renderers/auth/field/field.stories/name-field.stories.d.ts +0 -14
- package/dist/components/renderers/auth/field/field.stories/password-field.stories.d.ts +0 -15
- package/dist/components/renderers/auth/field/field.stories/phone-field.stories.d.ts +0 -13
- package/dist/components/renderers/auth/field/field.stories/username-field.stories.d.ts +0 -13
- package/dist/components/renderers/auth/field/field.types.d.ts +0 -120
- package/dist/components/renderers/auth/field/index.d.ts +0 -19
- package/dist/components/renderers/auth/form/_form.d.ts +0 -76
- package/dist/components/renderers/auth/form/form.defs.d.ts +0 -7
- package/dist/components/renderers/auth/form/form.stories.d.ts +0 -7
- package/dist/components/renderers/auth/form/form.types.d.ts +0 -19
- package/dist/components/renderers/auth/form/index.d.ts +0 -7
- package/dist/components/renderers/auth/index.d.ts +0 -10
- package/dist/components/renderers/auth/otp/_otp-resend.d.ts +0 -46
- package/dist/components/renderers/auth/otp/_otp.d.ts +0 -58
- package/dist/components/renderers/auth/otp/index.d.ts +0 -9
- package/dist/components/renderers/auth/otp/otp.defs.d.ts +0 -2
- package/dist/components/renderers/auth/otp/otp.stories.d.ts +0 -5
- package/dist/components/renderers/auth/otp/otp.types.d.ts +0 -25
- package/dist/components/renderers/auth/provider-field/_provider-field.d.ts +0 -124
- package/dist/components/renderers/auth/provider-field/index.d.ts +0 -7
- package/dist/components/renderers/auth/provider-field/provider-field.stories.d.ts +0 -25
- package/dist/components/renderers/auth/provider-field/provider-field.types.d.ts +0 -17
- package/dist/components/renderers/auth/qr-code/_qr-code.d.ts +0 -36
- package/dist/components/renderers/auth/qr-code/index.d.ts +0 -7
- package/dist/components/renderers/auth/qr-code/qr-code.defs.d.ts +0 -2
- package/dist/components/renderers/auth/qr-code/qr-code.stories.d.ts +0 -5
- package/dist/components/renderers/auth/qr-code/qr-code.types.d.ts +0 -11
- package/dist/components/renderers/auth/recovery-codes/_recovery-codes.d.ts +0 -31
- package/dist/components/renderers/auth/recovery-codes/index.d.ts +0 -1
- package/dist/components/renderers/auth/recovery-codes/recovery-codes.defs.d.ts +0 -2
- package/dist/components/renderers/auth/recovery-codes/recovery-codes.stories.d.ts +0 -5
- package/dist/components/renderers/auth/recovery-codes/recovery-codes.types.d.ts +0 -11
- package/dist/components/renderers/auth/scope-list/_scope-list.d.ts +0 -44
- package/dist/components/renderers/auth/scope-list/index.d.ts +0 -7
- package/dist/components/renderers/auth/scope-list/scope-list.defs.d.ts +0 -2
- package/dist/components/renderers/auth/scope-list/scope-list.stories.d.ts +0 -8
- package/dist/components/renderers/auth/scope-list/scope-list.types.d.ts +0 -20
- package/dist/components/renderers/auth/scope-list/scope-list.value.d.ts +0 -14
- package/dist/components/renderers/auth/secret/_secret.d.ts +0 -30
- package/dist/components/renderers/auth/secret/index.d.ts +0 -7
- package/dist/components/renderers/auth/secret/secret.defs.d.ts +0 -2
- package/dist/components/renderers/auth/secret/secret.stories.d.ts +0 -5
- package/dist/components/renderers/auth/secret/secret.types.d.ts +0 -12
- package/dist/components/renderers/feedback/alert/_alert.d.ts +0 -61
- package/dist/components/renderers/feedback/alert/alert.defs.d.ts +0 -7
- package/dist/components/renderers/feedback/alert/alert.stories.d.ts +0 -11
- package/dist/components/renderers/feedback/alert/alert.types.d.ts +0 -14
- package/dist/components/renderers/feedback/alert/index.d.ts +0 -7
- package/dist/components/renderers/feedback/countdown/_countdown.d.ts +0 -45
- package/dist/components/renderers/feedback/countdown/countdown.defs.d.ts +0 -9
- package/dist/components/renderers/feedback/countdown/countdown.stories.d.ts +0 -7
- package/dist/components/renderers/feedback/countdown/index.d.ts +0 -1
- package/dist/components/renderers/feedback/index.d.ts +0 -2
- package/dist/components/renderers/index.d.ts +0 -6
- package/dist/components/renderers/layout/block/_block.d.ts +0 -41
- package/dist/components/renderers/layout/block/block.stories.d.ts +0 -8
- package/dist/components/renderers/layout/block/block.types.d.ts +0 -10
- package/dist/components/renderers/layout/block/index.d.ts +0 -7
- package/dist/components/renderers/layout/container/_container.d.ts +0 -24
- package/dist/components/renderers/layout/container/container.stories.d.ts +0 -19
- package/dist/components/renderers/layout/container/container.types.d.ts +0 -7
- package/dist/components/renderers/layout/container/index.d.ts +0 -7
- package/dist/components/renderers/layout/divider/_divider.d.ts +0 -27
- package/dist/components/renderers/layout/divider/divider.stories.d.ts +0 -6
- package/dist/components/renderers/layout/divider/divider.types.d.ts +0 -6
- package/dist/components/renderers/layout/divider/index.d.ts +0 -7
- package/dist/components/renderers/layout/gap/_gap.d.ts +0 -9
- package/dist/components/renderers/layout/gap/gap.stories.d.ts +0 -7
- package/dist/components/renderers/layout/gap/gap.types.d.ts +0 -6
- package/dist/components/renderers/layout/gap/index.d.ts +0 -7
- package/dist/components/renderers/layout/header/_header.d.ts +0 -28
- package/dist/components/renderers/layout/header/header.stories.d.ts +0 -7
- package/dist/components/renderers/layout/header/header.types.d.ts +0 -9
- package/dist/components/renderers/layout/header/index.d.ts +0 -7
- package/dist/components/renderers/layout/index.d.ts +0 -5
- package/dist/components/renderers/navigation/external-link/_external-link.d.ts +0 -26
- package/dist/components/renderers/navigation/external-link/external-link.defs.d.ts +0 -2
- package/dist/components/renderers/navigation/external-link/external-link.href.d.ts +0 -9
- package/dist/components/renderers/navigation/external-link/external-link.stories.d.ts +0 -7
- package/dist/components/renderers/navigation/external-link/external-link.types.d.ts +0 -5
- package/dist/components/renderers/navigation/external-link/index.d.ts +0 -7
- package/dist/components/renderers/navigation/index.d.ts +0 -2
- package/dist/components/renderers/navigation/link/_link.d.ts +0 -76
- package/dist/components/renderers/navigation/link/index.d.ts +0 -7
- package/dist/components/renderers/navigation/link/link.defs.d.ts +0 -3
- package/dist/components/renderers/navigation/link/link.stories.d.ts +0 -9
- package/dist/components/renderers/navigation/link/link.types.d.ts +0 -12
- package/dist/components/renderers/typography/index.d.ts +0 -2
- package/dist/components/renderers/typography/subtitle/_subtitle.d.ts +0 -23
- package/dist/components/renderers/typography/subtitle/index.d.ts +0 -1
- package/dist/components/renderers/typography/subtitle/subtitle.defs.d.ts +0 -7
- package/dist/components/renderers/typography/subtitle/subtitle.stories.d.ts +0 -9
- package/dist/components/renderers/typography/title/_title.d.ts +0 -28
- package/dist/components/renderers/typography/title/index.d.ts +0 -1
- package/dist/components/renderers/typography/title/title.defs.d.ts +0 -10
- package/dist/components/renderers/typography/title/title.stories.d.ts +0 -10
- package/dist/components/renderers/visuals/index.d.ts +0 -2
- package/dist/components/renderers/visuals/logo/_logo.d.ts +0 -27
- package/dist/components/renderers/visuals/logo/index.d.ts +0 -7
- package/dist/components/renderers/visuals/logo/logo.stories.d.ts +0 -17
- package/dist/components/renderers/visuals/logo/logo.types.d.ts +0 -6
- package/dist/components/renderers/visuals/watermark/_watermark.d.ts +0 -68
- package/dist/components/renderers/visuals/watermark/index.d.ts +0 -7
- package/dist/components/renderers/visuals/watermark/watermark.defs.d.ts +0 -4
- package/dist/components/renderers/visuals/watermark/watermark.stories.d.ts +0 -8
- package/dist/components/renderers/visuals/watermark/watermark.types.d.ts +0 -11
- package/dist/components/ui/badge-selector/badge-selector.d.ts +0 -49
- package/dist/components/ui/hint/index.d.ts +0 -6
- package/dist/components/ui/index.d.ts +0 -7
- package/dist/components/ui/modal/index.d.ts +0 -12
- package/dist/components/ui/multi-email-input/multi-email-input.d.ts +0 -32
- package/dist/components/ui/multi-select-filter/pont-multi-select-filter.d.ts +0 -18
- package/dist/components/ui/paginator/paginator.d.ts +0 -16
- package/dist/components/ui/pont-sidedrawer/pont-sidedrawer.d.ts +0 -23
- package/dist/components/widgets/flow-widget.d.ts +0 -32
- package/dist/components/widgets/index.d.ts +0 -9
- package/dist/components/widgets/pont-account-menu/index.d.ts +0 -1
- package/dist/components/widgets/pont-account-menu/pont-account-menu.d.ts +0 -95
- package/dist/components/widgets/pont-account-settings/index.d.ts +0 -3
- package/dist/components/widgets/pont-account-settings/pont-account-settings.d.ts +0 -76
- package/dist/components/widgets/pont-account-settings/profile/classes.d.ts +0 -18
- package/dist/components/widgets/pont-account-settings/profile/components/account-info.d.ts +0 -116
- package/dist/components/widgets/pont-account-settings/profile/components/index.d.ts +0 -4
- package/dist/components/widgets/pont-account-settings/profile/components/location-info.d.ts +0 -45
- package/dist/components/widgets/pont-account-settings/profile/components/personal-info.d.ts +0 -57
- package/dist/components/widgets/pont-account-settings/profile/components/urls-info.d.ts +0 -38
- package/dist/components/widgets/pont-account-settings/profile/index.d.ts +0 -2
- package/dist/components/widgets/pont-account-settings/profile/pont-profile.d.ts +0 -24
- package/dist/components/widgets/pont-account-settings/security-settings/index.d.ts +0 -1
- package/dist/components/widgets/pont-account-settings/security-settings/security-settings.d.ts +0 -12
- package/dist/components/widgets/pont-account-settings/sidebar/classes.d.ts +0 -8
- package/dist/components/widgets/pont-account-settings/sidebar/sidebar.d.ts +0 -27
- package/dist/components/widgets/pont-consent/consent-api.d.ts +0 -56
- package/dist/components/widgets/pont-consent/pont-consent.d.ts +0 -50
- package/dist/components/widgets/pont-invitation/pont-invitation.d.ts +0 -23
- package/dist/components/widgets/pont-member-management/components/action-modal.d.ts +0 -35
- package/dist/components/widgets/pont-member-management/components/index.d.ts +0 -5
- package/dist/components/widgets/pont-member-management/components/invitations-panel.d.ts +0 -44
- package/dist/components/widgets/pont-member-management/components/invite-members-form.d.ts +0 -32
- package/dist/components/widgets/pont-member-management/components/manage-roles-form.d.ts +0 -36
- package/dist/components/widgets/pont-member-management/components/members-panel.d.ts +0 -51
- package/dist/components/widgets/pont-member-management/components/page-range.d.ts +0 -5
- package/dist/components/widgets/pont-member-management/components/role-badges.d.ts +0 -5
- package/dist/components/widgets/pont-member-management/components/role-options.d.ts +0 -20
- package/dist/components/widgets/pont-member-management/errors.d.ts +0 -32
- package/dist/components/widgets/pont-member-management/index.d.ts +0 -1
- package/dist/components/widgets/pont-member-management/pont-member-management.d.ts +0 -125
- package/dist/components/widgets/pont-member-management/types.d.ts +0 -5
- package/dist/components/widgets/pont-organization-switcher/index.d.ts +0 -1
- package/dist/components/widgets/pont-organization-switcher/pont-organization-switcher.d.ts +0 -64
- package/dist/components/widgets/pont-preview/pont-preview.d.ts +0 -19
- package/dist/components/widgets/pont-signin/pont-signin.d.ts +0 -4
- package/dist/components/widgets/pont-signup/pont-signup.d.ts +0 -4
- package/dist/components/wrappers/base-element/base-element.d.ts +0 -19
- package/dist/components/wrappers/index.d.ts +0 -7
- package/dist/components/wrappers/layout/layout.d.ts +0 -93
- package/dist/components/wrappers/pont-auth-state/pont-auth-state.d.ts +0 -12
- package/dist/components/wrappers/pont-authenticated/pont-authenticated.d.ts +0 -27
- package/dist/components/wrappers/pont-provider/pont-provider.d.ts +0 -113
- package/dist/components/wrappers/pont-signed-in/pont-signed-in.d.ts +0 -11
- package/dist/components/wrappers/pont-signed-out/pont-signed-out.d.ts +0 -11
- package/dist/constants/classes.d.ts +0 -9
- package/dist/constants/components.d.ts +0 -6
- package/dist/constants/index.d.ts +0 -4
- package/dist/constants/regex.d.ts +0 -4
- package/dist/constants/styles.d.ts +0 -1
- package/dist/context/auth-context.d.ts +0 -17
- package/dist/context/branding-context.d.ts +0 -52
- package/dist/context/customization-context.d.ts +0 -4
- package/dist/context/design-context.d.ts +0 -47
- package/dist/context/env-context.d.ts +0 -4
- package/dist/context/index.d.ts +0 -8
- package/dist/context/locale-context.d.ts +0 -3
- package/dist/context/render-spec.d.ts +0 -3
- package/dist/context/user-context.d.ts +0 -8
- package/dist/context-root.d.ts +0 -1
- package/dist/element-tag-map.d.ts +0 -106
- package/dist/events/account-settings.d.ts +0 -10
- package/dist/events/index.d.ts +0 -15
- package/dist/events/locales.d.ts +0 -6
- package/dist/events/member-management.d.ts +0 -10
- package/dist/funcs/env.d.ts +0 -3
- package/dist/funcs/index.d.ts +0 -1
- package/dist/i18n/messages.d.ts +0 -60
- package/dist/index.js +0 -6417
- package/dist/index.js.map +0 -1
- package/dist/legacy.css +0 -25448
- package/dist/pont2/core/messages.d.ts +0 -92
- package/dist/pont2/index.d.ts +0 -51
- package/dist/pont2/index.mjs +0 -8269
- package/dist/pont2/index.mjs.map +0 -1
- package/dist/pont2/kit/aliases.d.ts +0 -33
- package/dist/pont2/kit/flow-widget/preview.d.ts +0 -46
- package/dist/pont2/kit/provider/coexistence.d.ts +0 -19
- package/dist/pont2/migration/catalog.d.ts +0 -29
- package/dist/pont2/migration/legacy-markup.d.ts +0 -36
- package/dist/pont2/styles.css +0 -7793
- package/dist/pont2/theme/scopes.d.ts +0 -13
- package/dist/pont2/theme/tokens.json.d.ts +0 -8515
- package/dist/pont2/theme-golden.json +0 -1240
- package/dist/pont2/theme.mjs +0 -425
- package/dist/pont2/theme.mjs.map +0 -1
- package/dist/pont2/with-legacy.css +0 -8
- package/dist/primitives/assets/icons/anchor.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/app-window.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/arrow-right.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/arrow-up-circle.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/arrow-up-right.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/arrow-up.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/arrows.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/asterisk.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/badge-alert.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/badge-check.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/badge-info.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/badge-x.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/bell.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/bookmark.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/brand-javascript.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/captions.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/carousel-arrow-left.d.ts +0 -1
- package/dist/primitives/assets/icons/carousel-arrow-right.d.ts +0 -1
- package/dist/primitives/assets/icons/chart.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/check.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/chevron-right.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/chorven-down.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/circle-alert.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/circle-check.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/circle-fading-arrow-up.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/circle-x.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/circle.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/close.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/cloud.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/code.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/copy.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/corner-down-left.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/credit-card.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/decrease.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/dot.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/down.d.ts +0 -1
- package/dist/primitives/assets/icons/external-link.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/eye-off.d.ts +0 -1
- package/dist/primitives/assets/icons/eye-off.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/eye-on.d.ts +0 -1
- package/dist/primitives/assets/icons/file-code.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/folder-code.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/git-branch-minus.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/git-branch-plus.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/help-circle.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/house.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/inbox.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/index.d.ts +0 -67
- package/dist/primitives/assets/icons/info.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/loader-circle.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/mail-warning.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/mail.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/minus.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/plus.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/rabbit.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/radio-group.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/radio.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/refresh-ccw.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/refresh-cw.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/search.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/settings.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/shield-alert.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/shopping-bag.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/star.icon.d.ts +0 -2
- package/dist/primitives/assets/icons/tick.icon.d.ts +0 -1
- package/dist/primitives/assets/icons/up-down.d.ts +0 -1
- package/dist/primitives/assets/icons/up.d.ts +0 -1
- package/dist/primitives/assets/icons/wand.icon.d.ts +0 -2
- package/dist/primitives/components/index.d.ts +0 -1
- package/dist/primitives/components/ui/accordion/accordion-content.d.ts +0 -20
- package/dist/primitives/components/ui/accordion/accordion-item.d.ts +0 -21
- package/dist/primitives/components/ui/accordion/accordion-trigger.d.ts +0 -17
- package/dist/primitives/components/ui/accordion/accordion.d.ts +0 -25
- package/dist/primitives/components/ui/accordion/accordion.defs.d.ts +0 -10
- package/dist/primitives/components/ui/accordion/accordion.stories.d.ts +0 -10
- package/dist/primitives/components/ui/accordion/accordion.styles.d.ts +0 -4
- package/dist/primitives/components/ui/alert/_alert-action.d.ts +0 -21
- package/dist/primitives/components/ui/alert/_alert-description.d.ts +0 -21
- package/dist/primitives/components/ui/alert/_alert-title.d.ts +0 -20
- package/dist/primitives/components/ui/alert/_alert.d.ts +0 -25
- package/dist/primitives/components/ui/alert/alert.d.ts +0 -16
- package/dist/primitives/components/ui/alert/alert.defs.d.ts +0 -4
- package/dist/primitives/components/ui/alert/alert.stories.d.ts +0 -12
- package/dist/primitives/components/ui/aspect-ratio/aspect-ratio.d.ts +0 -16
- package/dist/primitives/components/ui/aspect-ratio/aspect-ratio.stories.d.ts +0 -4
- package/dist/primitives/components/ui/aspect-ratio/aspect-ratio.styles.d.ts +0 -4
- package/dist/primitives/components/ui/avatar/_avatar-badge.d.ts +0 -21
- package/dist/primitives/components/ui/avatar/_avatar-fallback.d.ts +0 -21
- package/dist/primitives/components/ui/avatar/_avatar-group-count.d.ts +0 -21
- package/dist/primitives/components/ui/avatar/_avatar-group.d.ts +0 -21
- package/dist/primitives/components/ui/avatar/_avatar-image.d.ts +0 -28
- package/dist/primitives/components/ui/avatar/_avatar.d.ts +0 -65
- package/dist/primitives/components/ui/avatar/avatar.d.ts +0 -20
- package/dist/primitives/components/ui/avatar/avatar.defs.d.ts +0 -8
- package/dist/primitives/components/ui/avatar/avatar.stories.d.ts +0 -13
- package/dist/primitives/components/ui/badge/_badge.d.ts +0 -43
- package/dist/primitives/components/ui/badge/badge.d.ts +0 -10
- package/dist/primitives/components/ui/badge/badge.defs.d.ts +0 -8
- package/dist/primitives/components/ui/badge/badge.stories.d.ts +0 -10
- package/dist/primitives/components/ui/breadcrumb/breadcrumb-ellipsis.d.ts +0 -11
- package/dist/primitives/components/ui/breadcrumb/breadcrumb-item.d.ts +0 -14
- package/dist/primitives/components/ui/breadcrumb/breadcrumb-link.d.ts +0 -15
- package/dist/primitives/components/ui/breadcrumb/breadcrumb-list.d.ts +0 -14
- package/dist/primitives/components/ui/breadcrumb/breadcrumb-separator.d.ts +0 -11
- package/dist/primitives/components/ui/breadcrumb/breadcrumb-text.d.ts +0 -14
- package/dist/primitives/components/ui/breadcrumb/breadcrumb.d.ts +0 -21
- package/dist/primitives/components/ui/breadcrumb/breadcrumb.stories.d.ts +0 -4
- package/dist/primitives/components/ui/breadcrumb/breadcrumb.styles.d.ts +0 -4
- package/dist/primitives/components/ui/button/_button.d.ts +0 -62
- package/dist/primitives/components/ui/button/button.d.ts +0 -10
- package/dist/primitives/components/ui/button/button.defs.d.ts +0 -14
- package/dist/primitives/components/ui/button/button.stories.d.ts +0 -13
- package/dist/primitives/components/ui/calendar/calendar.d.ts +0 -24
- package/dist/primitives/components/ui/calendar/calendar.helpers.d.ts +0 -3
- package/dist/primitives/components/ui/calendar/calendar.stories.d.ts +0 -4
- package/dist/primitives/components/ui/calendar/calendar.style.d.ts +0 -38
- package/dist/primitives/components/ui/card/_card-action.d.ts +0 -21
- package/dist/primitives/components/ui/card/_card-content.d.ts +0 -20
- package/dist/primitives/components/ui/card/_card-description.d.ts +0 -21
- package/dist/primitives/components/ui/card/_card-footer.d.ts +0 -26
- package/dist/primitives/components/ui/card/_card-header.d.ts +0 -26
- package/dist/primitives/components/ui/card/_card-title.d.ts +0 -20
- package/dist/primitives/components/ui/card/_card.d.ts +0 -25
- package/dist/primitives/components/ui/card/card.d.ts +0 -22
- package/dist/primitives/components/ui/card/card.defs.d.ts +0 -10
- package/dist/primitives/components/ui/card/card.stories.d.ts +0 -11
- package/dist/primitives/components/ui/carousel/carousel.d.ts +0 -24
- package/dist/primitives/components/ui/carousel/carousel.stories.d.ts +0 -6
- package/dist/primitives/components/ui/carousel/carousel.styles.d.ts +0 -32
- package/dist/primitives/components/ui/checkbox/_checkbox.d.ts +0 -92
- package/dist/primitives/components/ui/checkbox/checkbox.d.ts +0 -10
- package/dist/primitives/components/ui/checkbox/checkbox.defs.d.ts +0 -11
- package/dist/primitives/components/ui/checkbox/checkbox.stories.d.ts +0 -13
- package/dist/primitives/components/ui/collapsible/collapsible-content.d.ts +0 -17
- package/dist/primitives/components/ui/collapsible/collapsible-trigger.d.ts +0 -17
- package/dist/primitives/components/ui/collapsible/collapsible.d.ts +0 -23
- package/dist/primitives/components/ui/collapsible/collapsible.stories.d.ts +0 -5
- package/dist/primitives/components/ui/combobox/combo-box-empty.d.ts +0 -14
- package/dist/primitives/components/ui/combobox/combo-box-group.d.ts +0 -37
- package/dist/primitives/components/ui/combobox/combo-box-input.d.ts +0 -17
- package/dist/primitives/components/ui/combobox/combo-box-item.d.ts +0 -25
- package/dist/primitives/components/ui/combobox/combo-box-trigger.d.ts +0 -18
- package/dist/primitives/components/ui/combobox/combo-box-value.d.ts +0 -18
- package/dist/primitives/components/ui/combobox/combo-box.d.ts +0 -35
- package/dist/primitives/components/ui/combobox/combo-box.stories.d.ts +0 -10
- package/dist/primitives/components/ui/combobox/combo-box.styles.d.ts +0 -14
- package/dist/primitives/components/ui/command/command-empty.atom.d.ts +0 -18
- package/dist/primitives/components/ui/command/command-group.atom.d.ts +0 -19
- package/dist/primitives/components/ui/command/command-input.atom.d.ts +0 -15
- package/dist/primitives/components/ui/command/command-item.atom.d.ts +0 -24
- package/dist/primitives/components/ui/command/command-list.atom.d.ts +0 -15
- package/dist/primitives/components/ui/command/command-separator.atom.d.ts +0 -14
- package/dist/primitives/components/ui/command/command.d.ts +0 -22
- package/dist/primitives/components/ui/command/command.helpers.d.ts +0 -6
- package/dist/primitives/components/ui/command/command.stories.d.ts +0 -6
- package/dist/primitives/components/ui/command/command.styles.d.ts +0 -15
- package/dist/primitives/components/ui/context-menu/context-menu-checkbox-Item.d.ts +0 -16
- package/dist/primitives/components/ui/context-menu/context-menu-content.d.ts +0 -14
- package/dist/primitives/components/ui/context-menu/context-menu-group.d.ts +0 -10
- package/dist/primitives/components/ui/context-menu/context-menu-item.d.ts +0 -13
- package/dist/primitives/components/ui/context-menu/context-menu-radio-item.d.ts +0 -16
- package/dist/primitives/components/ui/context-menu/context-menu-seperator.d.ts +0 -6
- package/dist/primitives/components/ui/context-menu/context-menu-shortcut.d.ts +0 -9
- package/dist/primitives/components/ui/context-menu/context-menu-trigger.d.ts +0 -5
- package/dist/primitives/components/ui/context-menu/context-menu.d.ts +0 -40
- package/dist/primitives/components/ui/context-menu/context-menu.helpers.d.ts +0 -1
- package/dist/primitives/components/ui/context-menu/context-menu.styles.d.ts +0 -20
- package/dist/primitives/components/ui/context-menu/contextMenu.stories.d.ts +0 -4
- package/dist/primitives/components/ui/data-table/data-table.d.ts +0 -102
- package/dist/primitives/components/ui/data-table/data-table.stories.d.ts +0 -6
- package/dist/primitives/components/ui/data-table/index.d.ts +0 -7
- package/dist/primitives/components/ui/date-picker/date-picker.d.ts +0 -12
- package/dist/primitives/components/ui/date-picker/date-picker.stories.d.ts +0 -4
- package/dist/primitives/components/ui/date-picker/date-picker.styles.d.ts +0 -5
- package/dist/primitives/components/ui/dialog/dialog-close.d.ts +0 -15
- package/dist/primitives/components/ui/dialog/dialog-content.d.ts +0 -15
- package/dist/primitives/components/ui/dialog/dialog-footer.d.ts +0 -9
- package/dist/primitives/components/ui/dialog/dialog-header.d.ts +0 -7
- package/dist/primitives/components/ui/dialog/dialog-overly.d.ts +0 -5
- package/dist/primitives/components/ui/dialog/dialog-trigger.d.ts +0 -11
- package/dist/primitives/components/ui/dialog/dialog.d.ts +0 -30
- package/dist/primitives/components/ui/dialog/dialog.stories.d.ts +0 -6
- package/dist/primitives/components/ui/dialog/dialog.styles.d.ts +0 -17
- package/dist/primitives/components/ui/drawer/drawer-close.d.ts +0 -15
- package/dist/primitives/components/ui/drawer/drawer-content.d.ts +0 -14
- package/dist/primitives/components/ui/drawer/drawer-description.d.ts +0 -9
- package/dist/primitives/components/ui/drawer/drawer-footer.d.ts +0 -9
- package/dist/primitives/components/ui/drawer/drawer-header.d.ts +0 -8
- package/dist/primitives/components/ui/drawer/drawer-overlay.d.ts +0 -5
- package/dist/primitives/components/ui/drawer/drawer-title.d.ts +0 -9
- package/dist/primitives/components/ui/drawer/drawer-trigger.d.ts +0 -11
- package/dist/primitives/components/ui/drawer/drawer.d.ts +0 -40
- package/dist/primitives/components/ui/drawer/drawer.helpers.d.ts +0 -2
- package/dist/primitives/components/ui/drawer/drawer.stories.d.ts +0 -4
- package/dist/primitives/components/ui/drawer/drawer.styles.d.ts +0 -14
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu-checkbox-Item.d.ts +0 -17
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu-content.d.ts +0 -18
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu-group.d.ts +0 -11
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu-item.d.ts +0 -17
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu-radio-item.d.ts +0 -16
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu-seperator.d.ts +0 -8
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu-shortcut.d.ts +0 -8
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu-trigger.d.ts +0 -5
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu.d.ts +0 -40
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu.helpers.d.ts +0 -3
- package/dist/primitives/components/ui/dropdown-menu/dropdown-menu.styles.d.ts +0 -20
- package/dist/primitives/components/ui/dropdown-menu/dropdownMenu.stories.d.ts +0 -8
- package/dist/primitives/components/ui/empty/_empty-content.d.ts +0 -23
- package/dist/primitives/components/ui/empty/_empty-description.d.ts +0 -23
- package/dist/primitives/components/ui/empty/_empty-header.d.ts +0 -23
- package/dist/primitives/components/ui/empty/_empty-media.d.ts +0 -29
- package/dist/primitives/components/ui/empty/_empty-title.d.ts +0 -22
- package/dist/primitives/components/ui/empty/_empty.d.ts +0 -28
- package/dist/primitives/components/ui/empty/empty.d.ts +0 -20
- package/dist/primitives/components/ui/empty/empty.defs.d.ts +0 -7
- package/dist/primitives/components/ui/empty/empty.stories.d.ts +0 -10
- package/dist/primitives/components/ui/field/_field-content.d.ts +0 -23
- package/dist/primitives/components/ui/field/_field-description.d.ts +0 -23
- package/dist/primitives/components/ui/field/_field-error.d.ts +0 -25
- package/dist/primitives/components/ui/field/_field-group.d.ts +0 -28
- package/dist/primitives/components/ui/field/_field-label.d.ts +0 -27
- package/dist/primitives/components/ui/field/_field-legend.d.ts +0 -30
- package/dist/primitives/components/ui/field/_field-separator.d.ts +0 -42
- package/dist/primitives/components/ui/field/_field-set.d.ts +0 -22
- package/dist/primitives/components/ui/field/_field-title.d.ts +0 -22
- package/dist/primitives/components/ui/field/_field.d.ts +0 -36
- package/dist/primitives/components/ui/field/field.d.ts +0 -29
- package/dist/primitives/components/ui/field/field.defs.d.ts +0 -23
- package/dist/primitives/components/ui/field/field.stories.d.ts +0 -16
- package/dist/primitives/components/ui/form/form-context.d.ts +0 -4
- package/dist/primitives/components/ui/form/form-controller.d.ts +0 -28
- package/dist/primitives/components/ui/form/form-field-context.d.ts +0 -3
- package/dist/primitives/components/ui/form/form-item-context.d.ts +0 -7
- package/dist/primitives/components/ui/form/form.stories.d.ts +0 -5
- package/dist/primitives/components/ui/form/form.styles.d.ts +0 -7
- package/dist/primitives/components/ui/form/pont-form-controller.d.ts +0 -16
- package/dist/primitives/components/ui/form/pont-form-description.d.ts +0 -13
- package/dist/primitives/components/ui/form/pont-form-field.d.ts +0 -19
- package/dist/primitives/components/ui/form/pont-form-item.d.ts +0 -16
- package/dist/primitives/components/ui/form/pont-form-label.d.ts +0 -19
- package/dist/primitives/components/ui/form/pont-form-message.d.ts +0 -17
- package/dist/primitives/components/ui/form/pont-form.d.ts +0 -23
- package/dist/primitives/components/ui/hoverCard/hover-card-content.d.ts +0 -15
- package/dist/primitives/components/ui/hoverCard/hover-card-trigger.d.ts +0 -9
- package/dist/primitives/components/ui/hoverCard/hover-card.d.ts +0 -28
- package/dist/primitives/components/ui/hoverCard/hover-card.stories.d.ts +0 -4
- package/dist/primitives/components/ui/hoverCard/hover-card.styles.d.ts +0 -5
- package/dist/primitives/components/ui/index.d.ts +0 -50
- package/dist/primitives/components/ui/input/_input.d.ts +0 -163
- package/dist/primitives/components/ui/input/input.d.ts +0 -11
- package/dist/primitives/components/ui/input/input.defs.d.ts +0 -28
- package/dist/primitives/components/ui/input/input.stories.d.ts +0 -16
- package/dist/primitives/components/ui/input-group/_input-group-addon.d.ts +0 -32
- package/dist/primitives/components/ui/input-group/_input-group-button.d.ts +0 -59
- package/dist/primitives/components/ui/input-group/_input-group-input.d.ts +0 -140
- package/dist/primitives/components/ui/input-group/_input-group-text.d.ts +0 -22
- package/dist/primitives/components/ui/input-group/_input-group-textarea.d.ts +0 -114
- package/dist/primitives/components/ui/input-group/_input-group.d.ts +0 -22
- package/dist/primitives/components/ui/input-group/input-group.d.ts +0 -20
- package/dist/primitives/components/ui/input-group/input-group.defs.d.ts +0 -16
- package/dist/primitives/components/ui/input-group/input-group.stories.d.ts +0 -15
- package/dist/primitives/components/ui/input-otp/_input-otp-group.d.ts +0 -15
- package/dist/primitives/components/ui/input-otp/_input-otp-separator.d.ts +0 -15
- package/dist/primitives/components/ui/input-otp/_input-otp-slot.d.ts +0 -29
- package/dist/primitives/components/ui/input-otp/_input-otp.d.ts +0 -192
- package/dist/primitives/components/ui/input-otp/input-otp.d.ts +0 -16
- package/dist/primitives/components/ui/input-otp/input-otp.defs.d.ts +0 -28
- package/dist/primitives/components/ui/input-otp/input-otp.stories.d.ts +0 -12
- package/dist/primitives/components/ui/item/_item-actions.d.ts +0 -22
- package/dist/primitives/components/ui/item/_item-content.d.ts +0 -22
- package/dist/primitives/components/ui/item/_item-description.d.ts +0 -22
- package/dist/primitives/components/ui/item/_item-footer.d.ts +0 -22
- package/dist/primitives/components/ui/item/_item-group.d.ts +0 -22
- package/dist/primitives/components/ui/item/_item-header.d.ts +0 -22
- package/dist/primitives/components/ui/item/_item-media.d.ts +0 -28
- package/dist/primitives/components/ui/item/_item-separator.d.ts +0 -22
- package/dist/primitives/components/ui/item/_item-title.d.ts +0 -22
- package/dist/primitives/components/ui/item/_item.d.ts +0 -42
- package/dist/primitives/components/ui/item/item.d.ts +0 -29
- package/dist/primitives/components/ui/item/item.defs.d.ts +0 -13
- package/dist/primitives/components/ui/item/item.stories.d.ts +0 -13
- package/dist/primitives/components/ui/kbd/_kbd-group.d.ts +0 -22
- package/dist/primitives/components/ui/kbd/_kbd.d.ts +0 -22
- package/dist/primitives/components/ui/kbd/kbd.d.ts +0 -12
- package/dist/primitives/components/ui/kbd/kbd.stories.d.ts +0 -8
- package/dist/primitives/components/ui/label/_label.d.ts +0 -26
- package/dist/primitives/components/ui/label/label.d.ts +0 -10
- package/dist/primitives/components/ui/label/label.defs.d.ts +0 -3
- package/dist/primitives/components/ui/label/label.stories.d.ts +0 -10
- package/dist/primitives/components/ui/menubar/menubar-checkbox.item.d.ts +0 -19
- package/dist/primitives/components/ui/menubar/menubar-content.d.ts +0 -19
- package/dist/primitives/components/ui/menubar/menubar-group.d.ts +0 -14
- package/dist/primitives/components/ui/menubar/menubar-item.d.ts +0 -17
- package/dist/primitives/components/ui/menubar/menubar-menu.d.ts +0 -30
- package/dist/primitives/components/ui/menubar/menubar-radio-item.d.ts +0 -19
- package/dist/primitives/components/ui/menubar/menubar-separator.d.ts +0 -13
- package/dist/primitives/components/ui/menubar/menubar-shortcut.d.ts +0 -9
- package/dist/primitives/components/ui/menubar/menubar-trigger.d.ts +0 -9
- package/dist/primitives/components/ui/menubar/menubar.d.ts +0 -33
- package/dist/primitives/components/ui/menubar/menubar.helpers.d.ts +0 -3
- package/dist/primitives/components/ui/menubar/menubar.stories.d.ts +0 -4
- package/dist/primitives/components/ui/menubar/menubar.styles.d.ts +0 -21
- package/dist/primitives/components/ui/navigation-menu/navigation-menu-content.d.ts +0 -19
- package/dist/primitives/components/ui/navigation-menu/navigation-menu-item.d.ts +0 -23
- package/dist/primitives/components/ui/navigation-menu/navigation-menu-link.d.ts +0 -9
- package/dist/primitives/components/ui/navigation-menu/navigation-menu-list.d.ts +0 -8
- package/dist/primitives/components/ui/navigation-menu/navigation-menu-trigger.d.ts +0 -9
- package/dist/primitives/components/ui/navigation-menu/navigation-menu.d.ts +0 -24
- package/dist/primitives/components/ui/navigation-menu/navigation-menu.stories.d.ts +0 -4
- package/dist/primitives/components/ui/navigation-menu/navigation-menu.styles.d.ts +0 -9
- package/dist/primitives/components/ui/pagination/pagination-content.d.ts +0 -8
- package/dist/primitives/components/ui/pagination/pagination-ellipsis.d.ts +0 -8
- package/dist/primitives/components/ui/pagination/pagination-item.d.ts +0 -14
- package/dist/primitives/components/ui/pagination/pagination-link.d.ts +0 -14
- package/dist/primitives/components/ui/pagination/pagination-next.d.ts +0 -9
- package/dist/primitives/components/ui/pagination/pagination-previous.d.ts +0 -9
- package/dist/primitives/components/ui/pagination/pagination.d.ts +0 -26
- package/dist/primitives/components/ui/pagination/pagination.stories.d.ts +0 -4
- package/dist/primitives/components/ui/pagination/pagination.styles.d.ts +0 -18
- package/dist/primitives/components/ui/pagination/pagination.type.d.ts +0 -2
- package/dist/primitives/components/ui/password-input/_password-input.d.ts +0 -122
- package/dist/primitives/components/ui/password-input/password-input.d.ts +0 -10
- package/dist/primitives/components/ui/password-input/password-input.defs.d.ts +0 -3
- package/dist/primitives/components/ui/password-input/password-input.stories.d.ts +0 -8
- package/dist/primitives/components/ui/popover/popover-content.d.ts +0 -18
- package/dist/primitives/components/ui/popover/popover-trigger.d.ts +0 -12
- package/dist/primitives/components/ui/popover/popover.d.ts +0 -21
- package/dist/primitives/components/ui/popover/popover.stories.d.ts +0 -4
- package/dist/primitives/components/ui/popover/popover.style.d.ts +0 -5
- package/dist/primitives/components/ui/popover/popover.types.d.ts +0 -2
- package/dist/primitives/components/ui/progress/progress.d.ts +0 -11
- package/dist/primitives/components/ui/progress/progress.stories.d.ts +0 -4
- package/dist/primitives/components/ui/progress/progress.styles.d.ts +0 -4
- package/dist/primitives/components/ui/radio-group/_radio-group-item.d.ts +0 -98
- package/dist/primitives/components/ui/radio-group/_radio-group.d.ts +0 -184
- package/dist/primitives/components/ui/radio-group/radio-group.d.ts +0 -13
- package/dist/primitives/components/ui/radio-group/radio-group.defs.d.ts +0 -18
- package/dist/primitives/components/ui/radio-group/radio-group.stories.d.ts +0 -13
- package/dist/primitives/components/ui/scroll-area/scroll-area.d.ts +0 -12
- package/dist/primitives/components/ui/scroll-area/scroll-area.stories.d.ts +0 -4
- package/dist/primitives/components/ui/scroll-area/scroll-area.style.d.ts +0 -1
- package/dist/primitives/components/ui/select/index.d.ts +0 -25
- package/dist/primitives/components/ui/select/select-controller.d.ts +0 -16
- package/dist/primitives/components/ui/select/select-group.d.ts +0 -26
- package/dist/primitives/components/ui/select/select-item.d.ts +0 -26
- package/dist/primitives/components/ui/select/select-label.d.ts +0 -13
- package/dist/primitives/components/ui/select/select-list.d.ts +0 -10
- package/dist/primitives/components/ui/select/select-seperator.d.ts +0 -8
- package/dist/primitives/components/ui/select/select-trigger.d.ts +0 -35
- package/dist/primitives/components/ui/select/select-value.d.ts +0 -13
- package/dist/primitives/components/ui/select/select.d.ts +0 -18
- package/dist/primitives/components/ui/select/select.stories.d.ts +0 -10
- package/dist/primitives/components/ui/select/select.styles.d.ts +0 -20
- package/dist/primitives/components/ui/separator/_separator.d.ts +0 -21
- package/dist/primitives/components/ui/separator/separator.d.ts +0 -10
- package/dist/primitives/components/ui/separator/separator.defs.d.ts +0 -5
- package/dist/primitives/components/ui/separator/separator.stories.d.ts +0 -9
- package/dist/primitives/components/ui/skeleton/skeleton.d.ts +0 -10
- package/dist/primitives/components/ui/skeleton/skeleton.stories.d.ts +0 -4
- package/dist/primitives/components/ui/skeleton/skeleton.style.d.ts +0 -1
- package/dist/primitives/components/ui/spinner/_spinner.d.ts +0 -18
- package/dist/primitives/components/ui/spinner/spinner.d.ts +0 -10
- package/dist/primitives/components/ui/spinner/spinner.defs.d.ts +0 -15
- package/dist/primitives/components/ui/spinner/spinner.stories.d.ts +0 -11
- package/dist/primitives/components/ui/switch/_switch.d.ts +0 -146
- package/dist/primitives/components/ui/switch/switch.d.ts +0 -10
- package/dist/primitives/components/ui/switch/switch.defs.d.ts +0 -13
- package/dist/primitives/components/ui/switch/switch.stories.d.ts +0 -12
- package/dist/primitives/components/ui/table/table.d.ts +0 -17
- package/dist/primitives/components/ui/table/table.stories.d.ts +0 -4
- package/dist/primitives/components/ui/table/table.styles.d.ts +0 -39
- package/dist/primitives/components/ui/tabs/_tabs-content.d.ts +0 -29
- package/dist/primitives/components/ui/tabs/_tabs-list.d.ts +0 -29
- package/dist/primitives/components/ui/tabs/_tabs-trigger.d.ts +0 -46
- package/dist/primitives/components/ui/tabs/_tabs.d.ts +0 -28
- package/dist/primitives/components/ui/tabs/tabs.d.ts +0 -17
- package/dist/primitives/components/ui/tabs/tabs.defs.d.ts +0 -22
- package/dist/primitives/components/ui/tabs/tabs.helpers.d.ts +0 -24
- package/dist/primitives/components/ui/tabs/tabs.stories.d.ts +0 -13
- package/dist/primitives/components/ui/textarea/_textarea.d.ts +0 -131
- package/dist/primitives/components/ui/textarea/textarea.d.ts +0 -10
- package/dist/primitives/components/ui/textarea/textarea.defs.d.ts +0 -23
- package/dist/primitives/components/ui/textarea/textarea.stories.d.ts +0 -9
- package/dist/primitives/components/ui/toast/toast-action.d.ts +0 -26
- package/dist/primitives/components/ui/toast/toast-description.d.ts +0 -13
- package/dist/primitives/components/ui/toast/toast-title.d.ts +0 -13
- package/dist/primitives/components/ui/toast/toast-trigger.d.ts +0 -17
- package/dist/primitives/components/ui/toast/toast-view-port.d.ts +0 -23
- package/dist/primitives/components/ui/toast/toast.d.ts +0 -24
- package/dist/primitives/components/ui/toast/toast.stories.d.ts +0 -9
- package/dist/primitives/components/ui/toast/toast.style.d.ts +0 -19
- package/dist/primitives/components/ui/toast/toast.type.d.ts +0 -1
- package/dist/primitives/components/ui/toggle/toggle.d.ts +0 -28
- package/dist/primitives/components/ui/toggle/toggle.defs.d.ts +0 -27
- package/dist/primitives/components/ui/toggle/toggle.stories.d.ts +0 -5
- package/dist/primitives/components/ui/toggle/toggle.style.d.ts +0 -4
- package/dist/primitives/components/ui/toggle-group/toggle-group-item.d.ts +0 -42
- package/dist/primitives/components/ui/toggle-group/toggle-group.d.ts +0 -24
- package/dist/primitives/components/ui/toggle-group/toggle-group.defs.d.ts +0 -37
- package/dist/primitives/components/ui/toggle-group/toggle-group.stories.d.ts +0 -4
- package/dist/primitives/components/ui/toggle-group/toggle-group.style.d.ts +0 -5
- package/dist/primitives/components/ui/typography/_typography-blockquote.d.ts +0 -22
- package/dist/primitives/components/ui/typography/_typography-code.d.ts +0 -22
- package/dist/primitives/components/ui/typography/_typography-h.d.ts +0 -27
- package/dist/primitives/components/ui/typography/_typography-large.d.ts +0 -22
- package/dist/primitives/components/ui/typography/_typography-lead.d.ts +0 -22
- package/dist/primitives/components/ui/typography/_typography-list.d.ts +0 -22
- package/dist/primitives/components/ui/typography/_typography-muted.d.ts +0 -22
- package/dist/primitives/components/ui/typography/_typography-p.d.ts +0 -22
- package/dist/primitives/components/ui/typography/_typography-small.d.ts +0 -22
- package/dist/primitives/components/ui/typography/_typography-table.d.ts +0 -13
- package/dist/primitives/components/ui/typography/typography.d.ts +0 -28
- package/dist/primitives/components/ui/typography/typography.defs.d.ts +0 -4
- package/dist/primitives/components/ui/typography/typography.stories.d.ts +0 -18
- package/dist/primitives/helpers/base-element.d.ts +0 -20
- package/dist/primitives/helpers/country-codes.d.ts +0 -5
- package/dist/primitives/helpers/genrate-uuid.helper.d.ts +0 -1
- package/dist/primitives/helpers/index.d.ts +0 -7
- package/dist/primitives/helpers/mouse-conroller.helper.d.ts +0 -14
- package/dist/primitives/helpers/shadow-wrapper.d.ts +0 -7
- package/dist/primitives/helpers/style.helpers.d.ts +0 -2
- package/dist/primitives/helpers/widget-controller.d.ts +0 -12
- package/dist/primitives/index.d.ts +0 -1
- package/dist/primitives/interfaces/atomic.interface.d.ts +0 -6
- package/dist/primitives/interfaces/child-support-atomic.interface.d.ts +0 -4
- package/dist/primitives/interfaces/index.d.ts +0 -4
- package/dist/primitives/interfaces/intractable.interface.d.ts +0 -6
- package/dist/primitives/interfaces/variant.interface.d.ts +0 -3
- package/dist/service/http/fetch.d.ts +0 -21
- package/dist/service/http/index.d.ts +0 -3
- package/dist/service/http/organization/assignable-roles.d.ts +0 -8
- package/dist/service/http/organization/index.d.ts +0 -4
- package/dist/service/http/organization/invitations.d.ts +0 -5
- package/dist/service/http/organization/management-token.d.ts +0 -13
- package/dist/service/http/organization/members.d.ts +0 -6
- package/dist/service/http/user/index.d.ts +0 -9
- package/dist/service/http/user/organizations.d.ts +0 -16
- package/dist/service/index.d.ts +0 -1
- package/dist/stories/preview.stories.d.ts +0 -5
- package/dist/tokens/tailwind/animation.d.ts +0 -7
- package/dist/tokens/tailwind/border-radius.d.ts +0 -45
- package/dist/tokens/tailwind/border-width.d.ts +0 -22
- package/dist/tokens/tailwind/box-shadow.d.ts +0 -12
- package/dist/tokens/tailwind/color.d.ts +0 -193
- package/dist/tokens/tailwind/font-size.d.ts +0 -89
- package/dist/tokens/tailwind/font-weight.d.ts +0 -26
- package/dist/tokens/tailwind/index.d.ts +0 -760
- package/dist/tokens/tailwind/keyframes.d.ts +0 -41
- package/dist/tokens/tailwind/opacity.d.ts +0 -28
- package/dist/tokens/tailwind/ring-offset-width.d.ts +0 -6
- package/dist/tokens/tailwind/ring-width.d.ts +0 -11
- package/dist/tokens/tailwind/spacing.d.ts +0 -264
- package/dist/tokens/tailwind/transition-duration.d.ts +0 -5
- package/dist/tokens/tailwind/transition-timing-function.d.ts +0 -4
- package/dist/tokens/tailwind/translate.d.ts +0 -5
- package/dist/types/auth.d.ts +0 -2
- package/dist/types/common/index.d.ts +0 -15
- package/dist/types/components/index.d.ts +0 -3
- package/dist/types/components/pont-primitives.d.ts +0 -7
- package/dist/types/components/pont-widgets.d.ts +0 -1
- package/dist/types/components/user-profile.d.ts +0 -33
- package/dist/types/core/index.d.ts +0 -61
- package/dist/types/index.d.ts +0 -7
- package/dist/types/layout/index.d.ts +0 -256
- package/dist/types/service/http/common/index.d.ts +0 -6
- package/dist/types/service/http/index.d.ts +0 -5
- package/dist/types/service/http/invitation/index.d.ts +0 -47
- package/dist/types/service/http/member/index.d.ts +0 -43
- package/dist/types/service/http/roles/index.d.ts +0 -19
- package/dist/types/service/http/user/index.d.ts +0 -40
- package/dist/types/service/index.d.ts +0 -1
- package/dist/types/styles/index.d.ts +0 -72
- package/dist/utils/components.d.ts +0 -24
- package/dist/utils/flow-error.d.ts +0 -25
- package/dist/utils/format.d.ts +0 -52
- package/dist/utils/html-base64.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -8
- package/dist/utils/instance-unavailable.d.ts +0 -19
- package/dist/utils/login-hint.d.ts +0 -12
- package/dist/utils/post-auth-destination.d.ts +0 -26
- package/dist/utils/storybook.d.ts +0 -1
- package/dist/utils/styles.d.ts +0 -21
- package/dist/utils/svg-base64.d.ts +0 -2
- package/dist/utils/tailwind.d.ts +0 -7
- package/dist/utils/tokens.d.ts +0 -1
- /package/dist/{pont2/core → core}/attrs.d.ts +0 -0
- /package/dist/{pont2/core → core}/context-root.d.ts +0 -0
- /package/dist/{pont2/core → core}/controllers/roving-focus.d.ts +0 -0
- /package/dist/{pont2/core → core}/form-control.d.ts +0 -0
- /package/dist/{pont2/core → core}/popup/index.d.ts +0 -0
- /package/dist/{pont2/core → core}/popup/list.d.ts +0 -0
- /package/dist/{pont2/core → core}/popup/modal.d.ts +0 -0
- /package/dist/{pont2/core → core}/popup/position.d.ts +0 -0
- /package/dist/{pont2/core → core}/popup/story-helpers.d.ts +0 -0
- /package/dist/{pont2/kit → kit}/consent/consent-api.d.ts +0 -0
- /package/dist/{pont2/kit → kit}/data-table/rows.d.ts +0 -0
- /package/dist/{pont2/kit → kit}/multi-email-input/emails.d.ts +0 -0
- /package/dist/{pont2/kit → kit}/pagination/range.d.ts +0 -0
- /package/dist/{pont2/kit → kit}/scope-list/scope-value.d.ts +0 -0
- /package/dist/{pont2/kit → kit}/story-helpers.d.ts +0 -0
- /package/dist/{pont2/kit → kit}/watermark/pontive-logo.d.ts +0 -0
- /package/dist/{pont2/primitives → primitives}/input-otp/otp.d.ts +0 -0
- /package/dist/{pont2/theme → theme}/apply.d.ts +0 -0
- /package/dist/{pont2/theme → theme}/compile.d.ts +0 -0
- /package/dist/{pont2/theme → theme}/manifest.d.ts +0 -0
- /package/dist/{pont2/theme → theme}/validate.d.ts +0 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { nothing, PropertyDeclarations, PropertyValues } from 'lit';
|
|
2
|
+
import { MessagesController } from '../../core/messages';
|
|
3
|
+
import { DropdownMenu } from '../../primitives/dropdown-menu/dropdown-menu';
|
|
4
|
+
import { AccountClient, SessionUser } from '../provider/account-client';
|
|
5
|
+
import { AccountController } from '../provider/account-controller';
|
|
6
|
+
/** One extra entry of the account menu (legacy `menuItems`). */
|
|
7
|
+
export interface AccountMenuItem {
|
|
8
|
+
/** Identifies the item in events and keeps its toggle/select state (default: `label`). */
|
|
9
|
+
id?: string;
|
|
10
|
+
label: string;
|
|
11
|
+
/** `action` (default) runs `onClick` or follows `href`; `toggle` is a checkbox item; `select` a submenu of options. */
|
|
12
|
+
type?: "action" | "toggle" | "select";
|
|
13
|
+
/** An icon shown before the label: a Lit template (an `<svg>`). */
|
|
14
|
+
icon?: unknown;
|
|
15
|
+
/** `destructive` for an action that deletes or leaves. */
|
|
16
|
+
variant?: "default" | "destructive";
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
href?: string;
|
|
19
|
+
onClick?: (event: Event, item: AccountMenuItem) => void;
|
|
20
|
+
checked?: boolean;
|
|
21
|
+
onToggle?: (checked: boolean) => void;
|
|
22
|
+
options?: {
|
|
23
|
+
value: string;
|
|
24
|
+
label: string;
|
|
25
|
+
}[];
|
|
26
|
+
value?: string;
|
|
27
|
+
onSelect?: (value: string) => void;
|
|
28
|
+
}
|
|
29
|
+
/** Detail of `pont-menu-item-click`. */
|
|
30
|
+
export interface MenuItemClickDetail {
|
|
31
|
+
item: AccountMenuItem;
|
|
32
|
+
/** A toggle's new state. */
|
|
33
|
+
checked?: boolean;
|
|
34
|
+
/** A select's chosen value. */
|
|
35
|
+
value?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* # `<pont-account-menu>`: who is signed in, account settings, log out
|
|
39
|
+
*
|
|
40
|
+
* ```html
|
|
41
|
+
* <pont-provider app-id="app_123" domain="auth.acme.com" api-base-url="https://api.us.pontive.com">
|
|
42
|
+
* <pont-account-menu account-settings-url="/account"></pont-account-menu>
|
|
43
|
+
* </pont-provider>
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* The legacy `pont-account-menu` (with its `pont-user-snippet`), as shadcn's
|
|
47
|
+
* "nav user": a ghost button with the user's avatar, name and email opening a
|
|
48
|
+
* Dropdown Menu with the same header, **Account settings**, the app's own
|
|
49
|
+
* `items`, and **Log out**. It **is** the Dropdown Menu primitive's root
|
|
50
|
+
* (`extends DropdownMenu`), so keyboard, focus and dismissal are the menu's.
|
|
51
|
+
*
|
|
52
|
+
* - **Data** comes from the account client (`pont:account-client`, or its own
|
|
53
|
+
* `client`): the user is `client.getUser()`, read again on every session
|
|
54
|
+
* change. It never calls the SDK itself.
|
|
55
|
+
* - **Nothing renders** until the provider has resolved the auth state, nor
|
|
56
|
+
* for a signed-out visitor.
|
|
57
|
+
* - **Account settings** fires `pont-account-settings` (cancelable: cancel it
|
|
58
|
+
* to navigate with a client-side router). Otherwise it goes to
|
|
59
|
+
* `account-settings-url` (not when that is the page already open), else it
|
|
60
|
+
* asks an account-settings dialog to open (`pont-open-account-settings` on
|
|
61
|
+
* `document`).
|
|
62
|
+
* - **Log out** fires `pont-logout` (cancelable: cancel it to sign out
|
|
63
|
+
* yourself), then `client.signOut()`.
|
|
64
|
+
* - **Items** fire `pont-menu-item-click` (`{ item, checked?, value? }`); an
|
|
65
|
+
* action item then runs `onClick`, else follows `href` unless the event was
|
|
66
|
+
* cancelled.
|
|
67
|
+
*
|
|
68
|
+
* Words: `account_settings`, `log_out` (branding-svc Account messages).
|
|
69
|
+
*
|
|
70
|
+
* @tag pont-account-menu
|
|
71
|
+
* @attr account-settings-url - where "Account settings" goes when nothing cancels `pont-account-settings`
|
|
72
|
+
* @prop client - its own `AccountClient` (default: the provider's)
|
|
73
|
+
* @prop items - `AccountMenuItem[]`: entries between "Account settings" and "Log out"
|
|
74
|
+
* @fires pont-account-settings - cancelable, `{}`: "Account settings" was chosen
|
|
75
|
+
* @fires pont-logout - cancelable, `{}`: "Log out" was chosen
|
|
76
|
+
* @fires pont-menu-item-click - cancelable `{ item, checked?, value? }`: one of `items` was chosen
|
|
77
|
+
* @fires pont-open-change - cancelable `{ open, reason }` (the menu's)
|
|
78
|
+
*/
|
|
79
|
+
export declare class AccountMenu extends DropdownMenu {
|
|
80
|
+
static composite: boolean;
|
|
81
|
+
static properties: PropertyDeclarations;
|
|
82
|
+
client: AccountClient | undefined;
|
|
83
|
+
items: AccountMenuItem[];
|
|
84
|
+
accountSettingsUrl: string;
|
|
85
|
+
/** Who is signed in, as last read from the client (null: nobody, or not known yet). */
|
|
86
|
+
user: SessionUser | null;
|
|
87
|
+
protected readonly messages: MessagesController;
|
|
88
|
+
protected readonly account: AccountController;
|
|
89
|
+
/** Toggle and select states, by item key. */
|
|
90
|
+
private itemState;
|
|
91
|
+
constructor();
|
|
92
|
+
private readUser;
|
|
93
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
94
|
+
private onAccountSettings;
|
|
95
|
+
private onLogout;
|
|
96
|
+
private onAction;
|
|
97
|
+
private onToggle;
|
|
98
|
+
private onSelect;
|
|
99
|
+
private snippet;
|
|
100
|
+
private renderItem;
|
|
101
|
+
render(): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
102
|
+
}
|
|
103
|
+
declare global {
|
|
104
|
+
interface HTMLElementTagNameMap {
|
|
105
|
+
"pont-account-menu": AccountMenu;
|
|
106
|
+
}
|
|
107
|
+
interface HTMLElementEventMap {
|
|
108
|
+
"pont-account-settings": CustomEvent<Record<string, never>>;
|
|
109
|
+
"pont-logout": CustomEvent<Record<string, never>>;
|
|
110
|
+
"pont-menu-item-click": CustomEvent<MenuItemClickDetail>;
|
|
111
|
+
}
|
|
112
|
+
interface DocumentEventMap {
|
|
113
|
+
"pont-open-account-settings": CustomEvent<void>;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { nothing, PropertyDeclarations, PropertyValues, TemplateResult } from 'lit';
|
|
2
|
+
import { HostElement } from '../../core/host-element';
|
|
3
|
+
import { MessagesController } from '../../core/messages';
|
|
4
|
+
import { BrandingController } from '../block/branding';
|
|
5
|
+
import { AccountClient, AccountProfile } from '../provider/account-client';
|
|
6
|
+
import { AccountController } from '../provider/account-controller';
|
|
7
|
+
import { ProfileSection, SectionErrors, SectionValues } from './profile';
|
|
8
|
+
export type AccountSettingsMode = "page" | "modal";
|
|
9
|
+
export type AccountSettingsOrientation = "horizontal" | "vertical";
|
|
10
|
+
export type AccountSettingsLayout = "row" | "column";
|
|
11
|
+
/** A card's own title and icon (legacy `IProfileWidgetCustomization`). */
|
|
12
|
+
export interface AccountSettingsCardContent {
|
|
13
|
+
title?: string;
|
|
14
|
+
/** Shown before the title: a Lit template or an element. */
|
|
15
|
+
icon?: unknown;
|
|
16
|
+
}
|
|
17
|
+
/** The cards' titles and icons (legacy `IProfileContentCustomizations`, same keys). */
|
|
18
|
+
export interface AccountSettingsContent {
|
|
19
|
+
account?: AccountSettingsCardContent;
|
|
20
|
+
personalInfo?: AccountSettingsCardContent;
|
|
21
|
+
locations?: AccountSettingsCardContent;
|
|
22
|
+
urls?: AccountSettingsCardContent;
|
|
23
|
+
}
|
|
24
|
+
/** Detail of `pont-profile-updated`. */
|
|
25
|
+
export interface ProfileUpdatedDetail {
|
|
26
|
+
section: ProfileSection;
|
|
27
|
+
profile: AccountProfile;
|
|
28
|
+
}
|
|
29
|
+
type LoadState = "idle" | "loading" | "ready" | "error";
|
|
30
|
+
/**
|
|
31
|
+
* # `<pont-account-settings>`: the signed-in user's own profile
|
|
32
|
+
*
|
|
33
|
+
* ```html
|
|
34
|
+
* <pont-provider app-id="app_123" domain="auth.acme.com" api-base-url="https://api.us.pontive.com">
|
|
35
|
+
* <pont-account-menu></pont-account-menu>
|
|
36
|
+
* <pont-account-settings mode="modal"></pont-account-settings>
|
|
37
|
+
* </pont-provider>
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* The legacy `pont-account-settings`: a Profile tab (Login info with the
|
|
41
|
+
* photo, email and phone; Personal info; Location; Links) and a Security tab
|
|
42
|
+
* (coming soon), each profile card edited and saved on its own.
|
|
43
|
+
*
|
|
44
|
+
* - **Data** comes from the account client (`pont:account-client`, or its own
|
|
45
|
+
* `client`): `getProfile()` (`GET /mgmt/v1/me`) and `updateProfile()`
|
|
46
|
+
* (`PATCH /mgmt/v1/me`). A client without `getProfile` gets a "not available"
|
|
47
|
+
* state; one without `updateProfile` shows the profile read-only.
|
|
48
|
+
* - **Nothing renders** until the auth state is resolved, nor for a
|
|
49
|
+
* signed-out visitor. Signing in as someone else reads the profile again.
|
|
50
|
+
* - **`mode="page"`** (default) shows it in place (a skeleton while the
|
|
51
|
+
* profile loads). **`mode="modal"`** shows it in a Dialog, opened by `open`,
|
|
52
|
+
* `show()`, or the account menu's "Account settings": this element answers
|
|
53
|
+
* the menu's `pont-open-account-settings` (on `document`) with
|
|
54
|
+
* `preventDefault()` and opens. `pont-close-account-settings` on `document`
|
|
55
|
+
* closes it.
|
|
56
|
+
* - **Labels wrap** (carry-over §4): a long translated label keeps a gap from
|
|
57
|
+
* its value and wraps instead of running into it; below 30rem the label
|
|
58
|
+
* sits above the value.
|
|
59
|
+
* - **Errors** are said in the card, in the page's language: a refused save
|
|
60
|
+
* keeps the form open with the section's own failure (`instance_unavailable`
|
|
61
|
+
* for a stopped instance, `connection_failed` with no answer), never the
|
|
62
|
+
* server's English.
|
|
63
|
+
*
|
|
64
|
+
* @tag pont-account-settings
|
|
65
|
+
* @attr mode - `page` (default) | `modal` (legacy `PAGE` / `MODAL`)
|
|
66
|
+
* @attr orientation - `horizontal` (default: the tabs beside the content) | `vertical` (the tabs above it)
|
|
67
|
+
* @attr widgets-layout - `row` (default: label beside value) | `column` (label above value)
|
|
68
|
+
* @attr open - modal mode: whether the dialog is open
|
|
69
|
+
* @prop client - its own `AccountClient` (default: the provider's)
|
|
70
|
+
* @prop content - `AccountSettingsContent`: the cards' own titles and icons
|
|
71
|
+
* @prop profile - `AccountProfile | null` (read-only): the profile shown
|
|
72
|
+
* @fires pont-profile-updated - `{ section, profile }`, after a section was saved
|
|
73
|
+
* @fires pont-open-change - modal mode: cancelable `{ open, reason }` (the dialog's)
|
|
74
|
+
*/
|
|
75
|
+
export declare class AccountSettings extends HostElement {
|
|
76
|
+
static composite: boolean;
|
|
77
|
+
static properties: PropertyDeclarations;
|
|
78
|
+
client: AccountClient | undefined;
|
|
79
|
+
mode: AccountSettingsMode;
|
|
80
|
+
orientation: AccountSettingsOrientation;
|
|
81
|
+
widgetsLayout: AccountSettingsLayout;
|
|
82
|
+
open: boolean;
|
|
83
|
+
content: AccountSettingsContent | null;
|
|
84
|
+
profile: AccountProfile | null;
|
|
85
|
+
protected loadState: LoadState;
|
|
86
|
+
protected loadProblem: {
|
|
87
|
+
message: string;
|
|
88
|
+
retry: boolean;
|
|
89
|
+
} | null;
|
|
90
|
+
/** The section being edited (one at a time). */
|
|
91
|
+
protected editing: ProfileSection | null;
|
|
92
|
+
protected draft: SectionValues;
|
|
93
|
+
protected errors: SectionErrors;
|
|
94
|
+
protected saving: boolean;
|
|
95
|
+
protected saveError: string | null;
|
|
96
|
+
protected readonly messages: MessagesController;
|
|
97
|
+
protected readonly branding: BrandingController;
|
|
98
|
+
protected readonly account: AccountController;
|
|
99
|
+
private readonly ids;
|
|
100
|
+
private loadSeq;
|
|
101
|
+
/** Who the profile was read for (`sub`). */
|
|
102
|
+
private loadedFor;
|
|
103
|
+
private zones;
|
|
104
|
+
constructor();
|
|
105
|
+
connectedCallback(): void;
|
|
106
|
+
disconnectedCallback(): void;
|
|
107
|
+
/** Modal mode: opens the dialog. */
|
|
108
|
+
show(): void;
|
|
109
|
+
/** Modal mode: closes the dialog. */
|
|
110
|
+
close(): void;
|
|
111
|
+
/** Reads the profile again. */
|
|
112
|
+
reload(): Promise<void>;
|
|
113
|
+
/** `pont-open-account-settings`: the menu's "Account settings" had no URL and nothing cancelled it. */
|
|
114
|
+
private onOpenRequest;
|
|
115
|
+
private onCloseRequest;
|
|
116
|
+
private refresh;
|
|
117
|
+
private whoAmI;
|
|
118
|
+
private get available();
|
|
119
|
+
private get editable();
|
|
120
|
+
private load;
|
|
121
|
+
private startEdit;
|
|
122
|
+
private cancelEdit;
|
|
123
|
+
private setDraft;
|
|
124
|
+
private save;
|
|
125
|
+
private timeZoneList;
|
|
126
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
127
|
+
private fieldId;
|
|
128
|
+
private onDialogOpenChange;
|
|
129
|
+
render(): TemplateResult<1> | typeof nothing;
|
|
130
|
+
private renderBody;
|
|
131
|
+
private renderSkeleton;
|
|
132
|
+
private renderWatermark;
|
|
133
|
+
private cardHeader;
|
|
134
|
+
/** A label / value pair; wraps (carry-over §4). */
|
|
135
|
+
private row;
|
|
136
|
+
private shown;
|
|
137
|
+
private renderLoginInfo;
|
|
138
|
+
private renderSection;
|
|
139
|
+
private displayValue;
|
|
140
|
+
private control;
|
|
141
|
+
private onSubmit;
|
|
142
|
+
private formButtons;
|
|
143
|
+
private renderSaveError;
|
|
144
|
+
private renderSecurity;
|
|
145
|
+
}
|
|
146
|
+
declare global {
|
|
147
|
+
interface HTMLElementTagNameMap {
|
|
148
|
+
"pont-account-settings": AccountSettings;
|
|
149
|
+
}
|
|
150
|
+
interface HTMLElementEventMap {
|
|
151
|
+
"pont-profile-updated": CustomEvent<ProfileUpdatedDetail>;
|
|
152
|
+
}
|
|
153
|
+
interface DocumentEventMap {
|
|
154
|
+
"pont-close-account-settings": CustomEvent<void>;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { KitMessageCode } from '../../core/messages';
|
|
2
|
+
import { AccountProfile, AccountProfileUpdate } from '../provider/account-client';
|
|
3
|
+
/**
|
|
4
|
+
* # Account settings' profile sections: values, rules, updates (W-8)
|
|
5
|
+
*
|
|
6
|
+
* Pure, so the rules can be unit-tested (`profile.test.ts`). The four cards
|
|
7
|
+
* of the legacy profile tab, each edited and saved on its own:
|
|
8
|
+
*
|
|
9
|
+
* | Section | Fields (`/mgmt/v1/me`) |
|
|
10
|
+
* |---|---|
|
|
11
|
+
* | `photo` (in the Login info card) | `picture` |
|
|
12
|
+
* | `personal` | `username`, `given_name`, `middle_name`, `family_name`, `nickname`, `gender`, `profile` (bio) |
|
|
13
|
+
* | `location` | `address.locality`, `zoneinfo` |
|
|
14
|
+
* | `links` | `website` |
|
|
15
|
+
*
|
|
16
|
+
* Email and phone show in the Login info card, read-only (they are
|
|
17
|
+
* identifiers, changed through a verification flow, not here).
|
|
18
|
+
*/
|
|
19
|
+
export type ProfileSection = "photo" | "personal" | "location" | "links";
|
|
20
|
+
export type FieldKey = "picture" | "username" | "given_name" | "middle_name" | "family_name" | "nickname" | "gender" | "profile" | "locality" | "zoneinfo" | "website";
|
|
21
|
+
export type SectionValues = Partial<Record<FieldKey, string>>;
|
|
22
|
+
export type SectionErrors = Partial<Record<FieldKey, string>>;
|
|
23
|
+
export declare const SECTION_FIELDS: Record<ProfileSection, FieldKey[]>;
|
|
24
|
+
/** Each field's label. */
|
|
25
|
+
export declare const FIELD_LABELS: Record<FieldKey, KitMessageCode>;
|
|
26
|
+
/**
|
|
27
|
+
* The longest value each text field takes (`maxlength`; the server's limits). The legacy cards
|
|
28
|
+
* said "X cannot be longer than 100 characters" in English; the input simply stops there instead,
|
|
29
|
+
* which needs no words (account text takes no placeholders).
|
|
30
|
+
*/
|
|
31
|
+
export declare const MAX_LENGTH: Partial<Record<FieldKey, number>>;
|
|
32
|
+
/** Where a failed save says why. */
|
|
33
|
+
export declare const SAVE_FAILED: Record<ProfileSection, KitMessageCode>;
|
|
34
|
+
/** The stored gender values (the legacy options' values) and their words. */
|
|
35
|
+
export declare const GENDERS: {
|
|
36
|
+
value: string;
|
|
37
|
+
label: KitMessageCode;
|
|
38
|
+
}[];
|
|
39
|
+
/** A stored gender in the page's language; a value from elsewhere shows as stored. */
|
|
40
|
+
export declare function genderLabel(value: string | undefined): string;
|
|
41
|
+
/** What a field shows (and its edit box starts with) for `profile`. */
|
|
42
|
+
export declare function fieldValue(profile: AccountProfile | null | undefined, key: FieldKey): string;
|
|
43
|
+
/** A section's values from `profile`, for its edit form. */
|
|
44
|
+
export declare function sectionValues(profile: AccountProfile | null | undefined, section: ProfileSection): SectionValues;
|
|
45
|
+
/** IANA time zone names, from the browser's own tz database (with the user's zone and UTC at least). */
|
|
46
|
+
export declare function timeZones(): string[];
|
|
47
|
+
/** Why an http(s) URL field is wrong (`url_hint`, `url_scheme_invalid`), or undefined when it is fine or empty. */
|
|
48
|
+
export declare function urlProblem(raw: string): KitMessageCode | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* The rules the server applies anyway, run here so a refusal is a message beside the field. Every
|
|
51
|
+
* field is optional: a rule only fires on a value typed. `zones` is the time zone list the select
|
|
52
|
+
* offers (a stored value from before the select may be free text: `timezone_hint`).
|
|
53
|
+
*/
|
|
54
|
+
export declare function validateSection(section: ProfileSection, values: SectionValues, zones?: string[]): SectionErrors;
|
|
55
|
+
/** The `PATCH /me` body for a section: its fields, trimmed (the address merged, so the rest of it is kept). */
|
|
56
|
+
export declare function sectionUpdate(section: ProfileSection, values: SectionValues, profile: AccountProfile | null | undefined): AccountProfileUpdate;
|
|
57
|
+
/**
|
|
58
|
+
* A stored website as a link target: absolute http(s) only (carry-over §7's rule), a bare
|
|
59
|
+
* "example.com" from before the field was validated taken as https. `null`: show it as text.
|
|
60
|
+
*/
|
|
61
|
+
export declare function websiteHref(value: string | undefined): string | null;
|
|
62
|
+
/** A stored picture URL fit for an `<img src>`: absolute http(s) or a data:image URL, else `null`. */
|
|
63
|
+
export declare function pictureSrc(value: string | undefined): string | null;
|
|
64
|
+
/**
|
|
65
|
+
* Why a save failed, in the person's words: a stopped instance says so (§6), no answer is
|
|
66
|
+
* `connection_failed`, anything else the section's own failure. Never the server's English
|
|
67
|
+
* (`/me` is the management API, whose refusals are English only).
|
|
68
|
+
*/
|
|
69
|
+
export declare function describeProfileError(error: unknown, fallback: KitMessageCode): string;
|
|
70
|
+
/** Why the profile couldn't be read, and whether trying again could help. */
|
|
71
|
+
export declare function describeProfileLoadError(error: unknown): {
|
|
72
|
+
message: string;
|
|
73
|
+
retry: boolean;
|
|
74
|
+
};
|
|
@@ -3,24 +3,24 @@ import { Alert } from '../../primitives/alert/alert';
|
|
|
3
3
|
export declare const ALERT_STATUSES: readonly ["default", "error", "warning", "success", "info"];
|
|
4
4
|
export type AlertStatus = (typeof ALERT_STATUSES)[number];
|
|
5
5
|
/**
|
|
6
|
-
* # `<
|
|
6
|
+
* # `<pont-alert>`: kit composite over `<pont-prim-alert>`
|
|
7
7
|
*
|
|
8
|
-
* The props-driven form of shadcn's Alert, and
|
|
8
|
+
* The props-driven form of shadcn's Alert, and pont's version of the legacy
|
|
9
9
|
* `pont-alert` (which composed `pont-callout`, the legacy shadcn alert).
|
|
10
10
|
*
|
|
11
11
|
* ```html
|
|
12
|
-
* <
|
|
13
|
-
* description="Check your card details and try again."></
|
|
12
|
+
* <pont-alert status="error" icon heading="Payment failed"
|
|
13
|
+
* description="Check your card details and try again."></pont-alert>
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
16
|
* renders exactly the DOM the primitive form produces:
|
|
17
17
|
*
|
|
18
18
|
* ```html
|
|
19
|
-
* <
|
|
19
|
+
* <pont-alert data-pont-alert data-slot="alert" data-variant="destructive" data-status="error">
|
|
20
20
|
* <svg …/>
|
|
21
|
-
* <div data-
|
|
22
|
-
* <div data-
|
|
23
|
-
* </
|
|
21
|
+
* <div data-pont-alert-title data-slot="alert-title">Payment failed</div>
|
|
22
|
+
* <div data-pont-alert-description data-slot="alert-description">Check your…</div>
|
|
23
|
+
* </pont-alert>
|
|
24
24
|
* ```
|
|
25
25
|
*
|
|
26
26
|
* - **It is a primitive Alert** (`extends Alert`): same identity, slot, recipe
|
|
@@ -28,7 +28,7 @@ export type AlertStatus = (typeof ALERT_STATUSES)[number];
|
|
|
28
28
|
* with the primitive's attributes), not nested elements.
|
|
29
29
|
* - **What it adds** over shadcn: `status` (`error` maps to shadcn's
|
|
30
30
|
* `destructive` variant; `warning`/`success`/`info` are coloured in
|
|
31
|
-
* `@layer
|
|
31
|
+
* `@layer pont.kit` with the `--pont-sem-color-success|warning|info` tokens), a
|
|
32
32
|
* status icon, and a status-appropriate role (`alert` for error/warning,
|
|
33
33
|
* `status` otherwise, as the legacy `pont-alert` did). An author `role`
|
|
34
34
|
* attribute still wins.
|
|
@@ -38,12 +38,12 @@ export type AlertStatus = (typeof ALERT_STATUSES)[number];
|
|
|
38
38
|
* `heading` instead of `title`: `title` is a global HTML attribute that shows
|
|
39
39
|
* a native tooltip, so the attribute would leak onto the whole alert.
|
|
40
40
|
*
|
|
41
|
-
* @tag
|
|
41
|
+
* @tag pont-alert
|
|
42
42
|
* @attr status - default | error | warning | success | info
|
|
43
43
|
* @attr heading - the alert title text
|
|
44
44
|
* @attr description - the description text
|
|
45
45
|
* @attr icon - show the status icon
|
|
46
|
-
* @cssprop --
|
|
46
|
+
* @cssprop --pont-alert-warning-fg, --pont-alert-success-fg, --pont-alert-info-fg - status colours (default the sem status colours)
|
|
47
47
|
*/
|
|
48
48
|
export declare class KitAlert extends Alert {
|
|
49
49
|
static composite: boolean;
|
|
@@ -58,6 +58,6 @@ export declare class KitAlert extends Alert {
|
|
|
58
58
|
}
|
|
59
59
|
declare global {
|
|
60
60
|
interface HTMLElementTagNameMap {
|
|
61
|
-
"
|
|
61
|
+
"pont-alert": KitAlert;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Badge } from '../primitives/badge/badge';
|
|
2
|
+
import { PontButton } from '../primitives/button/button';
|
|
3
|
+
import { Checkbox } from '../primitives/checkbox/checkbox';
|
|
4
|
+
import { PontInput } from '../primitives/input/input';
|
|
5
|
+
import { Kbd, KbdGroup } from '../primitives/kbd/kbd';
|
|
6
|
+
import { PontLabel } from '../primitives/label/label';
|
|
7
|
+
import { NativeSelect } from '../primitives/native-select/native-select';
|
|
8
|
+
import { Separator } from '../primitives/separator/separator';
|
|
9
|
+
import { Skeleton } from '../primitives/skeleton/skeleton';
|
|
10
|
+
import { Slider } from '../primitives/slider/slider';
|
|
11
|
+
import { Spinner } from '../primitives/spinner/spinner';
|
|
12
|
+
import { Switch } from '../primitives/switch/switch';
|
|
13
|
+
import { Table } from '../primitives/table/table';
|
|
14
|
+
import { PontTextarea } from '../primitives/textarea/textarea';
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
"pont-badge": Badge;
|
|
18
|
+
"pont-button": PontButton;
|
|
19
|
+
"pont-checkbox": Checkbox;
|
|
20
|
+
"pont-input": PontInput;
|
|
21
|
+
"pont-kbd": Kbd;
|
|
22
|
+
"pont-kbd-group": KbdGroup;
|
|
23
|
+
"pont-label": PontLabel;
|
|
24
|
+
"pont-native-select": NativeSelect;
|
|
25
|
+
"pont-separator": Separator;
|
|
26
|
+
"pont-skeleton": Skeleton;
|
|
27
|
+
"pont-slider": Slider;
|
|
28
|
+
"pont-spinner": Spinner;
|
|
29
|
+
"pont-switch": Switch;
|
|
30
|
+
"pont-table": Table;
|
|
31
|
+
"pont-textarea": PontTextarea;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -14,15 +14,15 @@ export type AuthButtonIconAlign = (typeof AUTH_BUTTON_ICON_ALIGNS)[number];
|
|
|
14
14
|
*
|
|
15
15
|
* An auth button **is a Button** (`extends ButtonBase`: variant, size,
|
|
16
16
|
* disabled, type… inherited, nothing forwarded) and **has action behaviour**
|
|
17
|
-
* (`ActionController`: the `
|
|
17
|
+
* (`ActionController`: the `pont-action` request/response protocol, see
|
|
18
18
|
* core/controllers/action.ts). Its DOM is the button primitive's:
|
|
19
19
|
*
|
|
20
20
|
* ```html
|
|
21
|
-
* <
|
|
22
|
-
* <button data-
|
|
21
|
+
* <pont-provider-button provider="google" data-pont-shell> ← display: contents
|
|
22
|
+
* <button data-pont-button data-slot="button" data-variant="outline" data-provider="google" type="button">
|
|
23
23
|
* <svg data-icon="inline-start" …/>Continue with Google
|
|
24
24
|
* </button>
|
|
25
|
-
* </
|
|
25
|
+
* </pont-provider-button>
|
|
26
26
|
* ```
|
|
27
27
|
*
|
|
28
28
|
* Two nodes; the legacy `pont-provider-button > pont-button > button` has three.
|
|
@@ -60,7 +60,7 @@ export declare abstract class AuthButton extends ButtonBase {
|
|
|
60
60
|
protected abstract defaultLabel(): string;
|
|
61
61
|
/** The button's icon, with the attributes shadcn's button CSS keys on. */
|
|
62
62
|
protected abstract renderIcon(attrs: Record<string, string>): TemplateResult | typeof nothing;
|
|
63
|
-
/** Data sent with the `
|
|
63
|
+
/** Data sent with the `pont-action` request. */
|
|
64
64
|
protected actionData(): Record<string, unknown>;
|
|
65
65
|
/** What a press does. The default requests the action. */
|
|
66
66
|
protected onPress(_e: MouseEvent): void;
|
|
@@ -71,17 +71,17 @@ export declare abstract class AuthButton extends ButtonBase {
|
|
|
71
71
|
protected renderContent(): TemplateResult<1>;
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
-
* # `<
|
|
74
|
+
* # `<pont-provider-button>`: sign in with an identity provider
|
|
75
75
|
*
|
|
76
76
|
* ```html
|
|
77
|
-
* <
|
|
77
|
+
* <pont-provider-button provider="google" event="oauth_google"></pont-provider-button>
|
|
78
78
|
* ```
|
|
79
79
|
*
|
|
80
80
|
* Defaults: `variant="outline"`, `content="icon-label"`, label
|
|
81
81
|
* "`prompt` + provider name" ("Continue with Google"). Pressing requests
|
|
82
82
|
* `event` with `{ provider }` (see AuthButton).
|
|
83
83
|
*
|
|
84
|
-
* @tag
|
|
84
|
+
* @tag pont-provider-button
|
|
85
85
|
* @attr provider - apple | discord | facebook | github | google | linkedin | meta | microsoft | x
|
|
86
86
|
* @attr prompt - text before the provider name in the default label (default "Continue with")
|
|
87
87
|
* @attr label - replaces the whole default label
|
|
@@ -89,9 +89,9 @@ export declare abstract class AuthButton extends ButtonBase {
|
|
|
89
89
|
* @attr content - label | icon-label (default) | icon
|
|
90
90
|
* @attr icon-align - start (default) | end
|
|
91
91
|
* @attr loading - busy state set by the owner
|
|
92
|
-
* @fires
|
|
93
|
-
* @fires
|
|
94
|
-
* @fires
|
|
92
|
+
* @fires pont-action - `{ action, data: { provider }, respondWith }` on press
|
|
93
|
+
* @fires pont-action-success - `{ action, data, result }`
|
|
94
|
+
* @fires pont-action-error - `{ action, data, error, message }`
|
|
95
95
|
*/
|
|
96
96
|
export declare class ProviderButton extends AuthButton {
|
|
97
97
|
static properties: PropertyDeclarations;
|
|
@@ -112,10 +112,10 @@ export declare class ProviderButton extends AuthButton {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
|
-
* # `<
|
|
115
|
+
* # `<pont-passkey-button>`: sign in with a passkey
|
|
116
116
|
*
|
|
117
117
|
* ```html
|
|
118
|
-
* <
|
|
118
|
+
* <pont-passkey-button event="passkey_login"></pont-passkey-button>
|
|
119
119
|
* ```
|
|
120
120
|
*
|
|
121
121
|
* Defaults: `variant="secondary"`, `content="label"`, label "Continue with
|
|
@@ -126,9 +126,9 @@ export declare class ProviderButton extends AuthButton {
|
|
|
126
126
|
* inside the click, so the call keeps the user activation that
|
|
127
127
|
* `navigator.credentials.get()` needs in Safari.
|
|
128
128
|
*
|
|
129
|
-
* @tag
|
|
129
|
+
* @tag pont-passkey-button
|
|
130
130
|
* @attr label, event, content, icon-align, loading - see ProviderButton
|
|
131
|
-
* @fires
|
|
131
|
+
* @fires pont-action, pont-action-success, pont-action-error
|
|
132
132
|
*/
|
|
133
133
|
export declare class PasskeyButton extends AuthButton {
|
|
134
134
|
constructor();
|
|
@@ -136,12 +136,12 @@ export declare class PasskeyButton extends AuthButton {
|
|
|
136
136
|
protected renderIcon(a: Record<string, string>): TemplateResult<1>;
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
139
|
-
* # `<
|
|
139
|
+
* # `<pont-submit-button>`: submit an auth form
|
|
140
140
|
*
|
|
141
141
|
* ```html
|
|
142
142
|
* <form>
|
|
143
143
|
* …fields…
|
|
144
|
-
* <
|
|
144
|
+
* <pont-submit-button event="submit_password"></pont-submit-button>
|
|
145
145
|
* </form>
|
|
146
146
|
* ```
|
|
147
147
|
*
|
|
@@ -168,10 +168,10 @@ export declare class PasskeyButton extends AuthButton {
|
|
|
168
168
|
* Defaults: `variant="default"`, `content="label"`, `icon-align="end"`,
|
|
169
169
|
* label "Submit", icon lucide `arrow-right`.
|
|
170
170
|
*
|
|
171
|
-
* @tag
|
|
171
|
+
* @tag pont-submit-button
|
|
172
172
|
* @attr label, event, content, icon-align, loading - see ProviderButton
|
|
173
|
-
* @fires
|
|
174
|
-
* @fires
|
|
173
|
+
* @fires pont-action - `{ action, data: { form, formData }, respondWith }` on submit
|
|
174
|
+
* @fires pont-action-success, pont-action-error
|
|
175
175
|
*/
|
|
176
176
|
export declare class SubmitButton extends AuthButton {
|
|
177
177
|
constructor();
|
|
@@ -184,8 +184,8 @@ export declare class SubmitButton extends AuthButton {
|
|
|
184
184
|
}
|
|
185
185
|
declare global {
|
|
186
186
|
interface HTMLElementTagNameMap {
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
187
|
+
"pont-provider-button": ProviderButton;
|
|
188
|
+
"pont-passkey-button": PasskeyButton;
|
|
189
|
+
"pont-submit-button": SubmitButton;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
@@ -4,8 +4,8 @@ import { AttrMap } from '../../core/attrs';
|
|
|
4
4
|
*
|
|
5
5
|
* The marks are Simple Icons (https://simpleicons.org, CC0-1.0), the same
|
|
6
6
|
* geometry the legacy kit ships (src/components/renderers/auth/button/
|
|
7
|
-
* button.defs.ts).
|
|
8
|
-
* the legacy kit (docs/08-parallel-constraints.md).
|
|
7
|
+
* button.defs.ts). pont keeps its own copy because it imports nothing from
|
|
8
|
+
* the legacy kit (docs/archive/pont2-migration/08-parallel-constraints.md).
|
|
9
9
|
*/
|
|
10
10
|
export declare const AUTH_PROVIDERS: readonly ["apple", "discord", "facebook", "github", "google", "linkedin", "meta", "microsoft", "x"];
|
|
11
11
|
export type AuthProvider = (typeof AUTH_PROVIDERS)[number];
|