@pontive/pontkit-core 1.20.0 → 1.21.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/catalog.json +1 -1
- package/custom-elements.json +1 -1
- package/dist/components/renderers/auth/form/_form.d.ts +7 -1
- package/dist/index.js +397 -433
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2660 -2660
- package/dist/index.mjs.map +1 -1
- package/dist/primitives/components/ui/spinner/_spinner.d.ts +5 -6
- package/dist/primitives/components/ui/spinner/spinner.d.ts +3 -3
- package/dist/primitives/components/ui/spinner/spinner.defs.d.ts +12 -1
- package/dist/styles.css +153 -16
- package/package.json +1 -1
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import { SpinnerProps, SpinnerVariant } from './spinner.defs';
|
|
2
|
+
import { SpinnerProps as Props, SpinnerVariant } from './spinner.defs';
|
|
3
3
|
/**
|
|
4
4
|
* An indicator that can be used to show a loading state.
|
|
5
5
|
*
|
|
6
6
|
* @element pont-spinner
|
|
7
|
-
*
|
|
7
|
+
* - data-pont-spinner (`svg`): root/loading icon
|
|
8
8
|
*/
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class PontSpinner extends LitElement implements Props {
|
|
10
|
+
static readonly ROOT = "spinner";
|
|
11
|
+
static readonly TAG: string;
|
|
10
12
|
/**
|
|
11
13
|
* The icon rendered as the spinner.
|
|
12
14
|
*/
|
|
13
15
|
variant: SpinnerVariant;
|
|
14
|
-
/**
|
|
15
|
-
* Overrides the default behaviour to render into the light DOM.
|
|
16
|
-
*/
|
|
17
16
|
protected createRenderRoot(): this;
|
|
18
17
|
render(): import('lit-html').TemplateResult<1>;
|
|
19
18
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { PontSpinner } from './_spinner';
|
|
2
|
+
export { PontSpinner };
|
|
3
3
|
/**
|
|
4
4
|
* An indicator that can be used to show a loading state.
|
|
5
5
|
*/
|
|
6
6
|
declare global {
|
|
7
7
|
interface HTMLElementTagNameMap {
|
|
8
|
-
|
|
8
|
+
"pont-spinner": PontSpinner;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { SVGTemplateResult } from 'lit';
|
|
2
|
+
export type SpinnerVariant = "circle" | "basic" | "pinwheel";
|
|
2
3
|
export interface SpinnerProps {
|
|
3
4
|
variant: SpinnerVariant;
|
|
4
5
|
}
|
|
6
|
+
export type SpinnerVariantDef = {
|
|
7
|
+
lucide: string;
|
|
8
|
+
fragments: SVGTemplateResult;
|
|
9
|
+
};
|
|
10
|
+
export declare const SPINNER_VARIANTS: Record<SpinnerVariant, SpinnerVariant>;
|
|
11
|
+
export declare const DEFAULT_SPINNER_PROPS: SpinnerProps;
|
|
12
|
+
/**
|
|
13
|
+
* The SVG fragments and Lucide icon name (for its class list) for each variant.
|
|
14
|
+
*/
|
|
15
|
+
export declare const SPINNER_VARIANT_DEFS: Record<SpinnerVariant, SpinnerVariantDef>;
|
package/dist/styles.css
CHANGED
|
@@ -358,6 +358,9 @@
|
|
|
358
358
|
--pont-ref-motion-fn-ease-in-subtle: cubic-bezier(0.4, 0, 1, 1);
|
|
359
359
|
--pont-ref-motion-fn-ease-out-subtle: cubic-bezier(0, 0, 0.2, 1);
|
|
360
360
|
--pont-ref-motion-fn-ease-in-out-subtle: cubic-bezier(0.4, 0, 0.2, 1);
|
|
361
|
+
|
|
362
|
+
/* * ANIMATION ITERATION COUNT * */
|
|
363
|
+
--pont-ref-motion-iteration-infinite: infinite;
|
|
361
364
|
}
|
|
362
365
|
|
|
363
366
|
/*
|
|
@@ -9003,11 +9006,18 @@ them all being named `--pont-checkbox-icon-*`. */
|
|
|
9003
9006
|
*/
|
|
9004
9007
|
|
|
9005
9008
|
:root {
|
|
9009
|
+
/* SIZING */
|
|
9006
9010
|
--pont-spinner-sizing-w: var(--pont-sem-space-icon-size);
|
|
9007
9011
|
--pont-spinner-sizing-h: var(--pont-sem-space-icon-size);
|
|
9008
9012
|
|
|
9013
|
+
/* MOTION */
|
|
9014
|
+
--pont-spinner-motion-name: pont-spinner-motion-spin;
|
|
9009
9015
|
--pont-spinner-motion-duration: var(--pont-sem-motion-duration-slow);
|
|
9010
9016
|
--pont-spinner-motion-fn: var(--pont-ref-motion-fn-linear);
|
|
9017
|
+
--pont-spinner-motion-iteration: var(--pont-ref-motion-iteration-infinite);
|
|
9018
|
+
|
|
9019
|
+
/* SVG */
|
|
9020
|
+
--pont-spinner-svg-color: currentColor;
|
|
9011
9021
|
}
|
|
9012
9022
|
|
|
9013
9023
|
/*
|
|
@@ -15390,16 +15400,20 @@ pont-separator:has([data-orientation="vertical"]) {
|
|
|
15390
15400
|
*/
|
|
15391
15401
|
|
|
15392
15402
|
pont-spinner {
|
|
15393
|
-
width: -moz-fit-content;
|
|
15394
|
-
width: fit-content;
|
|
15395
|
-
height: -moz-fit-content;
|
|
15396
|
-
height: fit-content;
|
|
15397
|
-
}
|
|
15398
|
-
|
|
15399
|
-
pont-spinner > [data-slot=spinner] {
|
|
15400
15403
|
width: var(--pont-spinner-sizing-w);
|
|
15401
15404
|
height: var(--pont-spinner-sizing-h);
|
|
15402
|
-
|
|
15405
|
+
}
|
|
15406
|
+
|
|
15407
|
+
[data-pont-spinner] {
|
|
15408
|
+
width: var(--pont-ref-sizing-full);
|
|
15409
|
+
height: var(--pont-ref-sizing-full);
|
|
15410
|
+
|
|
15411
|
+
animation-name: var(--pont-spinner-motion-name);
|
|
15412
|
+
animation-duration: var(--pont-spinner-motion-duration);
|
|
15413
|
+
animation-timing-function: var(--pont-spinner-motion-fn);
|
|
15414
|
+
animation-iteration-count: var(--pont-spinner-motion-iteration);
|
|
15415
|
+
|
|
15416
|
+
color: var(--pont-spinner-svg-color);
|
|
15403
15417
|
}
|
|
15404
15418
|
|
|
15405
15419
|
@keyframes pont-spinner-motion-spin {
|
|
@@ -17412,21 +17426,144 @@ DIVIDER
|
|
|
17412
17426
|
/*
|
|
17413
17427
|
* ============================================================
|
|
17414
17428
|
* BUTTON
|
|
17429
|
+
* - pont-passkey-button
|
|
17430
|
+
* - pont-provider-button
|
|
17431
|
+
* - pont-submit-button
|
|
17415
17432
|
* ============================================================
|
|
17416
17433
|
*/
|
|
17417
17434
|
|
|
17418
|
-
pont-passkey-button,
|
|
17419
|
-
pont-provider-button,
|
|
17420
|
-
pont-submit-button {
|
|
17435
|
+
:is(pont-passkey-button, pont-provider-button, pont-submit-button) {
|
|
17421
17436
|
display: inline-flex;
|
|
17437
|
+
|
|
17422
17438
|
flex-shrink: 0;
|
|
17423
|
-
width: 100%;
|
|
17424
17439
|
}
|
|
17425
17440
|
|
|
17426
|
-
pont-passkey-button
|
|
17427
|
-
pont-
|
|
17428
|
-
pont-
|
|
17429
|
-
|
|
17441
|
+
:is(pont-passkey-button, pont-provider-button, pont-submit-button)
|
|
17442
|
+
> pont-button {
|
|
17443
|
+
--pont-button-sizing-w-default: var(--pont-ref-sizing-full);
|
|
17444
|
+
--pont-button-sizing-w-xs: var(--pont-ref-sizing-full);
|
|
17445
|
+
--pont-button-sizing-w-sm: var(--pont-ref-sizing-full);
|
|
17446
|
+
--pont-button-sizing-w-lg: var(--pont-ref-sizing-full);
|
|
17447
|
+
}
|
|
17448
|
+
|
|
17449
|
+
/*
|
|
17450
|
+
* --------------------------------------------------
|
|
17451
|
+
* PASSKEY BUTTON
|
|
17452
|
+
* --------------------------------------------------
|
|
17453
|
+
*/
|
|
17454
|
+
|
|
17455
|
+
:root {
|
|
17456
|
+
--pont-passkey-button-sizing-w-default: var(--pont-button-sizing-w-default);
|
|
17457
|
+
--pont-passkey-button-sizing-w-xs: var(--pont-button-sizing-w-xs);
|
|
17458
|
+
--pont-passkey-button-sizing-w-sm: var(--pont-button-sizing-w-sm);
|
|
17459
|
+
--pont-passkey-button-sizing-w-lg: var(--pont-button-sizing-w-lg);
|
|
17460
|
+
|
|
17461
|
+
--pont-passkey-button-sizing-h-default: var(--pont-button-sizing-h-default);
|
|
17462
|
+
--pont-passkey-button-sizing-h-xs: var(--pont-button-sizing-h-xs);
|
|
17463
|
+
--pont-passkey-button-sizing-h-sm: var(--pont-button-sizing-h-sm);
|
|
17464
|
+
--pont-passkey-button-sizing-h-lg: var(--pont-button-sizing-h-lg);
|
|
17465
|
+
}
|
|
17466
|
+
|
|
17467
|
+
/* -------------------------------------------------- */
|
|
17468
|
+
|
|
17469
|
+
pont-passkey-button:has([data-pont-button][data-size="default"]) {
|
|
17470
|
+
width: var(--pont-passkey-button-sizing-w-default);
|
|
17471
|
+
height: var(--pont-passkey-button-sizing-h-default);
|
|
17472
|
+
}
|
|
17473
|
+
|
|
17474
|
+
pont-passkey-button:has([data-pont-button][data-size="xs"]) {
|
|
17475
|
+
width: var(--pont-passkey-button-sizing-w-xs);
|
|
17476
|
+
height: var(--pont-passkey-button-sizing-h-xs);
|
|
17477
|
+
}
|
|
17478
|
+
|
|
17479
|
+
pont-passkey-button:has([data-pont-button][data-size="sm"]) {
|
|
17480
|
+
width: var(--pont-passkey-button-sizing-w-sm);
|
|
17481
|
+
height: var(--pont-passkey-button-sizing-h-sm);
|
|
17482
|
+
}
|
|
17483
|
+
|
|
17484
|
+
pont-passkey-button:has([data-pont-button][data-size="lg"]) {
|
|
17485
|
+
width: var(--pont-passkey-button-sizing-w-lg);
|
|
17486
|
+
height: var(--pont-passkey-button-sizing-h-lg);
|
|
17487
|
+
}
|
|
17488
|
+
|
|
17489
|
+
/*
|
|
17490
|
+
* --------------------------------------------------
|
|
17491
|
+
* PROVIDER BUTTON
|
|
17492
|
+
* --------------------------------------------------
|
|
17493
|
+
*/
|
|
17494
|
+
|
|
17495
|
+
:root {
|
|
17496
|
+
--pont-provider-button-sizing-w-default: var(--pont-button-sizing-w-default);
|
|
17497
|
+
--pont-provider-button-sizing-w-xs: var(--pont-button-sizing-w-xs);
|
|
17498
|
+
--pont-provider-button-sizing-w-sm: var(--pont-button-sizing-w-sm);
|
|
17499
|
+
--pont-provider-button-sizing-w-lg: var(--pont-button-sizing-w-lg);
|
|
17500
|
+
|
|
17501
|
+
--pont-provider-button-sizing-h-default: var(--pont-button-sizing-h-default);
|
|
17502
|
+
--pont-provider-button-sizing-h-xs: var(--pont-button-sizing-h-xs);
|
|
17503
|
+
--pont-provider-button-sizing-h-sm: var(--pont-button-sizing-h-sm);
|
|
17504
|
+
--pont-provider-button-sizing-h-lg: var(--pont-button-sizing-h-lg);
|
|
17505
|
+
}
|
|
17506
|
+
|
|
17507
|
+
/* -------------------------------------------------- */
|
|
17508
|
+
|
|
17509
|
+
pont-provider-button:has([data-pont-button][data-size="default"]) {
|
|
17510
|
+
width: var(--pont-provider-button-sizing-w-default);
|
|
17511
|
+
height: var(--pont-provider-button-sizing-h-default);
|
|
17512
|
+
}
|
|
17513
|
+
|
|
17514
|
+
pont-provider-button:has([data-pont-button][data-size="xs"]) {
|
|
17515
|
+
width: var(--pont-provider-button-sizing-w-xs);
|
|
17516
|
+
height: var(--pont-provider-button-sizing-h-xs);
|
|
17517
|
+
}
|
|
17518
|
+
|
|
17519
|
+
pont-provider-button:has([data-pont-button][data-size="sm"]) {
|
|
17520
|
+
width: var(--pont-provider-button-sizing-w-sm);
|
|
17521
|
+
height: var(--pont-provider-button-sizing-h-sm);
|
|
17522
|
+
}
|
|
17523
|
+
|
|
17524
|
+
pont-provider-button:has([data-pont-button][data-size="lg"]) {
|
|
17525
|
+
width: var(--pont-provider-button-sizing-w-lg);
|
|
17526
|
+
height: var(--pont-provider-button-sizing-h-lg);
|
|
17527
|
+
}
|
|
17528
|
+
|
|
17529
|
+
/*
|
|
17530
|
+
* --------------------------------------------------
|
|
17531
|
+
* SUBMIT BUTTON
|
|
17532
|
+
* --------------------------------------------------
|
|
17533
|
+
*/
|
|
17534
|
+
|
|
17535
|
+
:root {
|
|
17536
|
+
--pont-submit-button-sizing-w-default: var(--pont-button-sizing-w-default);
|
|
17537
|
+
--pont-submit-button-sizing-w-xs: var(--pont-button-sizing-w-xs);
|
|
17538
|
+
--pont-submit-button-sizing-w-sm: var(--pont-button-sizing-w-sm);
|
|
17539
|
+
--pont-submit-button-sizing-w-lg: var(--pont-button-sizing-w-lg);
|
|
17540
|
+
|
|
17541
|
+
--pont-submit-button-sizing-h-default: var(--pont-button-sizing-h-default);
|
|
17542
|
+
--pont-submit-button-sizing-h-xs: var(--pont-button-sizing-h-xs);
|
|
17543
|
+
--pont-submit-button-sizing-h-sm: var(--pont-button-sizing-h-sm);
|
|
17544
|
+
--pont-submit-button-sizing-h-lg: var(--pont-button-sizing-h-lg);
|
|
17545
|
+
}
|
|
17546
|
+
|
|
17547
|
+
/* -------------------------------------------------- */
|
|
17548
|
+
|
|
17549
|
+
pont-submit-button:has([data-pont-button][data-size="default"]) {
|
|
17550
|
+
width: var(--pont-submit-button-sizing-w-default);
|
|
17551
|
+
height: var(--pont-submit-button-sizing-h-default);
|
|
17552
|
+
}
|
|
17553
|
+
|
|
17554
|
+
pont-submit-button:has([data-pont-button][data-size="xs"]) {
|
|
17555
|
+
width: var(--pont-submit-button-sizing-w-xs);
|
|
17556
|
+
height: var(--pont-submit-button-sizing-h-xs);
|
|
17557
|
+
}
|
|
17558
|
+
|
|
17559
|
+
pont-submit-button:has([data-pont-button][data-size="sm"]) {
|
|
17560
|
+
width: var(--pont-submit-button-sizing-w-sm);
|
|
17561
|
+
height: var(--pont-submit-button-sizing-h-sm);
|
|
17562
|
+
}
|
|
17563
|
+
|
|
17564
|
+
pont-submit-button:has([data-pont-button][data-size="lg"]) {
|
|
17565
|
+
width: var(--pont-submit-button-sizing-w-lg);
|
|
17566
|
+
height: var(--pont-submit-button-sizing-h-lg);
|
|
17430
17567
|
}
|
|
17431
17568
|
|
|
17432
17569
|
/*
|