@openwarelabs/ui 0.10.0 → 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/README.md +5 -1
- package/dist/components/Avatar/Avatar.d.cts +2 -13
- package/dist/components/Avatar/Avatar.d.ts +2 -13
- package/dist/components/Avatar/Avatar.types.d.cts +13 -0
- package/dist/components/Avatar/Avatar.types.d.ts +13 -0
- package/dist/components/Calendar/DatePicker.d.cts +2 -19
- package/dist/components/Calendar/DatePicker.d.ts +2 -19
- package/dist/components/Calendar/DatePicker.types.d.cts +19 -0
- package/dist/components/Calendar/DatePicker.types.d.ts +19 -0
- package/dist/components/Calendar/DateRangePicker.d.cts +2 -34
- package/dist/components/Calendar/DateRangePicker.d.ts +2 -34
- package/dist/components/Calendar/DateRangePicker.types.d.cts +34 -0
- package/dist/components/Calendar/DateRangePicker.types.d.ts +34 -0
- package/dist/components/ColorPicker/ColorPicker.d.cts +2 -55
- package/dist/components/ColorPicker/ColorPicker.d.ts +2 -55
- package/dist/components/ColorPicker/ColorPicker.types.d.cts +54 -0
- package/dist/components/ColorPicker/ColorPicker.types.d.ts +54 -0
- 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/ListBox/ListBox.d.cts +3 -61
- package/dist/components/ListBox/ListBox.d.ts +3 -61
- package/dist/components/ListBox/ListBox.types.d.cts +61 -0
- package/dist/components/ListBox/ListBox.types.d.ts +61 -0
- package/dist/components/Prose/Prose.d.cts +2 -16
- package/dist/components/Prose/Prose.d.ts +2 -16
- package/dist/components/Prose/Prose.types.d.cts +16 -0
- package/dist/components/Prose/Prose.types.d.ts +16 -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 +83 -0
- package/dist/index.cjs +333 -298
- 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 +320 -285
- package/dist/index.js.map +4 -4
- package/dist/openware-ui.iife.js +7 -7
- package/dist/styles.css +86 -0
- package/dist/tokens.css +3 -0
- package/dist/tokens.json +15 -0
- package/package.json +4 -4
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;
|
|
@@ -1652,7 +1655,14 @@
|
|
|
1652
1655
|
}
|
|
1653
1656
|
|
|
1654
1657
|
.ow-date-field__segment {
|
|
1658
|
+
/* At least 24px each way, the smallest a pointer target may be (WCAG 2.2, 2.5.8). */
|
|
1659
|
+
box-sizing: border-box;
|
|
1660
|
+
display: inline-flex;
|
|
1661
|
+
min-width: 24px;
|
|
1662
|
+
min-height: 24px;
|
|
1655
1663
|
flex-shrink: 0;
|
|
1664
|
+
align-items: center;
|
|
1665
|
+
justify-content: center;
|
|
1656
1666
|
border-radius: var(--ow-radius-sm);
|
|
1657
1667
|
padding: 2px;
|
|
1658
1668
|
color: var(--ow-text);
|
|
@@ -1664,6 +1674,11 @@
|
|
|
1664
1674
|
transition-timing-function: var(--ow-ease-standard);
|
|
1665
1675
|
}
|
|
1666
1676
|
|
|
1677
|
+
.ow-date-field__segment[data-segment="0"] {
|
|
1678
|
+
/* The first, often one digit ("6:12"), keeps to the separator after it; the spare width goes before it. */
|
|
1679
|
+
justify-content: flex-end;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1667
1682
|
.ow-date-field__segment::selection {
|
|
1668
1683
|
background: transparent;
|
|
1669
1684
|
}
|
|
@@ -5511,6 +5526,10 @@
|
|
|
5511
5526
|
line-height: 1;
|
|
5512
5527
|
}
|
|
5513
5528
|
|
|
5529
|
+
.ow-avatar[data-initials]::before {
|
|
5530
|
+
content: attr(data-initials);
|
|
5531
|
+
}
|
|
5532
|
+
|
|
5514
5533
|
.ow-avatar--empty {
|
|
5515
5534
|
background: var(--ow-avatar-empty);
|
|
5516
5535
|
color: var(--ow-on-avatar-empty);
|
|
@@ -6623,6 +6642,73 @@
|
|
|
6623
6642
|
outline-offset: 2px;
|
|
6624
6643
|
}
|
|
6625
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
|
+
|
|
6626
6712
|
/* components/Marketing/Marketing.css */
|
|
6627
6713
|
/* Marketing patterns from the site: Chip, SectionHeading, SiteHeader and the dot grid. */
|
|
6628
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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openwarelabs/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Openware UI: React components and design tokens — midnight and brass, tactile buttons and Inter, in light and dark.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Alexander Silver",
|
|
7
|
-
"homepage": "https://github.
|
|
7
|
+
"homepage": "https://openwarelabs.github.io/ui/",
|
|
8
8
|
"bugs": {
|
|
9
9
|
"url": "https://github.com/openwarelabs/ui/issues"
|
|
10
10
|
},
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@fontsource-variable/geist-mono": "^5.3.0",
|
|
70
70
|
"@fontsource-variable/inter": "^5.3.0",
|
|
71
|
-
"react-colorful": "5.
|
|
71
|
+
"react-colorful": "5.8.1",
|
|
72
72
|
"sonner": "^2.0.8"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@types/react-dom": "^18.3.1",
|
|
79
79
|
"axe-core": "^4.14.0",
|
|
80
80
|
"culori": "^4.0.1",
|
|
81
|
-
"esbuild": "^0.
|
|
81
|
+
"esbuild": "^0.28.2",
|
|
82
82
|
"eslint": "^10.12.0",
|
|
83
83
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
84
84
|
"lucide-react": "^1.48.0",
|