selective-ui 1.0.2 → 1.0.4

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 (67) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +7 -2
  3. package/dist/selective-ui.css +567 -567
  4. package/dist/selective-ui.css.map +1 -1
  5. package/dist/selective-ui.esm.js +6186 -6047
  6. package/dist/selective-ui.esm.js.map +1 -1
  7. package/dist/selective-ui.esm.min.js +1 -1
  8. package/dist/selective-ui.esm.min.js.br +0 -0
  9. package/dist/selective-ui.min.js +2 -2
  10. package/dist/selective-ui.min.js.br +0 -0
  11. package/dist/selective-ui.umd.js +6186 -6047
  12. package/dist/selective-ui.umd.js.map +1 -1
  13. package/package.json +68 -68
  14. package/src/css/components/accessorybox.css +63 -63
  15. package/src/css/components/directive.css +19 -19
  16. package/src/css/components/empty-state.css +25 -25
  17. package/src/css/components/loading-state.css +25 -25
  18. package/src/css/components/optgroup.css +61 -61
  19. package/src/css/components/option-handle.css +33 -33
  20. package/src/css/components/option.css +129 -129
  21. package/src/css/components/placeholder.css +14 -14
  22. package/src/css/components/popup.css +38 -38
  23. package/src/css/components/searchbox.css +28 -28
  24. package/src/css/components/selectbox.css +53 -53
  25. package/src/css/index.css +74 -74
  26. package/src/js/adapter/mixed-adapter.js +434 -434
  27. package/src/js/components/accessorybox.js +124 -124
  28. package/src/js/components/directive.js +37 -37
  29. package/src/js/components/empty-state.js +67 -67
  30. package/src/js/components/loading-state.js +59 -59
  31. package/src/js/components/option-handle.js +113 -113
  32. package/src/js/components/placeholder.js +56 -56
  33. package/src/js/components/popup.js +470 -470
  34. package/src/js/components/searchbox.js +167 -167
  35. package/src/js/components/selectbox.js +749 -692
  36. package/src/js/core/base/adapter.js +162 -162
  37. package/src/js/core/base/model.js +59 -59
  38. package/src/js/core/base/recyclerview.js +82 -82
  39. package/src/js/core/base/view.js +62 -62
  40. package/src/js/core/model-manager.js +286 -286
  41. package/src/js/core/search-controller.js +603 -521
  42. package/src/js/index.js +136 -136
  43. package/src/js/models/group-model.js +142 -142
  44. package/src/js/models/option-model.js +236 -236
  45. package/src/js/services/dataset-observer.js +73 -73
  46. package/src/js/services/ea-observer.js +87 -87
  47. package/src/js/services/effector.js +403 -403
  48. package/src/js/services/refresher.js +39 -39
  49. package/src/js/services/resize-observer.js +151 -151
  50. package/src/js/services/select-observer.js +60 -60
  51. package/src/js/types/adapter.type.js +32 -32
  52. package/src/js/types/effector.type.js +23 -23
  53. package/src/js/types/ievents.type.js +10 -10
  54. package/src/js/types/libs.type.js +27 -27
  55. package/src/js/types/model.type.js +11 -11
  56. package/src/js/types/recyclerview.type.js +11 -11
  57. package/src/js/types/resize-observer.type.js +18 -18
  58. package/src/js/types/view.group.type.js +12 -12
  59. package/src/js/types/view.option.type.js +14 -14
  60. package/src/js/types/view.type.js +10 -10
  61. package/src/js/utils/guard.js +46 -46
  62. package/src/js/utils/ievents.js +83 -83
  63. package/src/js/utils/istorage.js +60 -60
  64. package/src/js/utils/libs.js +618 -618
  65. package/src/js/utils/selective.js +385 -385
  66. package/src/js/views/group-view.js +102 -102
  67. package/src/js/views/option-view.js +152 -152
