lookbook 2.0.0.beta.0 → 2.0.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/components/lookbook/embed/inspector/component.html.erb +1 -1
- data/app/components/lookbook/embed_code_dropdown/component.html.erb +4 -1
- data/app/components/lookbook/embed_code_dropdown/component.rb +3 -2
- data/app/components/lookbook/header/component.html.erb +1 -1
- data/app/controllers/concerns/lookbook/targetable_concern.rb +3 -2
- data/app/controllers/lookbook/previews_controller.rb +31 -5
- data/app/views/layouts/lookbook/application.html.erb +3 -3
- data/app/views/lookbook/inspector/show.html.erb +10 -7
- data/app/views/lookbook/previews/group.html.erb +1 -1
- data/config/app.yml +2 -1
- data/config/routes.rb +4 -2
- data/lib/lookbook/engine.rb +16 -1
- data/lib/lookbook/entities/scenario_entity.rb +4 -0
- data/lib/lookbook/entities/scenario_group_entity.rb +5 -1
- data/lib/lookbook/helpers/preview_helper.rb +4 -0
- data/lib/lookbook/preview_controller_actions.rb +0 -5
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/css/lookbook.css +385 -387
- data/public/lookbook-assets/css/lookbook.css.map +1 -1
- data/public/lookbook-assets/js/index.js +59 -59
- data/public/lookbook-assets/js/index.js.map +1 -1
- metadata +2 -2
@@ -1 +1 @@
|
|
1
|
-
{"mappings":"AAKE;;;;;AAOD;;;;AASC;;;;;;;;AAUA;;;;;AAOA;;;;;;AAMA
|
1
|
+
{"mappings":"AAKE;;;;;AAOD;;;;AASC;;;;;;;;AAUA;;;;;AAOA;;;;;;AAMA;;;;;AAIA;;;;;AAUA;;;;;;AAKA;;;;AAMA;;;;;AAQA;;;;AAIA;;;;;;;AAMD;;;;AAEA;;;;AAMC;;;;;;AAQA;;;;;;;;;;AAcA;;;;AAMA;;;;;;AASA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAMA;;;;;AAKA;;;;AAKA;;;;;AAKA;;;;AAIA;;;;AAcD;;;;;AAGA;;;;AAEA;;;;;;AAQC;;;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A;EAEC;;;;;EAKA","sources":["app/assets/lookbook/css/lookbook.css"],"sourcesContent":["@import \"tailwindcss/base\";\n@import \"tailwindcss/components\";\n@import \"tailwindcss/utilities\";\n\n@import \"./tooltip.css\";\n\n@import-glob \"../../../components/lookbook/**/*/component.css\";\n\n@layer base {\n html {\n @apply scroll-smooth h-screen;\n }\n\n @media screen and (prefers-reduced-motion: reduce) {\n html {\n @apply scroll-auto;\n }\n }\n\n body {\n @apply text-lookbook-text font-sans text-sm antialiased overflow-hidden;\n }\n\n [x-cloak] {\n @apply !hidden;\n }\n\n pre[class*=\"language-\"] {\n @apply !p-0 !m-0;\n }\n\n ::-webkit-scrollbar {\n @apply w-1 h-1;\n }\n\n ::-webkit-scrollbar-track {\n @apply bg-transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n @apply transition-colors rounded-full\tbg-clip-content bg-lookbook-scrollbar;\n }\n\n ::-webkit-scrollbar-thumb:hover {\n @apply bg-lookbook-scrollbar-hover;\n }\n}\n\n@layer components {\n [type=\"text\"],\n [type=\"email\"],\n [type=\"url\"],\n [type=\"password\"],\n [type=\"number\"],\n [type=\"date\"],\n [type=\"datetime-local\"],\n [type=\"month\"],\n [type=\"search\"],\n [type=\"tel\"],\n [type=\"time\"],\n [type=\"week\"],\n textarea,\n select {\n @apply text-lookbook-input-text placeholder:text-lookbook-input-text-placeholder placeholder:italic;\n @apply border-lookbook-input-border focus:ring-lookbook-input-border-focus focus:border-lookbook-input-border-focus;\n @apply rounded-md text-sm w-full bg-lookbook-input-bg block;\n }\n\n input[type=\"range\"] {\n -webkit-appearance: none;\n appearance: none;\n background: transparent;\n cursor: pointer;\n width: 100%;\n }\n\n input[type=\"range\"]:focus {\n outline: none;\n }\n\n input[type=\"range\"]::-webkit-slider-runnable-track {\n @apply bg-lookbook-input-toggle;\n border-radius: 0.5rem;\n height: 0.5rem;\n }\n\n input[type=\"range\"]::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n @apply bg-lookbook-input-toggle-active;\n margin-top: -4px;\n border-radius: 0.5rem;\n height: 1rem;\n width: 1rem;\n }\n\n input[type=\"range\"]::-moz-range-track {\n @apply bg-lookbook-input-toggle;\n border-radius: 0.5rem;\n height: 0.5rem;\n }\n\n input[type=\"range\"]::-moz-range-thumb {\n @apply bg-lookbook-input-toggle-active;\n border: none;\n border-radius: 0.5rem;\n height: 1rem;\n width: 1rem;\n }\n\n input[type=\"range\"]:focus::-webkit-slider-thumb,\n input[type=\"range\"]:focus::-moz-range-thumb {\n @apply outline-1 outline-lookbook-input-toggle-active outline-offset-2;\n }\n\n input[type=\"color\"] {\n -webkit-appearance: none;\n width: 46px;\n @apply border border-lookbook-input-border rounded-lg cursor-pointer;\n }\n\n input[type=\"color\"]::-webkit-color-swatch-wrapper {\n padding: 0;\n }\n\n input[type=\"color\"]::-webkit-color-swatch {\n @apply border-0 rounded-lg;\n }\n\n select.compact {\n font-size: 0.8rem;\n line-height: 1.1rem;\n border-radius: 0.375rem;\n padding: 0.26rem 1.5rem 0.26rem 0.6rem;\n background-size: 1.2em 1.2em;\n background-position: right 0.4rem center;\n }\n}\n"],"names":[],"version":3,"file":"lookbook.css.map"}
|
@@ -7831,7 +7831,7 @@ function $5439cede634b2921$var$toCamel(s) {
|
|
7831
7831
|
}
|
7832
7832
|
|
7833
7833
|
|
7834
|
-
var $
|
7834
|
+
var $69e9934f1d83bbc4$exports = {};
|
7835
7835
|
var $cbd28b10fa9798c7$exports = {};
|
7836
7836
|
|
7837
7837
|
$parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
|
@@ -11362,6 +11362,16 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
|
|
11362
11362
|
}
|
11363
11363
|
|
11364
11364
|
|
11365
|
+
var $99486586f6691564$exports = {};
|
11366
|
+
|
11367
|
+
$parcel$defineInteropFlag($99486586f6691564$exports);
|
11368
|
+
|
11369
|
+
$parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
|
11370
|
+
function $99486586f6691564$export$2e2bcd8739ae039() {
|
11371
|
+
return {};
|
11372
|
+
}
|
11373
|
+
|
11374
|
+
|
11365
11375
|
var $47a1c62621be0c54$exports = {};
|
11366
11376
|
|
11367
11377
|
$parcel$defineInteropFlag($47a1c62621be0c54$exports);
|
@@ -11451,16 +11461,6 @@ function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
|
|
11451
11461
|
}
|
11452
11462
|
|
11453
11463
|
|
11454
|
-
var $99486586f6691564$exports = {};
|
11455
|
-
|
11456
|
-
$parcel$defineInteropFlag($99486586f6691564$exports);
|
11457
|
-
|
11458
|
-
$parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
|
11459
|
-
function $99486586f6691564$export$2e2bcd8739ae039() {
|
11460
|
-
return {};
|
11461
|
-
}
|
11462
|
-
|
11463
|
-
|
11464
11464
|
var $216ef7001f59f21d$exports = {};
|
11465
11465
|
|
11466
11466
|
$parcel$defineInteropFlag($216ef7001f59f21d$exports);
|
@@ -11523,50 +11523,6 @@ function $36506012e0c6e9e3$export$2e2bcd8739ae039(iconName) {
|
|
11523
11523
|
}
|
11524
11524
|
|
11525
11525
|
|
11526
|
-
var $d92d9d5253f84566$exports = {};
|
11527
|
-
|
11528
|
-
$parcel$defineInteropFlag($d92d9d5253f84566$exports);
|
11529
|
-
|
11530
|
-
$parcel$export($d92d9d5253f84566$exports, "default", () => $d92d9d5253f84566$export$2e2bcd8739ae039);
|
11531
|
-
function $d92d9d5253f84566$export$2e2bcd8739ae039(store) {
|
11532
|
-
return {
|
11533
|
-
empty: false,
|
11534
|
-
children: [],
|
11535
|
-
init () {
|
11536
|
-
this.children = this.$refs.items ? Array.from(this.$refs.items.children) : [];
|
11537
|
-
},
|
11538
|
-
isOpen (id) {
|
11539
|
-
return store.open.includes(id);
|
11540
|
-
},
|
11541
|
-
setOpen (id) {
|
11542
|
-
store.open.push(id);
|
11543
|
-
},
|
11544
|
-
setClosed (id) {
|
11545
|
-
const index = store.open.indexOf(id);
|
11546
|
-
if (index > -1) store.open.splice(index, 1);
|
11547
|
-
},
|
11548
|
-
closeAll () {
|
11549
|
-
store.open.length = 0;
|
11550
|
-
},
|
11551
|
-
toggleOpen (id) {
|
11552
|
-
this.isOpen(id) ? this.setClosed(id) : this.setOpen(id);
|
11553
|
-
},
|
11554
|
-
async filter (text) {
|
11555
|
-
this.debug(`Filter text: ${text}`);
|
11556
|
-
await this.$nextTick();
|
11557
|
-
const filteredStates = await Promise.all(this.children.map(async (child)=>{
|
11558
|
-
const data = Alpine.$data(child);
|
11559
|
-
await data.filter(text);
|
11560
|
-
return data.filteredOut;
|
11561
|
-
}));
|
11562
|
-
const matchedChildCount = filteredStates.filter((s)=>!s).length;
|
11563
|
-
this.empty = matchedChildCount === 0;
|
11564
|
-
this.debug(`Children matching filter: ${matchedChildCount}/${this.children.length}`);
|
11565
|
-
}
|
11566
|
-
};
|
11567
|
-
}
|
11568
|
-
|
11569
|
-
|
11570
11526
|
var $506dabb2bf255b38$exports = {};
|
11571
11527
|
|
11572
11528
|
$parcel$defineInteropFlag($506dabb2bf255b38$exports);
|
@@ -12144,6 +12100,50 @@ function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
|
|
12144
12100
|
}
|
12145
12101
|
|
12146
12102
|
|
12103
|
+
var $d92d9d5253f84566$exports = {};
|
12104
|
+
|
12105
|
+
$parcel$defineInteropFlag($d92d9d5253f84566$exports);
|
12106
|
+
|
12107
|
+
$parcel$export($d92d9d5253f84566$exports, "default", () => $d92d9d5253f84566$export$2e2bcd8739ae039);
|
12108
|
+
function $d92d9d5253f84566$export$2e2bcd8739ae039(store) {
|
12109
|
+
return {
|
12110
|
+
empty: false,
|
12111
|
+
children: [],
|
12112
|
+
init () {
|
12113
|
+
this.children = this.$refs.items ? Array.from(this.$refs.items.children) : [];
|
12114
|
+
},
|
12115
|
+
isOpen (id) {
|
12116
|
+
return store.open.includes(id);
|
12117
|
+
},
|
12118
|
+
setOpen (id) {
|
12119
|
+
store.open.push(id);
|
12120
|
+
},
|
12121
|
+
setClosed (id) {
|
12122
|
+
const index = store.open.indexOf(id);
|
12123
|
+
if (index > -1) store.open.splice(index, 1);
|
12124
|
+
},
|
12125
|
+
closeAll () {
|
12126
|
+
store.open.length = 0;
|
12127
|
+
},
|
12128
|
+
toggleOpen (id) {
|
12129
|
+
this.isOpen(id) ? this.setClosed(id) : this.setOpen(id);
|
12130
|
+
},
|
12131
|
+
async filter (text) {
|
12132
|
+
this.debug(`Filter text: ${text}`);
|
12133
|
+
await this.$nextTick();
|
12134
|
+
const filteredStates = await Promise.all(this.children.map(async (child)=>{
|
12135
|
+
const data = Alpine.$data(child);
|
12136
|
+
await data.filter(text);
|
12137
|
+
return data.filteredOut;
|
12138
|
+
}));
|
12139
|
+
const matchedChildCount = filteredStates.filter((s)=>!s).length;
|
12140
|
+
this.empty = matchedChildCount === 0;
|
12141
|
+
this.debug(`Children matching filter: ${matchedChildCount}/${this.children.length}`);
|
12142
|
+
}
|
12143
|
+
};
|
12144
|
+
}
|
12145
|
+
|
12146
|
+
|
12147
12147
|
var $0db07828cadc68e0$exports = {};
|
12148
12148
|
|
12149
12149
|
$parcel$defineInteropFlag($0db07828cadc68e0$exports);
|
@@ -12364,17 +12364,17 @@ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
|
|
12364
12364
|
}
|
12365
12365
|
|
12366
12366
|
|
12367
|
-
$
|
12367
|
+
$69e9934f1d83bbc4$exports = {
|
12368
12368
|
"button": $cbd28b10fa9798c7$exports,
|
12369
|
+
"code": $99486586f6691564$exports,
|
12369
12370
|
"copy_button": $47a1c62621be0c54$exports,
|
12370
12371
|
"dimensions_display": $e398acaded942bbe$exports,
|
12371
|
-
"code": $99486586f6691564$exports,
|
12372
12372
|
"embed_code_dropdown": $216ef7001f59f21d$exports,
|
12373
12373
|
"filter": $e9904a14dabf652d$exports,
|
12374
12374
|
"icon": $36506012e0c6e9e3$exports,
|
12375
|
-
"nav": $d92d9d5253f84566$exports,
|
12376
12375
|
"split_layout": $506dabb2bf255b38$exports,
|
12377
12376
|
"tab_panels": $a87dacf5139b5e2f$exports,
|
12377
|
+
"nav": $d92d9d5253f84566$exports,
|
12378
12378
|
"tabs": $0db07828cadc68e0$exports,
|
12379
12379
|
"viewport": $6d64716f0b34fdf4$exports
|
12380
12380
|
};
|
@@ -13549,7 +13549,7 @@ const $939f2ad3cd685486$var$prefix = window.APP_NAME;
|
|
13549
13549
|
// Components
|
13550
13550
|
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $d709d0f4027033b2$export$2e2bcd8739ae039));
|
13551
13551
|
[
|
13552
|
-
$
|
13552
|
+
$69e9934f1d83bbc4$exports,
|
13553
13553
|
$f3e1e32f4a1bd6da$exports,
|
13554
13554
|
$6c10158820e535ef$exports
|
13555
13555
|
].forEach((scripts)=>{
|