@aquera/nile-elements 1.6.0 → 1.6.2
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 +9 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1103 -629
- package/dist/internal/enum.cjs.js +1 -1
- package/dist/internal/enum.cjs.js.map +1 -1
- package/dist/internal/enum.esm.js +1 -1
- package/dist/nile-badge/index.cjs.js +1 -1
- package/dist/nile-badge/index.esm.js +1 -1
- package/dist/nile-badge/nile-badge.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
- package/dist/nile-badge/nile-badge.esm.js +1 -1
- package/dist/nile-button/index.cjs.js +1 -1
- package/dist/nile-button/index.esm.js +1 -1
- package/dist/nile-button/nile-button.cjs.js +1 -1
- package/dist/nile-button/nile-button.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.esm.js +1 -1
- package/dist/nile-carousel/index.cjs.js +1 -1
- package/dist/nile-carousel/index.esm.js +1 -1
- package/dist/nile-carousel/nile-carousel.cjs.js +1 -1
- package/dist/nile-carousel/nile-carousel.cjs.js.map +1 -1
- package/dist/nile-carousel/nile-carousel.esm.js +1 -1
- package/dist/nile-dialog/index.cjs.js +1 -1
- package/dist/nile-dialog/index.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
- package/dist/nile-dialog/nile-dialog.esm.js +1 -1
- package/dist/nile-drawer/index.cjs.js +1 -1
- package/dist/nile-drawer/index.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
- package/dist/nile-drawer/nile-drawer.esm.js +1 -1
- package/dist/nile-floating-panel/index.cjs.js +1 -1
- package/dist/nile-floating-panel/index.esm.js +1 -1
- package/dist/nile-floating-panel/nile-floating-panel.cjs.js +1 -1
- package/dist/nile-floating-panel/nile-floating-panel.cjs.js.map +1 -1
- package/dist/nile-floating-panel/nile-floating-panel.css.cjs.js +1 -1
- package/dist/nile-floating-panel/nile-floating-panel.css.cjs.js.map +1 -1
- package/dist/nile-floating-panel/nile-floating-panel.css.esm.js +137 -21
- package/dist/nile-floating-panel/nile-floating-panel.esm.js +1 -1
- package/dist/nile-icon/icons/svg/folder_delete.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/folder_delete.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/folder_delete.esm.js +1 -0
- package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
- package/dist/nile-icon/icons/svg/index.esm.js +1 -1
- package/dist/nile-icon/icons/svg/layers-three-02.cjs.js +1 -1
- package/dist/nile-icon/icons/svg/layers-three-02.cjs.js.map +1 -1
- package/dist/nile-icon/icons/svg/layers-three-02.esm.js +1 -1
- package/dist/nile-icon/index.cjs.js +1 -1
- package/dist/nile-icon/index.cjs.js.map +1 -1
- package/dist/nile-icon/index.esm.js +1 -1
- package/dist/nile-icon-button/index.cjs.js +1 -1
- package/dist/nile-icon-button/index.esm.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
- package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
- package/dist/nile-input/index.cjs.js +1 -1
- package/dist/nile-input/index.esm.js +1 -1
- package/dist/nile-input/nile-input.cjs.js +1 -1
- package/dist/nile-input/nile-input.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.esm.js +1 -1
- package/dist/nile-lite-tooltip/index.cjs.js +1 -1
- package/dist/nile-lite-tooltip/index.esm.js +1 -1
- package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js +1 -1
- package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js.map +1 -1
- package/dist/nile-lite-tooltip/nile-lite-tooltip.esm.js +1 -1
- package/dist/nile-menu-item/index.cjs.js +1 -1
- package/dist/nile-menu-item/index.esm.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
- package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
- package/dist/nile-option/index.cjs.js +1 -1
- package/dist/nile-option/index.esm.js +1 -1
- package/dist/nile-option/nile-option.cjs.js +1 -1
- package/dist/nile-option/nile-option.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.esm.js +1 -1
- package/dist/nile-otp-input/index.cjs.js +2 -0
- package/dist/nile-otp-input/index.cjs.js.map +1 -0
- package/dist/nile-otp-input/index.esm.js +1 -0
- package/dist/nile-otp-input/nile-otp-input.cjs.js +2 -0
- package/dist/nile-otp-input/nile-otp-input.cjs.js.map +1 -0
- package/dist/nile-otp-input/nile-otp-input.css.cjs.js +2 -0
- package/dist/nile-otp-input/nile-otp-input.css.cjs.js.map +1 -0
- package/dist/nile-otp-input/nile-otp-input.css.esm.js +257 -0
- package/dist/nile-otp-input/nile-otp-input.enum.cjs.js +2 -0
- package/dist/nile-otp-input/nile-otp-input.enum.cjs.js.map +1 -0
- package/dist/nile-otp-input/nile-otp-input.enum.esm.js +1 -0
- package/dist/nile-otp-input/nile-otp-input.esm.js +103 -0
- package/dist/nile-select/index.cjs.js +1 -1
- package/dist/nile-select/index.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.esm.js +1 -1
- package/dist/nile-side-bar-action-menu-item/index.cjs.js +1 -1
- package/dist/nile-side-bar-action-menu-item/index.esm.js +1 -1
- package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js +1 -1
- package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js.map +1 -1
- package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.esm.js +1 -1
- package/dist/nile-tab/index.cjs.js +1 -1
- package/dist/nile-tab/index.esm.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
- package/dist/nile-tab/nile-tab.esm.js +1 -1
- package/dist/nile-tab-group/index.cjs.js +1 -1
- package/dist/nile-tab-group/index.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
- package/dist/nile-tag/index.cjs.js +1 -1
- package/dist/nile-tag/index.esm.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
- package/dist/nile-tag/nile-tag.esm.js +1 -1
- package/dist/nile-toast/index.cjs.js +1 -1
- package/dist/nile-toast/index.esm.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
- package/dist/nile-toast/nile-toast.esm.js +1 -1
- package/dist/nile-tree/index.cjs.js +1 -1
- package/dist/nile-tree/index.esm.js +1 -1
- package/dist/nile-tree/nile-tree.cjs.js +1 -1
- package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
- package/dist/nile-tree/nile-tree.esm.js +1 -1
- package/dist/nile-tree-item/index.cjs.js +1 -1
- package/dist/nile-tree-item/index.esm.js +1 -1
- package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
- package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
- package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
- package/dist/nile-virtual-select/index.cjs.js +1 -1
- package/dist/nile-virtual-select/index.esm.js +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -2
- package/dist/nile-virtual-select/nile-virtual-select.esm.js +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.js +2 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal/enum.d.ts +21 -0
- package/dist/src/internal/enum.js +23 -1
- package/dist/src/internal/enum.js.map +1 -1
- package/dist/src/nile-floating-panel/index.js.map +1 -1
- package/dist/src/nile-floating-panel/nile-floating-panel.css.d.ts +1 -1
- package/dist/src/nile-floating-panel/nile-floating-panel.css.js +147 -20
- package/dist/src/nile-floating-panel/nile-floating-panel.css.js.map +1 -1
- package/dist/src/nile-floating-panel/nile-floating-panel.d.ts +92 -24
- package/dist/src/nile-floating-panel/nile-floating-panel.js +489 -159
- package/dist/src/nile-floating-panel/nile-floating-panel.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/folder_delete.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/folder_delete.js +5 -0
- package/dist/src/nile-icon/icons/svg/folder_delete.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/index.d.ts +1 -0
- package/dist/src/nile-icon/icons/svg/index.js +1 -0
- package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/layers-three-02.d.ts +1 -1
- package/dist/src/nile-icon/icons/svg/layers-three-02.js +1 -1
- package/dist/src/nile-icon/icons/svg/layers-three-02.js.map +1 -1
- package/dist/src/nile-otp-input/index.d.ts +1 -0
- package/dist/src/nile-otp-input/index.js +2 -0
- package/dist/src/nile-otp-input/index.js.map +1 -0
- package/dist/src/nile-otp-input/nile-otp-input.css.d.ts +12 -0
- package/dist/src/nile-otp-input/nile-otp-input.css.js +269 -0
- package/dist/src/nile-otp-input/nile-otp-input.css.js.map +1 -0
- package/dist/src/nile-otp-input/nile-otp-input.d.ts +156 -0
- package/dist/src/nile-otp-input/nile-otp-input.enum.d.ts +26 -0
- package/dist/src/nile-otp-input/nile-otp-input.enum.js +32 -0
- package/dist/src/nile-otp-input/nile-otp-input.enum.js.map +1 -0
- package/dist/src/nile-otp-input/nile-otp-input.js +762 -0
- package/dist/src/nile-otp-input/nile-otp-input.js.map +1 -0
- package/dist/src/nile-otp-input/nile-otp-input.test.d.ts +1 -0
- package/dist/src/nile-otp-input/nile-otp-input.test.js +493 -0
- package/dist/src/nile-otp-input/nile-otp-input.test.js.map +1 -0
- package/dist/src/version.js +2 -2
- package/dist/src/version.js.map +1 -1
- package/dist/tippy.esm-57628c2b.esm.js +1 -0
- package/dist/tippy.esm-78baa8f2.cjs.js +2 -0
- package/dist/tippy.esm-78baa8f2.cjs.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -3
- package/plop-templates/lit/index.ts.hbs +1 -1
- package/plop-templates/lit/lit.css.ts.hbs +1 -1
- package/plop-templates/lit/lit.ts.hbs +1 -1
- package/src/index.ts +3 -2
- package/src/internal/enum.ts +23 -1
- package/src/nile-floating-panel/index.ts +0 -1
- package/src/nile-floating-panel/nile-floating-panel.css.ts +149 -21
- package/src/nile-floating-panel/nile-floating-panel.ts +498 -190
- package/src/nile-icon/icons/svg/folder_delete.ts +5 -0
- package/src/nile-icon/icons/svg/index.ts +1 -0
- package/src/nile-icon/icons/svg/layers-three-02.ts +1 -1
- package/src/nile-otp-input/index.ts +1 -0
- package/src/nile-otp-input/nile-otp-input.css.ts +271 -0
- package/src/nile-otp-input/nile-otp-input.enum.ts +30 -0
- package/src/nile-otp-input/nile-otp-input.test.ts +732 -0
- package/src/nile-otp-input/nile-otp-input.ts +835 -0
- package/vscode-html-custom-data.json +383 -23
- package/dist/nile-floating-panel/anchor-manager.cjs.js +0 -2
- package/dist/nile-floating-panel/anchor-manager.cjs.js.map +0 -1
- package/dist/nile-floating-panel/anchor-manager.esm.js +0 -1
- package/dist/nile-floating-panel/content-manager.cjs.js +0 -2
- package/dist/nile-floating-panel/content-manager.cjs.js.map +0 -1
- package/dist/nile-floating-panel/content-manager.esm.js +0 -1
- package/dist/nile-floating-panel/event-manager.cjs.js +0 -2
- package/dist/nile-floating-panel/event-manager.cjs.js.map +0 -1
- package/dist/nile-floating-panel/event-manager.esm.js +0 -1
- package/dist/nile-floating-panel/position-manager.cjs.js +0 -2
- package/dist/nile-floating-panel/position-manager.cjs.js.map +0 -1
- package/dist/nile-floating-panel/position-manager.esm.js +0 -1
- package/dist/nile-floating-panel/style-manager.cjs.js +0 -2
- package/dist/nile-floating-panel/style-manager.cjs.js.map +0 -1
- package/dist/nile-floating-panel/style-manager.esm.js +0 -1
- package/dist/nile-floating-panel/types.cjs.js +0 -2
- package/dist/nile-floating-panel/types.cjs.js.map +0 -1
- package/dist/nile-floating-panel/types.esm.js +0 -1
- package/dist/src/nile-floating-panel/anchor-manager.d.ts +0 -6
- package/dist/src/nile-floating-panel/anchor-manager.js +0 -27
- package/dist/src/nile-floating-panel/anchor-manager.js.map +0 -1
- package/dist/src/nile-floating-panel/content-manager.d.ts +0 -5
- package/dist/src/nile-floating-panel/content-manager.js +0 -44
- package/dist/src/nile-floating-panel/content-manager.js.map +0 -1
- package/dist/src/nile-floating-panel/event-manager.d.ts +0 -14
- package/dist/src/nile-floating-panel/event-manager.js +0 -52
- package/dist/src/nile-floating-panel/event-manager.js.map +0 -1
- package/dist/src/nile-floating-panel/position-manager.d.ts +0 -17
- package/dist/src/nile-floating-panel/position-manager.js +0 -72
- package/dist/src/nile-floating-panel/position-manager.js.map +0 -1
- package/dist/src/nile-floating-panel/style-manager.d.ts +0 -9
- package/dist/src/nile-floating-panel/style-manager.js +0 -44
- package/dist/src/nile-floating-panel/style-manager.js.map +0 -1
- package/dist/src/nile-floating-panel/types.d.ts +0 -11
- package/dist/src/nile-floating-panel/types.js +0 -2
- package/dist/src/nile-floating-panel/types.js.map +0 -1
- package/src/nile-floating-panel/anchor-manager.ts +0 -33
- package/src/nile-floating-panel/content-manager.ts +0 -54
- package/src/nile-floating-panel/event-manager.ts +0 -74
- package/src/nile-floating-panel/position-manager.ts +0 -102
- package/src/nile-floating-panel/style-manager.ts +0 -54
- package/src/nile-floating-panel/types.ts +0 -15
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent nile-elements following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "nile-elements",
|
|
6
|
-
"version": "1.6.
|
|
6
|
+
"version": "1.6.2",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"module": "dist/src/index.js",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"./nile-heading": "./dist/src/nile-heading/index.js",
|
|
14
14
|
"./nile-icon": "./dist/src/nile-icon/index.js",
|
|
15
15
|
"./nile-input": "./dist/src/nile-input/index.js",
|
|
16
|
+
"./nile-otp-input": "./dist/src/nile-otp-input/index.js",
|
|
16
17
|
"./nile-sidebar": "./dist/src/nile-sidebar/index.js",
|
|
17
18
|
"./nile-menu": "./dist/src/nile-menu/index.js",
|
|
18
19
|
"./nile-badge": "./dist/src/nile-badge/index.js",
|
|
@@ -116,7 +117,8 @@
|
|
|
116
117
|
"./nile-inline-sidebar": "./dist/src/nile-inline-sidebar/index.js",
|
|
117
118
|
"./nile-inline-sidebar-item": "./dist/src/nile-inline-sidebar-item/index.js",
|
|
118
119
|
"./nile-lite-tooltip": "./dist/src/nile-lite-tooltip/index.js",
|
|
119
|
-
"./nile-qr-code": "./dist/src/nile-qr-code/index.js"
|
|
120
|
+
"./nile-qr-code": "./dist/src/nile-qr-code/index.js",
|
|
121
|
+
"./nile-floating-panel": "./dist/src/nile-floating-panel/index.js"
|
|
120
122
|
},
|
|
121
123
|
"scripts": {
|
|
122
124
|
"analyze": "cem analyze --litelement",
|
|
@@ -221,4 +223,4 @@
|
|
|
221
223
|
"prettier --write"
|
|
222
224
|
]
|
|
223
225
|
}
|
|
224
|
-
}
|
|
226
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { NileButton } from './nile-button';
|
|
|
2
2
|
export { NileHeading } from './nile-heading';
|
|
3
3
|
export { NileIcon } from './nile-icon';
|
|
4
4
|
export { NileInput } from './nile-input';
|
|
5
|
+
export { NileOtpInput } from './nile-otp-input';
|
|
5
6
|
export { NileMenu } from './nile-menu';
|
|
6
7
|
export { NileBadge } from './nile-badge';
|
|
7
8
|
export { NileDrawer } from './nile-drawer';
|
|
@@ -75,7 +76,6 @@ export { NileTitle } from './nile-title';
|
|
|
75
76
|
export { NileSectionMessage } from './nile-section-message';
|
|
76
77
|
export { NileToolbar } from './nile-toolbar';
|
|
77
78
|
export { NileInlineEdit } from './nile-inline-edit';
|
|
78
|
-
export { NileFloatingPanel } from './nile-floating-panel';
|
|
79
79
|
export { NileTable } from './nile-table';
|
|
80
80
|
export { NileFilterChip } from './nile-filter-chip';
|
|
81
81
|
export {NilePagination } from './nile-pagination';
|
|
@@ -114,4 +114,5 @@ export { NileInlineSidebarItem } from './nile-inline-sidebar-item';
|
|
|
114
114
|
export { NileliteTooltip } from './nile-lite-tooltip';
|
|
115
115
|
export { NileSideBarPanel } from './nile-side-bar-panel';
|
|
116
116
|
export { NileDetail } from './nile-detail';
|
|
117
|
-
export { NileQrCode } from './nile-qr-code';
|
|
117
|
+
export { NileQrCode } from './nile-qr-code';
|
|
118
|
+
export { NileFloatingPanel } from './nile-floating-panel';
|
package/src/internal/enum.ts
CHANGED
|
@@ -5,7 +5,8 @@ export const KeyCode = {
|
|
|
5
5
|
SHIFT: 'ShiftLeft', // or 'ShiftRight'
|
|
6
6
|
CTRL: 'ControlLeft', // or 'ControlRight'
|
|
7
7
|
ESCAPE: 'Escape',
|
|
8
|
-
SPACE: '
|
|
8
|
+
SPACE: ' ',
|
|
9
|
+
DELETE: 'Delete',
|
|
9
10
|
PAGE_UP: 'PageUp',
|
|
10
11
|
PAGE_DOWN: 'PageDown',
|
|
11
12
|
END: 'End',
|
|
@@ -18,3 +19,24 @@ export const KeyCode = {
|
|
|
18
19
|
COPY: 'Copy',
|
|
19
20
|
PASTE: 'Paste',
|
|
20
21
|
};
|
|
22
|
+
|
|
23
|
+
export enum Nile_Events {
|
|
24
|
+
NILE_INIT = "nile-init",
|
|
25
|
+
NILE_CHANGE = "nile-change",
|
|
26
|
+
NILE_DESTROY = "nile-destroy",
|
|
27
|
+
NILE_PASTE = "nile-paste",
|
|
28
|
+
NILE_CUT = "nile-cut",
|
|
29
|
+
NILE_COPY = "nile-copy",
|
|
30
|
+
NILE_SELECT_ALL = "nile-select-all",
|
|
31
|
+
NILE_FOCUS = "nile-focus",
|
|
32
|
+
NILE_BLUR = "nile-blur",
|
|
33
|
+
NILE_INVALID = "nile-invalid",
|
|
34
|
+
NILE_VALID = "nile-valid",
|
|
35
|
+
NILE_RESET = "nile-reset",
|
|
36
|
+
NILE_CLEAR = "nile-clear",
|
|
37
|
+
NILE_CLEAR_ALL = "nile-clear-all",
|
|
38
|
+
NILE_CLEAR_SELECTION = "nile-clear-selection",
|
|
39
|
+
NILE_CLEAR_ALL_SELECTION = "nile-clear-all-selection",
|
|
40
|
+
NILE_INPUT = "nile-input",
|
|
41
|
+
NILE_COMPLETE = "nile-complete",
|
|
42
|
+
}
|
|
@@ -6,36 +6,59 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { css } from 'lit';
|
|
9
|
+
|
|
9
10
|
export const styles = css`
|
|
10
|
-
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
-webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));
|
|
13
|
-
-moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));
|
|
14
|
-
text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));
|
|
11
|
+
nile-floating-panel {
|
|
15
12
|
display: inline-block;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.tippy-box[data-theme~='floating-panel'] {
|
|
16
|
+
background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
17
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
|
18
|
+
border: solid 1px var(--nile-colors-dark-200, var(--ng-colors-border-secondary-alt));
|
|
19
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-md));
|
|
20
|
+
box-shadow: var(--nile-box-shadow-2, var(--ng-shadow-lg));
|
|
21
|
+
padding: 0;
|
|
22
|
+
font-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));
|
|
23
|
+
line-height: 1.4;
|
|
24
|
+
white-space: normal;
|
|
25
|
+
outline: 0;
|
|
26
|
+
transition-property: transform, visibility, opacity;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.tippy-box[data-theme~='floating-panel'][data-animation='fade'][data-state='hidden'] {
|
|
30
|
+
opacity: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.tippy-box[data-theme~='floating-panel'][data-inertia][data-state='visible'] {
|
|
34
|
+
transition-timing-function: cubic-bezier(0.54, 1.5, 0.38, 1.11);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.tippy-box[data-theme~='floating-panel'] > .tippy-content {
|
|
16
38
|
position: relative;
|
|
39
|
+
z-index: 1;
|
|
40
|
+
padding: 0;
|
|
17
41
|
}
|
|
18
42
|
|
|
19
|
-
|
|
20
|
-
|
|
43
|
+
.tippy-box[data-theme~='floating-panel'] > .tippy-svg-arrow {
|
|
44
|
+
fill: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
21
45
|
}
|
|
22
46
|
|
|
23
|
-
|
|
24
|
-
|
|
47
|
+
.tippy-box[data-theme~='floating-panel'] > .tippy-arrow {
|
|
48
|
+
color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
25
49
|
}
|
|
26
|
-
`;
|
|
27
50
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
z-index: 800;
|
|
33
|
-
background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
34
|
-
border: solid 1px var(--nile-colors-dark-200, var(--ng-colors-border-secondary-alt));
|
|
35
|
-
border-radius: var(--nile-radius-sm, var(--ng-radius-md));
|
|
36
|
-
box-shadow: var(--nile-box-shadow-2, var(--ng-shadow-lg));
|
|
37
|
-
padding: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
51
|
+
.nile-floating-panel__body {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
height: auto;
|
|
38
55
|
min-width: var(--nile-width-352px, var(--ng-width-80));
|
|
56
|
+
gap: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
57
|
+
padding: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.nile-floating-panel__title {
|
|
61
|
+
display: block;
|
|
39
62
|
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
|
40
63
|
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
41
64
|
font-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));
|
|
@@ -44,7 +67,112 @@ export const panelContainerStyles = css`
|
|
|
44
67
|
line-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-sm));
|
|
45
68
|
letter-spacing: var(--nile-spacing-one-by-five-x, var(--ng-spacing-none));
|
|
46
69
|
}
|
|
70
|
+
|
|
71
|
+
.nile-floating-panel__title:empty {
|
|
72
|
+
display: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.nile-floating-panel__action {
|
|
76
|
+
align-self: end;
|
|
77
|
+
display: inline;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.nile-floating-panel__action:empty {
|
|
81
|
+
display: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='top'] > .tippy-svg-arrow { bottom: 0; }
|
|
85
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='top'] > .tippy-svg-arrow:after,
|
|
86
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='top'] > .tippy-svg-arrow > svg {
|
|
87
|
+
top: 16px;
|
|
88
|
+
transform: rotate(180deg);
|
|
89
|
+
}
|
|
90
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='bottom'] > .tippy-svg-arrow { top: 0; }
|
|
91
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='bottom'] > .tippy-svg-arrow > svg { bottom: 16px; }
|
|
92
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='left'] > .tippy-svg-arrow { right: 0; }
|
|
93
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='left'] > .tippy-svg-arrow:after,
|
|
94
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='left'] > .tippy-svg-arrow > svg {
|
|
95
|
+
transform: rotate(90deg);
|
|
96
|
+
top: calc(50% - 3px);
|
|
97
|
+
left: 11px;
|
|
98
|
+
}
|
|
99
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='right'] > .tippy-svg-arrow { left: 0; }
|
|
100
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='right'] > .tippy-svg-arrow:after,
|
|
101
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='right'] > .tippy-svg-arrow > svg {
|
|
102
|
+
transform: rotate(-90deg);
|
|
103
|
+
top: calc(50% - 3px);
|
|
104
|
+
right: 11px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.tippy-box[data-theme~='floating-panel'] > .tippy-svg-arrow {
|
|
108
|
+
width: 16px;
|
|
109
|
+
height: 16px;
|
|
110
|
+
text-align: initial;
|
|
111
|
+
position: absolute;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.tippy-box[data-theme~='floating-panel'] > .tippy-svg-arrow > svg {
|
|
115
|
+
position: absolute;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='top'] > .tippy-arrow {
|
|
119
|
+
bottom: 0;
|
|
120
|
+
}
|
|
121
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='top'] > .tippy-arrow:before {
|
|
122
|
+
bottom: -7px;
|
|
123
|
+
border-width: 8px 8px 0;
|
|
124
|
+
border-top-color: initial;
|
|
125
|
+
}
|
|
126
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='bottom'] > .tippy-arrow {
|
|
127
|
+
top: 0;
|
|
128
|
+
}
|
|
129
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='bottom'] > .tippy-arrow:before {
|
|
130
|
+
top: -7px;
|
|
131
|
+
border-width: 0 8px 8px;
|
|
132
|
+
border-bottom-color: initial;
|
|
133
|
+
}
|
|
134
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='left'] > .tippy-arrow {
|
|
135
|
+
right: 0;
|
|
136
|
+
}
|
|
137
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='left'] > .tippy-arrow:before {
|
|
138
|
+
right: -7px;
|
|
139
|
+
border-width: 8px 0 8px 8px;
|
|
140
|
+
border-left-color: initial;
|
|
141
|
+
}
|
|
142
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='right'] > .tippy-arrow {
|
|
143
|
+
left: 0;
|
|
144
|
+
}
|
|
145
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='right'] > .tippy-arrow:before {
|
|
146
|
+
left: -7px;
|
|
147
|
+
border-width: 8px 8px 8px 0;
|
|
148
|
+
border-right-color: initial;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.tippy-box[data-theme~='floating-panel'] > .tippy-arrow {
|
|
152
|
+
width: 16px;
|
|
153
|
+
height: 16px;
|
|
154
|
+
color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
155
|
+
}
|
|
156
|
+
.tippy-box[data-theme~='floating-panel'] > .tippy-arrow:before {
|
|
157
|
+
content: '';
|
|
158
|
+
position: absolute;
|
|
159
|
+
border-color: transparent;
|
|
160
|
+
border-style: solid;
|
|
161
|
+
}
|
|
47
162
|
`;
|
|
48
163
|
|
|
49
|
-
export
|
|
164
|
+
export function injectGlobalFloatingPanelStyles(): void {
|
|
165
|
+
if (typeof document === 'undefined') return;
|
|
166
|
+
|
|
167
|
+
const STYLE_ID = 'nile-floating-panel-styles';
|
|
168
|
+
if (document.getElementById(STYLE_ID)) return;
|
|
50
169
|
|
|
170
|
+
const style = document.createElement('style');
|
|
171
|
+
style.id = STYLE_ID;
|
|
172
|
+
style.textContent = styles.cssText;
|
|
173
|
+
document.head?.appendChild(style);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
injectGlobalFloatingPanelStyles();
|
|
177
|
+
|
|
178
|
+
export default [styles];
|