@optimum-intelligence/opti-ui 0.9.1 → 1.0.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/CHANGELOG.md +99 -0
- package/README.md +5 -1
- package/dist/components/app-shell/AppShell.d.ts +30 -1
- package/dist/components/app-shell/AppShell.js +387 -236
- package/dist/components/app-shell/AppShell.js.map +1 -1
- package/dist/components/avatar/Avatar.d.ts +1 -1
- package/dist/components/avatar/Avatar.js +64 -52
- package/dist/components/avatar/Avatar.js.map +1 -1
- package/dist/components/calendar/Calendar.js +6 -4
- package/dist/components/calendar/Calendar.js.map +1 -1
- package/dist/components/calendar/date-utils.js +1 -1
- package/dist/components/calendar/date-utils.js.map +1 -1
- package/dist/components/card/Card.d.ts +24 -5
- package/dist/components/card/Card.js +36 -23
- package/dist/components/card/Card.js.map +1 -1
- package/dist/components/collapsible/Collapsible.d.ts +8 -1
- package/dist/components/collapsible/Collapsible.js +32 -25
- package/dist/components/collapsible/Collapsible.js.map +1 -1
- package/dist/components/data-table/DataTable.d.ts +21 -4
- package/dist/components/data-table/DataTable.js +310 -100
- package/dist/components/data-table/DataTable.js.map +1 -1
- package/dist/components/data-table/DataTableContent.d.ts +1 -7
- package/dist/components/data-table/DataTableContent.js +209 -243
- package/dist/components/data-table/DataTableContent.js.map +1 -1
- package/dist/components/data-table/DataTableFilters.js +47 -57
- package/dist/components/data-table/DataTableFilters.js.map +1 -1
- package/dist/components/data-table/DataTableRow.js +105 -90
- package/dist/components/data-table/DataTableRow.js.map +1 -1
- package/dist/components/data-table/layout.d.ts +0 -5
- package/dist/components/data-table/layout.js +1 -23
- package/dist/components/data-table/layout.js.map +1 -1
- package/dist/components/data-table/types.d.ts +5 -2
- package/dist/components/data-table/useDataTable.js +249 -221
- package/dist/components/data-table/useDataTable.js.map +1 -1
- package/dist/components/date-picker/DateRangePicker.js +1 -0
- package/dist/components/date-picker/DateRangePicker.js.map +1 -1
- package/dist/components/date-picker/PickerField.js +98 -101
- package/dist/components/date-picker/PickerField.js.map +1 -1
- package/dist/components/description-list/DescriptionList.d.ts +3 -1
- package/dist/components/description-list/DescriptionList.js +3 -1
- package/dist/components/description-list/DescriptionList.js.map +1 -1
- package/dist/components/drawer/Drawer.d.ts +1 -1
- package/dist/components/drawer/Drawer.js +173 -87
- package/dist/components/drawer/Drawer.js.map +1 -1
- package/dist/components/file-upload/FileUpload.js +7 -0
- package/dist/components/file-upload/FileUpload.js.map +1 -1
- package/dist/components/link/Link.d.ts +1 -1
- package/dist/components/link/Link.js +57 -74
- package/dist/components/link/Link.js.map +1 -1
- package/dist/components/map/Map.d.ts +14 -2
- package/dist/components/map/Map.js +194 -153
- package/dist/components/map/Map.js.map +1 -1
- package/dist/components/pagination/Pagination.js +2 -0
- package/dist/components/pagination/Pagination.js.map +1 -1
- package/dist/components/scroll-area/ScrollArea.d.ts +18 -2
- package/dist/components/scroll-area/ScrollArea.js +89 -61
- package/dist/components/scroll-area/ScrollArea.js.map +1 -1
- package/dist/components/spinner/Spinner.js +34 -26
- package/dist/components/spinner/Spinner.js.map +1 -1
- package/dist/components/stat-card/StatCard.js +36 -22
- package/dist/components/stat-card/StatCard.js.map +1 -1
- package/dist/components/table/Table.d.ts +9 -2
- package/dist/components/table/Table.js +87 -63
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/tag/Tag.js +79 -103
- package/dist/components/tag/Tag.js.map +1 -1
- package/dist/components/toolbar/Toolbar.d.ts +2 -1
- package/dist/components/toolbar/Toolbar.js +23 -15
- package/dist/components/toolbar/Toolbar.js.map +1 -1
- package/dist/components/typography/Typography.d.ts +7 -1
- package/dist/components/typography/Typography.js +21 -18
- package/dist/components/typography/Typography.js.map +1 -1
- package/dist/components.json +134 -26
- package/dist/fonts/Montserrat-OFL.txt +93 -0
- package/dist/fonts/Poppins-OFL.txt +93 -0
- package/dist/fonts/montserrat-latin-ext.woff2 +0 -0
- package/dist/fonts/montserrat-latin.woff2 +0 -0
- package/dist/fonts/poppins-latin-400.woff2 +0 -0
- package/dist/fonts/poppins-latin-500.woff2 +0 -0
- package/dist/fonts/poppins-latin-600.woff2 +0 -0
- package/dist/fonts/poppins-latin-700.woff2 +0 -0
- package/dist/fonts/poppins-latin-ext-400.woff2 +0 -0
- package/dist/fonts/poppins-latin-ext-500.woff2 +0 -0
- package/dist/fonts/poppins-latin-ext-600.woff2 +0 -0
- package/dist/fonts/poppins-latin-ext-700.woff2 +0 -0
- package/dist/fonts.css +104 -4
- package/dist/index.js +2 -2
- package/dist/labels/Labels.d.ts +12 -0
- package/dist/labels/Labels.js +6 -0
- package/dist/labels/Labels.js.map +1 -1
- package/dist/labels/hu.js +9 -3
- package/dist/labels/hu.js.map +1 -1
- package/dist/llms-full.txt +103 -20
- package/dist/llms.txt +15 -10
- package/dist/opti-ui.css +567 -197
- package/dist/reset.css +33 -0
- package/dist/utils/focus.d.ts +8 -0
- package/dist/utils/focus.js +39 -0
- package/dist/utils/focus.js.map +1 -0
- package/package.json +2 -1
|
@@ -72,7 +72,7 @@ function Heading(t0) {
|
|
|
72
72
|
}
|
|
73
73
|
/** Body text paragraph. Use `render={<span />}` for inline text. */
|
|
74
74
|
function Text(t0) {
|
|
75
|
-
const $ = c(
|
|
75
|
+
const $ = c(18);
|
|
76
76
|
let t1;
|
|
77
77
|
let t2;
|
|
78
78
|
let t3;
|
|
@@ -80,22 +80,25 @@ function Text(t0) {
|
|
|
80
80
|
let t5;
|
|
81
81
|
let t6;
|
|
82
82
|
if ($[0] !== t0) {
|
|
83
|
-
const { size: t7, tone: t8, weight, render, ref, ...props } = t0;
|
|
83
|
+
const { size: t7, tone: t8, weight, truncate: t9, render, ref, ...props } = t0;
|
|
84
84
|
const size = t7 === void 0 ? "md" : t7;
|
|
85
85
|
const tone = t8 === void 0 ? "default" : t8;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
const truncate = t9 === void 0 ? false : t9;
|
|
87
|
+
let t10;
|
|
88
|
+
if ($[7] !== size || $[8] !== tone || $[9] !== truncate || $[10] !== weight) {
|
|
89
|
+
t10 = {
|
|
89
90
|
size,
|
|
90
91
|
tone,
|
|
91
|
-
weight
|
|
92
|
+
weight,
|
|
93
|
+
truncate
|
|
92
94
|
};
|
|
93
95
|
$[7] = size;
|
|
94
96
|
$[8] = tone;
|
|
95
|
-
$[9] =
|
|
96
|
-
$[10] =
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
$[9] = truncate;
|
|
98
|
+
$[10] = weight;
|
|
99
|
+
$[11] = t10;
|
|
100
|
+
} else t10 = $[11];
|
|
101
|
+
const state = t10;
|
|
99
102
|
t6 = useRender;
|
|
100
103
|
t1 = "p";
|
|
101
104
|
t2 = render;
|
|
@@ -118,7 +121,7 @@ function Text(t0) {
|
|
|
118
121
|
t6 = $[6];
|
|
119
122
|
}
|
|
120
123
|
let t7;
|
|
121
|
-
if ($[
|
|
124
|
+
if ($[12] !== t1 || $[13] !== t2 || $[14] !== t3 || $[15] !== t4 || $[16] !== t5) {
|
|
122
125
|
t7 = {
|
|
123
126
|
defaultTagName: t1,
|
|
124
127
|
render: t2,
|
|
@@ -126,13 +129,13 @@ function Text(t0) {
|
|
|
126
129
|
state: t4,
|
|
127
130
|
props: t5
|
|
128
131
|
};
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
} else t7 = $[
|
|
132
|
+
$[12] = t1;
|
|
133
|
+
$[13] = t2;
|
|
134
|
+
$[14] = t3;
|
|
135
|
+
$[15] = t4;
|
|
136
|
+
$[16] = t5;
|
|
137
|
+
$[17] = t7;
|
|
138
|
+
} else t7 = $[17];
|
|
136
139
|
return t6(t7);
|
|
137
140
|
}
|
|
138
141
|
/** Small uppercase label used above titles, in filter bars and table headers. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.js","names":["useRender","mergeProps","HeadingLevel","HeadingSize","HeadingState","size","HeadingProps","ComponentProps","level","defaultSizes","Record","Heading","t0","$","_c","t1","t2","t3","t4","t5","t6","t7","render","ref","props","undefined","t8","t9","state","className","defaultTagName","TextTone","TextSize","TextWeight","TextState","tone","weight","TextProps","Text","EyebrowProps","Eyebrow","_c"],"sources":["../../../src/components/typography/Typography.tsx"],"sourcesContent":["import { useRender } from '@base-ui/react/use-render';\nimport { mergeProps } from '@base-ui/react/merge-props';\n\ntype HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;\nexport type HeadingSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\nexport type HeadingState = { size: HeadingSize };\n\nexport interface HeadingProps extends useRender.ComponentProps<'h2', HeadingState> {\n /** Semantic level; picks the element. */\n level?: HeadingLevel;\n /** Visual size, independent of the level. */\n size?: HeadingSize;\n}\n\nconst defaultSizes: Record<HeadingLevel, HeadingSize> = { 1: 'xl', 2: 'lg', 3: 'md', 4: 'sm', 5: 'xs', 6: 'xs' };\n\n/** Heading element. `level` sets the tag (`h1`–`h6`) and the default size; `size` overrides only the look. */\nexport function Heading({ level = 2, size, render, ref, ...props }: HeadingProps) {\n const state: HeadingState = { size: size ?? defaultSizes[level] };\n return useRender({\n defaultTagName: `h${level}`,\n render,\n ref,\n state,\n props: mergeProps<'h2'>({ className: 'oui-heading' }, props),\n });\n}\n\nexport type TextTone = 'default' | 'strong' | 'muted' | 'subtle' | 'accent' | 'success' | 'warning' | 'danger';\nexport type TextSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type TextWeight = 'regular' | 'medium' | 'semibold' | 'bold';\n\nexport type TextState = { size: TextSize; tone: TextTone; weight?: TextWeight };\n\nexport interface TextProps extends useRender.ComponentProps<'p', TextState> {\n /** Font size. */\n size?: TextSize;\n /** Color role: from `strong` to `subtle`, or a status color. */\n tone?: TextTone;\n /** Font weight. Inherits when omitted. */\n weight?: TextWeight;\n}\n\n/** Body text paragraph. Use `render={<span />}` for inline text. */\nexport function Text({ size = 'md', tone = 'default', weight, render, ref, ...props }: TextProps) {\n const state: TextState = { size, tone, weight };\n return useRender({\n defaultTagName: 'p',\n render,\n ref,\n state,\n props: mergeProps<'p'>({ className: 'oui-text' }, props),\n });\n}\n\nexport interface EyebrowProps extends useRender.ComponentProps<'span'> {}\n\n/** Small uppercase label used above titles, in filter bars and table headers. */\nexport function Eyebrow({ render, ref, ...props }: EyebrowProps) {\n return useRender({\n defaultTagName: 'span',\n render,\n ref,\n props: mergeProps<'span'>({ className: 'oui-eyebrow' }, props),\n });\n}\n"],"mappings":";;;;;AAeA,IAAMS,eAAkD;CAAE,GAAG;CAAM,GAAG;CAAM,GAAG;CAAM,GAAG;CAAM,GAAG;CAAM,GAAG;AAAK;;AAG/G,SAAOE,QAAAC,IAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAP,EAAA,OAAAD,IAAA;EAAiB,MAAA,EAAAJ,OAAAa,IAAAhB,MAAAiB,QAAAC,KAAA,GAAAC,UAAAZ;EAAE,MAAAJ,QAAAa,OAAAI,KAAAA,IAAA,IAAAJ;EACY,MAAAK,KAAArB,QAAQI,aAAaD;EAAM,IAAAmB;EAAA,IAAAd,EAAA,OAAAa,IAAA;GAAnCC,KAAA,EAAAtB,MAAQqB,GAA4B;GAACb,EAAA,KAAAa;GAAAb,EAAA,KAAAc;EAAA,OAAAA,KAAAd,EAAA;EAAjE,MAAAe,QAA4BD;EACrB3B,KAAAA;EACWe,KAAA,IAAIP;EACpBc,KAAAA;EACAC,KAAAA;EACAK,KAAAA;EACOT,KAAAlB,WAAiB,EAAA4B,WAAa,cAAc,GAAGL,KAAK;EAACX,EAAA,KAAAD;EAAAC,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;EAAAL,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAA;EAAAL,KAAAF,EAAA;EAAAG,KAAAH,EAAA;EAAAI,KAAAJ,EAAA;EAAAK,KAAAL,EAAA;EAAAM,KAAAN,EAAA;EAAAO,KAAAP,EAAA;CAAA;CAAA,IAAAQ;CAAA,IAAAR,EAAA,OAAAE,MAAAF,EAAA,QAAAG,MAAAH,EAAA,QAAAI,MAAAJ,EAAA,QAAAK,MAAAL,EAAA,QAAAM,IAAA;EAL7CE,KAAA;GAAAS,gBACCf;GAAWO,QAC3BA;GAAMC,KACNA;GAAGK,OACHA;GAAKJ,OACEL;EACT;EAACN,EAAA,KAAAE;EAAAF,EAAA,MAAAG;EAAAH,EAAA,MAAAI;EAAAJ,EAAA,MAAAK;EAAAL,EAAA,MAAAM;EAAAN,EAAA,MAAAQ;CAAA,OAAAA,KAAAR,EAAA;CAAA,OANMb,GAAUqB,EAMhB;AAAC;;
|
|
1
|
+
{"version":3,"file":"Typography.js","names":["useRender","mergeProps","HeadingLevel","HeadingSize","HeadingState","size","HeadingProps","ComponentProps","level","defaultSizes","Record","Heading","t0","$","_c","t1","t2","t3","t4","t5","t6","t7","render","ref","props","undefined","t8","t9","state","className","defaultTagName","TextTone","TextSize","TextWeight","TextState","tone","weight","truncate","TextProps","Text","t10","EyebrowProps","Eyebrow","_c"],"sources":["../../../src/components/typography/Typography.tsx"],"sourcesContent":["import { useRender } from '@base-ui/react/use-render';\nimport { mergeProps } from '@base-ui/react/merge-props';\n\ntype HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;\nexport type HeadingSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\nexport type HeadingState = { size: HeadingSize };\n\nexport interface HeadingProps extends useRender.ComponentProps<'h2', HeadingState> {\n /** Semantic level; picks the element. */\n level?: HeadingLevel;\n /** Visual size, independent of the level. */\n size?: HeadingSize;\n}\n\nconst defaultSizes: Record<HeadingLevel, HeadingSize> = { 1: 'xl', 2: 'lg', 3: 'md', 4: 'sm', 5: 'xs', 6: 'xs' };\n\n/** Heading element. `level` sets the tag (`h1`–`h6`) and the default size; `size` overrides only the look. */\nexport function Heading({ level = 2, size, render, ref, ...props }: HeadingProps) {\n const state: HeadingState = { size: size ?? defaultSizes[level] };\n return useRender({\n defaultTagName: `h${level}`,\n render,\n ref,\n state,\n props: mergeProps<'h2'>({ className: 'oui-heading' }, props),\n });\n}\n\nexport type TextTone = 'default' | 'strong' | 'muted' | 'subtle' | 'accent' | 'success' | 'warning' | 'danger';\nexport type TextSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type TextWeight = 'regular' | 'medium' | 'semibold' | 'bold';\n\nexport type TextState = { size: TextSize; tone: TextTone; weight?: TextWeight; truncate: boolean };\n\nexport interface TextProps extends useRender.ComponentProps<'p', TextState> {\n /** Font size. */\n size?: TextSize;\n /** Color role: from `strong` to `subtle`, or a status color. */\n tone?: TextTone;\n /** Font weight. Inherits when omitted. */\n weight?: TextWeight;\n /**\n * Keep the text on one line and end it with an ellipsis when it doesn't fit (also in a flex row). When the\n * full text matters, show it in a `Tooltip` too: a `title` alone can't be reached by keyboard or touch.\n */\n truncate?: boolean;\n}\n\n/** Body text paragraph. Use `render={<span />}` for inline text. */\nexport function Text({ size = 'md', tone = 'default', weight, truncate = false, render, ref, ...props }: TextProps) {\n const state: TextState = { size, tone, weight, truncate };\n return useRender({\n defaultTagName: 'p',\n render,\n ref,\n state,\n props: mergeProps<'p'>({ className: 'oui-text' }, props),\n });\n}\n\nexport interface EyebrowProps extends useRender.ComponentProps<'span'> {}\n\n/** Small uppercase label used above titles, in filter bars and table headers. */\nexport function Eyebrow({ render, ref, ...props }: EyebrowProps) {\n return useRender({\n defaultTagName: 'span',\n render,\n ref,\n props: mergeProps<'span'>({ className: 'oui-eyebrow' }, props),\n });\n}\n"],"mappings":";;;;;AAeA,IAAMS,eAAkD;CAAE,GAAG;CAAM,GAAG;CAAM,GAAG;CAAM,GAAG;CAAM,GAAG;CAAM,GAAG;AAAK;;AAG/G,SAAOE,QAAAC,IAAA;CAAA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AL,EAAA,MAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OALMb,GAAUoB,EAKhB;AAAC"}
|
package/dist/components.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@optimum-intelligence/opti-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Optimum's customizable React component library, built on Base UI.",
|
|
5
5
|
"categories": [
|
|
6
6
|
"Theme",
|
|
@@ -2006,20 +2006,27 @@
|
|
|
2006
2006
|
"name": "interactive",
|
|
2007
2007
|
"type": "boolean",
|
|
2008
2008
|
"required": false,
|
|
2009
|
-
"description": "Adds hover and focus states
|
|
2009
|
+
"description": "Adds hover and focus states for a card that is one link: use it with `render={<a href=… />}`. Put no buttons or\nlinks inside it, since they would be nested in the link; for a card with its own actions, make its title the link.",
|
|
2010
|
+
"default": "false"
|
|
2011
|
+
},
|
|
2012
|
+
{
|
|
2013
|
+
"name": "fill",
|
|
2014
|
+
"type": "boolean",
|
|
2015
|
+
"required": false,
|
|
2016
|
+
"description": "Grow to the height left in a flex column (a `Page fill`), never below `--oui-card-fill-min-height` (24rem).\n`CardContent` becomes a flex column, so a `DataTable fill` or a `[data-fill]` child takes its remaining height.",
|
|
2010
2017
|
"default": "false"
|
|
2011
2018
|
}
|
|
2012
2019
|
],
|
|
2013
2020
|
"extends": [
|
|
2014
2021
|
"useRender.ComponentProps<'div', CardState>"
|
|
2015
2022
|
],
|
|
2016
|
-
"example": "<Card variant=\"elevated\">\n <CardHeader>\n <CardTitle>Monthly energy</CardTitle>\n
|
|
2023
|
+
"example": "<Card variant=\"elevated\">\n <CardHeader>\n <div>\n <CardTitle>Monthly energy</CardTitle>\n <CardDescription>Last 30 days</CardDescription>\n </div>\n <CardActions>…</CardActions>\n </CardHeader>\n <CardContent>…</CardContent>\n</Card>"
|
|
2017
2024
|
},
|
|
2018
2025
|
{
|
|
2019
2026
|
"name": "CardActions",
|
|
2020
2027
|
"kind": "compound",
|
|
2021
2028
|
"category": "Layout",
|
|
2022
|
-
"description": "Right-aligned slot inside CardHeader for icon buttons or menus.",
|
|
2029
|
+
"description": "Right-aligned slot inside CardHeader for icon buttons or menus. Small (`sm`) controls are centred on the title's\nfirst line and overhang into the card padding, so a touch-sized button doesn't push the content down.",
|
|
2023
2030
|
"import": "import { CardActions } from '@optimum-intelligence/opti-ui';",
|
|
2024
2031
|
"parts": [
|
|
2025
2032
|
{
|
|
@@ -2071,7 +2078,7 @@
|
|
|
2071
2078
|
"name": "CardHeader",
|
|
2072
2079
|
"kind": "compound",
|
|
2073
2080
|
"category": "Layout",
|
|
2074
|
-
"description": "
|
|
2081
|
+
"description": "Top row of a Card. Wrap `CardTitle` and `CardDescription` in one element as the first child: it takes the free\nspace, and `CardActions` or a Badge after it keeps its own width.",
|
|
2075
2082
|
"import": "import { CardHeader } from '@optimum-intelligence/opti-ui';",
|
|
2076
2083
|
"parts": [
|
|
2077
2084
|
{
|
|
@@ -2256,7 +2263,7 @@
|
|
|
2256
2263
|
"name": "NavbarGroup",
|
|
2257
2264
|
"kind": "component",
|
|
2258
2265
|
"category": "Layout",
|
|
2259
|
-
"description": "Expandable parent row in a `Navbar` with nested `NavbarItem` sub-links. Place it in a `NavbarSection`\nnext to other items. On a collapsed rail the sub-links are hidden and the parent shows as active when\none of them is; the hover peek shows the full tree.",
|
|
2266
|
+
"description": "Expandable parent row in a `Navbar` with nested `NavbarItem` sub-links. Place it in a `NavbarSection`\nnext to other items. On a collapsed rail the sub-links are hidden and the parent shows as active when\none of them is; the hover peek shows the full tree, and pressing the parent expands the navbar with the\ngroup open, so keyboard users reach the sub-links too.",
|
|
2260
2267
|
"import": "import { NavbarGroup } from '@optimum-intelligence/opti-ui';",
|
|
2261
2268
|
"propsType": "NavbarGroupProps",
|
|
2262
2269
|
"props": [
|
|
@@ -2399,6 +2406,27 @@
|
|
|
2399
2406
|
}
|
|
2400
2407
|
]
|
|
2401
2408
|
},
|
|
2409
|
+
{
|
|
2410
|
+
"name": "Page",
|
|
2411
|
+
"kind": "component",
|
|
2412
|
+
"category": "Layout",
|
|
2413
|
+
"description": "Content column of a page inside `AppShell`: gutters, a maximum width and the gap between sections, all\nsmaller on phones. Customize with `--oui-page-max-width` (80rem), `--oui-page-padding` and `--oui-page-gap`.",
|
|
2414
|
+
"import": "import { Page } from '@optimum-intelligence/opti-ui';",
|
|
2415
|
+
"propsType": "PageProps",
|
|
2416
|
+
"props": [
|
|
2417
|
+
{
|
|
2418
|
+
"name": "fill",
|
|
2419
|
+
"type": "boolean",
|
|
2420
|
+
"required": false,
|
|
2421
|
+
"description": "Take the main area's height instead of growing with the content, so a `Card fill` or `DataTable fill`\ninside takes the height left and only its rows scroll. Below 900px and in windows under 640px tall the\npage scrolls as usual, and those children get a fixed height (`--oui-page-fill-height`, 32rem).",
|
|
2422
|
+
"default": "false"
|
|
2423
|
+
}
|
|
2424
|
+
],
|
|
2425
|
+
"extends": [
|
|
2426
|
+
"useRender.ComponentProps<'div', PageState>"
|
|
2427
|
+
],
|
|
2428
|
+
"example": "<AppShell navbar={<Navbar>…</Navbar>}>\n <Page fill>\n <PageHeader title=\"Sessions\" />\n <Card fill>\n <CardContent>\n <DataTable fill columns={columns} data={sessions} getRowId={(row) => row.id} />\n </CardContent>\n </Card>\n </Page>\n</AppShell>"
|
|
2429
|
+
},
|
|
2402
2430
|
{
|
|
2403
2431
|
"name": "PageHeader",
|
|
2404
2432
|
"kind": "component",
|
|
@@ -2452,7 +2480,7 @@
|
|
|
2452
2480
|
"name": "ScrollArea",
|
|
2453
2481
|
"kind": "component",
|
|
2454
2482
|
"category": "Layout",
|
|
2455
|
-
"description": "Scroll container with slim, themed overlay scrollbars. Set a height or max-height.",
|
|
2483
|
+
"description": "Scroll container with slim, themed overlay scrollbars. Set a height or max-height, or use\n`scrollbars=\"horizontal\" fade` for a row that scrolls sideways.",
|
|
2456
2484
|
"import": "import { ScrollArea } from '@optimum-intelligence/opti-ui';",
|
|
2457
2485
|
"propsType": "ScrollAreaProps",
|
|
2458
2486
|
"props": [
|
|
@@ -2473,11 +2501,19 @@
|
|
|
2473
2501
|
"type": "BaseScrollArea.Viewport.Props",
|
|
2474
2502
|
"required": false,
|
|
2475
2503
|
"description": "Props for the inner scrolling viewport, e.g. a `ref` to read the scroll position."
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
"name": "fade",
|
|
2507
|
+
"type": "boolean",
|
|
2508
|
+
"required": false,
|
|
2509
|
+
"description": "Fade the left and right edges while content is cut off there. The overlay scrollbar only shows on hover or\nwhile scrolling, so use it for a sideways row (chips, badges) whose overflow would otherwise go unnoticed.",
|
|
2510
|
+
"default": "false"
|
|
2476
2511
|
}
|
|
2477
2512
|
],
|
|
2478
2513
|
"extends": [
|
|
2479
2514
|
"BaseScrollArea.Root.Props"
|
|
2480
|
-
]
|
|
2515
|
+
],
|
|
2516
|
+
"example": "<ScrollArea scrollbars=\"horizontal\" fade>\n <Stack direction=\"row\" gap=\"sm\">\n <Badge>ABC-123</Badge>\n <Badge>12 t</Badge>\n </Stack>\n</ScrollArea>"
|
|
2481
2517
|
},
|
|
2482
2518
|
{
|
|
2483
2519
|
"name": "Separator",
|
|
@@ -2597,7 +2633,13 @@
|
|
|
2597
2633
|
"name": "interactive",
|
|
2598
2634
|
"type": "boolean",
|
|
2599
2635
|
"required": false,
|
|
2600
|
-
"description": "Adds hover and focus states
|
|
2636
|
+
"description": "Adds hover and focus states for a card that is one link: use it with `render={<a href=… />}`. Put no buttons or\nlinks inside it, since they would be nested in the link; for a card with its own actions, make its title the link."
|
|
2637
|
+
},
|
|
2638
|
+
{
|
|
2639
|
+
"name": "fill",
|
|
2640
|
+
"type": "boolean",
|
|
2641
|
+
"required": false,
|
|
2642
|
+
"description": "Grow to the height left in a flex column (a `Page fill`), never below `--oui-card-fill-min-height` (24rem).\n`CardContent` becomes a flex column, so a `DataTable fill` or a `[data-fill]` child takes its remaining height."
|
|
2601
2643
|
},
|
|
2602
2644
|
{
|
|
2603
2645
|
"name": "label",
|
|
@@ -2751,7 +2793,7 @@
|
|
|
2751
2793
|
"name": "external",
|
|
2752
2794
|
"type": "boolean",
|
|
2753
2795
|
"required": false,
|
|
2754
|
-
"description": "Opens in a new tab, with a trailing icon.",
|
|
2796
|
+
"description": "Opens in a new tab, with a trailing icon and hidden text that says so (`opensInNewTab` label).",
|
|
2755
2797
|
"default": "false"
|
|
2756
2798
|
}
|
|
2757
2799
|
],
|
|
@@ -2808,6 +2850,13 @@
|
|
|
2808
2850
|
"bold"
|
|
2809
2851
|
],
|
|
2810
2852
|
"description": "Font weight. Inherits when omitted."
|
|
2853
|
+
},
|
|
2854
|
+
{
|
|
2855
|
+
"name": "truncate",
|
|
2856
|
+
"type": "boolean",
|
|
2857
|
+
"required": false,
|
|
2858
|
+
"description": "Keep the text on one line and end it with an ellipsis when it doesn't fit (also in a flex row). When the\nfull text matters, show it in a `Tooltip` too: a `title` alone can't be reached by keyboard or touch.",
|
|
2859
|
+
"default": "false"
|
|
2811
2860
|
}
|
|
2812
2861
|
],
|
|
2813
2862
|
"extends": [
|
|
@@ -3297,7 +3346,7 @@
|
|
|
3297
3346
|
"name": "Toolbar",
|
|
3298
3347
|
"kind": "compound",
|
|
3299
3348
|
"category": "Actions",
|
|
3300
|
-
"description": "Row of controls that is a single tab stop; arrow keys move between them.\nOther controls join through `render`: `<Toolbar.Button render={<Toggle />} />`,\n`<Toolbar.Button render={<Menu.Trigger />} />`.",
|
|
3349
|
+
"description": "Row of controls that is a single tab stop; arrow keys move between them. It stays on one line: wider than its\ncontainer, it scrolls sideways with the cut-off edge faded.\nOther controls join through `render`: `<Toolbar.Button render={<Toggle />} />`,\n`<Toolbar.Button render={<Menu.Trigger />} />`.",
|
|
3301
3350
|
"import": "import { Toolbar } from '@optimum-intelligence/opti-ui';",
|
|
3302
3351
|
"parts": [
|
|
3303
3352
|
{
|
|
@@ -3820,7 +3869,7 @@
|
|
|
3820
3869
|
"name": "Drawer",
|
|
3821
3870
|
"kind": "component",
|
|
3822
3871
|
"category": "Overlays",
|
|
3823
|
-
"description": "Side panel for inspecting or editing a record without leaving the page:\npinned header, scrolling body, optional pinned footer. `side=\"bottom\"` makes\nit a bottom sheet, for filters and actions on phones. For a free-form\nsheet use `Dialog.Content` with `placement`.",
|
|
3872
|
+
"description": "Side panel for inspecting or editing a record without leaving the page:\npinned header, scrolling body, optional pinned footer. `side=\"bottom\"` makes\nit a bottom sheet, for filters and actions on phones; dragging its header down closes it. For a free-form\nsheet use `Dialog.Content` with `placement`.",
|
|
3824
3873
|
"import": "import { Drawer } from '@optimum-intelligence/opti-ui';",
|
|
3825
3874
|
"propsType": "DrawerProps",
|
|
3826
3875
|
"props": [
|
|
@@ -4405,7 +4454,20 @@
|
|
|
4405
4454
|
},
|
|
4406
4455
|
{
|
|
4407
4456
|
"name": "Collapsible.Panel",
|
|
4408
|
-
"description": ""
|
|
4457
|
+
"description": "",
|
|
4458
|
+
"propsType": "CollapsiblePanelProps",
|
|
4459
|
+
"props": [
|
|
4460
|
+
{
|
|
4461
|
+
"name": "plain",
|
|
4462
|
+
"type": "boolean",
|
|
4463
|
+
"required": false,
|
|
4464
|
+
"description": "Drop the content's padding and muted secondary-text style, so it lines up with and looks like the text\naround it. Use it when the panel holds regular content (a list, a form) rather than a note.",
|
|
4465
|
+
"default": "false"
|
|
4466
|
+
}
|
|
4467
|
+
],
|
|
4468
|
+
"extends": [
|
|
4469
|
+
"BaseCollapsible.Panel.Props"
|
|
4470
|
+
]
|
|
4409
4471
|
}
|
|
4410
4472
|
]
|
|
4411
4473
|
},
|
|
@@ -4710,7 +4772,7 @@
|
|
|
4710
4772
|
"name": "alt",
|
|
4711
4773
|
"type": "string",
|
|
4712
4774
|
"required": false,
|
|
4713
|
-
"description": "
|
|
4775
|
+
"description": "Accessible name of the avatar, image or initials alike. Defaults to `name`; without either it is decorative."
|
|
4714
4776
|
},
|
|
4715
4777
|
{
|
|
4716
4778
|
"name": "name",
|
|
@@ -4841,7 +4903,7 @@
|
|
|
4841
4903
|
"name": "DataTable",
|
|
4842
4904
|
"kind": "compound",
|
|
4843
4905
|
"category": "Feedback & data display",
|
|
4844
|
-
"description": "`<DataTable data={…} columns={…} />` renders a complete table with search,\nfilters, sorting, pagination, row selection, row actions and inline editing;\ncolumns declare what they take part in. Every piece of state works\nuncontrolled or controlled (`search` / `filterValues` / `sort` / `page` /\n`selection`), and with `mode=\"server\"` the same state drives an API.\n\nFor another layout, create the table with `useDataTable` and compose the\nparts: `DataTable.Root`, `DataTable.Toolbar`, `DataTable.Controls` (the\ntoolbar's left column), `DataTable.Search`, `DataTable.Filters` (`quick`\npicks the toolbar filters), `DataTable.Filter`, `DataTable.FilterPanel`\n(the \"Filters\" button and panel for the other filters),\n`DataTable.ActiveFilters` (their tags), `DataTable.FilterSheet` (the phone\nfilter button and sheet), `DataTable.ClearFilters`, `DataTable.Actions`,\n`DataTable.ColumnsMenu
|
|
4906
|
+
"description": "`<DataTable data={…} columns={…} />` renders a complete table with search,\nfilters, sorting, pagination, row selection, row actions and inline editing;\ncolumns declare what they take part in. Every piece of state works\nuncontrolled or controlled (`search` / `filterValues` / `sort` / `page` /\n`selection`), and with `mode=\"server\"` the same state drives an API.\n\nFor another layout, create the table with `useDataTable` and compose the\nparts: `DataTable.Root`, `DataTable.Toolbar`, `DataTable.Controls` (the\ntoolbar's left column), `DataTable.Search`, `DataTable.Filters` (`quick`\npicks the toolbar filters), `DataTable.Filter`, `DataTable.FilterPanel`\n(the \"Filters\" button and panel for the other filters),\n`DataTable.ActiveFilters` (their tags), `DataTable.FilterSheet` (the phone\nfilter button and sheet), `DataTable.ClearFilters`, `DataTable.Actions`,\n`DataTable.ColumnsMenu`, `DataTable.SelectionBar` (the selected rows' count\nand actions, shown in the toolbar while rows are selected),\n`DataTable.Loading`, `DataTable.Summary`, `DataTable.Content`,\n`DataTable.Pagination`.\n\nOn phones (below 640px) columns with `priority: 'low'` are hidden, and\n`stickyFirstColumn` keeps each row's name in view while the rest scrolls.",
|
|
4845
4907
|
"import": "import { DataTable } from '@optimum-intelligence/opti-ui';",
|
|
4846
4908
|
"propsType": "DataTableProps",
|
|
4847
4909
|
"props": [
|
|
@@ -4917,7 +4979,7 @@
|
|
|
4917
4979
|
"name": "bulkActions",
|
|
4918
4980
|
"type": "(context: DataTableToolbarContext<T>) => React.ReactNode",
|
|
4919
4981
|
"required": false,
|
|
4920
|
-
"description": "Actions on the selected rows. While rows are selected, the
|
|
4982
|
+
"description": "Actions on the selected rows. While rows are selected, the toolbar shows their count, a clear button and\nthese actions over the search and filters (`DataTable.SelectionBar`); with `showToolbar={false}` the bar\nshows under the rows, next to the pagination. Needs `onSelectionChange`."
|
|
4921
4983
|
},
|
|
4922
4984
|
{
|
|
4923
4985
|
"name": "columnsMenu",
|
|
@@ -5212,6 +5274,33 @@
|
|
|
5212
5274
|
}
|
|
5213
5275
|
]
|
|
5214
5276
|
},
|
|
5277
|
+
{
|
|
5278
|
+
"name": "DataTable.SelectionBar",
|
|
5279
|
+
"description": "The number of selected rows, a button that clears the selection, and the `children` (actions on those rows).\nRenders nothing while no row is selected. The default table shows it in the toolbar over the search and\nfilters, so the column headers stay as they are. In a composed table, place it in `DataTable.Toolbar` right\nafter `DataTable.Controls` and set `inert` on the controls while `table.selection` is not empty: the bar covers\nthem and the toolbar keeps its height.",
|
|
5280
|
+
"propsType": "DataTableSelectionBarProps",
|
|
5281
|
+
"props": [
|
|
5282
|
+
{
|
|
5283
|
+
"name": "size",
|
|
5284
|
+
"type": "DataTableControlSize",
|
|
5285
|
+
"required": false,
|
|
5286
|
+
"values": [
|
|
5287
|
+
"sm",
|
|
5288
|
+
"md"
|
|
5289
|
+
],
|
|
5290
|
+
"description": "Height of the clear button; match the toolbar's other controls.",
|
|
5291
|
+
"default": "'md'"
|
|
5292
|
+
},
|
|
5293
|
+
{
|
|
5294
|
+
"name": "children",
|
|
5295
|
+
"type": "React.ReactNode",
|
|
5296
|
+
"required": false,
|
|
5297
|
+
"description": "Actions on the selected rows (delete, export, assign…), placed after the count."
|
|
5298
|
+
}
|
|
5299
|
+
],
|
|
5300
|
+
"extends": [
|
|
5301
|
+
"React.HTMLAttributes<HTMLDivElement>"
|
|
5302
|
+
]
|
|
5303
|
+
},
|
|
5215
5304
|
{
|
|
5216
5305
|
"name": "DataTable.Loading",
|
|
5217
5306
|
"description": "Spinner while the table loads. It keeps its space while idle, so nothing moves when it shows."
|
|
@@ -5265,12 +5354,6 @@
|
|
|
5265
5354
|
"required": false,
|
|
5266
5355
|
"description": "Replaces the default empty state."
|
|
5267
5356
|
},
|
|
5268
|
-
{
|
|
5269
|
-
"name": "selectionActions",
|
|
5270
|
-
"type": "React.ReactNode",
|
|
5271
|
-
"required": false,
|
|
5272
|
-
"description": "Actions on the selected rows (delete, export, assign…). While rows are selected, the header row shows\ntheir count, a button that clears the selection and these actions in place of the column names, at the\nheader's height, so the rows do not move. Buttons in it are made header-sized."
|
|
5273
|
-
},
|
|
5274
5357
|
{
|
|
5275
5358
|
"name": "tableProps",
|
|
5276
5359
|
"type": "Omit<TableProps, 'children'>",
|
|
@@ -5369,7 +5452,7 @@
|
|
|
5369
5452
|
"name": "DescriptionList",
|
|
5370
5453
|
"kind": "component",
|
|
5371
5454
|
"category": "Feedback & data display",
|
|
5372
|
-
"description": "Label and value pairs, such as a record's details. Holds `DescriptionItem`s.",
|
|
5455
|
+
"description": "Label and value pairs, such as a record's details. Holds `DescriptionItem`s. Below 27.5rem of its own width (a\nphone, a drawer, a narrow column) `rows` puts each label above its value. It takes the width it is given, not its\ncontent's, so in a flex row give it `flex: 1` or a width.",
|
|
5373
5456
|
"import": "import { DescriptionList } from '@optimum-intelligence/opti-ui';",
|
|
5374
5457
|
"propsType": "DescriptionListProps",
|
|
5375
5458
|
"props": [
|
|
@@ -5743,7 +5826,7 @@
|
|
|
5743
5826
|
"name": "TableCell",
|
|
5744
5827
|
"kind": "component",
|
|
5745
5828
|
"category": "Feedback & data display",
|
|
5746
|
-
"description": "Body cell (`<td>`). `numeric` right-aligns and uses tabular figures.",
|
|
5829
|
+
"description": "Body cell (`<td>`). `numeric` right-aligns and uses tabular figures; `mono` and `nowrap` keep codes and\ndates on one line. In a table under 40rem wide every cell stays on one line and the table scrolls sideways.",
|
|
5747
5830
|
"import": "import { TableCell } from '@optimum-intelligence/opti-ui';",
|
|
5748
5831
|
"propsType": "TableCellProps",
|
|
5749
5832
|
"props": [
|
|
@@ -5764,6 +5847,18 @@
|
|
|
5764
5847
|
"type": "boolean",
|
|
5765
5848
|
"required": false,
|
|
5766
5849
|
"description": "Tabular figures for numeric columns."
|
|
5850
|
+
},
|
|
5851
|
+
{
|
|
5852
|
+
"name": "mono",
|
|
5853
|
+
"type": "boolean",
|
|
5854
|
+
"required": false,
|
|
5855
|
+
"description": "Monospace text on one line, for ids, codes and timestamps."
|
|
5856
|
+
},
|
|
5857
|
+
{
|
|
5858
|
+
"name": "nowrap",
|
|
5859
|
+
"type": "boolean",
|
|
5860
|
+
"required": false,
|
|
5861
|
+
"description": "Keeps the content on one line: the column widens to fit instead of wrapping it."
|
|
5767
5862
|
}
|
|
5768
5863
|
],
|
|
5769
5864
|
"extends": [
|
|
@@ -6124,7 +6219,7 @@
|
|
|
6124
6219
|
"name": "onRowClick",
|
|
6125
6220
|
"type": "(row: T) => void",
|
|
6126
6221
|
"required": false,
|
|
6127
|
-
"description": "Makes rows clickable and
|
|
6222
|
+
"description": "Makes rows clickable and focusable, activated by Enter or Space. For rows that open a page, also put a real link\nin a cell, so they can be opened in a new tab."
|
|
6128
6223
|
},
|
|
6129
6224
|
{
|
|
6130
6225
|
"name": "rowLabel",
|
|
@@ -6600,7 +6695,7 @@
|
|
|
6600
6695
|
"name": "onClick",
|
|
6601
6696
|
"type": "() => void",
|
|
6602
6697
|
"required": false,
|
|
6603
|
-
"description": "Called when the pin is clicked."
|
|
6698
|
+
"description": "Called when the pin is clicked or pressed with Enter or Space. Makes the pin a button with `aria-pressed`\nfrom `selected`; give it a `label` unless its number names it well enough."
|
|
6604
6699
|
},
|
|
6605
6700
|
{
|
|
6606
6701
|
"name": "children",
|
|
@@ -6745,6 +6840,19 @@
|
|
|
6745
6840
|
],
|
|
6746
6841
|
"description": "`sm` packs the entries tighter, with smaller swatches and text, for small maps and phones. Either size\nscrolls past `--oui-map-legend-max-height` (`sm`: 10rem, `md`: none).",
|
|
6747
6842
|
"default": "'md'"
|
|
6843
|
+
},
|
|
6844
|
+
{
|
|
6845
|
+
"name": "collapsible",
|
|
6846
|
+
"type": "boolean",
|
|
6847
|
+
"required": false,
|
|
6848
|
+
"description": "Adds a \"Legend\" button on top that folds the entries away, so the legend leaves the map free on small\nscreens. Collapsed at first on phones (below 640px), open elsewhere, unless `defaultCollapsed` says otherwise.",
|
|
6849
|
+
"default": "false"
|
|
6850
|
+
},
|
|
6851
|
+
{
|
|
6852
|
+
"name": "defaultCollapsed",
|
|
6853
|
+
"type": "boolean",
|
|
6854
|
+
"required": false,
|
|
6855
|
+
"description": "Whether a `collapsible` legend starts collapsed. Without it, it follows the screen width until toggled."
|
|
6748
6856
|
}
|
|
6749
6857
|
],
|
|
6750
6858
|
"extends": [
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2011 The Montserrat Project Authors (https://github.com/JulietaUla/Montserrat) Montserrat-Italic[wght].ttf: Copyright 2011 The Montserrat Project Authors (https://github.com/JulietaUla/Montserrat)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-ThinItalic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-ExtraLight.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-ExtraLightItalic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-Light.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-LightItalic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-Regular.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-Italic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-Medium.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-MediumItalic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-SemiBold.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-SemiBoldItalic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-Bold.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-BoldItalic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-ExtraBold.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-ExtraBoldItalic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-Black.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-BlackItalic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|