@ni/nimble-components 1.0.0-beta.101 → 1.0.0-beta.105

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 (128) hide show
  1. package/README.md +20 -20
  2. package/dist/esm/button/behaviors.d.ts +12 -12
  3. package/dist/esm/button/behaviors.js +13 -13
  4. package/dist/esm/button/index.d.ts +17 -17
  5. package/dist/esm/button/index.js +37 -37
  6. package/dist/esm/button/styles.d.ts +1 -1
  7. package/dist/esm/button/styles.js +178 -178
  8. package/dist/esm/button/types.d.ts +9 -9
  9. package/dist/esm/button/types.js +10 -10
  10. package/dist/esm/checkbox/index.d.ts +2 -2
  11. package/dist/esm/checkbox/index.js +11 -11
  12. package/dist/esm/checkbox/styles.d.ts +1 -1
  13. package/dist/esm/checkbox/styles.js +91 -91
  14. package/dist/esm/drawer/animations.d.ts +14 -14
  15. package/dist/esm/drawer/animations.js +51 -51
  16. package/dist/esm/drawer/index.d.ts +39 -39
  17. package/dist/esm/drawer/index.js +189 -189
  18. package/dist/esm/drawer/styles.d.ts +1 -1
  19. package/dist/esm/drawer/styles.js +115 -114
  20. package/dist/esm/drawer/styles.js.map +1 -1
  21. package/dist/esm/drawer/types.d.ts +10 -10
  22. package/dist/esm/drawer/types.js +12 -12
  23. package/dist/esm/icon-base/index.d.ts +12 -12
  24. package/dist/esm/icon-base/index.js +21 -21
  25. package/dist/esm/icon-base/styles.d.ts +1 -1
  26. package/dist/esm/icon-base/styles.js +37 -37
  27. package/dist/esm/icon-base/template.d.ts +2 -2
  28. package/dist/esm/icon-base/template.js +6 -6
  29. package/dist/esm/icons/access-control.d.ts +7 -7
  30. package/dist/esm/icons/access-control.js +11 -11
  31. package/dist/esm/icons/admin.d.ts +7 -7
  32. package/dist/esm/icons/admin.js +11 -11
  33. package/dist/esm/icons/administration.d.ts +7 -7
  34. package/dist/esm/icons/administration.js +11 -11
  35. package/dist/esm/icons/all-icons.d.ts +15 -13
  36. package/dist/esm/icons/all-icons.js +15 -13
  37. package/dist/esm/icons/all-icons.js.map +1 -1
  38. package/dist/esm/icons/check.d.ts +7 -7
  39. package/dist/esm/icons/check.js +11 -11
  40. package/dist/esm/icons/custom-applications.d.ts +7 -7
  41. package/dist/esm/icons/custom-applications.js +11 -11
  42. package/dist/esm/icons/delete.d.ts +7 -7
  43. package/dist/esm/icons/delete.js +11 -11
  44. package/dist/esm/icons/fail.d.ts +7 -0
  45. package/dist/esm/icons/fail.js +12 -0
  46. package/dist/esm/icons/fail.js.map +1 -0
  47. package/dist/esm/icons/login.d.ts +7 -7
  48. package/dist/esm/icons/login.js +11 -11
  49. package/dist/esm/icons/logout.d.ts +7 -7
  50. package/dist/esm/icons/logout.js +11 -11
  51. package/dist/esm/icons/managed-systems.d.ts +7 -7
  52. package/dist/esm/icons/managed-systems.js +11 -11
  53. package/dist/esm/icons/measurement-data-analysis.d.ts +7 -7
  54. package/dist/esm/icons/measurement-data-analysis.js +11 -11
  55. package/dist/esm/icons/settings.d.ts +7 -7
  56. package/dist/esm/icons/settings.js +11 -11
  57. package/dist/esm/icons/succeeded.d.ts +7 -0
  58. package/dist/esm/icons/succeeded.js +12 -0
  59. package/dist/esm/icons/succeeded.js.map +1 -0
  60. package/dist/esm/icons/test-insights.d.ts +7 -7
  61. package/dist/esm/icons/test-insights.js +11 -11
  62. package/dist/esm/icons/utilities.d.ts +7 -7
  63. package/dist/esm/icons/utilities.js +11 -11
  64. package/dist/esm/listbox-option/index.d.ts +10 -10
  65. package/dist/esm/listbox-option/index.js +28 -28
  66. package/dist/esm/listbox-option/styles.d.ts +1 -1
  67. package/dist/esm/listbox-option/styles.js +59 -59
  68. package/dist/esm/menu/index.d.ts +5 -5
  69. package/dist/esm/menu/index.js +21 -21
  70. package/dist/esm/menu/styles.d.ts +1 -1
  71. package/dist/esm/menu/styles.js +39 -39
  72. package/dist/esm/menu-item/index.d.ts +15 -15
  73. package/dist/esm/menu-item/index.js +21 -21
  74. package/dist/esm/menu-item/styles.d.ts +1 -1
  75. package/dist/esm/menu-item/styles.js +63 -63
  76. package/dist/esm/number-field/index.d.ts +6 -6
  77. package/dist/esm/number-field/index.js +22 -22
  78. package/dist/esm/number-field/styles.d.ts +1 -1
  79. package/dist/esm/number-field/styles.js +117 -117
  80. package/dist/esm/select/index.d.ts +12 -12
  81. package/dist/esm/select/index.js +45 -45
  82. package/dist/esm/select/styles.d.ts +1 -1
  83. package/dist/esm/select/styles.js +140 -140
  84. package/dist/esm/tab/index.d.ts +2 -2
  85. package/dist/esm/tab/index.js +8 -8
  86. package/dist/esm/tab/styles.d.ts +1 -1
  87. package/dist/esm/tab/styles.js +52 -52
  88. package/dist/esm/tab-panel/index.d.ts +2 -2
  89. package/dist/esm/tab-panel/index.js +8 -8
  90. package/dist/esm/tab-panel/styles.d.ts +1 -1
  91. package/dist/esm/tab-panel/styles.js +14 -14
  92. package/dist/esm/tabs/index.d.ts +2 -2
  93. package/dist/esm/tabs/index.js +8 -8
  94. package/dist/esm/tabs/styles.d.ts +1 -1
  95. package/dist/esm/tabs/styles.js +42 -42
  96. package/dist/esm/tabs-toolbar/index.d.ts +6 -6
  97. package/dist/esm/tabs-toolbar/index.js +14 -14
  98. package/dist/esm/tabs-toolbar/styles.d.ts +1 -1
  99. package/dist/esm/tabs-toolbar/styles.js +22 -22
  100. package/dist/esm/tabs-toolbar/template.d.ts +1 -1
  101. package/dist/esm/tabs-toolbar/template.js +7 -7
  102. package/dist/esm/testing/dom-next-update.d.ts +4 -4
  103. package/dist/esm/testing/dom-next-update.js +5 -5
  104. package/dist/esm/text-field/index.d.ts +6 -6
  105. package/dist/esm/text-field/index.js +13 -13
  106. package/dist/esm/text-field/styles.d.ts +1 -1
  107. package/dist/esm/text-field/styles.js +141 -141
  108. package/dist/esm/theme-provider/design-tokens.d.ts +48 -48
  109. package/dist/esm/theme-provider/design-tokens.js +163 -163
  110. package/dist/esm/theme-provider/index.d.ts +10 -10
  111. package/dist/esm/theme-provider/index.js +42 -42
  112. package/dist/esm/theme-provider/template.d.ts +2 -2
  113. package/dist/esm/theme-provider/template.js +2 -2
  114. package/dist/esm/theme-provider/themes.d.ts +6 -6
  115. package/dist/esm/theme-provider/themes.js +7 -7
  116. package/dist/esm/tree-item/index.d.ts +28 -28
  117. package/dist/esm/tree-item/index.js +115 -115
  118. package/dist/esm/tree-item/styles.d.ts +3 -3
  119. package/dist/esm/tree-item/styles.js +194 -194
  120. package/dist/esm/tree-view/index.d.ts +16 -16
  121. package/dist/esm/tree-view/index.js +33 -33
  122. package/dist/esm/tree-view/styles.d.ts +1 -1
  123. package/dist/esm/tree-view/styles.js +16 -16
  124. package/dist/esm/tree-view/types.d.ts +6 -6
  125. package/dist/esm/tree-view/types.js +7 -7
  126. package/dist/esm/utilities/style/focus.d.ts +11 -11
  127. package/dist/esm/utilities/style/focus.js +13 -13
  128. package/package.json +95 -94
