@pontive/pontkit-core 1.40.0 → 3.0.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 +5167 -30137
- package/dist/{pont2/theme → theme}/fonts.d.ts +3 -3
- package/dist/{pont2/theme → theme}/golden.d.ts +1 -1
- package/dist/{pont2/theme → theme}/index.d.ts +2 -2
- package/dist/{pont2/theme → theme}/scopes.d.ts +2 -2
- package/dist/{pont2/theme → theme}/shadcn.d.ts +1 -1
- package/dist/{pont2/theme → theme}/types.d.ts +6 -6
- package/dist/{pont2/theme → theme}/value.d.ts +1 -1
- package/dist/{pont2/theme → theme}/vocabulary.d.ts +5 -5
- package/dist/{pont2/theme-golden.json → theme-golden.json} +64 -64
- package/dist/theme.mjs +425 -0
- package/dist/theme.mjs.map +1 -0
- package/dist/{pont2/tokens.json → tokens.json} +1060 -1060
- 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/tokens.json.d.ts +0 -8515
- 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
|
@@ -10,14 +10,14 @@ export type LogoAlign = (typeof LOGO_ALIGNS)[number];
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function logoSource(raw: string | undefined, theme: "light" | "dark"): string;
|
|
12
12
|
/**
|
|
13
|
-
* # `<
|
|
13
|
+
* # `<pont-logo>`: the application's logo
|
|
14
14
|
*
|
|
15
15
|
* ```html
|
|
16
|
-
* <
|
|
17
|
-
* → <
|
|
16
|
+
* <pont-logo image-url="https://cdn.example.com/logo-{{theme}}.svg" alt="Acme"></pont-logo>
|
|
17
|
+
* → <pont-logo data-pont-logo data-slot="logo" data-align="center">
|
|
18
18
|
* <img data-logo-theme="light" src="…logo-light.svg" alt="Acme">
|
|
19
19
|
* <img data-logo-theme="dark" src="…logo-dark.svg" alt="Acme"> (only when it differs)
|
|
20
|
-
* </
|
|
20
|
+
* </pont-logo>
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
23
|
* **Always an `<img>`.** The legacy element decoded base64 SVG and injected
|
|
@@ -28,9 +28,9 @@ export declare function logoSource(raw: string | undefined, theme: "light" | "da
|
|
|
28
28
|
* **Dark mode by CSS**, not by watching `<html data-theme>`: when the dark
|
|
29
29
|
* source differs (`image-url-dark`, or `{{theme}}` in the URL), both images
|
|
30
30
|
* are rendered and the stylesheet shows the right one under `.dark` /
|
|
31
|
-
* `[data-theme="dark"]` (the
|
|
31
|
+
* `[data-theme="dark"]` (the pont dark-mode switches).
|
|
32
32
|
*
|
|
33
|
-
* @tag
|
|
33
|
+
* @tag pont-logo
|
|
34
34
|
* @attr image-url - URL, `data:` URI or bare base64 SVG; `{{theme}}` is replaced
|
|
35
35
|
* @attr image-url-dark - dark-mode source (default: `image-url` with `{{theme}}` = dark)
|
|
36
36
|
* @attr alt - default "Logo" (legacy); set the brand name
|
|
@@ -56,6 +56,6 @@ export declare class Logo extends HostElement {
|
|
|
56
56
|
}
|
|
57
57
|
declare global {
|
|
58
58
|
interface HTMLElementTagNameMap {
|
|
59
|
-
"
|
|
59
|
+
"pont-logo": Logo;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { isNetworkFailure, tokenErrorCode } from '../provider/account-client';
|
|
2
|
+
export { isNetworkFailure, tokenErrorCode };
|
|
3
|
+
/**
|
|
4
|
+
* # Member management's errors, in the person's words (carry-over §5, §6)
|
|
5
|
+
*
|
|
6
|
+
* A failure is said, never shown as an empty table. The legacy
|
|
7
|
+
* `pont-member-management/errors.ts`, ported onto the account client: the
|
|
8
|
+
* management token's refusals come from `getManagementScopes()` (the SDK's
|
|
9
|
+
* `ManagementTokenError`, which has a `code`), the API's from the request
|
|
10
|
+
* methods (`AccountApiError`, `status` + `code`). Pure: what the widget
|
|
11
|
+
* would need from the session is passed in. Unit-tested in `errors.test.ts`.
|
|
12
|
+
*/
|
|
13
|
+
/** The organization-member scopes (`ORGANIZATION_MEMBER_SCOPES` in `@pontive/oidc-client`). */
|
|
14
|
+
export declare const MEMBER_SCOPES: {
|
|
15
|
+
/** List members and invitations, list the assignable roles. */
|
|
16
|
+
readonly read: "pontive:org:member:read";
|
|
17
|
+
/** Remove a member, change a member's roles. */
|
|
18
|
+
readonly manage: "pontive:org:member:manage";
|
|
19
|
+
/** Send, resend and revoke invitations. */
|
|
20
|
+
readonly invite: "pontive:org:member:invite";
|
|
21
|
+
};
|
|
22
|
+
/** What the widget shows instead of its tables when it cannot show them. */
|
|
23
|
+
export interface LoadProblem {
|
|
24
|
+
message: string;
|
|
25
|
+
/** Whether trying again could help (a "Try again" button). */
|
|
26
|
+
retry: boolean;
|
|
27
|
+
/** For the app's developer, logged with `console.warn`: the setup the app is missing. */
|
|
28
|
+
hint?: string;
|
|
29
|
+
}
|
|
30
|
+
/** What `describeLoadError` needs to know about the app. */
|
|
31
|
+
export interface LoadErrorContext {
|
|
32
|
+
/** The scopes the app requests at sign-in (`client.requestedScopes()`); undefined when the client can't say. */
|
|
33
|
+
requestedScopes?: string[];
|
|
34
|
+
}
|
|
35
|
+
/** The SDK says the session changed (signed out, in again, switched) while the token was being drawn: ask again. */
|
|
36
|
+
export declare function isSessionChanged(error: unknown): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Why loading failed, for the person on the page; and, where the cause is the app's setup rather
|
|
39
|
+
* than the person, a `hint` for its developer (the widget logs it).
|
|
40
|
+
*/
|
|
41
|
+
export declare function describeLoadError(error: unknown, context?: LoadErrorContext): LoadProblem;
|
|
42
|
+
/**
|
|
43
|
+
* The refusals of a member change the server names (pontive-spec 41 §6), each with its own
|
|
44
|
+
* message: a role change of one's own, the role ceiling, roles changed meanwhile, giving / changing
|
|
45
|
+
* / removing `owner` without the right to transfer ownership, and leaving (removing oneself) an
|
|
46
|
+
* organization that doesn't let members leave.
|
|
47
|
+
*/
|
|
48
|
+
export declare const ACTION_CODES: readonly ["self_role_change", "role_ceiling", "member_roles_changed", "owner_transfer_required", "leave_disabled"];
|
|
49
|
+
/** The failure messages a member change can fall back to. */
|
|
50
|
+
export type ActionFailure = "invite_failed" | "update_roles_failed" | "remove_member_failed" | "resend_invitation_failed" | "revoke_invitation_failed";
|
|
51
|
+
/**
|
|
52
|
+
* Why an action failed, in the person's words; `fallback` when there is no better one.
|
|
53
|
+
*
|
|
54
|
+
* A 403 the widget has no message for is "You don't have permission…" only when the session holds
|
|
55
|
+
* no member write scope (`mayWrite`: the management token's manage or invite scope). Someone who
|
|
56
|
+
* can manage members was refused this one change, so they are told that (`member_change_refused`).
|
|
57
|
+
*/
|
|
58
|
+
export declare function describeActionError(error: unknown, fallback: ActionFailure, mayWrite: boolean): string;
|
|
59
|
+
/** The server refused a role change because the member's roles moved meanwhile: read them again. */
|
|
60
|
+
export declare function isRolesChanged(error: unknown): boolean;
|
|
@@ -0,0 +1,237 @@
|
|
|
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, AccountMembersApi, AssignableRole, OrganizationInvitation, OrganizationMember } from '../provider/account-client';
|
|
6
|
+
import { AccountController } from '../provider/account-controller';
|
|
7
|
+
import { LoadProblem } from './errors';
|
|
8
|
+
export type MemberManagementMode = "page" | "modal";
|
|
9
|
+
/** Detail of `pont-members-invited`. */
|
|
10
|
+
export interface MembersInvitedDetail {
|
|
11
|
+
organizationId: string;
|
|
12
|
+
emails: string[];
|
|
13
|
+
roles: string[];
|
|
14
|
+
invitations: OrganizationInvitation[];
|
|
15
|
+
}
|
|
16
|
+
/** Detail of `pont-member-roles-updated`. */
|
|
17
|
+
export interface MemberRolesUpdatedDetail {
|
|
18
|
+
organizationId: string;
|
|
19
|
+
userId: string;
|
|
20
|
+
roles: string[];
|
|
21
|
+
}
|
|
22
|
+
/** Detail of `pont-member-removed`. */
|
|
23
|
+
export interface MemberRemovedDetail {
|
|
24
|
+
organizationId: string;
|
|
25
|
+
userId: string;
|
|
26
|
+
}
|
|
27
|
+
/** Detail of `pont-invitation-resent` and `pont-invitation-revoked`. */
|
|
28
|
+
export interface InvitationChangedDetail {
|
|
29
|
+
organizationId: string;
|
|
30
|
+
invitationId: string;
|
|
31
|
+
email: string;
|
|
32
|
+
/** Revoke only: whether the invitee was told. */
|
|
33
|
+
notifyInvitee?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/** The page sizes offered ("Rows per page"). */
|
|
36
|
+
export declare const PAGE_SIZES: readonly [5, 10, 25];
|
|
37
|
+
/** The most addresses one invitation request takes (the legacy form's limit). */
|
|
38
|
+
export declare const MAX_INVITE_EMAILS = 10;
|
|
39
|
+
interface ListState<T> {
|
|
40
|
+
rows: T[];
|
|
41
|
+
page: number;
|
|
42
|
+
totalPages: number;
|
|
43
|
+
total: number;
|
|
44
|
+
loading: boolean;
|
|
45
|
+
search: string;
|
|
46
|
+
roles: string[];
|
|
47
|
+
}
|
|
48
|
+
type Confirm = {
|
|
49
|
+
kind: "remove";
|
|
50
|
+
member: OrganizationMember;
|
|
51
|
+
} | {
|
|
52
|
+
kind: "resend";
|
|
53
|
+
invitation: OrganizationInvitation;
|
|
54
|
+
} | {
|
|
55
|
+
kind: "revoke";
|
|
56
|
+
invitation: OrganizationInvitation;
|
|
57
|
+
};
|
|
58
|
+
type Form = {
|
|
59
|
+
kind: "invite";
|
|
60
|
+
} | {
|
|
61
|
+
kind: "roles";
|
|
62
|
+
member: OrganizationMember;
|
|
63
|
+
};
|
|
64
|
+
/** Whether `client` has the member-management part (an app's own client may not). */
|
|
65
|
+
export declare function hasMembersApi(client: AccountClient | undefined): client is AccountClient & AccountMembersApi;
|
|
66
|
+
/** "6–10 / 23": which rows of how many, numbers and punctuation only (account text takes no placeholders). */
|
|
67
|
+
export declare function pageRange(page: number, pageSize: number, total: number, locale?: string): string;
|
|
68
|
+
/**
|
|
69
|
+
* # `<pont-member-management>`: an organization's members and invitations
|
|
70
|
+
*
|
|
71
|
+
* ```html
|
|
72
|
+
* <pont-provider app-id="app_123" domain="auth.acme.com" api-base-url="https://api.us.pontive.com"
|
|
73
|
+
* scope="openid email profile offline_access pontive:org:member:read pontive:org:member:manage pontive:org:member:invite">
|
|
74
|
+
* <pont-organization-switcher></pont-organization-switcher>
|
|
75
|
+
* <pont-member-management></pont-member-management>
|
|
76
|
+
* </pont-provider>
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* The legacy `pont-member-management` (pontive-spec 41 §5.4–§5.6), with every
|
|
80
|
+
* rule of carry-over §5:
|
|
81
|
+
*
|
|
82
|
+
* - **Data** through the account client's members part (`listMembers`,
|
|
83
|
+
* `listInvitations`, `listAssignableRoles`, `inviteMembers`,
|
|
84
|
+
* `updateMemberRoles`, `removeMember`, `resendInvitation`,
|
|
85
|
+
* `revokeInvitation`), each drawing a **management-API token** per request
|
|
86
|
+
* (the default client does; never the session's token). A client without
|
|
87
|
+
* that part gets a "not available" state.
|
|
88
|
+
* - **Controls by scope**, from the management token (`getManagementScopes`):
|
|
89
|
+
* the lists need `…:read`; changing roles and removing need `…:manage`;
|
|
90
|
+
* inviting, resending and revoking need `…:invite`.
|
|
91
|
+
* - **The role ceiling:** roles the caller may not assign or remove are
|
|
92
|
+
* locked in the pickers; "Remove member" is hidden on a row holding one;
|
|
93
|
+
* "Manage roles" is hidden on the caller's own row and on every row when
|
|
94
|
+
* the caller may assign no role.
|
|
95
|
+
* - **Errors are said, never shown as empty tables** (`errors.ts`), with the
|
|
96
|
+
* management token's `SESSION_CHANGED` retried once; a dialog's failure is
|
|
97
|
+
* said inside the dialog.
|
|
98
|
+
* - **The organization:** `organization-id`, else the session's, read again
|
|
99
|
+
* when the session moves to another organization (the switcher's
|
|
100
|
+
* `pont-organization-changed`, or a session change from another tab).
|
|
101
|
+
*
|
|
102
|
+
* @tag pont-member-management
|
|
103
|
+
* @attr organization-id - the organization to manage (default: the session's)
|
|
104
|
+
* @attr mode - `page` (default) | `modal` (legacy `PAGE` / `MODAL`)
|
|
105
|
+
* @attr open - modal mode: whether the dialog is open
|
|
106
|
+
* @attr heading - overrides the title (`msg("member_management_title")`); legacy `title`
|
|
107
|
+
* @attr description - overrides the subtitle (`msg("member_management_subtitle")`)
|
|
108
|
+
* @attr page-size - rows per page: 5 (default), 10 or 25
|
|
109
|
+
* @prop client - its own `AccountClient` (default: the provider's)
|
|
110
|
+
* @fires pont-members-invited - `{ organizationId, emails, roles, invitations }`
|
|
111
|
+
* @fires pont-member-roles-updated - `{ organizationId, userId, roles }`
|
|
112
|
+
* @fires pont-member-removed - `{ organizationId, userId }`
|
|
113
|
+
* @fires pont-invitation-resent - `{ organizationId, invitationId, email }`
|
|
114
|
+
* @fires pont-invitation-revoked - `{ organizationId, invitationId, email, notifyInvitee }`
|
|
115
|
+
*/
|
|
116
|
+
export declare class MemberManagement extends HostElement {
|
|
117
|
+
static composite: boolean;
|
|
118
|
+
static properties: PropertyDeclarations;
|
|
119
|
+
client: AccountClient | undefined;
|
|
120
|
+
organizationId: string;
|
|
121
|
+
mode: MemberManagementMode;
|
|
122
|
+
open: boolean;
|
|
123
|
+
heading: string;
|
|
124
|
+
description: string;
|
|
125
|
+
pageSize: number;
|
|
126
|
+
/** Set until the first load settles. */
|
|
127
|
+
protected loading: boolean;
|
|
128
|
+
protected problem: LoadProblem | null;
|
|
129
|
+
protected canRead: boolean;
|
|
130
|
+
protected canManage: boolean;
|
|
131
|
+
protected canInvite: boolean;
|
|
132
|
+
protected roles: AssignableRole[];
|
|
133
|
+
protected members: ListState<OrganizationMember>;
|
|
134
|
+
protected invitations: ListState<OrganizationInvitation>;
|
|
135
|
+
/** The invite or manage-roles dialog. */
|
|
136
|
+
protected form: Form | null;
|
|
137
|
+
/** The confirmation dialog (remove, resend, revoke). */
|
|
138
|
+
protected confirm: Confirm | null;
|
|
139
|
+
protected busy: boolean;
|
|
140
|
+
protected dialogError: string | null;
|
|
141
|
+
protected inviteErrors: {
|
|
142
|
+
emails?: string;
|
|
143
|
+
roles?: string;
|
|
144
|
+
};
|
|
145
|
+
protected notifyInvitee: boolean;
|
|
146
|
+
protected readonly messages: MessagesController;
|
|
147
|
+
protected readonly branding: BrandingController;
|
|
148
|
+
protected readonly account: AccountController;
|
|
149
|
+
private readonly ids;
|
|
150
|
+
/** Which load is current; a later one makes an earlier one's answer stale. */
|
|
151
|
+
private loadSeq;
|
|
152
|
+
/** The organization (and user) the current answer is for. */
|
|
153
|
+
private loadedFor;
|
|
154
|
+
private loadedBy;
|
|
155
|
+
private searchTimers;
|
|
156
|
+
/** The manage-roles picker's selection while its dialog is open. */
|
|
157
|
+
private rolesValue;
|
|
158
|
+
/** What a dialog last showed, kept while it animates closed; bumped per opening so a form starts fresh. */
|
|
159
|
+
private lastForm;
|
|
160
|
+
private lastConfirm;
|
|
161
|
+
private dialogSeq;
|
|
162
|
+
constructor();
|
|
163
|
+
connectedCallback(): void;
|
|
164
|
+
disconnectedCallback(): void;
|
|
165
|
+
/** Modal mode: opens the dialog. */
|
|
166
|
+
show(): void;
|
|
167
|
+
/** Modal mode: closes the dialog. */
|
|
168
|
+
close(): void;
|
|
169
|
+
/** Everything again: the scopes, roles, members and invitations. */
|
|
170
|
+
reload(): Promise<void>;
|
|
171
|
+
/** The organization acted on: `organization-id`, else the session's. */
|
|
172
|
+
get effectiveOrganizationId(): string;
|
|
173
|
+
private onOpenRequest;
|
|
174
|
+
private onCloseRequest;
|
|
175
|
+
/** The switcher moved the session: an explicit `organization-id` stays put. */
|
|
176
|
+
private onOrganizationChanged;
|
|
177
|
+
private whoAmI;
|
|
178
|
+
private refresh;
|
|
179
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
180
|
+
protected updated(changed: PropertyValues): void;
|
|
181
|
+
private get api();
|
|
182
|
+
/** The management token first (what the session may do here), then the roles and both lists. */
|
|
183
|
+
private load;
|
|
184
|
+
private fail;
|
|
185
|
+
private params;
|
|
186
|
+
private withPage;
|
|
187
|
+
/** One list again, as filtered and paged now. A failure replaces the tables (it is said, not an empty table). */
|
|
188
|
+
private loadList;
|
|
189
|
+
private setList;
|
|
190
|
+
private onSearch;
|
|
191
|
+
private onFilter;
|
|
192
|
+
private onPage;
|
|
193
|
+
private onPageSize;
|
|
194
|
+
private get mayWrite();
|
|
195
|
+
private onMemberAction;
|
|
196
|
+
private onInvitationAction;
|
|
197
|
+
private openInvite;
|
|
198
|
+
private openRoles;
|
|
199
|
+
private openConfirm;
|
|
200
|
+
/** A dialog root changed `open` (Escape, the overlay, Cancel): follow it. */
|
|
201
|
+
private onDialogOpenChange;
|
|
202
|
+
private sendInvitations;
|
|
203
|
+
private saveRoles;
|
|
204
|
+
private rereadMember;
|
|
205
|
+
private confirmAction;
|
|
206
|
+
render(): TemplateResult<1> | typeof nothing;
|
|
207
|
+
private renderHeader;
|
|
208
|
+
private renderWatermark;
|
|
209
|
+
private renderBody;
|
|
210
|
+
private renderToolbar;
|
|
211
|
+
private renderPager;
|
|
212
|
+
private roleBadges;
|
|
213
|
+
private when;
|
|
214
|
+
private renderMembers;
|
|
215
|
+
private renderInvitations;
|
|
216
|
+
private dialogAlert;
|
|
217
|
+
private submitButton;
|
|
218
|
+
private renderForm;
|
|
219
|
+
private renderConfirm;
|
|
220
|
+
}
|
|
221
|
+
declare global {
|
|
222
|
+
interface HTMLElementTagNameMap {
|
|
223
|
+
"pont-member-management": MemberManagement;
|
|
224
|
+
}
|
|
225
|
+
interface HTMLElementEventMap {
|
|
226
|
+
"pont-members-invited": CustomEvent<MembersInvitedDetail>;
|
|
227
|
+
"pont-member-roles-updated": CustomEvent<MemberRolesUpdatedDetail>;
|
|
228
|
+
"pont-member-removed": CustomEvent<MemberRemovedDetail>;
|
|
229
|
+
"pont-invitation-resent": CustomEvent<InvitationChangedDetail>;
|
|
230
|
+
"pont-invitation-revoked": CustomEvent<InvitationChangedDetail>;
|
|
231
|
+
}
|
|
232
|
+
interface DocumentEventMap {
|
|
233
|
+
"pont-open-member-management": CustomEvent<void>;
|
|
234
|
+
"pont-close-member-management": CustomEvent<void>;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BadgeOption } from '../badge-selector/badge-selector';
|
|
2
|
+
import { AssignableRole, RoleRef } from '../provider/account-client';
|
|
3
|
+
/**
|
|
4
|
+
* # The role ceiling (carry-over §5; pontive-spec 41 §6)
|
|
5
|
+
*
|
|
6
|
+
* The caller's assignable roles (`GET …/assignable-roles`) say, per role,
|
|
7
|
+
* whether the caller may assign or remove it (`assignable_by_caller`). What
|
|
8
|
+
* the server would refuse is not offered. Pure; unit-tested in `roles.test.ts`.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* The organization's roles as role-picker options. A role the caller may not assign or remove
|
|
12
|
+
* (beyond their own permissions, or `owner` without the right to transfer ownership) is locked:
|
|
13
|
+
* it can be neither added nor, once held, taken away (`role_ceiling`).
|
|
14
|
+
*/
|
|
15
|
+
export declare function roleOptions(roles: AssignableRole[]): BadgeOption[];
|
|
16
|
+
/** Whether any option is locked (the picker then says so: `roles_locked_hint`). */
|
|
17
|
+
export declare function hasLockedRole(roles: AssignableRole[]): boolean;
|
|
18
|
+
/** Whether the caller may assign or remove any of the organization's roles ("Manage roles" is hidden on every row otherwise). */
|
|
19
|
+
export declare function mayAssignAny(roles: AssignableRole[]): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the caller may remove a member holding `memberRoles`. Removing a member takes every role
|
|
22
|
+
* they hold, each held to the same ceiling as a role change, so one role the caller may not remove
|
|
23
|
+
* (`owner` without the right to transfer ownership, or one carrying permissions they don't hold)
|
|
24
|
+
* keeps the member, the caller's own row included. A role missing from `roles` is left to the server.
|
|
25
|
+
*/
|
|
26
|
+
export declare function mayRemoveMember(memberRoles: string[], roles: AssignableRole[]): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether "Manage roles" shows on a member's row: the session may manage, the caller may assign at
|
|
29
|
+
* least one role, and the row is not the caller's own (`self_role_change`). Locked roles show
|
|
30
|
+
* locked inside the dialog, so a row holding one keeps the action.
|
|
31
|
+
*/
|
|
32
|
+
export declare function mayManageRoles(member: {
|
|
33
|
+
userId: string;
|
|
34
|
+
}, ctx: {
|
|
35
|
+
canManage: boolean;
|
|
36
|
+
selfId: string | undefined;
|
|
37
|
+
roles: AssignableRole[];
|
|
38
|
+
}): boolean;
|
|
39
|
+
/** The role keys of a member or invitation. */
|
|
40
|
+
export declare function roleKeys(roles: RoleRef[] | undefined): string[];
|
|
41
|
+
/** A role's display name: the member's own copy of it, else the organization's, else its key. */
|
|
42
|
+
export declare function roleName(role: RoleRef, roles: AssignableRole[]): string;
|
|
@@ -3,7 +3,7 @@ import { FormControlElement, ValidityResult } from '../../core/form-control';
|
|
|
3
3
|
import { MessagesController } from '../../core/messages';
|
|
4
4
|
export { addEmails, isEmail, splitEmails, type AddResult } from './emails';
|
|
5
5
|
/**
|
|
6
|
-
* # `<
|
|
6
|
+
* # `<pont-multi-email-input>`: several email addresses as removable chips
|
|
7
7
|
*
|
|
8
8
|
* The account widgets' "invite members" field (legacy `pont-multi-email-input`).
|
|
9
9
|
* Type or paste addresses: Enter, a comma, a semicolon, a space, a paste or
|
|
@@ -14,19 +14,19 @@ export { addEmails, isEmail, splitEmails, type AddResult } from './emails';
|
|
|
14
14
|
* It is a form control (form-associated: one `name=address` entry per
|
|
15
15
|
* address, `required`, `disabled`, reset), labelled by its `<label for>`. It
|
|
16
16
|
* reuses the multiple Combobox's chips recipe (`ComboboxChips.part()`: the
|
|
17
|
-
* same box, chips and input as `<
|
|
17
|
+
* same box, chips and input as `<pont-badge-selector>`), with a Field
|
|
18
18
|
* description (a count, `3 / 50`) or error under it.
|
|
19
19
|
*
|
|
20
20
|
* ```html
|
|
21
|
-
* <label data-
|
|
22
|
-
* <
|
|
21
|
+
* <label data-pont-label for="invite">Email addresses</label>
|
|
22
|
+
* <pont-multi-email-input id="invite" name="emails" max="50" required></pont-multi-email-input>
|
|
23
23
|
* ```
|
|
24
24
|
*
|
|
25
25
|
* Words are `msg()` codes: `invite_emails_placeholder`, `invalid_emails`,
|
|
26
26
|
* `email_limit_reached`, `action_remove`. The counter is formatted for the
|
|
27
27
|
* page's language.
|
|
28
28
|
*
|
|
29
|
-
* @tag
|
|
29
|
+
* @tag pont-multi-email-input
|
|
30
30
|
* @attr name, required, disabled - as a native control's
|
|
31
31
|
* @attr placeholder - shown while empty (default `msg("invite_emails_placeholder")`)
|
|
32
32
|
* @attr max - the most addresses (default 50)
|
|
@@ -73,6 +73,6 @@ export declare class MultiEmailInput extends FormControlElement {
|
|
|
73
73
|
}
|
|
74
74
|
declare global {
|
|
75
75
|
interface HTMLElementTagNameMap {
|
|
76
|
-
"
|
|
76
|
+
"pont-multi-email-input": MultiEmailInput;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -6,7 +6,7 @@ export interface FilterOption {
|
|
|
6
6
|
label: string;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* # `<
|
|
9
|
+
* # `<pont-multi-select-filter>`: a "filter by" menu of checkboxes
|
|
10
10
|
*
|
|
11
11
|
* The account widgets' role filter (legacy `pont-multi-select-filter`), as
|
|
12
12
|
* shadcn builds a faceted filter: an outline button with the filter's name
|
|
@@ -17,7 +17,7 @@ export interface FilterOption {
|
|
|
17
17
|
* menu's. The menu stays open while you tick items.
|
|
18
18
|
*
|
|
19
19
|
* ```html
|
|
20
|
-
* <
|
|
20
|
+
* <pont-multi-select-filter label="Roles"></pont-multi-select-filter>
|
|
21
21
|
* <script>
|
|
22
22
|
* el.options = [{ value: "admin", label: "Admin" }, { value: "member", label: "Member" }];
|
|
23
23
|
* el.addEventListener("change", () => reload({ roles: el.values }));
|
|
@@ -27,11 +27,11 @@ export interface FilterOption {
|
|
|
27
27
|
* Default words are `msg()` codes: `filter` (the label), `clear_filters`. The
|
|
28
28
|
* count is formatted for the page's language.
|
|
29
29
|
*
|
|
30
|
-
* @tag
|
|
30
|
+
* @tag pont-multi-select-filter
|
|
31
31
|
* @attr label - the button's text and the menu's heading (default `msg("filter")`)
|
|
32
32
|
* @attr disabled - as the menu's
|
|
33
33
|
* @fires change - the chosen values changed (read `values`)
|
|
34
|
-
* @fires
|
|
34
|
+
* @fires pont-open-change - cancelable `{ open, reason }`
|
|
35
35
|
*/
|
|
36
36
|
export declare class MultiSelectFilter extends DropdownMenu {
|
|
37
37
|
static composite: boolean;
|
|
@@ -48,6 +48,6 @@ export declare class MultiSelectFilter extends DropdownMenu {
|
|
|
48
48
|
}
|
|
49
49
|
declare global {
|
|
50
50
|
interface HTMLElementTagNameMap {
|
|
51
|
-
"
|
|
51
|
+
"pont-multi-select-filter": MultiSelectFilter;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -0,0 +1,111 @@
|
|
|
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, MyOrganization } from '../provider/account-client';
|
|
5
|
+
import { AccountController } from '../provider/account-controller';
|
|
6
|
+
/** Detail of `pont-organization-changed` (and the `onOrganizationChanged` callback). */
|
|
7
|
+
export interface OrganizationChangedDetail {
|
|
8
|
+
organizationId: string;
|
|
9
|
+
roles: string[];
|
|
10
|
+
permissions: string[];
|
|
11
|
+
}
|
|
12
|
+
/** Detail of `pont-organization-switch-failed` (and `onSwitchFailed`). The session is unchanged. */
|
|
13
|
+
export interface OrganizationSwitchFailedDetail {
|
|
14
|
+
organizationId: string;
|
|
15
|
+
error: unknown;
|
|
16
|
+
}
|
|
17
|
+
/** The sentence for a refused switch: a stopped instance says so (carry-over §6), anything else is "you can't". */
|
|
18
|
+
export declare function describeSwitchError(error: unknown): string;
|
|
19
|
+
/**
|
|
20
|
+
* # `<pont-organization-switcher>`: move the session to another organization
|
|
21
|
+
*
|
|
22
|
+
* ```html
|
|
23
|
+
* <pont-provider app-id="app_123" domain="auth.acme.com" api-base-url="https://api.us.pontive.com">
|
|
24
|
+
* <pont-organization-switcher></pont-organization-switcher>
|
|
25
|
+
* </pont-provider>
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* The legacy `pont-organization-switcher`. The session acts in one
|
|
29
|
+
* organization at a time; choosing another is a refresh naming it (new
|
|
30
|
+
* tokens, same session, no sign-in). An outline button with the current
|
|
31
|
+
* organization opens a Dropdown Menu of the user's organizations as radio
|
|
32
|
+
* items. It **is** the Dropdown Menu primitive's root (`extends DropdownMenu`).
|
|
33
|
+
*
|
|
34
|
+
* - **Data** comes from the account client (`pont:account-client`, or its own
|
|
35
|
+
* `client`): `listMyOrganizations()` (`GET /mgmt/v1/me/organizations`, the
|
|
36
|
+
* organizations the user is a direct member of, bounded), `getOrganization()`
|
|
37
|
+
* and `switchOrganization()`. It never calls the SDK or `fetch` itself.
|
|
38
|
+
* - **Renders nothing** until the auth state is resolved, for a signed-out
|
|
39
|
+
* visitor, and for a user with no organizations (a B2C app can include it
|
|
40
|
+
* and never show it).
|
|
41
|
+
* - **Follows the session:** a switch made in another tab, or by another
|
|
42
|
+
* switcher, moves the checked item (the client's `onSessionChange`; a client
|
|
43
|
+
* without one is re-read when the window regains focus). Signing in as
|
|
44
|
+
* someone else reloads the list.
|
|
45
|
+
* - **After a switch** it fires `pont-organization-changed` and calls
|
|
46
|
+
* `onOrganizationChanged`, so the app can reload what it shows for the old
|
|
47
|
+
* organization; with `reload-on-switch` it reloads the page instead (a
|
|
48
|
+
* server-rendered page reads the new token from the cookie). A refused
|
|
49
|
+
* switch leaves the session as it was, says so inside the menu, fires
|
|
50
|
+
* `pont-organization-switch-failed` and calls `onSwitchFailed`.
|
|
51
|
+
*
|
|
52
|
+
* Words: `select_organization` (no current organization; `empty-label`
|
|
53
|
+
* overrides it), `organization_switching`, `organization_switch_failed`,
|
|
54
|
+
* `instance_unavailable`.
|
|
55
|
+
*
|
|
56
|
+
* @tag pont-organization-switcher
|
|
57
|
+
* @attr reload-on-switch - reload the page after a successful switch
|
|
58
|
+
* @attr empty-label - the button's text when the session acts in no organization (default `msg("select_organization")`)
|
|
59
|
+
* @prop client - its own `AccountClient` (default: the provider's)
|
|
60
|
+
* @prop onOrganizationChanged - `(detail: OrganizationChangedDetail) => void`, after a switch
|
|
61
|
+
* @prop onSwitchFailed - `(detail: OrganizationSwitchFailedDetail) => void`, when a switch is refused
|
|
62
|
+
* @prop organizations - `MyOrganization[]` (read-only): the list shown
|
|
63
|
+
* @prop currentId - `string | null` (read-only): the organization the session acts in
|
|
64
|
+
* @fires pont-organization-changed - `{ organizationId, roles, permissions }`, after a switch
|
|
65
|
+
* @fires pont-organization-switch-failed - `{ organizationId, error }`, when a switch is refused
|
|
66
|
+
* @fires pont-open-change - cancelable `{ open, reason }` (the menu's)
|
|
67
|
+
*/
|
|
68
|
+
export declare class OrganizationSwitcher extends DropdownMenu {
|
|
69
|
+
static composite: boolean;
|
|
70
|
+
static properties: PropertyDeclarations;
|
|
71
|
+
client: AccountClient | undefined;
|
|
72
|
+
reloadOnSwitch: boolean;
|
|
73
|
+
emptyLabel: string;
|
|
74
|
+
onOrganizationChanged: ((detail: OrganizationChangedDetail) => void) | undefined;
|
|
75
|
+
onSwitchFailed: ((detail: OrganizationSwitchFailedDetail) => void) | undefined;
|
|
76
|
+
organizations: MyOrganization[];
|
|
77
|
+
currentId: string | null;
|
|
78
|
+
/** The list has been read for the current user. */
|
|
79
|
+
loaded: boolean;
|
|
80
|
+
/** The organization being switched to, while a switch is in the air. */
|
|
81
|
+
switching: string | null;
|
|
82
|
+
/** The last refusal's sentence, shown in the menu until the next attempt. */
|
|
83
|
+
error: string | null;
|
|
84
|
+
protected readonly messages: MessagesController;
|
|
85
|
+
protected readonly account: AccountController;
|
|
86
|
+
/** Bumped per list read, so only the latest answer is shown. */
|
|
87
|
+
private loadSeq;
|
|
88
|
+
/** Who the list was read for (`sub`), so a sign-in as someone else reads it again. */
|
|
89
|
+
private loadedFor;
|
|
90
|
+
constructor();
|
|
91
|
+
/** Reads the list again (and the current organization). */
|
|
92
|
+
reload(): Promise<void>;
|
|
93
|
+
private refresh;
|
|
94
|
+
private whoAmI;
|
|
95
|
+
private readCurrent;
|
|
96
|
+
private load;
|
|
97
|
+
/** Moves the session to `organizationId`, as choosing it in the menu does. */
|
|
98
|
+
select(organizationId: string): Promise<void>;
|
|
99
|
+
private nameOf;
|
|
100
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
101
|
+
render(): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
102
|
+
}
|
|
103
|
+
declare global {
|
|
104
|
+
interface HTMLElementTagNameMap {
|
|
105
|
+
"pont-organization-switcher": OrganizationSwitcher;
|
|
106
|
+
}
|
|
107
|
+
interface HTMLElementEventMap {
|
|
108
|
+
"pont-organization-changed": CustomEvent<OrganizationChangedDetail>;
|
|
109
|
+
"pont-organization-switch-failed": CustomEvent<OrganizationSwitchFailedDetail>;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -7,12 +7,12 @@ import { AuthField, FieldIssue } from '../auth-field/auth-field';
|
|
|
7
7
|
export declare const OTP_LAYOUTS: readonly ["digits_only", "simple", "with_separator", "with_spacing"];
|
|
8
8
|
export type OtpLayout = (typeof OTP_LAYOUTS)[number];
|
|
9
9
|
/**
|
|
10
|
-
* # `<
|
|
10
|
+
* # `<pont-otp-field>`: a verification-code field
|
|
11
11
|
*
|
|
12
12
|
* ```html
|
|
13
13
|
* <form>
|
|
14
|
-
* <
|
|
15
|
-
* <
|
|
14
|
+
* <pont-otp-field label="Verification code" length="6" layout="with_separator" required></pont-otp-field>
|
|
15
|
+
* <pont-submit-button event="verify_code" label="Verify"></pont-submit-button>
|
|
16
16
|
* </form>
|
|
17
17
|
* ```
|
|
18
18
|
*
|
|
@@ -21,16 +21,16 @@ export type OtpLayout = (typeof OTP_LAYOUTS)[number];
|
|
|
21
21
|
* <FieldDescription/></Field>`):
|
|
22
22
|
*
|
|
23
23
|
* ```html
|
|
24
|
-
* <
|
|
25
|
-
* <label data-
|
|
26
|
-
* <
|
|
27
|
-
* <div data-
|
|
28
|
-
* <div data-
|
|
29
|
-
* <div data-
|
|
30
|
-
* <div data-
|
|
31
|
-
* </
|
|
32
|
-
* <div data-
|
|
33
|
-
* </
|
|
24
|
+
* <pont-otp-field data-pont-field data-slot="field">
|
|
25
|
+
* <label data-pont-field-label for="…-input">Verification code</label>
|
|
26
|
+
* <pont-prim-input-otp maxlength="6" name="code" input-id="…-input" …>
|
|
27
|
+
* <div data-pont-input-otp-group …> <pont-prim-input-otp-slot index="0"> …×3 </div>
|
|
28
|
+
* <div data-pont-input-otp-separator …><svg/></div>
|
|
29
|
+
* <div data-pont-input-otp-group …> …×3 </div>
|
|
30
|
+
* <div data-pont-input-otp-input-wrapper><input autocomplete="one-time-code" name="code" …></div>
|
|
31
|
+
* </pont-prim-input-otp>
|
|
32
|
+
* <div data-pont-field-error role="alert">Please enter the complete verification code.</div>
|
|
33
|
+
* </pont-otp-field>
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* The Input OTP is rendered as its **primitive element** (it has behaviour);
|
|
@@ -46,7 +46,7 @@ export type OtpLayout = (typeof OTP_LAYOUTS)[number];
|
|
|
46
46
|
* - without `event`: submits the enclosing form (`form.requestSubmit()`), so
|
|
47
47
|
* its submit button handles the request.
|
|
48
48
|
*
|
|
49
|
-
* @tag
|
|
49
|
+
* @tag pont-otp-field
|
|
50
50
|
* @attr length - number of characters (default 6)
|
|
51
51
|
* @attr layout - digits_only (one group, default) | simple (2 groups) | with_separator (3 groups) | with_spacing (one slot per group)
|
|
52
52
|
* @attr group-size, separator - explicit grouping (override `layout`)
|
|
@@ -54,8 +54,8 @@ export type OtpLayout = (typeof OTP_LAYOUTS)[number];
|
|
|
54
54
|
* @attr auto-submit - submit when complete
|
|
55
55
|
* @attr event - the action requested on auto-submit
|
|
56
56
|
* @attr incomplete-error - default "Please enter the complete verification code."
|
|
57
|
-
* @fires
|
|
58
|
-
* @fires
|
|
57
|
+
* @fires pont-complete - from the Input OTP, `{ value }`
|
|
58
|
+
* @fires pont-action, pont-action-success, pont-action-error - on auto-submit with `event`
|
|
59
59
|
*/
|
|
60
60
|
export declare class OtpField extends AuthField {
|
|
61
61
|
static properties: PropertyDeclarations;
|
|
@@ -89,6 +89,6 @@ export declare class OtpField extends AuthField {
|
|
|
89
89
|
}
|
|
90
90
|
declare global {
|
|
91
91
|
interface HTMLElementTagNameMap {
|
|
92
|
-
"
|
|
92
|
+
"pont-otp-field": OtpField;
|
|
93
93
|
}
|
|
94
94
|
}
|