package/package.json CHANGED
@@ -1,68 +1,68 @@
1
- {
2
- "name": "selective-ui",
3
- "version": "1.0.2",
4
- "description": "An overlay for the HTML select element.",
5
- "author": "Huỳnh Công Xuân Mai",
6
- "license": "MIT",
7
- "sideEffects": false,
8
- "main": "dist/selective-ui.umd.js",
9
- "module": "dist/selective-ui.esm.js",
10
- "exports": {
11
- ".": {
12
- "import": "./dist/selective-ui.esm.js",
13
- "require": "./dist/selective-ui.umd.js"
14
- }
15
- },
16
- "files": [
17
- "dist",
18
- "src"
19
- ],
20
- "scripts": {
21
- "clean": "rimraf dist",
22
- "build": "npm run clean && rollup -c",
23
- "watch": "rollup -c --watch",
24
- "dev": "rollup -c -w",
25
- "test": "jest",
26
- "test:watch": "jest --watch",
27
- "test:coverage": "jest --coverage",
28
- "test:unit": "jest tests/unit",
29
- "test:integration": "jest tests/integration",
30
- "test:verbose": "jest --verbose",
31
- "test:ci": "jest --ci --coverage --maxWorkers=2",
32
- "lint": "eslint src/",
33
- "lint:fix": "eslint src/ --fix",
34
- "prepublishOnly": "npm run build"
35
- },
36
- "devDependencies": {
37
- "@babel/core": "^7.28.5",
38
- "@babel/preset-env": "^7.28.5",
39
- "@rollup/plugin-commonjs": "^25.0.8",
40
- "@rollup/plugin-node-resolve": "^15.3.1",
41
- "@rollup/plugin-replace": "^5.0.7",
42
- "@rollup/plugin-terser": "^0.4.4",
43
- "@testing-library/dom": "^10.4.1",
44
- "@testing-library/jest-dom": "^6.9.1",
45
- "autoprefixer": "^10.4.21",
46
- "babel-jest": "^29.7.0",
47
- "cssnano": "^6.1.2",
48
- "jest": "^29.7.0",
49
- "jest-environment-jsdom": "^29.7.0",
50
- "postcss": "^8.4.45",
51
- "rimraf": "^6.0.1",
52
- "rollup": "^4.50.0",
53
- "rollup-plugin-brotli": "^3.1.0",
54
- "rollup-plugin-postcss": "^4.0.2"
55
- },
56
- "keywords": [
57
- "select",
58
- "dropdown",
59
- "ui",
60
- "component",
61
- "custom-select",
62
- "searchable-select"
63
- ],
64
- "browserslist": [
65
- ">0.25%",
66
- "not dead"
67
- ]
68
- }
1
+ {
2
+ "name": "selective-ui",
3
+ "version": "1.0.4",
4
+ "description": "An overlay for the HTML select element.",
5
+ "author": "Huỳnh Công Xuân Mai",
6
+ "license": "MIT",
7
+ "sideEffects": false,
8
+ "main": "dist/selective-ui.umd.js",
9
+ "module": "dist/selective-ui.esm.js",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/selective-ui.esm.js",
13
+ "require": "./dist/selective-ui.umd.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "src"
19
+ ],
20
+ "scripts": {
21
+ "clean": "rimraf dist",
22
+ "build": "npm run clean && rollup -c",
23
+ "watch": "rollup -c --watch",
24
+ "dev": "rollup -c -w",
25
+ "test": "jest",
26
+ "test:watch": "jest --watch",
27
+ "test:coverage": "jest --coverage",
28
+ "test:unit": "jest tests/unit",
29
+ "test:integration": "jest tests/integration",
30
+ "test:verbose": "jest --verbose",
31
+ "test:ci": "jest --ci --coverage --maxWorkers=2",
32
+ "lint": "eslint src/",
33
+ "lint:fix": "eslint src/ --fix",
34
+ "prepublishOnly": "npm run build"
35
+ },
36
+ "devDependencies": {
37
+ "@babel/core": "^7.28.5",
38
+ "@babel/preset-env": "^7.28.5",
39
+ "@rollup/plugin-commonjs": "^25.0.8",
40
+ "@rollup/plugin-node-resolve": "^15.3.1",
41
+ "@rollup/plugin-replace": "^5.0.7",
42
+ "@rollup/plugin-terser": "^0.4.4",
43
+ "@testing-library/dom": "^10.4.1",
44
+ "@testing-library/jest-dom": "^6.9.1",
45
+ "autoprefixer": "^10.4.21",
46
+ "babel-jest": "^29.7.0",
47
+ "cssnano": "^6.1.2",
48
+ "jest": "^29.7.0",
49
+ "jest-environment-jsdom": "^29.7.0",
50
+ "postcss": "^8.4.45",
51
+ "rimraf": "^6.0.1",
52
+ "rollup": "^4.50.0",
53
+ "rollup-plugin-brotli": "^3.1.0",
54
+ "rollup-plugin-postcss": "^4.0.2"
55
+ },
56
+ "keywords": [
57
+ "select",
58
+ "dropdown",
59
+ "ui",
60
+ "component",
61
+ "custom-select",
62
+ "searchable-select"
63
+ ],
64
+ "browserslist": [
65
+ ">0.25%",
66
+ "not dead"
67
+ ]
68
+ }
@@ -1,64 +1,64 @@
1
- .selective-ui-accessorybox {
2
- display: flex;
3
- flex-direction: row;
4
- flex-wrap: wrap;
5
-
6
- gap: 2px;
7
- padding: var(--seui-accessory-padding);
8
- max-width: var(--seui-accessory-max-width);
9
- max-height: var(--seui-accessory-max-height);
10
- overflow-y: scroll;
11
- }
12
-
13
- .accessory-item {
14
- display: flex;
15
- align-items: center;
16
-
17
- overflow: hidden;
18
- border-color: var(--seui-accessory-item-border-color);
19
- border-style: var(--seui-accessory-item-border-style);
20
- border-width: var(--seui-accessory-item-border-width);
21
- border-radius: var(--seui-accessory-item-border-radius);
22
-
23
- background: var(--seui-accessory-item-background);
24
- font-size: var(--seui-accessory-item-font-size);
25
- padding: var(--seui-accessory-item-padding);
26
- gap: var(--seui-accessory-item-gap);
27
- }
28
-
29
- .accessory-item > .accessory-item-button {
30
- position: relative;
31
- cursor: pointer;
32
- color: var(--seui-accessory-item-button-color);
33
- font-weight: bold;
34
-
35
- border-color: var(--seui-accessory-item-button-border-color);
36
- border-style: var(--seui-accessory-item-button-border-style);
37
- border-width: var(--seui-accessory-item-button-border-width);
38
- border-radius: var(--seui-accessory-item-button-border-radius);
39
-
40
- width: var(--seui-accessory-item-button-width);
41
- min-width: var(--seui-accessory-item-button-width);
42
- height: var(--seui-accessory-item-button-height);
43
- min-height: var(--seui-accessory-item-button-height);
44
- }
45
-
46
- .accessory-item > .accessory-item-button::after {
47
- background: url('data:image/svg+xml,<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><g><title>Layer 1</title><g transform="rotate(45 8 8)" stroke="null" id="svg_28"><rect stroke="%23000" rx="1" id="svg_20" height="1.41129" width="7.76211" y="7.29435" x="4.11895" stroke-width="0" fill="%234c4c4c"/><rect stroke="%23000" transform="matrix(0 0.705646 -0.705646 0 12.0262 3.97378)" rx="1" id="svg_27" height="2" width="11" y="4.70572" x="0.20572" stroke-width="0" fill="%234c4c4c"/></g></g></svg>');
48
- display: block;
49
- content: "";
50
- position: absolute;
51
- background-repeat: no-repeat;
52
- background-position: center center;
53
- width: 100%;
54
- height: 100%;
55
- }
56
-
57
- .accessory-item > .accessory-item-content {
58
- color: var(--seui-accessory-item-content-color);
59
- font-size: var(--seui-accessory-item-content-font-size);
60
- padding: var(--seui-accessory-item-content-padding);
61
- overflow: hidden;
62
- text-overflow: ellipsis;
63
- white-space: nowrap;
1
+ .selective-ui-accessorybox {
2
+ display: flex;
3
+ flex-direction: row;
4
+ flex-wrap: wrap;
5
+
6
+ gap: 2px;
7
+ padding: var(--seui-accessory-padding);
8
+ max-width: var(--seui-accessory-max-width);
9
+ max-height: var(--seui-accessory-max-height);
10
+ overflow-y: scroll;
11
+ }
12
+
13
+ .accessory-item {
14
+ display: flex;
15
+ align-items: center;
16
+
17
+ overflow: hidden;
18
+ border-color: var(--seui-accessory-item-border-color);
19
+ border-style: var(--seui-accessory-item-border-style);
20
+ border-width: var(--seui-accessory-item-border-width);
21
+ border-radius: var(--seui-accessory-item-border-radius);
22
+
23
+ background: var(--seui-accessory-item-background);
24
+ font-size: var(--seui-accessory-item-font-size);
25
+ padding: var(--seui-accessory-item-padding);
26
+ gap: var(--seui-accessory-item-gap);
27
+ }
28
+
29
+ .accessory-item > .accessory-item-button {
30
+ position: relative;
31
+ cursor: pointer;
32
+ color: var(--seui-accessory-item-button-color);
33
+ font-weight: bold;
34
+
35
+ border-color: var(--seui-accessory-item-button-border-color);
36
+ border-style: var(--seui-accessory-item-button-border-style);
37
+ border-width: var(--seui-accessory-item-button-border-width);
38
+ border-radius: var(--seui-accessory-item-button-border-radius);
39
+
40
+ width: var(--seui-accessory-item-button-width);
41
+ min-width: var(--seui-accessory-item-button-width);
42
+ height: var(--seui-accessory-item-button-height);
43
+ min-height: var(--seui-accessory-item-button-height);
44
+ }
45
+
46
+ .accessory-item > .accessory-item-button::after {
47
+ background: url('data:image/svg+xml,<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><g><title>Layer 1</title><g transform="rotate(45 8 8)" stroke="null" id="svg_28"><rect stroke="%23000" rx="1" id="svg_20" height="1.41129" width="7.76211" y="7.29435" x="4.11895" stroke-width="0" fill="%234c4c4c"/><rect stroke="%23000" transform="matrix(0 0.705646 -0.705646 0 12.0262 3.97378)" rx="1" id="svg_27" height="2" width="11" y="4.70572" x="0.20572" stroke-width="0" fill="%234c4c4c"/></g></g></svg>');
48
+ display: block;
49
+ content: "";
50
+ position: absolute;
51
+ background-repeat: no-repeat;
52
+ background-position: center center;
53
+ width: 100%;
54
+ height: 100%;
55
+ }
56
+
57
+ .accessory-item > .accessory-item-content {
58
+ color: var(--seui-accessory-item-content-color);
59
+ font-size: var(--seui-accessory-item-content-font-size);
60
+ padding: var(--seui-accessory-item-content-padding);
61
+ overflow: hidden;
62
+ text-overflow: ellipsis;
63
+ white-space: nowrap;
64
64
  }
@@ -1,20 +1,20 @@
1
- .selective-ui-directive {
2
- content: " ";
3
- position: absolute;
4
- display: inline-block;
5
- vertical-align: middle;
6
- transition: all linear 200ms;
7
- border-top: 4px solid var(--seui-directive-color);
8
- border-right: 4px solid transparent;
9
- border-left: 4px solid transparent;
10
- width: 0;
11
- height: 0;
12
- right: 10px;
13
- top: 50%;
14
- transform: translateY(-50%) rotate(0deg);
15
- z-index: 1;
16
- pointer-events: none;
17
- }
18
- .selective-ui-directive.drop-down {
19
- transform: translateY(-50%) rotate(180deg);
1
+ .selective-ui-directive {
2
+ content: " ";
3
+ position: absolute;
4
+ display: inline-block;
5
+ vertical-align: middle;
6
+ transition: all linear 200ms;
7
+ border-top: 4px solid var(--seui-directive-color);
8
+ border-right: 4px solid transparent;
9
+ border-left: 4px solid transparent;
10
+ width: 0;
11
+ height: 0;
12
+ right: 10px;
13
+ top: 50%;
14
+ transform: translateY(-50%) rotate(0deg);
15
+ z-index: 1;
16
+ pointer-events: none;
17
+ }
18
+ .selective-ui-directive.drop-down {
19
+ transform: translateY(-50%) rotate(180deg);
20
20
  }
@@ -1,26 +1,26 @@
1
- .selective-ui-empty-state {
2
- display: flex;
3
- align-items: center;
4
- justify-content: center;
5
- padding: var(--seui-empty-state-padding, 20px);
6
- text-align: center;
7
- font-family: var(--seui-view-text-style);
8
- font-size: var(--seui-view-text-size);
9
- color: var(--seui-empty-state-color, #999);
10
- background-color: var(--seui-empty-state-background, transparent);
11
- border-radius: var(--seui-option-border-radius);
12
- min-height: 60px;
13
-
14
- position: sticky;
15
- bottom: 0;
16
- }
17
-
18
- .selective-ui-empty-state.small {
19
- text-align: left;
20
- justify-content: flex-start;
21
- min-height: 30px;
22
- }
23
-
24
- .selective-ui-empty-state.hide {
25
- display: none;
1
+ .selective-ui-empty-state {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ padding: var(--seui-empty-state-padding, 20px);
6
+ text-align: center;
7
+ font-family: var(--seui-view-text-style);
8
+ font-size: var(--seui-view-text-size);
9
+ color: var(--seui-empty-state-color, #999);
10
+ background-color: var(--seui-empty-state-background, transparent);
11
+ border-radius: var(--seui-option-border-radius);
12
+ min-height: 60px;
13
+
14
+ position: sticky;
15
+ bottom: 0;
16
+ }
17
+
18
+ .selective-ui-empty-state.small {
19
+ text-align: left;
20
+ justify-content: flex-start;
21
+ min-height: 30px;
22
+ }
23
+
24
+ .selective-ui-empty-state.hide {
25
+ display: none;
26
26
  }
@@ -1,26 +1,26 @@
1
- .selective-ui-loading-state {
2
- display: flex;
3
- align-items: center;
4
- justify-content: center;
5
- padding: var(--seui-empty-state-padding, 20px);
6
- text-align: center;
7
- font-family: var(--seui-view-text-style);
8
- font-size: var(--seui-view-text-size);
9
- color: var(--seui-empty-state-color, #999);
10
- background-color: var(--seui-empty-state-background, transparent);
11
- border-radius: var(--seui-option-border-radius);
12
- min-height: 60px;
13
-
14
- position: sticky;
15
- bottom: 0;
16
- }
17
-
18
- .selective-ui-loading-state.small {
19
- text-align: left;
20
- justify-content: flex-start;
21
- min-height: 30px;
22
- }
23
-
24
- .selective-ui-loading-state.hide {
25
- display: none;
1
+ .selective-ui-loading-state {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ padding: var(--seui-empty-state-padding, 20px);
6
+ text-align: center;
7
+ font-family: var(--seui-view-text-style);
8
+ font-size: var(--seui-view-text-size);
9
+ color: var(--seui-empty-state-color, #999);
10
+ background-color: var(--seui-empty-state-background, transparent);
11
+ border-radius: var(--seui-option-border-radius);
12
+ min-height: 60px;
13
+
14
+ position: sticky;
15
+ bottom: 0;
16
+ }
17
+
18
+ .selective-ui-loading-state.small {
19
+ text-align: left;
20
+ justify-content: flex-start;
21
+ min-height: 30px;
22
+ }
23
+
24
+ .selective-ui-loading-state.hide {
25
+ display: none;
26
26
  }
@@ -1,62 +1,62 @@
1
- .selective-ui-group {
2
- display: flex;
3
- flex-direction: column;
4
- gap: 2px;
5
- }
6
-
7
- .selective-ui-group.hide {
8
- display: none;
9
- }
10
-
11
- .selective-ui-group-header {
12
- font-family: var(--seui-view-text-style);
13
- font-size: var(--seui-view-text-size);
14
- font-weight: 600;
15
- color: var(--seui-view-text-color);
16
- padding: 8px 12px;
17
- background-color: var(--seui-view-optgroup-background-color);
18
- border-radius: var(--seui-option-border-radius);
19
- /* position: sticky; */
20
- /* top: 0; */
21
- z-index: 1;
22
- cursor: pointer;
23
- user-select: none;
24
-
25
- display: flex;
26
- align-items: center;
27
- gap: 8px;
28
- }
29
-
30
- .selective-ui-group-header::before {
31
- content: "";
32
- display: inline-block;
33
- width: 0;
34
- height: 0;
35
- border-top: 5px solid transparent;
36
- border-bottom: 5px solid transparent;
37
- border-left: 7px solid currentColor;
38
- transition: transform 200ms ease;
39
- transform: rotate(90deg);
40
- }
41
-
42
- .selective-ui-group.collapsed .selective-ui-group-header::before {
43
- transform: rotate(0deg);
44
- }
45
-
46
- .selective-ui-group-items {
47
- display: flex;
48
- flex-direction: column;
49
- gap: 2px;
50
- padding-left: 16px;
51
- }
52
-
53
- .selective-ui-group.collapsed .selective-ui-group-items {
54
- display: none;
55
- }
56
-
57
- /* Option trong group có indent nhẹ hơn */
58
- .selective-ui-group-items .selective-ui-option-view {
59
- padding-left: 12px;
60
- border-left: 2px solid #e0e0e0;
61
- margin-left: 4px;
1
+ .selective-ui-group {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 2px;
5
+ }
6
+
7
+ .selective-ui-group.hide {
8
+ display: none;
9
+ }
10
+
11
+ .selective-ui-group-header {
12
+ font-family: var(--seui-view-text-style);
13
+ font-size: var(--seui-view-text-size);
14
+ font-weight: 600;
15
+ color: var(--seui-view-text-color);
16
+ padding: 8px 12px;
17
+ background-color: var(--seui-view-optgroup-background-color);
18
+ border-radius: var(--seui-option-border-radius);
19
+ /* position: sticky; */
20
+ /* top: 0; */
21
+ z-index: 1;
22
+ cursor: pointer;
23
+ user-select: none;
24
+
25
+ display: flex;
26
+ align-items: center;
27
+ gap: 8px;
28
+ }
29
+
30
+ .selective-ui-group-header::before {
31
+ content: "";
32
+ display: inline-block;
33
+ width: 0;
34
+ height: 0;
35
+ border-top: 5px solid transparent;
36
+ border-bottom: 5px solid transparent;
37
+ border-left: 7px solid currentColor;
38
+ transition: transform 200ms ease;
39
+ transform: rotate(90deg);
40
+ }
41
+
42
+ .selective-ui-group.collapsed .selective-ui-group-header::before {
43
+ transform: rotate(0deg);
44
+ }
45
+
46
+ .selective-ui-group-items {
47
+ display: flex;
48
+ flex-direction: column;
49
+ gap: 2px;
50
+ padding-left: 16px;
51
+ }
52
+
53
+ .selective-ui-group.collapsed .selective-ui-group-items {
54
+ display: none;
55
+ }
56
+
57
+ /* Option trong group có indent nhẹ hơn */
58
+ .selective-ui-group-items .selective-ui-option-view {
59
+ padding-left: 12px;
60
+ border-left: 2px solid #e0e0e0;
61
+ margin-left: 4px;
62
62
  }
@@ -1,34 +1,34 @@
1
- .selective-ui-option-handle {
2
- display: flex;
3
- flex-direction: row;
4
- align-items: center;
5
- justify-content: space-between;
6
-
7
- font-size: var(--seui-option-crtl-text-size);
8
- font-family: var(--seui-view-text-style);
9
- width: unset;
10
- position: sticky;
11
- top: 0px;
12
- padding: var(--seui-option-padding);
13
- z-index: 2;
14
- background-color: var(--seui-option-crtl-background-color);
15
- border: 1px solid var(--seui-option-crtl-border-color);
16
- border-radius: var(--seui-option-border-radius);
17
- }
18
-
19
- .selective-ui-option-handle.hide {
20
- display: none;
21
- }
22
-
23
- .selective-ui-option-handle-item {
24
- text-decoration: none;
25
- cursor: pointer;
26
- color: var(--seui-option-crtl-text-color);
27
- overflow: hidden;
28
- text-overflow: ellipsis;
29
- white-space: nowrap;
30
- }
31
-
32
- .selective-ui-option-handle-item:hover {
33
- color: var(--seui-option-crtl-text-color-hover);
1
+ .selective-ui-option-handle {
2
+ display: flex;
3
+ flex-direction: row;
4
+ align-items: center;
5
+ justify-content: space-between;
6
+
7
+ font-size: var(--seui-option-crtl-text-size);
8
+ font-family: var(--seui-view-text-style);
9
+ width: unset;
10
+ position: sticky;
11
+ top: 0px;
12
+ padding: var(--seui-option-padding);
13
+ z-index: 2;
14
+ background-color: var(--seui-option-crtl-background-color);
15
+ border: 1px solid var(--seui-option-crtl-border-color);
16
+ border-radius: var(--seui-option-border-radius);
17
+ }
18
+
19
+ .selective-ui-option-handle.hide {
20
+ display: none;
21
+ }
22
+
23
+ .selective-ui-option-handle-item {
24
+ text-decoration: none;
25
+ cursor: pointer;
26
+ color: var(--seui-option-crtl-text-color);
27
+ overflow: hidden;
28
+ text-overflow: ellipsis;
29
+ white-space: nowrap;
30
+ }
31
+
32
+ .selective-ui-option-handle-item:hover {
33
+ color: var(--seui-option-crtl-text-color-hover);
34
34
  }