@@ -1,92 +1,92 @@
1
- import { css } from '@microsoft/fast-element';
2
- import { display } from '@microsoft/fast-foundation';
3
- import { focusVisible } from '../utilities/style/focus';
4
- import { borderColor, borderColorHover, borderColorRgb, contentFontColor, contentFontColorDisabled, contentFontSize, controlHeight, labelHeight, iconSize, fontFamily, borderWidth, smallDelay } from '../theme-provider/design-tokens';
5
- export const styles = css `
6
- ${display('inline-flex')}
7
-
8
- :host {
9
- align-items: center;
10
- cursor: pointer;
11
- outline: none;
12
- user-select: none;
13
- }
14
-
15
- :host([disabled]) {
16
- cursor: default;
17
- }
18
-
19
- .control {
20
- width: calc(${controlHeight} / 2);
21
- height: calc(${controlHeight} / 2);
22
- box-sizing: border-box;
23
- flex-shrink: 0;
24
- border: ${borderWidth} solid ${borderColor};
25
- padding: 2px;
26
- display: inline-flex;
27
- align-items: center;
28
- justify-content: center;
29
- transition: box-shadow ${smallDelay};
30
- ${
31
- /*
32
- * Firefox includes the line height in the outline height calculation (not sure if intended or accidental).
33
- * Set it to 0 to ensure the outline is just as high as the control.
34
- */ ''}
35
- line-height: 0;
36
- }
37
-
38
- @media (prefers-reduced-motion) {
39
- .control {
40
- transition-duration: 0s;
41
- }
42
- }
43
-
44
- :host([disabled]) .control {
45
- background-color: rgba(${borderColorRgb}, 0.1);
46
- border-color: rgba(${borderColorRgb}, 0.2);
47
- }
48
-
49
- :host(:not([disabled]):not(:active):hover) .control {
50
- border-color: ${borderColorHover};
51
- box-shadow: 0px 0px 0px ${borderWidth} ${borderColorHover} inset;
52
- }
53
-
54
- :host(${focusVisible}) .control {
55
- border-color: ${borderColorHover};
56
- outline: 2px solid ${borderColorHover};
57
- outline-offset: 2px;
58
- }
59
-
60
- .label {
61
- font-family: ${fontFamily};
62
- font-size: ${contentFontSize};
63
- color: ${contentFontColor};
64
- line-height: ${labelHeight};
65
- padding-left: 1ch;
66
- cursor: inherit;
67
- }
68
-
69
- :host([disabled]) .label {
70
- color: ${contentFontColorDisabled};
71
- }
72
-
73
- slot[name='checked-indicator'] svg {
74
- height: ${iconSize};
75
- width: ${iconSize};
76
- overflow: visible;
77
- }
78
-
79
- slot[name='checked-indicator'] path {
80
- fill: ${borderColor};
81
- opacity: 0;
82
- }
83
-
84
- :host([aria-checked='true']) slot[name='checked-indicator'] path {
85
- opacity: 1;
86
- }
87
-
88
- :host([disabled]) slot[name='checked-indicator'] path {
89
- fill: rgba(${borderColorRgb}, 0.3);
90
- }
91
- `;
1
+ import { css } from '@microsoft/fast-element';
2
+ import { display } from '@microsoft/fast-foundation';
3
+ import { focusVisible } from '../utilities/style/focus';
4
+ import { borderColor, borderColorHover, borderColorRgb, contentFontColor, contentFontColorDisabled, contentFontSize, controlHeight, labelHeight, iconSize, fontFamily, borderWidth, smallDelay } from '../theme-provider/design-tokens';
5
+ export const styles = css `
6
+ ${display('inline-flex')}
7
+
8
+ :host {
9
+ align-items: center;
10
+ cursor: pointer;
11
+ outline: none;
12
+ user-select: none;
13
+ }
14
+
15
+ :host([disabled]) {
16
+ cursor: default;
17
+ }
18
+
19
+ .control {
20
+ width: calc(${controlHeight} / 2);
21
+ height: calc(${controlHeight} / 2);
22
+ box-sizing: border-box;
23
+ flex-shrink: 0;
24
+ border: ${borderWidth} solid ${borderColor};
25
+ padding: 2px;
26
+ display: inline-flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ transition: box-shadow ${smallDelay};
30
+ ${
31
+ /*
32
+ * Firefox includes the line height in the outline height calculation (not sure if intended or accidental).
33
+ * Set it to 0 to ensure the outline is just as high as the control.
34
+ */ ''}
35
+ line-height: 0;
36
+ }
37
+
38
+ @media (prefers-reduced-motion) {
39
+ .control {
40
+ transition-duration: 0s;
41
+ }
42
+ }
43
+
44
+ :host([disabled]) .control {
45
+ background-color: rgba(${borderColorRgb}, 0.1);
46
+ border-color: rgba(${borderColorRgb}, 0.2);
47
+ }
48
+
49
+ :host(:not([disabled]):not(:active):hover) .control {
50
+ border-color: ${borderColorHover};
51
+ box-shadow: 0px 0px 0px ${borderWidth} ${borderColorHover} inset;
52
+ }
53
+
54
+ :host(${focusVisible}) .control {
55
+ border-color: ${borderColorHover};
56
+ outline: 2px solid ${borderColorHover};
57
+ outline-offset: 2px;
58
+ }
59
+
60
+ .label {
61
+ font-family: ${fontFamily};
62
+ font-size: ${contentFontSize};
63
+ color: ${contentFontColor};
64
+ line-height: ${labelHeight};
65
+ padding-left: 1ch;
66
+ cursor: inherit;
67
+ }
68
+
69
+ :host([disabled]) .label {
70
+ color: ${contentFontColorDisabled};
71
+ }
72
+
73
+ slot[name='checked-indicator'] svg {
74
+ height: ${iconSize};
75
+ width: ${iconSize};
76
+ overflow: visible;
77
+ }
78
+
79
+ slot[name='checked-indicator'] path {
80
+ fill: ${borderColor};
81
+ opacity: 0;
82
+ }
83
+
84
+ :host([aria-checked='true']) slot[name='checked-indicator'] path {
85
+ opacity: 1;
86
+ }
87
+
88
+ :host([disabled]) slot[name='checked-indicator'] path {
89
+ fill: rgba(${borderColorRgb}, 0.3);
90
+ }
91
+ `;
92
92
  //# sourceMappingURL=styles.js.map
