vira 22.2.1 → 23.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.
Files changed (95) hide show
  1. package/dist/elements/define-vira-element.d.ts +22 -1
  2. package/dist/elements/define-vira-element.js +18 -1
  3. package/dist/elements/dropdown/dropdown-helpers.d.ts +26 -3
  4. package/dist/elements/dropdown/dropdown-helpers.js +26 -3
  5. package/dist/elements/dropdown/vira-dropdown-item.element.d.ts +17 -6
  6. package/dist/elements/dropdown/vira-dropdown-item.element.js +12 -6
  7. package/dist/elements/dropdown/vira-dropdown-options.element.d.ts +14 -3
  8. package/dist/elements/dropdown/vira-dropdown-options.element.js +18 -7
  9. package/dist/elements/dropdown/vira-dropdown.element.d.ts +20 -8
  10. package/dist/elements/dropdown/vira-dropdown.element.js +28 -16
  11. package/dist/elements/index.d.ts +10 -10
  12. package/dist/elements/index.js +10 -10
  13. package/dist/elements/shared-text-input-logic.d.ts +20 -0
  14. package/dist/elements/shared-text-input-logic.js +13 -3
  15. package/dist/elements/vira-button.element.d.ts +17 -5
  16. package/dist/elements/vira-button.element.js +27 -15
  17. package/dist/elements/vira-collapsible-wrapper.element.d.ts +9 -2
  18. package/dist/elements/vira-collapsible-wrapper.element.js +10 -3
  19. package/dist/elements/vira-icon.element.d.ts +10 -3
  20. package/dist/elements/vira-icon.element.js +9 -2
  21. package/dist/elements/vira-image.element.d.ts +7 -7
  22. package/dist/elements/vira-image.element.js +20 -17
  23. package/dist/elements/vira-input.element.d.ts +20 -7
  24. package/dist/elements/vira-input.element.js +32 -16
  25. package/dist/elements/vira-link.element.d.ts +10 -2
  26. package/dist/elements/vira-link.element.js +11 -3
  27. package/dist/icons/icon-color.test-helper.d.ts +6 -0
  28. package/dist/icons/icon-color.test-helper.js +9 -0
  29. package/dist/icons/icon-css-vars.d.ts +10 -3
  30. package/dist/icons/icon-css-vars.js +7 -0
  31. package/dist/icons/icon-svg.d.ts +17 -1
  32. package/dist/icons/icon-svg.js +13 -2
  33. package/dist/icons/icon-svgs/check-24.icon.d.ts +8 -1
  34. package/dist/icons/icon-svgs/check-24.icon.js +9 -2
  35. package/dist/icons/icon-svgs/chevron-up-24.icon.d.ts +8 -1
  36. package/dist/icons/icon-svgs/chevron-up-24.icon.js +9 -2
  37. package/dist/icons/icon-svgs/close-x-24.icon.d.ts +8 -1
  38. package/dist/icons/icon-svgs/close-x-24.icon.js +9 -2
  39. package/dist/icons/icon-svgs/element-16.icon.d.ts +8 -1
  40. package/dist/icons/icon-svgs/element-16.icon.js +9 -2
  41. package/dist/icons/icon-svgs/element-24.icon.d.ts +8 -1
  42. package/dist/icons/icon-svgs/element-24.icon.js +9 -2
  43. package/dist/icons/icon-svgs/eye-closed-24.icon.d.ts +8 -1
  44. package/dist/icons/icon-svgs/eye-closed-24.icon.js +9 -2
  45. package/dist/icons/icon-svgs/eye-open-24.icon.d.ts +8 -1
  46. package/dist/icons/icon-svgs/eye-open-24.icon.js +9 -3
  47. package/dist/icons/icon-svgs/loader-24.icon.d.ts +8 -1
  48. package/dist/icons/icon-svgs/loader-24.icon.js +9 -2
  49. package/dist/icons/icon-svgs/loader-animated-24.icon.d.ts +8 -1
  50. package/dist/icons/icon-svgs/loader-animated-24.icon.js +10 -3
  51. package/dist/icons/icon-svgs/options-24.icon.d.ts +8 -1
  52. package/dist/icons/icon-svgs/options-24.icon.js +10 -3
  53. package/dist/icons/icon-svgs/status-failure-24.icon.d.ts +8 -1
  54. package/dist/icons/icon-svgs/status-failure-24.icon.js +9 -2
  55. package/dist/icons/icon-svgs/status-in-progress-24.icon.d.ts +8 -1
  56. package/dist/icons/icon-svgs/status-in-progress-24.icon.js +9 -2
  57. package/dist/icons/icon-svgs/status-success-24.icon.d.ts +8 -1
  58. package/dist/icons/icon-svgs/status-success-24.icon.js +9 -2
  59. package/dist/icons/index.d.ts +33 -28
  60. package/dist/icons/index.js +33 -28
  61. package/dist/index.d.ts +5 -5
  62. package/dist/index.js +5 -5
  63. package/dist/re-exports/colorjs-io.d.ts +12 -0
  64. package/dist/re-exports/colorjs-io.js +7 -0
  65. package/dist/re-exports/index.d.ts +1 -1
  66. package/dist/re-exports/index.js +1 -1
  67. package/dist/styles/border.d.ts +7 -1
  68. package/dist/styles/border.js +6 -0
  69. package/dist/styles/color.d.ts +12 -2
  70. package/dist/styles/color.js +12 -2
  71. package/dist/styles/disabled.d.ts +5 -0
  72. package/dist/styles/disabled.js +5 -0
  73. package/dist/styles/durations.d.ts +17 -7
  74. package/dist/styles/durations.js +14 -4
  75. package/dist/styles/focus.d.ts +12 -4
  76. package/dist/styles/focus.js +11 -3
  77. package/dist/styles/form-themes.d.ts +12 -6
  78. package/dist/styles/form-themes.js +7 -1
  79. package/dist/styles/index.d.ts +10 -10
  80. package/dist/styles/index.js +10 -10
  81. package/dist/styles/native-styles.d.ts +11 -0
  82. package/dist/styles/native-styles.js +11 -0
  83. package/dist/styles/scrollbar.d.ts +5 -0
  84. package/dist/styles/scrollbar.js +5 -0
  85. package/dist/styles/shadows.d.ts +5 -0
  86. package/dist/styles/shadows.js +5 -0
  87. package/dist/styles/user-select.d.ts +5 -0
  88. package/dist/styles/user-select.js +5 -0
  89. package/dist/util/index.d.ts +1 -1
  90. package/dist/util/index.js +1 -1
  91. package/dist/util/pop-up-manager.d.ts +61 -6
  92. package/dist/util/pop-up-manager.js +43 -33
  93. package/package.json +34 -30
  94. package/dist/elements/dropdown/dropdown.mock.d.ts +0 -13
  95. package/dist/elements/dropdown/dropdown.mock.js +0 -18
