@rvx/ui 0.3.8 → 0.4.0
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/common/events.d.ts +0 -40
- package/dist/common/events.d.ts.map +1 -1
- package/dist/common/theme.d.ts +3 -134
- package/dist/common/theme.d.ts.map +1 -1
- package/dist/common/theme.js +25 -2
- package/dist/common/theme.js.map +1 -1
- package/dist/common/writing-mode.d.ts +0 -58
- package/dist/common/writing-mode.d.ts.map +1 -1
- package/dist/components/breadcrumbs.d.ts.map +1 -1
- package/dist/components/breadcrumbs.js +3 -4
- package/dist/components/breadcrumbs.js.map +1 -1
- package/dist/components/button.d.ts +0 -18
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/button.js +3 -4
- package/dist/components/button.js.map +1 -1
- package/dist/components/card.d.ts +1 -1
- package/dist/components/card.d.ts.map +1 -1
- package/dist/components/card.js +4 -5
- package/dist/components/card.js.map +1 -1
- package/dist/components/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox.js +4 -5
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/collapse.d.ts.map +1 -1
- package/dist/components/collapse.js +7 -10
- package/dist/components/collapse.js.map +1 -1
- package/dist/components/column.d.ts +0 -6
- package/dist/components/column.d.ts.map +1 -1
- package/dist/components/column.js +4 -5
- package/dist/components/column.js.map +1 -1
- package/dist/components/control-group.d.ts.map +1 -1
- package/dist/components/control-group.js +3 -4
- package/dist/components/control-group.js.map +1 -1
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.d.ts.map +1 -1
- package/dist/components/dialog.js +14 -10
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/dropdown-input.d.ts +1 -1
- package/dist/components/dropdown-input.d.ts.map +1 -1
- package/dist/components/dropdown.d.ts +0 -88
- package/dist/components/dropdown.d.ts.map +1 -1
- package/dist/components/dropdown.js +7 -8
- package/dist/components/dropdown.js.map +1 -1
- package/dist/components/error.d.ts.map +1 -1
- package/dist/components/error.js +2 -3
- package/dist/components/error.js.map +1 -1
- package/dist/components/flex-space.d.ts.map +1 -1
- package/dist/components/flex-space.js +3 -4
- package/dist/components/flex-space.js.map +1 -1
- package/dist/components/heading.d.ts +0 -3
- package/dist/components/heading.d.ts.map +1 -1
- package/dist/components/heading.js +2 -3
- package/dist/components/heading.js.map +1 -1
- package/dist/components/label.d.ts.map +1 -1
- package/dist/components/label.js +2 -3
- package/dist/components/label.js.map +1 -1
- package/dist/components/layer.d.ts +0 -63
- package/dist/components/layer.d.ts.map +1 -1
- package/dist/components/link.d.ts +0 -33
- package/dist/components/link.d.ts.map +1 -1
- package/dist/components/link.js +2 -3
- package/dist/components/link.js.map +1 -1
- package/dist/components/nav-list.d.ts +0 -8
- package/dist/components/nav-list.d.ts.map +1 -1
- package/dist/components/nav-list.js +4 -6
- package/dist/components/nav-list.js.map +1 -1
- package/dist/components/notifications.d.ts +4 -1
- package/dist/components/notifications.d.ts.map +1 -1
- package/dist/components/notifications.js +5 -11
- package/dist/components/notifications.js.map +1 -1
- package/dist/components/page.d.ts.map +1 -1
- package/dist/components/page.js +4 -5
- package/dist/components/page.js.map +1 -1
- package/dist/components/placeholder.d.ts.map +1 -1
- package/dist/components/placeholder.js +3 -4
- package/dist/components/placeholder.js.map +1 -1
- package/dist/components/popout.d.ts +0 -96
- package/dist/components/popout.d.ts.map +1 -1
- package/dist/components/popover.d.ts +0 -88
- package/dist/components/popover.d.ts.map +1 -1
- package/dist/components/popover.js +9 -9
- package/dist/components/popover.js.map +1 -1
- package/dist/components/radio-buttons.d.ts.map +1 -1
- package/dist/components/radio-buttons.js +4 -5
- package/dist/components/radio-buttons.js.map +1 -1
- package/dist/components/row.d.ts.map +1 -1
- package/dist/components/row.js +4 -5
- package/dist/components/row.js.map +1 -1
- package/dist/components/scroll-view.d.ts.map +1 -1
- package/dist/components/scroll-view.js +8 -9
- package/dist/components/scroll-view.js.map +1 -1
- package/dist/components/secondary.d.ts.map +1 -1
- package/dist/components/secondary.js +2 -3
- package/dist/components/secondary.js.map +1 -1
- package/dist/components/separated.d.ts.map +1 -1
- package/dist/components/separated.js +2 -3
- package/dist/components/separated.js.map +1 -1
- package/dist/components/slider.d.ts.map +1 -1
- package/dist/components/slider.js +2 -3
- package/dist/components/slider.js.map +1 -1
- package/dist/components/tabs.d.ts.map +1 -1
- package/dist/components/tabs.js +8 -9
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/text-input.d.ts +0 -31
- package/dist/components/text-input.d.ts.map +1 -1
- package/dist/components/text-input.js +2 -3
- package/dist/components/text-input.js.map +1 -1
- package/dist/components/text.d.ts.map +1 -1
- package/dist/components/text.js +2 -3
- package/dist/components/text.js.map +1 -1
- package/dist/components/validation-rules.d.ts +0 -2
- package/dist/components/validation-rules.d.ts.map +1 -1
- package/dist/components/validation.d.ts +0 -49
- package/dist/components/validation.d.ts.map +1 -1
- package/dist/components/value.d.ts.map +1 -1
- package/dist/components/value.js +2 -3
- package/dist/components/value.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +12 -7
- package/src/common/theme.tsx +28 -163
- package/src/components/breadcrumbs.tsx +4 -5
- package/src/components/button.tsx +3 -4
- package/src/components/card.tsx +5 -6
- package/src/components/checkbox.tsx +5 -7
- package/src/components/collapse.tsx +9 -13
- package/src/components/column.tsx +4 -5
- package/src/components/control-group.tsx +3 -4
- package/src/components/dialog.tsx +14 -11
- package/src/components/dropdown-input.tsx +1 -1
- package/src/components/dropdown.tsx +7 -8
- package/src/components/error.tsx +2 -3
- package/src/components/flex-space.tsx +3 -4
- package/src/components/heading.tsx +2 -3
- package/src/components/label.tsx +2 -3
- package/src/components/link.tsx +2 -3
- package/src/components/nav-list.tsx +4 -6
- package/src/components/notifications.tsx +15 -17
- package/src/components/page.tsx +6 -7
- package/src/components/placeholder.tsx +5 -6
- package/src/components/popover.tsx +10 -10
- package/src/components/radio-buttons.tsx +6 -7
- package/src/components/row.tsx +4 -5
- package/src/components/scroll-view.tsx +8 -9
- package/src/components/secondary.tsx +2 -3
- package/src/components/separated.tsx +2 -3
- package/src/components/slider.tsx +2 -5
- package/src/components/tabs.tsx +8 -9
- package/src/components/text-input.tsx +2 -3
- package/src/components/text.tsx +2 -3
- package/src/components/value.tsx +2 -3
- package/src/index.tsx +2 -0
- package/src/types.d.ts +5 -0
- package/{src/theme/components/breadcrumbs.scss → theme/components/breadcrumbs.module.css} +12 -12
- package/theme/components/button.module.css +168 -0
- package/theme/components/card.module.css +50 -0
- package/{src/theme/components/checkbox.scss → theme/components/checkbox.module.css} +5 -5
- package/{src/theme/components/collapse.scss → theme/components/collapse.module.css} +19 -19
- package/{src/theme/components/column.scss → theme/components/column.module.css} +32 -10
- package/{src/theme/components/control-group.scss → theme/components/control-group.module.css} +2 -2
- package/theme/components/dialog.module.css +63 -0
- package/{src/theme/components/dropdown.scss → theme/components/dropdown.module.css} +9 -9
- package/theme/components/error.module.css +4 -0
- package/{src/theme/components/heading.scss → theme/components/heading.module.css} +8 -8
- package/{src/theme/components/label.scss → theme/components/label.module.css} +2 -10
- package/{src/theme/components/link.scss → theme/components/link.module.css} +0 -1
- package/theme/components/nav-list.module.css +76 -0
- package/theme/components/notifications.module.css +31 -0
- package/{src/theme/components/page.scss → theme/components/page.module.css} +6 -10
- package/{src/theme/components/placeholder.scss → theme/components/placeholder.module.css} +3 -3
- package/{src/theme/components/popover.scss → theme/components/popover.module.css} +9 -9
- package/theme/components/row.module.css +36 -0
- package/{src/theme/components/scroll-view.scss → theme/components/scroll-view.module.css} +19 -21
- package/theme/components/secondary.module.css +4 -0
- package/{src/theme/components/separated.scss → theme/components/separated.module.css} +2 -2
- package/{src/theme/components/slider.scss → theme/components/slider.module.css} +2 -1
- package/theme/components/tabs.module.css +71 -0
- package/theme/components/text-input.module.css +45 -0
- package/theme/global.css +118 -0
- package/dist/common/theme-test.d.ts +0 -8
- package/dist/common/theme-test.d.ts.map +0 -1
- package/dist/common/theme-test.js +0 -13
- package/dist/common/theme-test.js.map +0 -1
- package/dist/components/checkbox-test.d.ts +0 -4
- package/dist/components/checkbox-test.d.ts.map +0 -1
- package/dist/components/checkbox-test.js +0 -31
- package/dist/components/checkbox-test.js.map +0 -1
- package/dist/components/collapse-test.d.ts +0 -9
- package/dist/components/collapse-test.d.ts.map +0 -1
- package/dist/components/collapse-test.js +0 -15
- package/dist/components/collapse-test.js.map +0 -1
- package/dist/test.d.ts +0 -4
- package/dist/test.d.ts.map +0 -1
- package/dist/test.js +0 -4
- package/dist/test.js.map +0 -1
- package/dist/theme.module.css +0 -1290
- package/dist/theme.module.css.map +0 -1
- package/src/common/theme-test.tsx +0 -18
- package/src/components/checkbox-test.tsx +0 -35
- package/src/components/collapse-test.tsx +0 -23
- package/src/test.tsx +0 -3
- package/src/theme/base.scss +0 -121
- package/src/theme/common.scss +0 -42
- package/src/theme/components/button.scss +0 -164
- package/src/theme/components/card.scss +0 -41
- package/src/theme/components/dialog.scss +0 -65
- package/src/theme/components/error.scss +0 -12
- package/src/theme/components/nav-list.scss +0 -91
- package/src/theme/components/notifications.scss +0 -61
- package/src/theme/components/row.scss +0 -22
- package/src/theme/components/secondary.scss +0 -4
- package/src/theme/components/tabs.scss +0 -90
- package/src/theme/components/text-input.scss +0 -50
- package/src/theme/theme.scss +0 -31
- /package/{src/theme/components/flex-space.scss → theme/components/flex-space.module.css} +0 -0
- /package/{src/theme/components/radio-buttons.scss → theme/components/radio-buttons.module.css} +0 -0
- /package/{src/theme/components/text.scss → theme/components/text.module.css} +0 -0
- /package/{src/theme/components/value.scss → theme/components/value.module.css} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../src/theme/base.scss","../src/theme/common.scss","../src/theme/components/breadcrumbs.scss","../src/theme/components/button.scss","../src/theme/components/card.scss","../src/theme/components/checkbox.scss","../src/theme/components/collapse.scss","../src/theme/components/column.scss","../src/theme/components/control-group.scss","../src/theme/components/dialog.scss","../src/theme/components/dropdown.scss","../src/theme/components/error.scss","../src/theme/components/flex-space.scss","../src/theme/components/heading.scss","../src/theme/components/label.scss","../src/theme/components/link.scss","../src/theme/components/nav-list.scss","../src/theme/components/notifications.scss","../src/theme/components/page.scss","../src/theme/components/placeholder.scss","../src/theme/components/popover.scss","../src/theme/components/radio-buttons.scss","../src/theme/components/row.scss","../src/theme/components/scroll-view.scss","../src/theme/components/secondary.scss","../src/theme/components/separated.scss","../src/theme/components/slider.scss","../src/theme/components/tabs.scss","../src/theme/components/text-input.scss","../src/theme/components/text.scss","../src/theme/components/value.scss"],"names":[],"mappings":"AASA;EACC;EACA;EACA;EAEA;ECcA;EACA;EACA;EACA;EDbA;EACA;EACA;EACA;ECOA;EACA;EACA;EACA;EDPA;EACA;ECGA;EACA;EACA;EACA;EDHA;EACA;EACA;EACA;EACA;ECJA;EACA;EACA;EACA;EDIA;EAEA;EAEA;EAEA;EAEA;EACA;EAEA;EACA;EAEA;;;ACtCA;EANE;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;;AAQD;EAFD;IANE;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAUA;;;ADoFH;EACC;EACA;EAEA;EAEA;;AACA;EAPD;IAQE;;;;AAIF;EACC;EACA;EACA;EACA;;;AAGD;EACC;;;AC5GA;EANE;;AAQD;EAFD;IANE;IAUA;;;ACNH;EACC;EACA;EACA;;;AAGD;EACC;EACA;EACA;EACA;EACA;;;AAGD;EACC;EACA;;;AAGD;EACC;EACA;EACA;;;AAGD;EACC;EACA;;;ADzBA;EANE;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;;AAQD;EAFD;IANE;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAUA;;;AEoGH;EACC;EACA;EACA;EACA;EAEA;EAEA;EFxFA,eACC;EAED,gBACC;EEuFD;EACA;;AAGA;EACC;;AAGD;EACC;EACA;;;AAKD;EACC;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC;;;AAdF;EACC;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC;;;AAdF;EACC;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC;;;AAdF;EACC;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC;;;AAdF;EACC;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC;;;AAdF;EACC;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC;;;AAdF;EACC;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC;;;AAKH;AAAA;EAEC;;;AFvJA;EANE;EAAA;EAAA;EAAA;EAAA;;AAQD;EAFD;IANE;IAAA;IAAA;IAAA;IAAA;IAUA;;;AGUH;EACC;EACA;EACA;EACA;;AAEA;EHIA,eACC;EAED,gBACC;;;AGFD;EACC;;;AADD;EACC;;;AADD;EACC;;;AADD;EACC;;;AADD;EACC;;;ACrCF;EACC;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC;EACA;;;AAIF;EACC;EACA;;;AAGD;EACC;EACA;EACA;;;AC3BD;EACC;EACA;EACA;EACA;;;AAGD;EACC,YACC;;;AAKF;EACC;IAAO;;EACP;IAAM;;EACN;IAAM;;EACN;IAAK;;;AAGN;EACC;;;AAGD;EACC;EACA;;;AAGD;EACC;EACA;EACA;;AAEA;EACC,YACC;;AAIF;EACC;EACA;;;AAIF;EACC;EACA;EACA;EACA;;AAEA;EACC,YACC;;AAKF;EACC;EACA;EACA;;;AC9DF;EACC;EACA;;AAEA;EACC;;AAMD;EACC;;AAGD;EACC;;AAMD;EACC;;;AAKD;EACC;;AACA;EACC;;AAGD;ENDD,eACC;EAED,gBACC;;;AMTD;EACC;;AACA;EACC;;AAGD;ENDD,eACC;EAED,gBACC;;;AMTD;EACC;;AACA;EACC;;AAGD;ENDD,eACC;EAED,gBACC;;;AOtCF;EACC;EACA;EACA;EACA;;AAEA;EACC;;;AAIF;EACC;;AACA;EACC;EACA;;AAED;EACC;EACA;;AAED;EACC;EACA;;AAED;EACC;EACA;;;AAIF;EACC;;AACA;EACC;EACA;;AAED;EACC;EACA;;AAED;EACC;EACA;;AAED;EACC;EACA;;;AC9CF;EACC;EACA;EAEA;EAEA;EACA;EACA;EAEA;EAEA;EACA;;;AAGD;EACC;;AACA;EACC;;;AAIF;EACC;EACA;;AACA;EACC;;;AAIF;EACC;IACC;;;AAIF;EACC;EACA;EAEA;EACA;EAEA;EACA;EAEA;EACA;EAEA;;;AAGD;EACC;EACA;EACA;EACA;;;AAGD;ER3BC,eACC;EAED,gBACC;;;ASrCF;EACC;EACA;;AAEA;EACC;;;AAIF;EACC;EACA;EACA;EACA;EACA;EACA;;;AAGD;EACC;EACA;EACA;EACA;EACA;;;AAGD;EACC;ETMA,eACC;EAED,gBACC;ESRD;EACA;;AAEA;EACC;;;ATxBD;EANE;;AAQD;EAFD;IANE;IAUA;;;AUNH;EACC;;;ACTD;EACC;EACA;EACA;;;ACHD;EACC;EACA;;AAEA;EAEC;EACA;EACA;EACA;;;AAIF;EACC;EACA;EACA;;;AAGD;EACC;EACA;EACA;;;AAGD;EACC;EACA;EACA;;;AAGD;AAAA;AAAA;EAGC;EACA;EACA;;;AZ1BA;EANE;;AAQD;EAFD;IANE;IAUA;;;AaNH;EACC;EACA;EAEA;EACA;EACA;;AAEA;EAEC;EACA;EACA;EACA;;;ACpBF;EACC;EACA;EAEA;EACA;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;;AdLD;EANE;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;;AAQD;EAFD;IANE;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAUA;;;Ae0BH;EACC;EACA;EACA;EACA;;;AAGD;EACC;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAEA;EAEA;Ef3BA,eACC;EAED,gBACC;Ee0BD;;AAGA;EACC;EACA;;AAGD;EAEC;EACA;;AAGD;EACC;EACA;;;AAIF;EACC;EACA;EACA;EACA;;;Af9EA;EANE;EAAA;EAAA;EAAA;EAAA;;AAQD;EAFD;IANE;IAAA;IAAA;IAAA;IAAA;IAUA;;;AgBWH;EACC;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;;;AAGD;EACC;;;AAGD;EACC;EACA;EACA;EACA;EACA;;AAEA;EhBhBA,eACC;EAED,gBACC;;;AgBkBD;EACC;;;AADD;EACC;;;AADD;EACC;;;AADD;EACC;;;AADD;EACC;;;ACzDF;EACC,eACC;EAED,gBACC;EAGD;EACA;EACA;;;AAGD;EACC;;AAEA;EACC;EACA;;AAEA;EACC;;;AAKH;EACC;EACA;EACA;;;AAGD;EACC;EACA;EACA;;;AAGD;EACC;EACA;;;ACxCD;EACC;EACA;EACA;EACA;;;AAGD;EACC;EACA;EACA;;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGD;EACC;;;ACvBD;EACC;EACA;;;AAGD;EACC;EACA;EACA;EACA;;;AAGD;EACC;EACA;EACA;EACA;EAEA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;;;AAIF;EACC;EACA;EAEA;EACA;EACA;EACA;EACA;;;AAGD;EACC;EACA;;AAEA;EnBZA,eACC;EAED,gBACC;;;AoBtCF;EACC;EACA;EACA;;AAEA;EACC;EACA;;;AAIF;EACC;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;;AAIF;EACC;EACA;;;AAGD;EACC;EACA;EACA;;;AChCD;EACC;EACA;EACA;;;AAIA;EACC;EACA;;AACA;EACC;EACA;;AAGD;ErBkBD,eACC;EAED,gBACC;;;AqB9BD;EACC;EACA;;AACA;EACC;EACA;;AAGD;ErBkBD,eACC;EAED,gBACC;;;AqB9BD;EACC;EACA;;AACA;EACC;EACA;;AAGD;ErBkBD,eACC;EAED,gBACC;;;AA5BD;EANE;EAAA;;AAQD;EAFD;IANE;IAAA;IAUA;;;AsBFH;EACC;EACA;EACA;;;AAGD;EACC;EACA;;;AAGD;EACC;EACA;;;AAGD;EACC;EACA;EACA;EACA;;;AAGD;AAAA;EAEC;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGD;EACC;;;AAGD;EACC;;;AAGD;EACC;;;ACvDD;EACC;;;ACDD;EACC;EACA;;AAEA;EACC;;AAED;EACC;;;AAIF;EACC;EACA;;AAEA;EACC;;AAED;EACC;;;ACpBF;EACC;EACA;EACA;;AAEA;EACC;EACA;;AAEA;EACC;;;AzBAF;EANE;EAAA;EAAA;EAAA;EAAA;EAAA;;AAQD;EAFD;IANE;IAAA;IAAA;IAAA;IAAA;IAAA;IAUA;;;A0BcH;EACC;EACA;EACA;;;AAGD;EACC,gBACC;;;AAIF;EACC;EACA;EACA;EACA;EAEA;EACA;EAEA,eACC;EAED,gBACC;EAGD;EACA;EACA;EACA;EAEA;EACA;;AAGA;EAEC;EACA;;AAED;EACC;;;AAIF;EACC;EACA;;;AAGD;EACC;EACA;EACA;;;AAGD;E1BpDC,eACC;EAED,gBACC;;;AA5BD;EANE;EAAA;EAAA;EAAA;;AAQD;EAFD;IANE;IAAA;IAAA;IAAA;IAUA;;;A2BMH;EACC;EACA;EACA;EAEA;EAEA;E3BOA,eACC;EAED,gBACC;E2BTD;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAGD;EACC;EACA;;;AAIF;EACC;;;AC/CD;EACC;;AAEA;EAEC;EACA;EACA;EACA;;;ACRF;EACC","file":"theme.module.css"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { THEME, Theme } from "./theme.js";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Get a class name from the current theme.
|
|
5
|
-
*
|
|
6
|
-
* @throws An error if the current theme doesn't support the specified key.
|
|
7
|
-
*/
|
|
8
|
-
export function themeClass(key: keyof Theme): string {
|
|
9
|
-
const theme = THEME.current;
|
|
10
|
-
if (!theme) {
|
|
11
|
-
throw new Error("theme is not available in the current context");
|
|
12
|
-
}
|
|
13
|
-
const value = theme[key];
|
|
14
|
-
if (value === undefined) {
|
|
15
|
-
throw new Error(`${key} is not supported by the current theme`);
|
|
16
|
-
}
|
|
17
|
-
return value;
|
|
18
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ENV } from "rvx";
|
|
2
|
-
import { themeClass } from "../common/theme-test.js";
|
|
3
|
-
|
|
4
|
-
function assertCheckbox(checkbox: Element): asserts checkbox is HTMLElement {
|
|
5
|
-
if (!checkbox.matches(`.${themeClass("checkbox_label")}`)) {
|
|
6
|
-
throw new Error("checkbox must be a checkbox root element.");
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function getInput(checkbox: HTMLElement): HTMLInputElement {
|
|
11
|
-
return checkbox.querySelector("input")!;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export function isCheckboxChecked(checkbox: Element): boolean | undefined {
|
|
15
|
-
assertCheckbox(checkbox);
|
|
16
|
-
const input = getInput(checkbox);
|
|
17
|
-
return input.indeterminate ? undefined : input.checked;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export function toggleCheckbox(checkbox: Element, checked?: boolean): void {
|
|
21
|
-
assertCheckbox(checkbox);
|
|
22
|
-
const input = getInput(checkbox);
|
|
23
|
-
if (input.disabled) {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
checked ??= !input.checked;
|
|
27
|
-
input.indeterminate = false;
|
|
28
|
-
input.checked = checked;
|
|
29
|
-
input.dispatchEvent(new ENV.current.CustomEvent("input"));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export function getCheckboxContent(checkbox: Element): HTMLElement {
|
|
33
|
-
assertCheckbox(checkbox);
|
|
34
|
-
return checkbox.querySelector(`.${themeClass("checkbox_content")}`) as HTMLElement;
|
|
35
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { themeClass } from "../test.js";
|
|
2
|
-
|
|
3
|
-
function assertCollapse(collapse: Element): asserts collapse is HTMLDivElement {
|
|
4
|
-
if (!collapse.matches(`.${themeClass("collapse")}`)) {
|
|
5
|
-
throw new Error("collapse must be a collapse root element.");
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Get the content element of a collapse.
|
|
11
|
-
*/
|
|
12
|
-
export function getCollapseContent(collapse: Element): HTMLDivElement {
|
|
13
|
-
assertCollapse(collapse);
|
|
14
|
-
return collapse.querySelector<HTMLDivElement>(`.${themeClass("collapse_content")}`)!;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Check if a collapse is visible.
|
|
19
|
-
*/
|
|
20
|
-
export function isCollapseVisible(collapse: Element): boolean {
|
|
21
|
-
assertCollapse(collapse);
|
|
22
|
-
return !collapse.hasAttribute("inert");
|
|
23
|
-
}
|
package/src/test.tsx
DELETED
package/src/theme/base.scss
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
@use "sass:math";
|
|
2
|
-
@use "common";
|
|
3
|
-
|
|
4
|
-
$root-size: 14px;
|
|
5
|
-
|
|
6
|
-
@function px($value) {
|
|
7
|
-
@return math.div($value * 1px, $root-size) * 1rem;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
:root {
|
|
11
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
12
|
-
font-size: #{math.div(1rem, 16px) * $root-size};
|
|
13
|
-
line-height: 1;
|
|
14
|
-
|
|
15
|
-
accent-color: var(--accent);
|
|
16
|
-
|
|
17
|
-
@include common.define-quad(page-pad, px(32), px(32));
|
|
18
|
-
|
|
19
|
-
--content-column-gap: #{px(24)};
|
|
20
|
-
--content-row-gap: #{px(24)};
|
|
21
|
-
--content-radius: #{px(8)};
|
|
22
|
-
--content-border: #{px(2)};
|
|
23
|
-
@include common.define-quad(content-pad, px(16), px(16));
|
|
24
|
-
|
|
25
|
-
--group-column-gap: #{px(16)};
|
|
26
|
-
--group-row-gap: #{px(16)};
|
|
27
|
-
@include common.define-quad(group-pad, px(16), px(16));
|
|
28
|
-
|
|
29
|
-
--control-column-gap: #{px(8)};
|
|
30
|
-
--control-row-gap: #{px(8)};
|
|
31
|
-
--control-radius: #{px(5)};
|
|
32
|
-
--control-border: #{px(2)};
|
|
33
|
-
--control-disabled: opacity(.5);
|
|
34
|
-
@include common.define-quad(control-pad, px(7), px(8));
|
|
35
|
-
|
|
36
|
-
--input-extension: #{px(4)};
|
|
37
|
-
|
|
38
|
-
--separator: #{px(2)};
|
|
39
|
-
|
|
40
|
-
--focus-outline-offset: #{px(2)};
|
|
41
|
-
|
|
42
|
-
--overflow-safe-area: #{px(4)};
|
|
43
|
-
|
|
44
|
-
--line-gap: #{px(6)};
|
|
45
|
-
--space-gap: #{px(6)};
|
|
46
|
-
|
|
47
|
-
--layout-transition: .15s ease;
|
|
48
|
-
--color-transition: .1s ease;
|
|
49
|
-
|
|
50
|
-
--layout-transition-ms: 150;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@include common.theme((
|
|
54
|
-
bg: (
|
|
55
|
-
dark: rgb(24, 24, 24),
|
|
56
|
-
light: rgb(247, 247, 247),
|
|
57
|
-
),
|
|
58
|
-
bg-alt: (
|
|
59
|
-
dark: rgb(32, 32, 32),
|
|
60
|
-
light: rgb(255, 255, 255),
|
|
61
|
-
),
|
|
62
|
-
accent: (
|
|
63
|
-
dark: rgb(64, 160, 255),
|
|
64
|
-
light: rgb(0, 127, 255),
|
|
65
|
-
),
|
|
66
|
-
fg: (
|
|
67
|
-
dark: white,
|
|
68
|
-
light: black,
|
|
69
|
-
),
|
|
70
|
-
focus-outline: (
|
|
71
|
-
dark: var(--control-border) dashed var(--accent),
|
|
72
|
-
light: var(--control-border) dashed var(--accent),
|
|
73
|
-
),
|
|
74
|
-
separator-color: (
|
|
75
|
-
dark: rgb(40, 40, 40),
|
|
76
|
-
light: rgba(200, 200, 200, 0.3),
|
|
77
|
-
),
|
|
78
|
-
selection-bg: (
|
|
79
|
-
dark: rgba(64, 160, 255, 0.5),
|
|
80
|
-
light: rgba(0, 127, 255, 0.3),
|
|
81
|
-
),
|
|
82
|
-
overlay-backdrop: (
|
|
83
|
-
dark: rgba(24, 24, 24, .8),
|
|
84
|
-
light: rgba(245, 245, 245, .7),
|
|
85
|
-
),
|
|
86
|
-
overlay-shadow: (
|
|
87
|
-
dark: 0 0 #{px(12)} rgba(0, 0, 0, .3),
|
|
88
|
-
light: 0 0 #{px(12)} rgba(128, 128, 128, .2),
|
|
89
|
-
),
|
|
90
|
-
content-shadow: (
|
|
91
|
-
dark: 0 0 #{px(12)} rgba(0, 0, 0, .3),
|
|
92
|
-
light: 0 0 #{px(12)} rgba(128, 128, 128, .2),
|
|
93
|
-
),
|
|
94
|
-
control-shadow: (
|
|
95
|
-
dark: 0 0 #{px(3)} rgba(0, 0, 0, 0.5),
|
|
96
|
-
light: 0 0 #{px(2)} rgba(128, 128, 128, .2),
|
|
97
|
-
),
|
|
98
|
-
));
|
|
99
|
-
|
|
100
|
-
body {
|
|
101
|
-
background-color: var(--bg);
|
|
102
|
-
--parent-bg: var(--bg);
|
|
103
|
-
|
|
104
|
-
color: var(--fg);
|
|
105
|
-
|
|
106
|
-
text-wrap: balance;
|
|
107
|
-
@supports (text-wrap: pretty) {
|
|
108
|
-
text-wrap: pretty;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
* {
|
|
113
|
-
box-sizing: border-box;
|
|
114
|
-
--space-scale: 1;
|
|
115
|
-
--space-above: unset;
|
|
116
|
-
--space-below: unset;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
::selection {
|
|
120
|
-
background-color: var(--selection-bg);
|
|
121
|
-
}
|
package/src/theme/common.scss
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
|
|
3
|
-
@mixin set-theme-vars($defs, $target) {
|
|
4
|
-
@each $name, $targets in $defs {
|
|
5
|
-
@if map.has-key($targets, $target) {
|
|
6
|
-
--#{$name}: #{map.get($targets, $target)};
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@mixin theme($defs) {
|
|
12
|
-
:root {
|
|
13
|
-
@include set-theme-vars($defs, light);
|
|
14
|
-
@media (prefers-color-scheme: dark) {
|
|
15
|
-
@include set-theme-vars($defs, dark);
|
|
16
|
-
color-scheme: dark;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@media (prefers-contrast: more) {
|
|
20
|
-
@include set-theme-vars($defs, light-hc);
|
|
21
|
-
@media (prefers-color-scheme: dark) {
|
|
22
|
-
@include set-theme-vars($defs, dark-hc);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@mixin define-quad($name, $block-start, $inline-start: $block-start, $block-end: $block-start, $inline-end: $inline-start) {
|
|
29
|
-
--#{$name}-block-start: #{$block-start};
|
|
30
|
-
--#{$name}-inline-start: #{$inline-start};
|
|
31
|
-
--#{$name}-block-end: #{$block-end};
|
|
32
|
-
--#{$name}-inline-end: #{$inline-end};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@mixin padding($name) {
|
|
36
|
-
padding-block:
|
|
37
|
-
var(--#{$name}-block-start)
|
|
38
|
-
var(--#{$name}-block-end);
|
|
39
|
-
padding-inline:
|
|
40
|
-
var(--#{$name}-inline-start)
|
|
41
|
-
var(--#{$name}-inline-end);
|
|
42
|
-
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
@use "../common";
|
|
2
|
-
|
|
3
|
-
@include common.theme((
|
|
4
|
-
button-default-bg: (
|
|
5
|
-
dark: rgb(72, 72, 72),
|
|
6
|
-
light: rgb(208, 208, 208),
|
|
7
|
-
),
|
|
8
|
-
button-default-bg-hover: (
|
|
9
|
-
dark: rgb(100, 100, 100),
|
|
10
|
-
light: rgb(192, 192, 192),
|
|
11
|
-
),
|
|
12
|
-
button-default-fg: (
|
|
13
|
-
dark: white,
|
|
14
|
-
light: black,
|
|
15
|
-
),
|
|
16
|
-
|
|
17
|
-
button-primary-bg: (
|
|
18
|
-
dark: rgb(64, 160, 255),
|
|
19
|
-
light: rgb(0, 127, 255),
|
|
20
|
-
),
|
|
21
|
-
button-primary-bg-hover: (
|
|
22
|
-
dark: rgb(112, 184, 255),
|
|
23
|
-
light: rgb(64, 160, 255),
|
|
24
|
-
),
|
|
25
|
-
button-primary-fg: (
|
|
26
|
-
dark: black,
|
|
27
|
-
light: white,
|
|
28
|
-
),
|
|
29
|
-
button-primary-focus: (
|
|
30
|
-
dark: rgb(200, 241, 255),
|
|
31
|
-
light: rgb(0, 56, 112),
|
|
32
|
-
),
|
|
33
|
-
|
|
34
|
-
button-success-bg: (
|
|
35
|
-
dark: rgb(64, 255, 64),
|
|
36
|
-
light: rgb(0, 255, 0),
|
|
37
|
-
),
|
|
38
|
-
button-success-bg-hover: (
|
|
39
|
-
dark: rgb(160, 255, 160),
|
|
40
|
-
light: rgb(130, 255, 130),
|
|
41
|
-
),
|
|
42
|
-
button-success-fg: (
|
|
43
|
-
dark: black,
|
|
44
|
-
light: black,
|
|
45
|
-
),
|
|
46
|
-
button-success-focus: (
|
|
47
|
-
dark: rgb(224, 255, 224),
|
|
48
|
-
light: rgb(0, 160, 0),
|
|
49
|
-
),
|
|
50
|
-
|
|
51
|
-
button-warning-bg: (
|
|
52
|
-
dark: rgb(255, 200, 0),
|
|
53
|
-
light: rgb(255, 200, 0),
|
|
54
|
-
),
|
|
55
|
-
button-warning-bg-hover: (
|
|
56
|
-
dark: rgb(255, 224, 112),
|
|
57
|
-
light: rgb(255, 224, 112),
|
|
58
|
-
),
|
|
59
|
-
button-warning-fg: (
|
|
60
|
-
dark: black,
|
|
61
|
-
light: black,
|
|
62
|
-
),
|
|
63
|
-
button-warning-focus: (
|
|
64
|
-
dark: rgb(255, 243, 200),
|
|
65
|
-
light: rgb(150, 117, 0),
|
|
66
|
-
),
|
|
67
|
-
|
|
68
|
-
button-danger-bg: (
|
|
69
|
-
dark: rgb(255, 40, 40),
|
|
70
|
-
light: rgb(255, 0, 0),
|
|
71
|
-
),
|
|
72
|
-
button-danger-bg-hover: (
|
|
73
|
-
dark: rgb(255, 100, 100),
|
|
74
|
-
light: rgb(255, 80, 80),
|
|
75
|
-
),
|
|
76
|
-
button-danger-fg: (
|
|
77
|
-
dark: white,
|
|
78
|
-
light: white,
|
|
79
|
-
),
|
|
80
|
-
button-danger-focus: (
|
|
81
|
-
dark: rgb(255, 200, 214),
|
|
82
|
-
light: rgb(112, 0, 0),
|
|
83
|
-
),
|
|
84
|
-
|
|
85
|
-
button-input-bg: (
|
|
86
|
-
dark: rgb(36, 36, 36),
|
|
87
|
-
light: rgb(250, 250, 250),
|
|
88
|
-
),
|
|
89
|
-
button-input-bg-hover: (
|
|
90
|
-
dark: rgb(64, 64, 64),
|
|
91
|
-
light: rgb(230, 230, 230),
|
|
92
|
-
),
|
|
93
|
-
button-input-fg: (
|
|
94
|
-
dark: white,
|
|
95
|
-
light: black,
|
|
96
|
-
),
|
|
97
|
-
button-input-border: (
|
|
98
|
-
dark: rgb(54, 54, 54),
|
|
99
|
-
light: rgb(220, 220, 220),
|
|
100
|
-
),
|
|
101
|
-
|
|
102
|
-
button-item-bg: (
|
|
103
|
-
dark: rgb(48, 48, 48),
|
|
104
|
-
light: rgb(235, 235, 235),
|
|
105
|
-
),
|
|
106
|
-
button-item-bg-hover: (
|
|
107
|
-
dark: rgb(64, 64, 64),
|
|
108
|
-
light: rgb(215, 215, 215),
|
|
109
|
-
),
|
|
110
|
-
button-item-fg: (
|
|
111
|
-
dark: white,
|
|
112
|
-
light: black,
|
|
113
|
-
),
|
|
114
|
-
));
|
|
115
|
-
|
|
116
|
-
.button {
|
|
117
|
-
font-family: inherit;
|
|
118
|
-
font-size: inherit;
|
|
119
|
-
font-weight: 600;
|
|
120
|
-
line-height: 1;
|
|
121
|
-
|
|
122
|
-
cursor: pointer;
|
|
123
|
-
|
|
124
|
-
outline: none;
|
|
125
|
-
@include common.padding(control-pad);
|
|
126
|
-
|
|
127
|
-
border-radius: var(--control-radius);
|
|
128
|
-
transition: var(--color-transition) background-color,
|
|
129
|
-
var(--color-transition) border-color;
|
|
130
|
-
|
|
131
|
-
&:not(.button_text) {
|
|
132
|
-
box-shadow: var(--control-shadow);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
&[disabled] {
|
|
136
|
-
cursor: default;
|
|
137
|
-
filter: var(--control-disabled);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
@each $variant in (default, primary, success, warning, danger, input, item) {
|
|
142
|
-
.button_#{$variant} {
|
|
143
|
-
background-color: var(--button-#{$variant}-bg);
|
|
144
|
-
color: var(--button-#{$variant}-fg);
|
|
145
|
-
border: var(--button-#{$variant}-border, transparent) solid var(--control-border);
|
|
146
|
-
|
|
147
|
-
&:hover:not(:active):not([disabled]) {
|
|
148
|
-
background-color: var(--button-#{$variant}-bg-hover);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&:focus-visible {
|
|
152
|
-
border-color: var(--button-#{$variant}-focus, var(--accent));
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
&:active {
|
|
156
|
-
background-color: var(--button-#{$variant}-bg-active, var(--button-#{$variant}-bg));
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.button_input,
|
|
162
|
-
.button_item {
|
|
163
|
-
text-align: left;
|
|
164
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
@use "../common";
|
|
2
|
-
|
|
3
|
-
@include common.theme((
|
|
4
|
-
card-default-border: (
|
|
5
|
-
dark: rgb(36, 36, 36),
|
|
6
|
-
light: rgb(216, 216, 216),
|
|
7
|
-
),
|
|
8
|
-
card-info-border: (
|
|
9
|
-
dark: rgb(64, 160, 255),
|
|
10
|
-
light: rgb(0, 127, 255),
|
|
11
|
-
),
|
|
12
|
-
card-success-border: (
|
|
13
|
-
dark: rgb(64, 255, 64),
|
|
14
|
-
light: rgb(0, 255, 0),
|
|
15
|
-
),
|
|
16
|
-
card-warning-border: (
|
|
17
|
-
dark: rgb(255, 200, 0),
|
|
18
|
-
light: rgb(255, 200, 0),
|
|
19
|
-
),
|
|
20
|
-
card-danger-border: (
|
|
21
|
-
dark: rgb(255, 64, 64),
|
|
22
|
-
light: rgb(255, 0, 0),
|
|
23
|
-
),
|
|
24
|
-
));
|
|
25
|
-
|
|
26
|
-
.card {
|
|
27
|
-
box-shadow: var(--content-shadow);
|
|
28
|
-
border-radius: var(--content-radius);
|
|
29
|
-
background-color: var(--bg-alt);
|
|
30
|
-
--parent-bg: var(--bg-alt);
|
|
31
|
-
|
|
32
|
-
&:not(.card_raw) {
|
|
33
|
-
@include common.padding(content-pad);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@each $name in (default, info, success, warning, danger) {
|
|
38
|
-
.card_#{$name} {
|
|
39
|
-
border: var(--content-border) solid var(--card-#{$name}-border);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
@use "../common";
|
|
2
|
-
|
|
3
|
-
.dialog_container {
|
|
4
|
-
position: fixed;
|
|
5
|
-
inset: 0;
|
|
6
|
-
|
|
7
|
-
background-color: var(--overlay-backdrop);
|
|
8
|
-
|
|
9
|
-
display: grid;
|
|
10
|
-
grid-template-columns: 1fr minmax(auto, var(--dialog-inline-size)) 1fr;
|
|
11
|
-
grid-template-rows: 5fr minmax(auto, var(--dialog-block-size)) 7fr;
|
|
12
|
-
|
|
13
|
-
overflow: auto;
|
|
14
|
-
|
|
15
|
-
transition: opacity var(--layout-transition);
|
|
16
|
-
opacity: 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.dialog_fadein {
|
|
20
|
-
opacity: 1;
|
|
21
|
-
.dialog_body {
|
|
22
|
-
transform: scale(1);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.dialog_fadeout {
|
|
27
|
-
pointer-events: none;
|
|
28
|
-
opacity: 0;
|
|
29
|
-
.dialog_body {
|
|
30
|
-
transform: scale(.9);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@media (prefers-reduced-motion) {
|
|
35
|
-
.dialog_body.dialog_body {
|
|
36
|
-
transform: unset;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.dialog_body {
|
|
41
|
-
grid-row: 2 / 3;
|
|
42
|
-
grid-column: 2 / 3;
|
|
43
|
-
|
|
44
|
-
transform: scale(.9);
|
|
45
|
-
transition: transform var(--layout-transition);
|
|
46
|
-
|
|
47
|
-
background-color: var(--bg-alt);
|
|
48
|
-
--parent-bg: var(--bg-alt);
|
|
49
|
-
|
|
50
|
-
box-shadow: var(--overlay-shadow);
|
|
51
|
-
border-radius: var(--content-radius);
|
|
52
|
-
|
|
53
|
-
border: var(--content-border) solid var(--card-default-border);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.dialog_scroll_view {
|
|
57
|
-
border-block-start: var(--content-border) solid var(--card-default-border);
|
|
58
|
-
border-block-end: var(--content-border) solid var(--card-default-border);
|
|
59
|
-
margin-inline-start: calc(var(--content-pad-inline-start) * -1 + var(--content-border));
|
|
60
|
-
margin-inline-end: calc(var(--content-pad-inline-end) * -1 + var(--content-border));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.dialog_scroll_view_content {
|
|
64
|
-
@include common.padding(content-pad);
|
|
65
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
@use "../common";
|
|
2
|
-
|
|
3
|
-
@include common.theme((
|
|
4
|
-
nav-list-item-bg: (
|
|
5
|
-
dark: transparent,
|
|
6
|
-
light: transparent,
|
|
7
|
-
),
|
|
8
|
-
nav-list-item-bg-hover: (
|
|
9
|
-
dark: rgba(255, 255, 255, 0.1),
|
|
10
|
-
light: rgba(0, 0, 0, 0.075),
|
|
11
|
-
),
|
|
12
|
-
nav-list-item-bg-active: (
|
|
13
|
-
dark: rgba(255, 255, 255, 0.08),
|
|
14
|
-
light: rgba(0, 0, 0, 0.125),
|
|
15
|
-
),
|
|
16
|
-
nav-list-item-bg-current: (
|
|
17
|
-
dark: rgba(255, 255, 255, 0.1),
|
|
18
|
-
light: rgba(0, 0, 0, 0.125),
|
|
19
|
-
),
|
|
20
|
-
nav-list-item-fg: (
|
|
21
|
-
dark: rgb(172, 172, 172),
|
|
22
|
-
light: rgb(72, 72, 72),
|
|
23
|
-
),
|
|
24
|
-
nav-list-item-fg-hover: (
|
|
25
|
-
dark: var(--fg),
|
|
26
|
-
light: var(--fg),
|
|
27
|
-
),
|
|
28
|
-
nav-list-item-fg-active: (
|
|
29
|
-
dark: var(--fg),
|
|
30
|
-
light: var(--fg),
|
|
31
|
-
),
|
|
32
|
-
nav-list-item-fg-current: (
|
|
33
|
-
dark: var(--fg),
|
|
34
|
-
light: var(--fg),
|
|
35
|
-
),
|
|
36
|
-
nav-list-item-border: (
|
|
37
|
-
dark: transparent,
|
|
38
|
-
light: transparent,
|
|
39
|
-
),
|
|
40
|
-
));
|
|
41
|
-
|
|
42
|
-
.nav_list {
|
|
43
|
-
display: flex;
|
|
44
|
-
flex-direction: column;
|
|
45
|
-
position: relative;
|
|
46
|
-
z-index: 0;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.nav_list_item {
|
|
50
|
-
font-family: inherit;
|
|
51
|
-
font-size: inherit;
|
|
52
|
-
font-weight: 600;
|
|
53
|
-
line-height: 1;
|
|
54
|
-
text-align: left;
|
|
55
|
-
|
|
56
|
-
background-color: var(--nav-list-item-bg);
|
|
57
|
-
color: var(--nav-list-item-fg);
|
|
58
|
-
border: var(--nav-list-item-border) solid var(--control-border);
|
|
59
|
-
border-radius: var(--control-radius);
|
|
60
|
-
|
|
61
|
-
cursor: pointer;
|
|
62
|
-
|
|
63
|
-
outline: none;
|
|
64
|
-
@include common.padding(control-pad);
|
|
65
|
-
|
|
66
|
-
transition: var(--color-transition) background-color,
|
|
67
|
-
var(--color-transition) border-color;
|
|
68
|
-
|
|
69
|
-
&[disabled] {
|
|
70
|
-
cursor: default;
|
|
71
|
-
filter: var(--control-disabled);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&:hover:not(:active):not([disabled]),
|
|
75
|
-
&:focus-visible {
|
|
76
|
-
color: var(--nav-list-item-fg-hover);
|
|
77
|
-
background-color: var(--nav-list-item-bg-hover);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&:active {
|
|
81
|
-
color: var(--nav-list-item-fg-active);
|
|
82
|
-
background-color: var(--nav-list-item-bg-active);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.nav_list_item_current {
|
|
87
|
-
color: var(--nav-list-item-fg-current);
|
|
88
|
-
background-color: var(--nav-list-item-bg-current);
|
|
89
|
-
box-shadow: var(--control-shadow);
|
|
90
|
-
z-index: 1;
|
|
91
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
@use "../common";
|
|
2
|
-
|
|
3
|
-
// TODO: Maybe just use cards with extra marker class for optional style distinction.
|
|
4
|
-
@include common.theme((
|
|
5
|
-
notification-default-border: (
|
|
6
|
-
dark: rgb(48, 48, 48),
|
|
7
|
-
light: rgb(200, 200, 200),
|
|
8
|
-
),
|
|
9
|
-
notification-info-border: (
|
|
10
|
-
dark: rgb(64, 160, 255),
|
|
11
|
-
light: rgb(0, 127, 255),
|
|
12
|
-
),
|
|
13
|
-
notification-success-border: (
|
|
14
|
-
dark: rgb(64, 255, 64),
|
|
15
|
-
light: rgb(0, 255, 0),
|
|
16
|
-
),
|
|
17
|
-
notification-warning-border: (
|
|
18
|
-
dark: rgb(255, 200, 0),
|
|
19
|
-
light: rgb(255, 200, 0),
|
|
20
|
-
),
|
|
21
|
-
notification-danger-border: (
|
|
22
|
-
dark: rgb(255, 64, 64),
|
|
23
|
-
light: rgb(255, 0, 0),
|
|
24
|
-
),
|
|
25
|
-
));
|
|
26
|
-
|
|
27
|
-
.notification_host {
|
|
28
|
-
--overflow-safe-area: .5rem;
|
|
29
|
-
display: grid;
|
|
30
|
-
grid-template-columns: 1fr minmax(auto, var(--notification-inline-size)) 0;
|
|
31
|
-
grid-template-rows: 1fr auto 0;
|
|
32
|
-
overflow: auto;
|
|
33
|
-
|
|
34
|
-
position: fixed;
|
|
35
|
-
inset: 0;
|
|
36
|
-
pointer-events: none;
|
|
37
|
-
z-index: 2;
|
|
38
|
-
padding: 1rem;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.notification_area {
|
|
42
|
-
grid-area: 2 / 2;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.notification {
|
|
46
|
-
pointer-events: all;
|
|
47
|
-
box-shadow: var(--content-shadow);
|
|
48
|
-
border-radius: var(--content-radius);
|
|
49
|
-
background-color: var(--bg);
|
|
50
|
-
--parent-bg: var(--bg);
|
|
51
|
-
|
|
52
|
-
&:not(.notification_raw) {
|
|
53
|
-
@include common.padding(content-pad);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@each $name in (default, info, success, warning, danger) {
|
|
58
|
-
.notification_#{$name} {
|
|
59
|
-
border: var(--content-border) solid var(--notification-#{$name}-border);
|
|
60
|
-
}
|
|
61
|
-
}
|