@@ -1,14 +1,14 @@
1
- export declare const animationConfig: {
2
- slideLeftKeyframes: Keyframe[];
3
- slideRightKeyframes: Keyframe[];
4
- fadeOverlayKeyframes: Keyframe[];
5
- slideInOptions: {
6
- duration: number;
7
- easing: string;
8
- };
9
- slideOutOptions: {
10
- duration: number;
11
- easing: string;
12
- direction: string;
13
- };
14
- };
1
+ export declare const animationConfig: {
2
+ slideLeftKeyframes: Keyframe[];
3
+ slideRightKeyframes: Keyframe[];
4
+ fadeOverlayKeyframes: Keyframe[];
5
+ slideInOptions: {
6
+ duration: number;
7
+ easing: string;
8
+ };
9
+ slideOutOptions: {
10
+ duration: number;
11
+ easing: string;
12
+ direction: string;
13
+ };
14
+ };
@@ -1,52 +1,52 @@
1
- const slideLeftKeyframes = [
2
- {
3
- transform: 'translateX(-100%)',
4
- visibility: 'hidden',
5
- offset: 0
6
- },
7
- {
8
- transform: 'translateX(-100%)',
9
- visibility: 'visible',
10
- offset: 0.01
11
- },
12
- {
13
- transform: 'translateX(0%)',
14
- visibility: 'visible',
15
- offset: 1
16
- }
17
- ];
18
- const slideRightKeyframes = [
19
- {
20
- transform: 'translateX(100%)',
21
- visibility: 'hidden',
22
- offset: 0
23
- },
24
- {
25
- transform: 'translateX(100%)',
26
- visibility: 'visible',
27
- offset: 0.01
28
- },
29
- {
30
- transform: 'translateX(0%)',
31
- visibility: 'visible',
32
- offset: 1
33
- }
34
- ];
35
- const fadeOverlayKeyframes = [{ opacity: 0 }, { opacity: 1 }];
36
- const slideInOptions = {
37
- duration: 1,
38
- easing: 'ease-out'
39
- };
40
- const slideOutOptions = {
41
- duration: 1,
42
- easing: 'ease-in',
43
- direction: 'reverse'
44
- };
45
- export const animationConfig = {
46
- slideLeftKeyframes,
47
- slideRightKeyframes,
48
- fadeOverlayKeyframes,
49
- slideInOptions,
50
- slideOutOptions
51
- };
1
+ const slideLeftKeyframes = [
2
+ {
3
+ transform: 'translateX(-100%)',
4
+ visibility: 'hidden',
5
+ offset: 0
6
+ },
7
+ {
8
+ transform: 'translateX(-100%)',
9
+ visibility: 'visible',
10
+ offset: 0.01
11
+ },
12
+ {
13
+ transform: 'translateX(0%)',
14
+ visibility: 'visible',
15
+ offset: 1
16
+ }
17
+ ];
18
+ const slideRightKeyframes = [
19
+ {
20
+ transform: 'translateX(100%)',
21
+ visibility: 'hidden',
22
+ offset: 0
23
+ },
24
+ {
25
+ transform: 'translateX(100%)',
26
+ visibility: 'visible',
27
+ offset: 0.01
28
+ },
29
+ {
30
+ transform: 'translateX(0%)',
31
+ visibility: 'visible',
32
+ offset: 1
33
+ }
34
+ ];
35
+ const fadeOverlayKeyframes = [{ opacity: 0 }, { opacity: 1 }];
36
+ const slideInOptions = {
37
+ duration: 1,
38
+ easing: 'ease-out'
39
+ };
40
+ const slideOutOptions = {
41
+ duration: 1,
42
+ easing: 'ease-in',
43
+ direction: 'reverse'
44
+ };
45
+ export const animationConfig = {
46
+ slideLeftKeyframes,
47
+ slideRightKeyframes,
48
+ fadeOverlayKeyframes,
49
+ slideInOptions,
50
+ slideOutOptions
51
+ };
52
52
  //# sourceMappingURL=animations.js.map