@@ -1,6 +1,13 @@
1
1
  import { html } from 'element-vir';
2
- import { viraIconCssVars } from '../icon-css-vars';
3
- import { defineIcon } from '../icon-svg';
2
+ import { viraIconCssVars } from '../icon-css-vars.js';
3
+ import { defineIcon } from '../icon-svg.js';
4
+ /**
5
+ * An icon symbol that represents an HTML element.
6
+ *
7
+ * @category Icon
8
+ * @category SVG
9
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/element24icon
10
+ */
4
11
  export const Element24Icon = defineIcon({
5
12
  name: 'Element24Icon',
6
13
  svgTemplate: html `
@@ -1 +1,8 @@
1
- export declare const EyeClosed24Icon: import("../icon-svg").ViraIconSvg;
1
+ /**
2
+ * A closed or disable eye icon.
3
+ *
4
+ * @category Icon
5
+ * @category SVG
6
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/eyeclosed24icon
7
+ */
8
+ export declare const EyeClosed24Icon: import("../icon-svg.js").ViraIconSvg;
@@ -1,6 +1,13 @@
1
1
  import { html } from 'element-vir';
2
- import { viraIconCssVars } from '../icon-css-vars';
3
- import { defineIcon } from '../icon-svg';
2
+ import { viraIconCssVars } from '../icon-css-vars.js';
3
+ import { defineIcon } from '../icon-svg.js';
4
+ /**
5
+ * A closed or disable eye icon.
6
+ *
7
+ * @category Icon
8
+ * @category SVG
9
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/eyeclosed24icon
10
+ */
4
11
  export const EyeClosed24Icon = defineIcon({
5
12
  name: 'EyeClosed24Icon',
6
13
  svgTemplate: html `
@@ -1 +1,8 @@
1
- export declare const EyeOpen24Icon: import("../icon-svg").ViraIconSvg;
1
+ /**
2
+ * An open eye icon.
3
+ *
4
+ * @category Icon
5
+ * @category SVG
6
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/eyeopen24icon
7
+ */
8
+ export declare const EyeOpen24Icon: import("../icon-svg.js").ViraIconSvg;
@@ -1,6 +1,13 @@
1
1
  import { html } from 'element-vir';
2
- import { viraIconCssVars } from '../icon-css-vars';
3
- import { defineIcon } from '../icon-svg';
2
+ import { viraIconCssVars } from '../icon-css-vars.js';
3
+ import { defineIcon } from '../icon-svg.js';
4
+ /**
5
+ * An open eye icon.
6
+ *
7
+ * @category Icon
8
+ * @category SVG
9
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/eyeopen24icon
10
+ */
4
11
  export const EyeOpen24Icon = defineIcon({
5
12
  name: 'EyeOpen24Icon',
6
13
  svgTemplate: html `
@@ -19,4 +26,3 @@ export const EyeOpen24Icon = defineIcon({
19
26
  </svg>
20
27
  `,
21
28
  });
22
- // xml:space="preserve"
@@ -1 +1,8 @@
1
- export declare const Loader24Icon: import("../icon-svg").ViraIconSvg;
1
+ /**
2
+ * A static loading icon.
3
+ *
4
+ * @category Icon
5
+ * @category SVG
6
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/loader24icon
7
+ */
8
+ export declare const Loader24Icon: import("../icon-svg.js").ViraIconSvg;
@@ -1,6 +1,13 @@
1
1
  import { html } from 'element-vir';
2
- import { viraIconCssVars } from '../icon-css-vars';
3
- import { defineIcon } from '../icon-svg';
2
+ import { viraIconCssVars } from '../icon-css-vars.js';
3
+ import { defineIcon } from '../icon-svg.js';
4
+ /**
5
+ * A static loading icon.
6
+ *
7
+ * @category Icon
8
+ * @category SVG
9
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/loader24icon
10
+ */
4
11
  export const Loader24Icon = defineIcon({
5
12
  name: 'Loader24Icon',
6
13
  svgTemplate: html `
@@ -1 +1,8 @@
1
- export declare const LoaderAnimated24Icon: import("../icon-svg").ViraIconSvg;
1
+ /**
2
+ * A variation of {@link Loader24Icon} that spins on its own.
3
+ *
4
+ * @category Icon
5
+ * @category SVG
6
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/loaderanimated24icon
7
+ */
8
+ export declare const LoaderAnimated24Icon: import("../icon-svg.js").ViraIconSvg;
@@ -1,7 +1,7 @@
1
1
  import { css, html } from 'element-vir';
2
- import { viraAnimationDurations } from '../../styles/durations';
3
- import { defineIcon } from '../icon-svg';
4
- import { Loader24Icon } from './loader-24.icon';
2
+ import { viraAnimationDurations } from '../../styles/durations.js';
3
+ import { defineIcon } from '../icon-svg.js';
4
+ import { Loader24Icon } from './loader-24.icon.js';
5
5
  const animatedLoaderStyles = css `
6
6
  @keyframes loader-animated-spin {
7
7
  from {
@@ -17,6 +17,13 @@ const animatedLoaderStyles = css `
17
17
  loader-animated-spin infinite;
18
18
  }
19
19
  `;
20
+ /**
21
+ * A variation of {@link Loader24Icon} that spins on its own.
22
+ *
23
+ * @category Icon
24
+ * @category SVG
25
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/loaderanimated24icon
26
+ */
20
27
  export const LoaderAnimated24Icon = defineIcon({
21
28
  name: 'LoaderAnimated24Icon',
22
29
  svgTemplate: html `
@@ -1 +1,8 @@
1
- export declare const Options24Icon: import("../icon-svg").ViraIconSvg;
1
+ /**
2
+ * An icon that represents configuration options.
3
+ *
4
+ * @category Icon
5
+ * @category SVG
6
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/options24icon
7
+ */
8
+ export declare const Options24Icon: import("../icon-svg.js").ViraIconSvg;
@@ -1,6 +1,13 @@
1
1
  import { html } from 'element-vir';
2
- import { viraIconCssVars } from '../icon-css-vars';
3
- import { defineIcon } from '../icon-svg';
2
+ import { viraIconCssVars } from '../icon-css-vars.js';
3
+ import { defineIcon } from '../icon-svg.js';
4
+ /**
5
+ * An icon that represents configuration options.
6
+ *
7
+ * @category Icon
8
+ * @category SVG
9
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/options24icon
10
+ */
4
11
  export const Options24Icon = defineIcon({
5
12
  name: 'Options24Icon',
6
13
  svgTemplate: html `
@@ -17,7 +24,7 @@ export const Options24Icon = defineIcon({
17
24
  <path
18
25
  d="M3 5.5h3.5m5 0h8.5M3 12.5h11m5 0h2M3 18.5h3m5 0h10"
19
26
  fill="none"
20
- stroke="${viraIconCssVars['vira-icon-stroke-color'].value}"
27
+ stroke=${viraIconCssVars['vira-icon-stroke-color'].value}
21
28
  stroke-width=${viraIconCssVars['vira-icon-stroke-width'].value}
22
29
  />
23
30
  </svg>
@@ -1 +1,8 @@
1
- export declare const StatusFailure24Icon: import("../icon-svg").ViraIconSvg;
1
+ /**
2
+ * A status icon with an x that indicates something failed (like a build pipeline).
3
+ *
4
+ * @category Icon
5
+ * @category SVG
6
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/statusfailure24icon
7
+ */
8
+ export declare const StatusFailure24Icon: import("../icon-svg.js").ViraIconSvg;
@@ -1,6 +1,13 @@
1
1
  import { html } from 'element-vir';
2
- import { viraIconCssVars } from '../icon-css-vars';
3
- import { defineIcon } from '../icon-svg';
2
+ import { viraIconCssVars } from '../icon-css-vars.js';
3
+ import { defineIcon } from '../icon-svg.js';
4
+ /**
5
+ * A status icon with an x that indicates something failed (like a build pipeline).
6
+ *
7
+ * @category Icon
8
+ * @category SVG
9
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/statusfailure24icon
10
+ */
4
11
  export const StatusFailure24Icon = defineIcon({
5
12
  name: 'StatusFailure24Icon',
6
13
  svgTemplate: html `
@@ -1 +1,8 @@
1
- export declare const StatusInProgress24Icon: import("../icon-svg").ViraIconSvg;
1
+ /**
2
+ * A status icon that indicates that something is still in progress.
3
+ *
4
+ * @category Icon
5
+ * @category SVG
6
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/statusinprogress24icon
7
+ */
8
+ export declare const StatusInProgress24Icon: import("../icon-svg.js").ViraIconSvg;
@@ -1,6 +1,13 @@
1
1
  import { html } from 'element-vir';
2
- import { viraIconCssVars } from '../icon-css-vars';
3
- import { defineIcon } from '../icon-svg';
2
+ import { viraIconCssVars } from '../icon-css-vars.js';
3
+ import { defineIcon } from '../icon-svg.js';
4
+ /**
5
+ * A status icon that indicates that something is still in progress.
6
+ *
7
+ * @category Icon
8
+ * @category SVG
9
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/statusinprogress24icon
10
+ */
4
11
  export const StatusInProgress24Icon = defineIcon({
5
12
  name: 'StatusInProgress24Icon',
6
13
  svgTemplate: html `
@@ -1 +1,8 @@
1
- export declare const StatusSuccess24Icon: import("../icon-svg").ViraIconSvg;
1
+ /**
2
+ * A status icon that indicates success.
3
+ *
4
+ * @category Icon
5
+ * @category SVG
6
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/statussuccess24icon
7
+ */
8
+ export declare const StatusSuccess24Icon: import("../icon-svg.js").ViraIconSvg;
@@ -1,6 +1,13 @@
1
1
  import { html } from 'element-vir';
2
- import { viraIconCssVars } from '../icon-css-vars';
3
- import { defineIcon } from '../icon-svg';
2
+ import { viraIconCssVars } from '../icon-css-vars.js';
3
+ import { defineIcon } from '../icon-svg.js';
4
+ /**
5
+ * A status icon that indicates success.
6
+ *
7
+ * @category Icon
8
+ * @category SVG
9
+ * @see https://electrovir.github.io/element-vir/vira/book/icons/statussuccess24icon
10
+ */
4
11
  export const StatusSuccess24Icon = defineIcon({
5
12
  name: 'StatusSuccess24Icon',
6
13
  svgTemplate: html `
@@ -1,31 +1,36 @@
1
1
  /** This file is automatically updated by update-icon-exports.ts */
2
- export * from './icon-css-vars';
3
- export * from './icon-svg';
4
- export * from './icon-svgs/check-24.icon';
5
- export * from './icon-svgs/chevron-up-24.icon';
6
- export * from './icon-svgs/close-x-24.icon';
7
- export * from './icon-svgs/element-16.icon';
8
- export * from './icon-svgs/element-24.icon';
9
- export * from './icon-svgs/eye-closed-24.icon';
10
- export * from './icon-svgs/eye-open-24.icon';
11
- export * from './icon-svgs/loader-24.icon';
12
- export * from './icon-svgs/loader-animated-24.icon';
13
- export * from './icon-svgs/options-24.icon';
14
- export * from './icon-svgs/status-failure-24.icon';
15
- export * from './icon-svgs/status-in-progress-24.icon';
16
- export * from './icon-svgs/status-success-24.icon';
2
+ export * from './icon-css-vars.js';
3
+ export * from './icon-svg.js';
4
+ export * from './icon-svgs/check-24.icon.js';
5
+ export * from './icon-svgs/chevron-up-24.icon.js';
6
+ export * from './icon-svgs/close-x-24.icon.js';
7
+ export * from './icon-svgs/element-16.icon.js';
8
+ export * from './icon-svgs/element-24.icon.js';
9
+ export * from './icon-svgs/eye-closed-24.icon.js';
10
+ export * from './icon-svgs/eye-open-24.icon.js';
11
+ export * from './icon-svgs/loader-24.icon.js';
12
+ export * from './icon-svgs/loader-animated-24.icon.js';
13
+ export * from './icon-svgs/options-24.icon.js';
14
+ export * from './icon-svgs/status-failure-24.icon.js';
15
+ export * from './icon-svgs/status-in-progress-24.icon.js';
16
+ export * from './icon-svgs/status-success-24.icon.js';
17
+ /**
18
+ * All Vira icons in an object mapped by their icon name.
19
+ *
20
+ * @category Icon
21
+ */
17
22
  export declare const allIconsByName: {
18
- readonly Check24Icon: import("./icon-svg").ViraIconSvg;
19
- readonly ChevronUp24Icon: import("./icon-svg").ViraIconSvg;
20
- readonly CloseX24Icon: import("./icon-svg").ViraIconSvg;
21
- readonly Element16Icon: import("./icon-svg").ViraIconSvg;
22
- readonly Element24Icon: import("./icon-svg").ViraIconSvg;
23
- readonly EyeClosed24Icon: import("./icon-svg").ViraIconSvg;
24
- readonly EyeOpen24Icon: import("./icon-svg").ViraIconSvg;
25
- readonly Loader24Icon: import("./icon-svg").ViraIconSvg;
26
- readonly LoaderAnimated24Icon: import("./icon-svg").ViraIconSvg;
27
- readonly Options24Icon: import("./icon-svg").ViraIconSvg;
28
- readonly StatusFailure24Icon: import("./icon-svg").ViraIconSvg;
29
- readonly StatusInProgress24Icon: import("./icon-svg").ViraIconSvg;
30
- readonly StatusSuccess24Icon: import("./icon-svg").ViraIconSvg;
23
+ readonly Check24Icon: import("./icon-svg.js").ViraIconSvg;
24
+ readonly ChevronUp24Icon: import("./icon-svg.js").ViraIconSvg;
25
+ readonly CloseX24Icon: import("./icon-svg.js").ViraIconSvg;
26
+ readonly Element16Icon: import("./icon-svg.js").ViraIconSvg;
27
+ readonly Element24Icon: import("./icon-svg.js").ViraIconSvg;
28
+ readonly EyeClosed24Icon: import("./icon-svg.js").ViraIconSvg;
29
+ readonly EyeOpen24Icon: import("./icon-svg.js").ViraIconSvg;
30
+ readonly Loader24Icon: import("./icon-svg.js").ViraIconSvg;
31
+ readonly LoaderAnimated24Icon: import("./icon-svg.js").ViraIconSvg;
32
+ readonly Options24Icon: import("./icon-svg.js").ViraIconSvg;
33
+ readonly StatusFailure24Icon: import("./icon-svg.js").ViraIconSvg;
34
+ readonly StatusInProgress24Icon: import("./icon-svg.js").ViraIconSvg;
35
+ readonly StatusSuccess24Icon: import("./icon-svg.js").ViraIconSvg;
31
36
  };
@@ -1,32 +1,37 @@
1
1
  /** This file is automatically updated by update-icon-exports.ts */
2
- import { Check24Icon } from './icon-svgs/check-24.icon';
3
- import { ChevronUp24Icon } from './icon-svgs/chevron-up-24.icon';
4
- import { CloseX24Icon } from './icon-svgs/close-x-24.icon';
5
- import { Element16Icon } from './icon-svgs/element-16.icon';
6
- import { Element24Icon } from './icon-svgs/element-24.icon';
7
- import { EyeClosed24Icon } from './icon-svgs/eye-closed-24.icon';
8
- import { EyeOpen24Icon } from './icon-svgs/eye-open-24.icon';
9
- import { Loader24Icon } from './icon-svgs/loader-24.icon';
10
- import { LoaderAnimated24Icon } from './icon-svgs/loader-animated-24.icon';
11
- import { Options24Icon } from './icon-svgs/options-24.icon';
12
- import { StatusFailure24Icon } from './icon-svgs/status-failure-24.icon';
13
- import { StatusInProgress24Icon } from './icon-svgs/status-in-progress-24.icon';
14
- import { StatusSuccess24Icon } from './icon-svgs/status-success-24.icon';
15
- export * from './icon-css-vars';
16
- export * from './icon-svg';
17
- export * from './icon-svgs/check-24.icon';
18
- export * from './icon-svgs/chevron-up-24.icon';
19
- export * from './icon-svgs/close-x-24.icon';
20
- export * from './icon-svgs/element-16.icon';
21
- export * from './icon-svgs/element-24.icon';
22
- export * from './icon-svgs/eye-closed-24.icon';
23
- export * from './icon-svgs/eye-open-24.icon';
24
- export * from './icon-svgs/loader-24.icon';
25
- export * from './icon-svgs/loader-animated-24.icon';
26
- export * from './icon-svgs/options-24.icon';
27
- export * from './icon-svgs/status-failure-24.icon';
28
- export * from './icon-svgs/status-in-progress-24.icon';
29
- export * from './icon-svgs/status-success-24.icon';
2
+ import { Check24Icon } from './icon-svgs/check-24.icon.js';
3
+ import { ChevronUp24Icon } from './icon-svgs/chevron-up-24.icon.js';
4
+ import { CloseX24Icon } from './icon-svgs/close-x-24.icon.js';
5
+ import { Element16Icon } from './icon-svgs/element-16.icon.js';
6
+ import { Element24Icon } from './icon-svgs/element-24.icon.js';
7
+ import { EyeClosed24Icon } from './icon-svgs/eye-closed-24.icon.js';
8
+ import { EyeOpen24Icon } from './icon-svgs/eye-open-24.icon.js';
9
+ import { Loader24Icon } from './icon-svgs/loader-24.icon.js';
10
+ import { LoaderAnimated24Icon } from './icon-svgs/loader-animated-24.icon.js';
11
+ import { Options24Icon } from './icon-svgs/options-24.icon.js';
12
+ import { StatusFailure24Icon } from './icon-svgs/status-failure-24.icon.js';
13
+ import { StatusInProgress24Icon } from './icon-svgs/status-in-progress-24.icon.js';
14
+ import { StatusSuccess24Icon } from './icon-svgs/status-success-24.icon.js';
15
+ export * from './icon-css-vars.js';
16
+ export * from './icon-svg.js';
17
+ export * from './icon-svgs/check-24.icon.js';
18
+ export * from './icon-svgs/chevron-up-24.icon.js';
19
+ export * from './icon-svgs/close-x-24.icon.js';
20
+ export * from './icon-svgs/element-16.icon.js';
21
+ export * from './icon-svgs/element-24.icon.js';
22
+ export * from './icon-svgs/eye-closed-24.icon.js';
23
+ export * from './icon-svgs/eye-open-24.icon.js';
24
+ export * from './icon-svgs/loader-24.icon.js';
25
+ export * from './icon-svgs/loader-animated-24.icon.js';
26
+ export * from './icon-svgs/options-24.icon.js';
27
+ export * from './icon-svgs/status-failure-24.icon.js';
28
+ export * from './icon-svgs/status-in-progress-24.icon.js';
29
+ export * from './icon-svgs/status-success-24.icon.js';
30
+ /**
31
+ * All Vira icons in an object mapped by their icon name.
32
+ *
33
+ * @category Icon
34
+ */
30
35
  export const allIconsByName = {
31
36
  Check24Icon,
32
37
  ChevronUp24Icon,
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /** This file is automatically updated by update-root-index-exports.ts */
2
- export * from './elements';
3
- export * from './icons';
4
- export * from './re-exports';
5
- export * from './styles';
6
- export * from './util';
2
+ export * from './elements/index.js';
3
+ export * from './icons/index.js';
4
+ export * from './re-exports/index.js';
5
+ export * from './styles/index.js';
6
+ export * from './util/index.js';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /** This file is automatically updated by update-root-index-exports.ts */
2
- export * from './elements';
3
- export * from './icons';
4
- export * from './re-exports';
5
- export * from './styles';
6
- export * from './util';
2
+ export * from './elements/index.js';
3
+ export * from './icons/index.js';
4
+ export * from './re-exports/index.js';
5
+ export * from './styles/index.js';
6
+ export * from './util/index.js';
@@ -1,5 +1,17 @@
1
1
  import ColorImport from 'colorjs.io';
2
2
  export type { ColorTypes } from 'colorjs.io/types/src/color';
3
3
  export type { Format } from 'colorjs.io/types/src/space';
4
+ /**
5
+ * An individual color represented as a class. This is from the
6
+ * [colorjs.io](https://www.npmjs.com/package/colorjs.io) package.
7
+ *
8
+ * @category Internal
9
+ */
4
10
  export type Color = typeof ColorImport;
11
+ /**
12
+ * An individual color represented as a class. This is from the
13
+ * [colorjs.io](https://www.npmjs.com/package/colorjs.io) package.
14
+ *
15
+ * @category Internal
16
+ */
5
17
  export declare const Color: Color;
@@ -1,2 +1,9 @@
1
1
  import ColorImport from 'colorjs.io';
2
+ /**
3
+ * An individual color represented as a class. This is from the
4
+ * [colorjs.io](https://www.npmjs.com/package/colorjs.io) package.
5
+ *
6
+ * @category Internal
7
+ */
8
+ // eslint-disable-next-line sonarjs/no-redeclare
2
9
  export const Color = ColorImport;
@@ -1,2 +1,2 @@
1
1
  /** This file is automatically updated by update-index-exports.ts */
2
- export * from './colorjs-io';
2
+ export * from './colorjs-io.js';
@@ -1,2 +1,2 @@
1
1
  /** This file is automatically updated by update-index-exports.ts */
2
- export * from './colorjs-io';
2
+ export * from './colorjs-io.js';
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Border CSS vars used by Vira elements.
3
+ *
4
+ * @category CSS Vars
5
+ * @category Styles
6
+ */
1
7
  export declare const viraBorders: import("lit-css-vars").CssVarDefinitions<{
2
- 'vira-form-input-radius': string;
8
+ readonly 'vira-form-input-radius': "8px";
3
9
  }>;
@@ -1,4 +1,10 @@
1
1
  import { defineCssVars } from 'lit-css-vars';
2
+ /**
3
+ * Border CSS vars used by Vira elements.
4
+ *
5
+ * @category CSS Vars
6
+ * @category Styles
7
+ */
2
8
  export const viraBorders = defineCssVars({
3
9
  'vira-form-input-radius': '8px',
4
10
  });
@@ -1,4 +1,14 @@
1
1
  import { Format } from 'colorjs.io/types/src/space';
2
- import { ColorTypes } from '../re-exports/colorjs-io';
3
- export declare function getAssertedValidColor(input: ColorTypes | undefined): import("colorjs.io/types/src/color").default;
2
+ import { ColorTypes } from '../re-exports/colorjs-io.js';
3
+ /**
4
+ * Asserts that the given color type is valid.
5
+ *
6
+ * @category Internal
7
+ */
8
+ export declare function getAssertedValidColor(input: ColorTypes | undefined): import("colorjs.io/types/index.js").default;
9
+ /**
10
+ * The colorjs format for CSS RGB colors.
11
+ *
12
+ * @category Internal
13
+ */
4
14
  export declare const rgbCssColorFormat: Format;
@@ -1,5 +1,10 @@
1
1
  import { wrapInTry } from '@augment-vir/common';
2
- import { Color } from '../re-exports/colorjs-io';
2
+ import { Color } from '../re-exports/colorjs-io.js';
3
+ /**
4
+ * Asserts that the given color type is valid.
5
+ *
6
+ * @category Internal
7
+ */
3
8
  export function getAssertedValidColor(input) {
4
9
  try {
5
10
  if (!input) {
@@ -7,7 +12,7 @@ export function getAssertedValidColor(input) {
7
12
  }
8
13
  return new Color(input);
9
14
  }
10
- catch (caught) {
15
+ catch {
11
16
  const stringInput = String(input);
12
17
  const inputForMessage = stringInput.toLowerCase().match(/\[\s*object\s+object\s*\]/)
13
18
  ? wrapInTry(() => JSON.stringify(input), { fallbackValue: stringInput })
@@ -15,6 +20,11 @@ export function getAssertedValidColor(input) {
15
20
  throw new Error(`Invalid color: ${inputForMessage}`);
16
21
  }
17
22
  }
23
+ /**
24
+ * The colorjs format for CSS RGB colors.
25
+ *
26
+ * @category Internal
27
+ */
18
28
  export const rgbCssColorFormat = {
19
29
  name: 'rgb',
20
30
  coords: [
@@ -1 +1,6 @@
1
+ /**
2
+ * A chunk of CSS that styles an element with Vira's default disabled styles.
3
+ *
4
+ * @category Styles
5
+ */
1
6
  export declare const viraDisabledStyles: import("element-vir").CSSResult;
@@ -1,4 +1,9 @@
1
1
  import { css } from 'element-vir';
2
+ /**
3
+ * A chunk of CSS that styles an element with Vira's default disabled styles.
4
+ *
5
+ * @category Styles
6
+ */
2
7
  export const viraDisabledStyles = css `
3
8
  pointer-events: none;
4
9
  opacity: 0.3;
@@ -1,12 +1,22 @@
1
+ /**
2
+ * CSS vars for animation or transition durations from Vira.
3
+ *
4
+ * @category Styles
5
+ * @category CSS Vars
6
+ */
1
7
  export declare const viraAnimationDurations: import("lit-css-vars").CssVarDefinitions<{
2
- /** A longer duration show a full animation. */
3
- 'vira-extended-animation-duration': string;
4
- /** A longer duration to emphasize the animation. */
5
- 'vira-pretty-animation-duration': string;
6
8
  /**
7
- * This duration is very short to ensure snappy responses to user interactions.
9
+ * A longer duration used to show a full animation. Use this sparingly; make sure to not block
10
+ * any user input with this animation.
11
+ */
12
+ readonly 'vira-extended-animation-duration': "1.2s";
13
+ /** A longer duration used to emphasize the animation without totally aggravating a user. */
14
+ readonly 'vira-pretty-animation-duration': "300ms";
15
+ /**
16
+ * A short duration used for user interactions. This duration is very short to ensure snappy
17
+ * responses to user interactions.
8
18
  *
9
- * A duration of 84ms gives us 5 frames on a 60Hz screen.
19
+ * The default duration of 84ms gives us 5 frames on a 60Hz screen.
10
20
  */
11
- 'vira-interaction-animation-duration': string;
21
+ readonly 'vira-interaction-animation-duration': "84ms";
12
22
  }>;
@@ -1,13 +1,23 @@
1
1
  import { defineCssVars } from 'lit-css-vars';
2
+ /**
3
+ * CSS vars for animation or transition durations from Vira.
4
+ *
5
+ * @category Styles
6
+ * @category CSS Vars
7
+ */
2
8
  export const viraAnimationDurations = defineCssVars({
3
- /** A longer duration show a full animation. */
9
+ /**
10
+ * A longer duration used to show a full animation. Use this sparingly; make sure to not block
11
+ * any user input with this animation.
12
+ */
4
13
  'vira-extended-animation-duration': '1.2s',
5
- /** A longer duration to emphasize the animation. */
14
+ /** A longer duration used to emphasize the animation without totally aggravating a user. */
6
15
  'vira-pretty-animation-duration': '300ms',
7
16
  /**
8
- * This duration is very short to ensure snappy responses to user interactions.
17
+ * A short duration used for user interactions. This duration is very short to ensure snappy
18
+ * responses to user interactions.
9
19
  *
10
- * A duration of 84ms gives us 5 frames on a 60Hz screen.
20
+ * The default duration of 84ms gives us 5 frames on a 60Hz screen.
11
21
  */
12
22
  'vira-interaction-animation-duration': '84ms',
13
23
  });
@@ -1,12 +1,20 @@
1
+ /**
2
+ * CSS vars for Vira focus colors.
3
+ *
4
+ * @category CSS Vars
5
+ * @category Styles
6
+ */
1
7
  export declare const viraFocusCssVars: import("lit-css-vars").CssVarDefinitions<{
2
- 'vira-focus-outline-color': string;
3
- 'vira-focus-outline-border-radius': import("element-vir").CSSResult;
8
+ readonly 'vira-focus-outline-color': "#59b1ff";
9
+ readonly 'vira-focus-outline-border-radius': import("element-vir").CSSResult;
4
10
  }>;
5
11
  /**
6
12
  * Create styles that look like an outline for the given selector.
7
13
  *
8
- * It is recommended to use the pseudo selectors ":focus:focus-visible:not(:active)" to preventing
9
- * clicking from creating focus styles in Chrome.
14
+ * It is recommended to use the pseudo selector chain ":focus:focus-visible:not(:active)" to
15
+ * preventing clicking an element from creating focus styles in Chrome.
16
+ *
17
+ * @category Styles
10
18
  */
11
19
  export declare function createFocusStyles({ selector, elementBorderSize, outlineGap, outlineWidth, }: {
12
20
  selector: string;