@aquera/nile-elements 0.1.32 → 0.1.33-beta-1.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 +11 -2
- package/demo/index.html +262 -27
- package/demo/variables.css +17 -0
- package/demo/variables_v2.css +17 -0
- package/dist/{fixture-161dee0b.cjs.js → fixture-d5b55278.cjs.js} +3 -3
- package/dist/fixture-d5b55278.cjs.js.map +1 -0
- package/dist/{fixture-372df3b0.esm.js → fixture-df8b52d7.esm.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/internal/animate.cjs.js +1 -1
- package/dist/internal/animate.cjs.js.map +1 -1
- package/dist/internal/animate.esm.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.test.esm.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js +1 -1
- package/dist/nile-button/nile-button.test.esm.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
- package/dist/nile-card/nile-card.test.cjs.js +1 -1
- package/dist/nile-card/nile-card.test.esm.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.test.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
- package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
- package/dist/nile-hero/nile-hero.test.esm.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
- package/dist/nile-icon/nile-icon.test.esm.js +1 -1
- package/dist/nile-input/nile-input.css.cjs.js +1 -1
- package/dist/nile-input/nile-input.css.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.css.esm.js +8 -0
- package/dist/nile-input/nile-input.test.cjs.js +1 -1
- package/dist/nile-input/nile-input.test.esm.js +1 -1
- package/dist/nile-link/nile-link.test.cjs.js +1 -1
- package/dist/nile-link/nile-link.test.esm.js +1 -1
- package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
- package/dist/nile-loader/nile-loader.test.esm.js +1 -1
- package/dist/nile-menu/nile-menu.cjs.js +1 -1
- package/dist/nile-menu/nile-menu.cjs.js.map +1 -1
- package/dist/nile-menu/nile-menu.esm.js +1 -1
- package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
- package/dist/nile-popover/nile-popover.test.esm.js +1 -1
- package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
- package/dist/nile-popup/nile-popup.test.esm.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
- package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
- package/dist/nile-radio/nile-radio.test.esm.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
- package/dist/nile-select/nile-select.test.cjs.js +1 -1
- package/dist/nile-select/nile-select.test.esm.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
- package/dist/nile-table/nile-table.cjs.js.map +1 -1
- package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
- package/dist/nile-tooltip/index.cjs.js +1 -1
- package/dist/nile-tooltip/index.esm.js +1 -1
- package/dist/nile-tooltip/nile-tooltip-utils.cjs.js +2 -0
- package/dist/nile-tooltip/nile-tooltip-utils.cjs.js.map +1 -0
- package/dist/nile-tooltip/nile-tooltip-utils.esm.js +1 -0
- package/dist/nile-tooltip/nile-tooltip.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.esm.js +59 -56
- package/dist/nile-tooltip/nile-tooltip.esm.js +23 -28
- package/dist/nile-tooltip/nile-tooltip.test.cjs.js +2 -0
- package/dist/nile-tooltip/nile-tooltip.test.cjs.js.map +1 -0
- package/dist/nile-tooltip/nile-tooltip.test.esm.js +51 -0
- package/dist/src/nile-input/nile-input.css.js +8 -0
- package/dist/src/nile-input/nile-input.css.js.map +1 -1
- package/dist/src/nile-menu/nile-menu.js +13 -15
- package/dist/src/nile-menu/nile-menu.js.map +1 -1
- package/dist/src/nile-table/nile-table.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip-utils.d.ts +18 -0
- package/dist/src/nile-tooltip/nile-tooltip-utils.js +151 -0
- package/dist/src/nile-tooltip/nile-tooltip-utils.js.map +1 -0
- package/dist/src/nile-tooltip/nile-tooltip.css.js +48 -45
- package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.d.ts +23 -44
- package/dist/src/nile-tooltip/nile-tooltip.js +157 -227
- package/dist/src/nile-tooltip/nile-tooltip.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.test.d.ts +1 -0
- package/dist/src/nile-tooltip/nile-tooltip.test.js +158 -0
- package/dist/src/nile-tooltip/nile-tooltip.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-input/nile-input.css.ts +8 -0
- package/src/nile-menu/nile-menu.ts +17 -20
- package/src/nile-table/nile-table.ts +2 -2
- package/src/nile-tooltip/nile-tooltip-utils.ts +190 -0
- package/src/nile-tooltip/nile-tooltip.css.ts +49 -46
- package/src/nile-tooltip/nile-tooltip.test.ts +178 -0
- package/src/nile-tooltip/nile-tooltip.ts +155 -237
- package/vscode-html-custom-data.json +81 -81
- package/dist/fixture-161dee0b.cjs.js.map +0 -1
package/README.md
CHANGED
@@ -79,9 +79,18 @@ To run a local development server that serves the basic demo located in `demo/in
|
|
79
79
|
|
80
80
|
In this section, you can find the updates for each release of `nile-elements`. It's a good practice to maintain detailed release notes to help users and developers understand what changes have been made from one version to another and how these changes might affect their projects.
|
81
81
|
|
82
|
+
#### Version 0.1.33-beta-1.0
|
83
|
+
- Nile Menu: Bugfix for using space key in nile input inside nile-menu
|
82
84
|
|
83
|
-
#### Version 0.1.32
|
84
|
-
- Nile
|
85
|
+
#### Version 0.1.32-beta-1.5
|
86
|
+
- Nile Tokens: Spacing tokens updated
|
87
|
+
- Dependency Nile 0.3.61-beta-1.0
|
88
|
+
|
89
|
+
#### Version 0.1.32-beta-1.4
|
90
|
+
- Nile Tooltip: Bug Fixes
|
91
|
+
|
92
|
+
#### Version 0.1.32-beta-1.3
|
93
|
+
- Nile Input: Safari's AutoFill icon defect fix
|
85
94
|
|
86
95
|
#### Version 0.1.31
|
87
96
|
- Nile Stepper: Stylings updates and State change bugfixes
|
package/demo/index.html
CHANGED
@@ -1,39 +1,274 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html lang="en-GB">
|
3
|
-
|
4
3
|
<head>
|
5
4
|
<meta charset="utf-8" />
|
6
5
|
<link rel="stylesheet" href="variables_v2.css" id="stylesheet" />
|
7
6
|
<link rel="stylesheet" href="index.css" />
|
8
7
|
<script type="module" src="index.js"></script>
|
8
|
+
<style>
|
9
|
+
body {
|
10
|
+
font-family: sans-serif;
|
11
|
+
padding: 150px;
|
12
|
+
padding-left: 300px;
|
13
|
+
}
|
14
|
+
.demo {
|
15
|
+
margin-bottom: 30px;
|
16
|
+
}
|
17
|
+
.demo h2 {
|
18
|
+
margin-bottom: 10px;
|
19
|
+
}
|
20
|
+
/* Container for testing the hoist prop */
|
21
|
+
.overflow-container {
|
22
|
+
overflow: auto;
|
23
|
+
width: 300px;
|
24
|
+
height: 100px;
|
25
|
+
border: 1px solid #ccc;
|
26
|
+
padding: 20px;
|
27
|
+
position: relative;
|
28
|
+
}
|
29
|
+
</style>
|
9
30
|
</head>
|
10
|
-
<style>
|
11
|
-
.flex-container {
|
12
|
-
display: flex;
|
13
|
-
flex-wrap: wrap;
|
14
|
-
gap: 30px;
|
15
|
-
padding: 0;
|
16
|
-
margin: 0;
|
17
|
-
border: 1px solid silver;
|
18
|
-
height: 900px;
|
19
|
-
}
|
20
|
-
|
21
|
-
nile-button {
|
22
|
-
flex: 0 0 auto;
|
23
|
-
height: 38px;
|
24
|
-
}
|
25
|
-
</style>
|
26
|
-
|
27
31
|
<body>
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
<
|
35
|
-
|
32
|
+
<h1>Nile Tooltip Component Demo</h1>
|
33
|
+
|
34
|
+
<!-- Default tooltip (hover and focus trigger) -->
|
35
|
+
<div class="demo">
|
36
|
+
<nile-tooltip placement="bottom" >
|
37
|
+
<!-- The trigger element -->
|
38
|
+
<button>Hover me!</button>
|
39
|
+
<!-- The tooltip content (passed through a named slot) -->
|
40
|
+
<div slot="content">
|
41
|
+
<strong>Custom Tooltip:</strong> You can put any HTML here!
|
42
|
+
|
43
|
+
|
44
|
+
</div>
|
45
|
+
</nile-tooltip>
|
46
|
+
|
47
|
+
|
48
|
+
<!-- Large tooltip -->
|
49
|
+
<div class="demo">
|
50
|
+
<h2>Large Tooltip</h2>
|
51
|
+
<nile-tooltip content=" " placement="tops-birat">
|
52
|
+
<button>Hover over me</button>
|
53
|
+
</nile-tooltip>
|
54
|
+
</div>
|
55
|
+
|
56
|
+
<!-- Tooltip with bottom-start placement -->
|
57
|
+
<div class="demo">
|
58
|
+
<h2>Bottom-Start Placement</h2>
|
59
|
+
<nile-tooltip content="Tooltip at bottom-start does it work even lets check
|
60
|
+
|
61
|
+
freestar
|
62
|
+
|
63
|
+
What is Lorem Ipsum?
|
64
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
65
|
+
|
66
|
+
Why do we use it?
|
67
|
+
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
|
68
|
+
|
69
|
+
" placement="bottom" max-width="400px" max-height="250px" >
|
70
|
+
<button>Hover over me</button>
|
71
|
+
</nile-tooltip>
|
72
|
+
</div>
|
73
|
+
|
74
|
+
<div style="padding: 150px;">
|
75
|
+
|
76
|
+
|
77
|
+
<div class="demo">
|
78
|
+
<h2>Top Placement</h2>
|
79
|
+
<nile-tooltip content="Tooltip at top What is Lorem Ipsum?
|
80
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
81
|
+
|
82
|
+
Why do we use it?
|
83
|
+
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point o" placement="top">
|
84
|
+
<button>Hover over me</button>
|
85
|
+
</nile-tooltip>
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<div class="demo">
|
89
|
+
<h2>Top-Start Placement</h2>
|
90
|
+
<nile-tooltip content="Tooltip at top-start does it work even lets check What is Lorem Ipsum?
|
91
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
92
|
+
|
93
|
+
Why do we use it?
|
94
|
+
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point o" placement="top-start">
|
95
|
+
<button>Hover over me</button>
|
96
|
+
</nile-tooltip>
|
97
|
+
</div>
|
98
|
+
|
99
|
+
<div class="demo">
|
100
|
+
<h2>Top-End Placement</h2>
|
101
|
+
<nile-tooltip content="Tooltip at top-end does it work even lets chec What is Lorem Ipsum?
|
102
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
103
|
+
|
104
|
+
Why do we use it?
|
105
|
+
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point ok" placement="top-end">
|
106
|
+
<button>Hover over me</button>
|
107
|
+
</nile-tooltip>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
<div class="demo">
|
111
|
+
<h2>Right Placement</h2>
|
112
|
+
<nile-tooltip content="Tooltip at right What is Lorem Ipsum?
|
113
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
114
|
+
|
115
|
+
Why do we use it?
|
116
|
+
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point o" placement="right">
|
117
|
+
<button>Hover over me</button>
|
118
|
+
</nile-tooltip>
|
119
|
+
</div>
|
120
|
+
|
121
|
+
<div class="demo">
|
122
|
+
<h2>Right-Start Placement</h2>
|
123
|
+
<nile-tooltip content="Tooltip at right-start does it work even lets check What is Lorem Ipsum?
|
124
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
125
|
+
|
126
|
+
Why do we use it?
|
127
|
+
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point o" placement="right-start">
|
128
|
+
<button>Hover over me</button>
|
129
|
+
</nile-tooltip>
|
130
|
+
</div>
|
131
|
+
|
132
|
+
<div class="demo">
|
133
|
+
<h2>Right-End Placement</h2>
|
134
|
+
<nile-tooltip content="Tooltip at right-end does it work even lets check What is Lorem Ipsum?
|
135
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
136
|
+
|
137
|
+
Why do we use it?
|
138
|
+
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point o" placement="right-end">
|
139
|
+
<button>Hover over me</button>
|
140
|
+
</nile-tooltip>
|
141
|
+
</div>
|
142
|
+
|
143
|
+
<div class="demo">
|
144
|
+
<h2>Bottom Placement</h2>
|
145
|
+
<nile-tooltip content="Tooltip at bottom What is Lorem Ipsum?
|
146
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
147
|
+
|
148
|
+
Why do we use it?
|
149
|
+
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point o " placement="bottom">
|
150
|
+
<button>Hover over me</button>
|
151
|
+
</nile-tooltip>
|
152
|
+
</div>
|
153
|
+
|
154
|
+
<div class="demo">
|
155
|
+
<h2>Bottom-Start Placement</h2>
|
156
|
+
<nile-tooltip content="Tooltip at bottom-start What is Lorem Ipsum?
|
157
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
158
|
+
|
159
|
+
Why do we use it?
|
160
|
+
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point odoes it work even lets check" placement="bottom-start">
|
161
|
+
<button>Hover over me</button>
|
162
|
+
</nile-tooltip>
|
163
|
+
</div>
|
164
|
+
|
165
|
+
<div class="demo">
|
166
|
+
<h2>Bottom-End Placement</h2>
|
167
|
+
<nile-tooltip content="Tooltip at bottom-end does i What is Lorem Ipsum?
|
168
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
169
|
+
|
170
|
+
Why do we use it?
|
171
|
+
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point ot work even lets check" placement="bottom-end">
|
172
|
+
<button>Hover over me</button>
|
173
|
+
</nile-tooltip>
|
174
|
+
</div>
|
175
|
+
|
176
|
+
<div class="demo">
|
177
|
+
<h2>Left Placement</h2>
|
178
|
+
<nile-tooltip content="Tooltip at
|
179
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum h" placement="left">
|
180
|
+
<button>Hover over me</button>
|
181
|
+
</nile-tooltip>
|
182
|
+
</div>
|
183
|
+
|
184
|
+
<div class="demo">
|
185
|
+
<h2>Left-Start Placement</h2>
|
186
|
+
<nile-tooltip content="Tooltip at left-start doe What is Lorem Ipsum?
|
187
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
188
|
+
|
189
|
+
Why do we use it?
|
190
|
+
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point os it work even lets check" placement="left-start">
|
191
|
+
<button>Hover over me</button>
|
192
|
+
</nile-tooltip>
|
193
|
+
</div>
|
194
|
+
|
195
|
+
<div class="demo">
|
196
|
+
<h2>Left-End Placement</h2>
|
197
|
+
<nile-tooltip content=" Tooltip at bottom-start does it work even lets check
|
198
|
+
|
199
|
+
freestar
|
200
|
+
|
201
|
+
What is Lorem Ipsum?
|
202
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
203
|
+
|
204
|
+
Why do we use it?
|
205
|
+
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
|
206
|
+
" placement="left-end">
|
207
|
+
<button>Hover over me</button>
|
208
|
+
</nile-tooltip>
|
209
|
+
</div>
|
210
|
+
</div>
|
211
|
+
|
212
|
+
|
213
|
+
<!-- Tooltip with right-end placement and skidding -->
|
214
|
+
<div class="demo">
|
215
|
+
<h2>Right-End Placement with Skidding</h2>
|
216
|
+
<nile-tooltip content="Tooltip right-end with skidding" placement="right-end" skidding="80">
|
217
|
+
<button>Hover over me</button>
|
218
|
+
</nile-tooltip>
|
219
|
+
</div>
|
220
|
+
|
221
|
+
<!-- Tooltip with increased distance -->
|
222
|
+
<div class="demo">
|
223
|
+
<h2>Increased Distance (20px)</h2>
|
224
|
+
<nile-tooltip content="Tooltip with 20px distance" distance="20">
|
225
|
+
<button>Hover over me</button>
|
226
|
+
</nile-tooltip>
|
227
|
+
</div>
|
228
|
+
|
229
|
+
<!-- Tooltip triggered by click -->
|
230
|
+
<div class="demo">
|
231
|
+
<h2>Click Trigger</h2>
|
232
|
+
<nile-tooltip content="Tooltip triggered by click" placement="left" trigger="click">
|
233
|
+
<nile-button>Click me</nile-button>
|
234
|
+
</nile-tooltip>
|
235
|
+
</div>
|
236
|
+
|
237
|
+
<!-- Tooltip that is open by default -->
|
238
|
+
<div class="demo">
|
239
|
+
<h2>Open by Default</h2>
|
240
|
+
<nile-tooltip content="Tooltip open by default of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like)." open>
|
241
|
+
<button>Tooltip is open</button>
|
242
|
+
</nile-tooltip>
|
243
|
+
</div>
|
244
|
+
|
245
|
+
<!-- Disabled tooltip (should not show) -->
|
246
|
+
<div class="demo">
|
247
|
+
<h2>Disabled Tooltip</h2>
|
248
|
+
<nile-tooltip content="This tooltip should not appear " disabled>
|
249
|
+
<button>Hover over me (disabled)</button>
|
250
|
+
</nile-tooltip>
|
251
|
+
</div>
|
252
|
+
|
253
|
+
<!-- Hoisted tooltip inside an overflow container -->
|
254
|
+
<div class="demo">
|
255
|
+
<h2>Hoisted Tooltip (within overflow container)</h2>
|
256
|
+
<div class="overflow-container">
|
257
|
+
<nile-tooltip content="This tooltip is hoisted" placement="top" hoist>
|
258
|
+
<button>Hover over me</button>
|
259
|
+
</nile-tooltip>
|
36
260
|
</div>
|
261
|
+
</div>
|
262
|
+
<div class="test-container">
|
263
|
+
<h2> Tooltip with Slot</h2>
|
264
|
+
<nile-tooltip content="Skidded tooltip" placement="bottom">
|
265
|
+
<div slot="content">
|
266
|
+
<h1> Hi</h1>
|
267
|
+
</div>
|
268
|
+
<button>Hover me</button>
|
269
|
+
</nile-tooltip>
|
270
|
+
</div>
|
271
|
+
|
37
272
|
</body>
|
38
|
-
|
39
273
|
</html>
|
274
|
+
|
package/demo/variables.css
CHANGED
@@ -104,6 +104,9 @@
|
|
104
104
|
--nile-stepper-color-bulletin-outer-default: #fff0;
|
105
105
|
--nile-stepper-color-bulletin-inner-selected: #fff0;
|
106
106
|
--nile-stepper-color-bulletin-inner-default: var(--nile-colors-neutral-500);
|
107
|
+
--nile-spacing-xxs: 2px; /* 0.5 (2px) */
|
108
|
+
--nile-spacing-xs: 4px; /* 1 (4px) */
|
109
|
+
--nile-spacing-xl: 16px; /* 4 (16px) */
|
107
110
|
--nile-spacing-spacing-xxs: 2px; /* 0.5 (2px) */
|
108
111
|
--nile-spacing-spacing-xs: 4px; /* 1 (4px) */
|
109
112
|
--nile-spacing-spacing-xl: 16px; /* 4 (16px) */
|
@@ -121,12 +124,26 @@
|
|
121
124
|
--nile-spacing-spacing-2xl: 20px; /* 5 (20px) */
|
122
125
|
--nile-spacing-spacing-11xl: 160px; /* 40 (160px) */
|
123
126
|
--nile-spacing-spacing-10xl: 128px; /* 32 (128px) */
|
127
|
+
--nile-spacing-sm: 6px; /* 1.5 (6px) */
|
124
128
|
--nile-spacing-one-half-x: 3px; /* xxs */
|
129
|
+
--nile-spacing-none: 0px; /* none */
|
130
|
+
--nile-spacing-md: 8px; /* 2 (8px) */
|
131
|
+
--nile-spacing-lg: 12px; /* 3 (12px) */
|
125
132
|
--nile-spacing-gutter: var(--nile-spacing-3-x); /* 48px */
|
133
|
+
--nile-spacing-9xl: 96px; /* 24 (96px) */
|
134
|
+
--nile-spacing-8xl: 80px; /* 20 (80px) */
|
135
|
+
--nile-spacing-7xl: 64px; /* 16 (64px) */
|
126
136
|
--nile-spacing-7-x: 96px; /* xl */
|
137
|
+
--nile-spacing-6xl: 48px; /* 12 (48px) */
|
138
|
+
--nile-spacing-5xl: 40px; /* 10 (40px) */
|
127
139
|
--nile-spacing-5-x: 48px; /* l */
|
140
|
+
--nile-spacing-4xl: 32px; /* 8 (32px) */
|
141
|
+
--nile-spacing-3xl: 24px; /* 6 (24px) */
|
128
142
|
--nile-spacing-3-x: 24px; /* m */
|
143
|
+
--nile-spacing-2xl: 20px; /* 5 (20px) */
|
129
144
|
--nile-spacing-2-x: 12px; /* s */
|
145
|
+
--nile-spacing-11xl: 160px; /* 40 (160px) */
|
146
|
+
--nile-spacing-10xl: 128px; /* 32 (128px) */
|
130
147
|
--nile-spacing-1-x: 6px; /* xs */
|
131
148
|
--nile-slide-toggle-color-indicator: var(--nile-colors-white-base);
|
132
149
|
--nile-slide-toggle-color-background-inactive: var(--nile-colors-neutral-500);
|
package/demo/variables_v2.css
CHANGED
@@ -104,6 +104,9 @@
|
|
104
104
|
--nile-stepper-color-bulletin-outer-default: #fff0;
|
105
105
|
--nile-stepper-color-bulletin-inner-selected: #fff0;
|
106
106
|
--nile-stepper-color-bulletin-inner-default: #D0D5DD;
|
107
|
+
--nile-spacing-xxs: 2px; /* 0.5 (2px) */
|
108
|
+
--nile-spacing-xs: 4px; /* 1 (4px) */
|
109
|
+
--nile-spacing-xl: 16px; /* 4 (16px) */
|
107
110
|
--nile-spacing-spacing-xxs: 2px; /* 0.5 (2px) */
|
108
111
|
--nile-spacing-spacing-xs: 4px; /* 1 (4px) */
|
109
112
|
--nile-spacing-spacing-xl: 16px; /* 4 (16px) */
|
@@ -121,12 +124,26 @@
|
|
121
124
|
--nile-spacing-spacing-2xl: 20px; /* 5 (20px) */
|
122
125
|
--nile-spacing-spacing-11xl: 160px; /* 40 (160px) */
|
123
126
|
--nile-spacing-spacing-10xl: 128px; /* 32 (128px) */
|
127
|
+
--nile-spacing-sm: 6px; /* 1.5 (6px) */
|
124
128
|
--nile-spacing-one-half-x: 3px; /* xxs */
|
129
|
+
--nile-spacing-none: 0px; /* none */
|
130
|
+
--nile-spacing-md: 8px; /* 2 (8px) */
|
131
|
+
--nile-spacing-lg: 12px; /* 3 (12px) */
|
125
132
|
--nile-spacing-gutter: var(--nile-spacing-3-x); /* 48px */
|
133
|
+
--nile-spacing-9xl: 96px; /* 24 (96px) */
|
134
|
+
--nile-spacing-8xl: 80px; /* 20 (80px) */
|
135
|
+
--nile-spacing-7xl: 64px; /* 16 (64px) */
|
126
136
|
--nile-spacing-7-x: 96px; /* xl */
|
137
|
+
--nile-spacing-6xl: 48px; /* 12 (48px) */
|
138
|
+
--nile-spacing-5xl: 40px; /* 10 (40px) */
|
127
139
|
--nile-spacing-5-x: 48px; /* l */
|
140
|
+
--nile-spacing-4xl: 32px; /* 8 (32px) */
|
141
|
+
--nile-spacing-3xl: 24px; /* 6 (24px) */
|
128
142
|
--nile-spacing-3-x: 24px; /* m */
|
143
|
+
--nile-spacing-2xl: 20px; /* 5 (20px) */
|
129
144
|
--nile-spacing-2-x: 12px; /* s */
|
145
|
+
--nile-spacing-11xl: 160px; /* 40 (160px) */
|
146
|
+
--nile-spacing-10xl: 128px; /* 32 (128px) */
|
130
147
|
--nile-spacing-1-x: 6px; /* xs */
|
131
148
|
--nile-slide-toggle-color-indicator: #FFFFFF;
|
132
149
|
--nile-slide-toggle-color-background-inactive: #F2F4F7;
|