@@ -1,39 +1,39 @@
1
- import { Dialog as FoundationDialog } from '@microsoft/fast-foundation';
2
- import { DrawerLocation, DrawerState } from './types';
3
- /**
4
- * Drawer/Sidenav control. Shows content in a panel on the left / right side of the screen,
5
- * which animates to be visible with a slide-in / slide-out animation.
6
- * Configured via 'location', 'state', 'modal', 'preventDismiss' properties.
7
- */
8
- export declare class Drawer extends FoundationDialog {
9
- location: DrawerLocation;
10
- state: DrawerState;
11
- /**
12
- * True to prevent dismissing the drawer when the overlay outside the drawer is clicked.
13
- * Only applicable when 'modal' is set to true (i.e. when the overlay is used).
14
- * HTML Attribute: prevent-dismiss
15
- */
16
- preventDismiss: boolean;
17
- private readonly propertiesToWatch;
18
- private propertyChangeNotifier?;
19
- private animationDurationMilliseconds;
20
- private animationGroup?;
21
- private animationsEnabledChangedHandler?;
22
- private prefersReducedMotionMediaQuery?;
23
- private propertyChangeSubscriber?;
24
- connectedCallback(): void;
25
- disconnectedCallback(): void;
26
- show(): void;
27
- hide(): void;
28
- dismiss(): void;
29
- private onPropertyChange;
30
- private onHiddenChanged;
31
- private onLocationChanged;
32
- private onStateChanged;
33
- private updateAnimationDuration;
34
- private animateOpening;
35
- private animateClosing;
36
- private animateOpenClose;
37
- private cancelCurrentAnimation;
38
- }
39
- export declare const nimbleDrawer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof Drawer>;
1
+ import { Dialog as FoundationDialog } from '@microsoft/fast-foundation';
2
+ import { DrawerLocation, DrawerState } from './types';
3
+ /**
4
+ * Drawer/Sidenav control. Shows content in a panel on the left / right side of the screen,
5
+ * which animates to be visible with a slide-in / slide-out animation.
6
+ * Configured via 'location', 'state', 'modal', 'preventDismiss' properties.
7
+ */
8
+ export declare class Drawer extends FoundationDialog {
9
+ location: DrawerLocation;
10
+ state: DrawerState;
11
+ /**
12
+ * True to prevent dismissing the drawer when the overlay outside the drawer is clicked.
13
+ * Only applicable when 'modal' is set to true (i.e. when the overlay is used).
14
+ * HTML Attribute: prevent-dismiss
15
+ */
16
+ preventDismiss: boolean;
17
+ private readonly propertiesToWatch;
18
+ private propertyChangeNotifier?;
19
+ private animationDurationMilliseconds;
20
+ private animationGroup?;
21
+ private animationsEnabledChangedHandler?;
22
+ private prefersReducedMotionMediaQuery?;
23
+ private propertyChangeSubscriber?;
24
+ connectedCallback(): void;
25
+ disconnectedCallback(): void;
26
+ show(): void;
27
+ hide(): void;
28
+ dismiss(): void;
29
+ private onPropertyChange;
30
+ private onHiddenChanged;
31
+ private onLocationChanged;
32
+ private onStateChanged;
33
+ private updateAnimationDuration;
34
+ private animateOpening;
35
+ private animateClosing;
36
+ private animateOpenClose;
37
+ private cancelCurrentAnimation;
38
+ }
39
+ export declare const nimbleDrawer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof Drawer>;