@internetarchive/collection-browser 4.3.1-alpha-webdev8257.0 → 4.3.1
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/dist/index.d.ts +0 -1
- package/dist/index.js.map +1 -1
- package/dist/src/app-root.d.ts +0 -8
- package/dist/src/app-root.js +672 -698
- package/dist/src/app-root.js.map +1 -1
- package/dist/src/collection-browser.d.ts +0 -8
- package/dist/src/collection-browser.js +762 -779
- package/dist/src/collection-browser.js.map +1 -1
- package/dist/src/tiles/base-tile-component.d.ts +1 -17
- package/dist/src/tiles/base-tile-component.js +1 -48
- package/dist/src/tiles/base-tile-component.js.map +1 -1
- package/dist/src/tiles/grid/item-tile.js +138 -139
- package/dist/src/tiles/grid/item-tile.js.map +1 -1
- package/dist/src/tiles/list/tile-list-compact-header.js +46 -66
- package/dist/src/tiles/list/tile-list-compact-header.js.map +1 -1
- package/dist/src/tiles/list/tile-list-compact.d.ts +1 -1
- package/dist/src/tiles/list/tile-list-compact.js +100 -132
- package/dist/src/tiles/list/tile-list-compact.js.map +1 -1
- package/dist/src/tiles/list/tile-list.d.ts +1 -1
- package/dist/src/tiles/list/tile-list.js +298 -316
- package/dist/src/tiles/list/tile-list.js.map +1 -1
- package/dist/src/tiles/models.d.ts +0 -14
- package/dist/src/tiles/models.js.map +1 -1
- package/dist/src/tiles/tile-dispatcher.d.ts +0 -14
- package/dist/src/tiles/tile-dispatcher.js +216 -319
- package/dist/src/tiles/tile-dispatcher.js.map +1 -1
- package/index.ts +28 -29
- package/package.json +2 -2
- package/src/app-root.ts +1251 -1281
- package/src/collection-browser.ts +3049 -3063
- package/src/tiles/base-tile-component.ts +65 -121
- package/src/tiles/grid/item-tile.ts +346 -347
- package/src/tiles/list/tile-list-compact-header.ts +86 -106
- package/src/tiles/list/tile-list-compact.ts +239 -273
- package/src/tiles/list/tile-list.ts +700 -718
- package/src/tiles/models.ts +8 -24
- package/src/tiles/tile-dispatcher.ts +527 -637
- package/dist/src/styles/tile-action-styles.d.ts +0 -14
- package/dist/src/styles/tile-action-styles.js +0 -52
- package/dist/src/styles/tile-action-styles.js.map +0 -1
- package/src/styles/tile-action-styles.ts +0 -52
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared styles for tile action buttons rendered in grid, list-detail, and
|
|
3
|
-
* list-compact display modes. Layout positioning is handled by each tile
|
|
4
|
-
* component; these styles cover only the button appearance and the row
|
|
5
|
-
* container's default flex behavior.
|
|
6
|
-
*
|
|
7
|
-
* Customizable via CSS custom properties:
|
|
8
|
-
* - `--tileActionColor` (default: #d9534f)
|
|
9
|
-
* - `--tileActionBg` (default: #fff)
|
|
10
|
-
* - `--tileActionBorderColor` (default: #d9534f)
|
|
11
|
-
* - `--tileActionHoverBg` (default: rgba(217, 83, 79, 0.1))
|
|
12
|
-
* - `--tileActionHoverColor` (defaults to --tileActionColor)
|
|
13
|
-
*/
|
|
14
|
-
export declare const tileActionStyles: import("lit").CSSResult;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
/**
|
|
3
|
-
* Shared styles for tile action buttons rendered in grid, list-detail, and
|
|
4
|
-
* list-compact display modes. Layout positioning is handled by each tile
|
|
5
|
-
* component; these styles cover only the button appearance and the row
|
|
6
|
-
* container's default flex behavior.
|
|
7
|
-
*
|
|
8
|
-
* Customizable via CSS custom properties:
|
|
9
|
-
* - `--tileActionColor` (default: #d9534f)
|
|
10
|
-
* - `--tileActionBg` (default: #fff)
|
|
11
|
-
* - `--tileActionBorderColor` (default: #d9534f)
|
|
12
|
-
* - `--tileActionHoverBg` (default: rgba(217, 83, 79, 0.1))
|
|
13
|
-
* - `--tileActionHoverColor` (defaults to --tileActionColor)
|
|
14
|
-
*/
|
|
15
|
-
export const tileActionStyles = css `
|
|
16
|
-
.tile-actions {
|
|
17
|
-
flex-shrink: 0;
|
|
18
|
-
display: flex;
|
|
19
|
-
gap: var(--tileActionGap, 0);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.tile-action-btn {
|
|
23
|
-
flex: 1;
|
|
24
|
-
padding: 6px 5px;
|
|
25
|
-
border: 2px solid var(--tileActionBorderColor, #d9534f);
|
|
26
|
-
border-radius: var(--tileActionBorderRadius, 0);
|
|
27
|
-
/* Inherit from the surrounding tile rather than the UA default for <button> */
|
|
28
|
-
font-family: inherit;
|
|
29
|
-
font-size: 1.2rem;
|
|
30
|
-
font-weight: bold;
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
color: var(--tileActionColor, #d9534f);
|
|
33
|
-
background: var(--tileActionBg, #fff);
|
|
34
|
-
transition:
|
|
35
|
-
background 0.15s,
|
|
36
|
-
color 0.15s;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/*
|
|
40
|
-
* When buttons are flush against each other (no gap), overlap their shared
|
|
41
|
-
* edge by 1px so adjacent borders don't double up.
|
|
42
|
-
*/
|
|
43
|
-
.tile-action-btn + .tile-action-btn {
|
|
44
|
-
margin-left: -1px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.tile-action-btn:hover {
|
|
48
|
-
background: var(--tileActionHoverBg, rgba(217, 83, 79, 0.2));
|
|
49
|
-
color: var(--tileActionHoverColor, var(--tileActionColor, #d9534f));
|
|
50
|
-
}
|
|
51
|
-
`;
|
|
52
|
-
//# sourceMappingURL=tile-action-styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tile-action-styles.js","sourceRoot":"","sources":["../../../src/styles/tile-action-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoClC,CAAC","sourcesContent":["import { css } from 'lit';\n\n/**\n * Shared styles for tile action buttons rendered in grid, list-detail, and\n * list-compact display modes. Layout positioning is handled by each tile\n * component; these styles cover only the button appearance and the row\n * container's default flex behavior.\n *\n * Customizable via CSS custom properties:\n * - `--tileActionColor` (default: #d9534f)\n * - `--tileActionBg` (default: #fff)\n * - `--tileActionBorderColor` (default: #d9534f)\n * - `--tileActionHoverBg` (default: rgba(217, 83, 79, 0.1))\n * - `--tileActionHoverColor` (defaults to --tileActionColor)\n */\nexport const tileActionStyles = css`\n .tile-actions {\n flex-shrink: 0;\n display: flex;\n gap: var(--tileActionGap, 0);\n }\n\n .tile-action-btn {\n flex: 1;\n padding: 6px 5px;\n border: 2px solid var(--tileActionBorderColor, #d9534f);\n border-radius: var(--tileActionBorderRadius, 0);\n /* Inherit from the surrounding tile rather than the UA default for <button> */\n font-family: inherit;\n font-size: 1.2rem;\n font-weight: bold;\n cursor: pointer;\n color: var(--tileActionColor, #d9534f);\n background: var(--tileActionBg, #fff);\n transition:\n background 0.15s,\n color 0.15s;\n }\n\n /*\n * When buttons are flush against each other (no gap), overlap their shared\n * edge by 1px so adjacent borders don't double up.\n */\n .tile-action-btn + .tile-action-btn {\n margin-left: -1px;\n }\n\n .tile-action-btn:hover {\n background: var(--tileActionHoverBg, rgba(217, 83, 79, 0.2));\n color: var(--tileActionHoverColor, var(--tileActionColor, #d9534f));\n }\n`;\n"]}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Shared styles for tile action buttons rendered in grid, list-detail, and
|
|
5
|
-
* list-compact display modes. Layout positioning is handled by each tile
|
|
6
|
-
* component; these styles cover only the button appearance and the row
|
|
7
|
-
* container's default flex behavior.
|
|
8
|
-
*
|
|
9
|
-
* Customizable via CSS custom properties:
|
|
10
|
-
* - `--tileActionColor` (default: #d9534f)
|
|
11
|
-
* - `--tileActionBg` (default: #fff)
|
|
12
|
-
* - `--tileActionBorderColor` (default: #d9534f)
|
|
13
|
-
* - `--tileActionHoverBg` (default: rgba(217, 83, 79, 0.1))
|
|
14
|
-
* - `--tileActionHoverColor` (defaults to --tileActionColor)
|
|
15
|
-
*/
|
|
16
|
-
export const tileActionStyles = css`
|
|
17
|
-
.tile-actions {
|
|
18
|
-
flex-shrink: 0;
|
|
19
|
-
display: flex;
|
|
20
|
-
gap: var(--tileActionGap, 0);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.tile-action-btn {
|
|
24
|
-
flex: 1;
|
|
25
|
-
padding: 6px 5px;
|
|
26
|
-
border: 2px solid var(--tileActionBorderColor, #d9534f);
|
|
27
|
-
border-radius: var(--tileActionBorderRadius, 0);
|
|
28
|
-
/* Inherit from the surrounding tile rather than the UA default for <button> */
|
|
29
|
-
font-family: inherit;
|
|
30
|
-
font-size: 1.2rem;
|
|
31
|
-
font-weight: bold;
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
color: var(--tileActionColor, #d9534f);
|
|
34
|
-
background: var(--tileActionBg, #fff);
|
|
35
|
-
transition:
|
|
36
|
-
background 0.15s,
|
|
37
|
-
color 0.15s;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/*
|
|
41
|
-
* When buttons are flush against each other (no gap), overlap their shared
|
|
42
|
-
* edge by 1px so adjacent borders don't double up.
|
|
43
|
-
*/
|
|
44
|
-
.tile-action-btn + .tile-action-btn {
|
|
45
|
-
margin-left: -1px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.tile-action-btn:hover {
|
|
49
|
-
background: var(--tileActionHoverBg, rgba(217, 83, 79, 0.2));
|
|
50
|
-
color: var(--tileActionHoverColor, var(--tileActionColor, #d9534f));
|
|
51
|
-
}
|
|
52
|
-
`;
|