@swiftwc/ui 0.0.0-dev.107 → 0.0.0-dev.109

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.
@@ -2,7 +2,7 @@ import { alertDialog, confirmationDialog as confirmationDialogBus, lifecycleObse
2
2
  import * as Components from '../components';
3
3
  import { I18n } from '../i18n';
4
4
  import { NavigationPath } from '../internal/class/navigation-path';
5
- import flags from '../internal/flags.json' with { type: 'json' };
5
+ import flags from '../internal/flags';
6
6
  import { queryInsertPosition, startViewTransition } from '../internal/privateNamespace';
7
7
  import { $, debug, kebabCase, onoff } from '../internal/utils';
8
8
  import { Snapshot } from '../snapshot';
@@ -10568,10 +10568,19 @@
10568
10568
  --face: var(--background);
10569
10569
  --text: var(--primary);
10570
10570
  }
10571
- :where([is=sheet-view], [is=full-screen], [is=confirmation-dialog], [is=alert-dialog]) {
10572
- --face: var(--background);
10573
- --background: var(--secondaryBackground);
10574
- }
10571
+ /* :where([is='sheet-view'], [is='full-screen'], [is='confirmation-dialog'], [is='alert-dialog']) {
10572
+ // modify background/secondarybg/tertiarybg etc for ELEVATED STYLES!!
10573
+ // ANCHOR: level 1
10574
+ --face: var(--background); // IMPORTANT: redeclare references scope or it WONT pick up!
10575
+ // --face2: var(--secondaryBackground); // IMPORTANT: redeclare references scope or it WONT pick up!
10576
+ // --face3: var(--tertiaryBackground); // IMPORTANT: redeclare references scope or it WONT pick up!
10577
+
10578
+ // FIXME: feat-sheet 1/3
10579
+ --background: var(--secondaryBackground); //light-dark(var(--secondary-bg), var(--secondary-bg-dark));
10580
+ // --face: light-dark(var(--secondary-bg), var(--secondary-bg-dark));
10581
+
10582
+ // --text: light-dark(var(--secondary-text), var(--secondary-text-dark));
10583
+ } */
10575
10584
  @media (min-width: 43rem) {
10576
10585
  :where(navigation-split-view > [is=sidebar-view]) {
10577
10586
  --face: light-dark(var(--liquid-glass-bg), var(--liquid-glass-bg-dark));
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ DEBUG: boolean;
3
+ };
4
+ export default _default;
@@ -0,0 +1 @@
1
+ export default { DEBUG: false };
@@ -1,4 +1,4 @@
1
- import flags from '../flags.json' with { type: 'json' };
1
+ import flags from '../flags';
2
2
  export default function (...args) {
3
3
  flags.DEBUG && self.console.debug(...args);
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swiftwc/ui",
3
- "version": "0.0.0-dev.107",
3
+ "version": "0.0.0-dev.109",
4
4
  "description": "Elegant SwiftUI-inspired web components for standalone web apps and web extensions.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -82,8 +82,8 @@
82
82
  "prepackage": "rm -rf generated && npm run debug:off",
83
83
  "package": "npm run build:ts && npm run build:scss ; npm run debug:reset",
84
84
  "postpublish": "git checkout dev",
85
- "debug:off": "node -e \"const fs=require('node:fs');const f='./js/internal/flags.json';const j=JSON.parse(fs.readFileSync(f));j.DEBUG=false;fs.writeFileSync(f,JSON.stringify(j,null,2)+'\\n')\"",
86
- "debug:reset": "git checkout -- ./js/internal/flags.json",
85
+ "debug:off": "node -e \"const fs=require('node:fs');const f='./js/internal/flags.ts';const s=fs.readFileSync(f,'utf8');fs.writeFileSync(f,s.replace(/DEBUG:\\s*(true|false)/, 'DEBUG: false'))\"",
86
+ "debug:reset": "git checkout -- ./js/internal/flags.ts",
87
87
  "version:pkg": "npm version $npm_config_bump --no-git-tag-version --preid=dev"
88
88
  },
89
89
  "devDependencies": {
@@ -621,7 +621,8 @@ $colors: map.merge(
621
621
  // --canvastext: light-dark(var(--primary-label), var(--primary-label-dark));
622
622
  // }
623
623
 
624
- :where([is='sheet-view'], [is='full-screen'], [is='confirmation-dialog'], [is='alert-dialog']) {
624
+ // NOTE: NO color diffs for dialogs/popups
625
+ /* :where([is='sheet-view'], [is='full-screen'], [is='confirmation-dialog'], [is='alert-dialog']) {
625
626
  // modify background/secondarybg/tertiarybg etc for ELEVATED STYLES!!
626
627
  // ANCHOR: level 1
627
628
  --face: var(--background); // IMPORTANT: redeclare references scope or it WONT pick up!
@@ -633,7 +634,7 @@ $colors: map.merge(
633
634
  // --face: light-dark(var(--secondary-bg), var(--secondary-bg-dark));
634
635
 
635
636
  // --text: light-dark(var(--secondary-text), var(--secondary-text-dark));
636
- }
637
+ } */
637
638
 
638
639
  :where(navigation-split-view > [is='sidebar-view']) {
639
640
  // --canvas: light-dark(oklch(var(--primary-bg)), var(--primary-bg-dark));
@@ -1,3 +0,0 @@
1
- {
2
- "DEBUG": false
3
- }