@openwarelabs/ui 0.10.1 → 0.11.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/components/Container/Container.d.cts +7 -0
- package/dist/components/Container/Container.d.ts +7 -0
- package/dist/components/Container/Container.types.d.cts +12 -0
- package/dist/components/Container/Container.types.d.ts +12 -0
- package/dist/components/Section/Section.d.cts +7 -0
- package/dist/components/Section/Section.d.ts +7 -0
- package/dist/components/Section/Section.types.d.cts +16 -0
- package/dist/components/Section/Section.types.d.ts +16 -0
- package/dist/components.css +67 -0
- package/dist/index.cjs +299 -285
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +217 -203
- package/dist/index.js.map +4 -4
- package/dist/openware-ui.iife.js +6 -6
- package/dist/styles.css +70 -0
- package/dist/tokens.css +3 -0
- package/dist/tokens.json +15 -0
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -268,7 +268,10 @@
|
|
|
268
268
|
--ow-space-6xl: 26px;
|
|
269
269
|
--ow-space-7xl: 28px;
|
|
270
270
|
--ow-page-max: 1200px;
|
|
271
|
+
--ow-page-narrow: 720px;
|
|
272
|
+
--ow-page-wide: 1440px;
|
|
271
273
|
--ow-page-gutter: 20px;
|
|
274
|
+
--ow-page-gutter-wide: 32px;
|
|
272
275
|
--ow-header-height: 56px;
|
|
273
276
|
--ow-section-y: 96px;
|
|
274
277
|
--ow-radius-sm: 4px;
|
|
@@ -6639,6 +6642,73 @@
|
|
|
6639
6642
|
outline-offset: 2px;
|
|
6640
6643
|
}
|
|
6641
6644
|
|
|
6645
|
+
/* components/Container/Container.css */
|
|
6646
|
+
/* The page's width and side margins, the same as every block's: the content is at most the size's width, inside a
|
|
6647
|
+
32px gutter (the phone gutter under 760px). */
|
|
6648
|
+
|
|
6649
|
+
.ow-container {
|
|
6650
|
+
box-sizing: border-box;
|
|
6651
|
+
width: 100%;
|
|
6652
|
+
margin-inline: auto;
|
|
6653
|
+
padding-inline: var(--ow-page-gutter-wide);
|
|
6654
|
+
}
|
|
6655
|
+
|
|
6656
|
+
.ow-container--page {
|
|
6657
|
+
max-width: calc(var(--ow-page-max) + 2 * var(--ow-page-gutter-wide));
|
|
6658
|
+
}
|
|
6659
|
+
|
|
6660
|
+
.ow-container--narrow {
|
|
6661
|
+
max-width: calc(var(--ow-page-narrow) + 2 * var(--ow-page-gutter-wide));
|
|
6662
|
+
}
|
|
6663
|
+
|
|
6664
|
+
.ow-container--wide {
|
|
6665
|
+
max-width: calc(var(--ow-page-wide) + 2 * var(--ow-page-gutter-wide));
|
|
6666
|
+
}
|
|
6667
|
+
|
|
6668
|
+
@media (max-width: 760px) {
|
|
6669
|
+
.ow-container {
|
|
6670
|
+
padding-inline: var(--ow-page-gutter);
|
|
6671
|
+
}
|
|
6672
|
+
}
|
|
6673
|
+
|
|
6674
|
+
/* components/Section/Section.css */
|
|
6675
|
+
/* A band of the page: a block's vertical space and ground, full width. Its Container sets the width inside. */
|
|
6676
|
+
|
|
6677
|
+
.ow-section {
|
|
6678
|
+
box-sizing: border-box;
|
|
6679
|
+
width: 100%;
|
|
6680
|
+
color: var(--ow-text);
|
|
6681
|
+
}
|
|
6682
|
+
|
|
6683
|
+
.ow-section--paper {
|
|
6684
|
+
background: var(--ow-paper);
|
|
6685
|
+
}
|
|
6686
|
+
|
|
6687
|
+
.ow-section--canvas {
|
|
6688
|
+
background: var(--ow-canvas);
|
|
6689
|
+
}
|
|
6690
|
+
|
|
6691
|
+
.ow-section--surface {
|
|
6692
|
+
background: var(--ow-surface);
|
|
6693
|
+
}
|
|
6694
|
+
|
|
6695
|
+
.ow-section--space-md {
|
|
6696
|
+
padding-block: var(--ow-section-y);
|
|
6697
|
+
}
|
|
6698
|
+
|
|
6699
|
+
.ow-section--space-sm {
|
|
6700
|
+
padding-block: calc(var(--ow-section-y) / 2);
|
|
6701
|
+
}
|
|
6702
|
+
|
|
6703
|
+
@media (max-width: 760px) {
|
|
6704
|
+
.ow-section--space-md {
|
|
6705
|
+
padding-block: 72px;
|
|
6706
|
+
}
|
|
6707
|
+
.ow-section--space-sm {
|
|
6708
|
+
padding-block: 36px;
|
|
6709
|
+
}
|
|
6710
|
+
}
|
|
6711
|
+
|
|
6642
6712
|
/* components/Marketing/Marketing.css */
|
|
6643
6713
|
/* Marketing patterns from the site: Chip, SectionHeading, SiteHeader and the dot grid. */
|
|
6644
6714
|
.ow-chip {
|
package/dist/tokens.css
CHANGED
|
@@ -268,7 +268,10 @@
|
|
|
268
268
|
--ow-space-6xl: 26px;
|
|
269
269
|
--ow-space-7xl: 28px;
|
|
270
270
|
--ow-page-max: 1200px;
|
|
271
|
+
--ow-page-narrow: 720px;
|
|
272
|
+
--ow-page-wide: 1440px;
|
|
271
273
|
--ow-page-gutter: 20px;
|
|
274
|
+
--ow-page-gutter-wide: 32px;
|
|
272
275
|
--ow-header-height: 56px;
|
|
273
276
|
--ow-section-y: 96px;
|
|
274
277
|
--ow-radius-sm: 4px;
|
package/dist/tokens.json
CHANGED
|
@@ -900,11 +900,26 @@
|
|
|
900
900
|
"value": "1200px",
|
|
901
901
|
"usage": "Marketing pages' content width cap."
|
|
902
902
|
},
|
|
903
|
+
{
|
|
904
|
+
"name": "ow-page-narrow",
|
|
905
|
+
"value": "720px",
|
|
906
|
+
"usage": "Reading width: an article, a form, a settings page (Container size narrow)."
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
"name": "ow-page-wide",
|
|
910
|
+
"value": "1440px",
|
|
911
|
+
"usage": "Wide pages that need room: dashboards and big tables (Container size wide)."
|
|
912
|
+
},
|
|
903
913
|
{
|
|
904
914
|
"name": "ow-page-gutter",
|
|
905
915
|
"value": "20px",
|
|
906
916
|
"usage": "Page side gutter on phones; 32px from 768px up."
|
|
907
917
|
},
|
|
918
|
+
{
|
|
919
|
+
"name": "ow-page-gutter-wide",
|
|
920
|
+
"value": "32px",
|
|
921
|
+
"usage": "Page side gutter from 760px up, as every block and Container uses."
|
|
922
|
+
},
|
|
908
923
|
{
|
|
909
924
|
"name": "ow-header-height",
|
|
910
925
|
"value": "56px",
|
package/package.json
CHANGED